auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JThrowStatement throwStmt ) { com.android.jack.dx.rop.code.Insn throwInsn = new com.android.jack.dx.rop.code.ThrowingInsn ( com.android.jack.dx.rop.code.Rops.THROW , com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( throwStmt ) , com.android.jack.dx.rop.code.RegisterSpecList.make ( getRegisterSpec ( throwStmt.getExpr ( ) ) ) , getCatchTypes ( ) ) ; addInstruction ( throwInsn ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JUnlockBlockElement element ) { addInstruction ( new com.android.jack.dx.rop.code.ThrowingInsn ( com.android.jack.dx.rop.code.Rops.MONITOR_EXIT , com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( element.getSourceInfo ( ) ) , com.android.jack.dx.rop.code.RegisterSpecList.make ( getRegisterSpec ( element.getExpression ( ) ) ) , getCatchTypes ( ) ) ) ; return false ; }
Source:
private com.android.jack.tools.merger.JackMerger getNewMerger ( ) { return new com.android.jack.tools.merger.JackMerger ( createDexFile ( ) , com.android.sched.util.config.ThreadConfig.get ( Options.BEST_MERGING_ACCURACY ) . booleanValue ( ) ) ; }

Target:
protected void fillDexLists ( @ javax.annotation.Nonnull java.util.List < com.android.sched.vfs.InputVFile > mainDexList , @ javax.annotation.Nonnull java.util.List < com.android.sched.vfs.InputVFile > anyDexList ) { final com.android.jack.library.OutputJackLibrary jackOutputLibrary = com.android.jack.Jack.getSession ( ) . getJackOutputLibrary ( ) ; for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : com.android.jack.Jack.getSession ( ) . getTypesToEmit ( ) ) { if ( type.containsMarker ( com.android.jack.backend.dex.MainDexMarker.class ) ) { mainDexList.add ( getDexInputVFileOfType ( jackOutputLibrary , type ) ) ; } else { anyDexList.add ( getDexInputVFileOfType ( jackOutputLibrary , type ) ) ; } } }
Source:
private void processSendClccResponse ( com.android.bluetooth.hfp.HeadsetClccResponse clcc ) { android.bluetooth.BluetoothDevice device = getDeviceForMessage ( com.android.bluetooth.hfp.HeadsetStateMachine.CLCC_RSP_TIMEOUT ) ; if ( device == null ) { return ; } if ( ( clcc.mIndex ) == 0 ) { removeMessages ( com.android.bluetooth.hfp.HeadsetStateMachine.CLCC_RSP_TIMEOUT ) ; } clccResponseNative ( clcc.mIndex , clcc.mDirection , clcc.mStatus , clcc.mMode , clcc.mMpty , clcc.mNumber , clcc.mType , getByteAddress ( device ) ) ; }

Target:
private void processSendClccResponse ( com.android.bluetooth.hfp.HeadsetClccResponse clcc ) { android.bluetooth.BluetoothDevice device = getDeviceForMessage ( com.android.bluetooth.hfp.HeadsetStateMachine.CLCC_RSP_TIMEOUT ) ; if ( device == null ) { return ; } if ( ( clcc.mIndex ) == 0 ) { removeMessages ( com.android.bluetooth.hfp.HeadsetStateMachine.CLCC_RSP_TIMEOUT ) ; } mNativeInterface.clccResponse ( device , clcc.mIndex , clcc.mDirection , clcc.mStatus , clcc.mMode , clcc.mMpty , clcc.mNumber , clcc.mType ) ; }
Source:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , long [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
synchronized void nAllocationRead1D ( long id , int off , int mip , int count , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationRead1D ( mContext , id , off , mip , count , d , sizeBytes , dt.mID ) ; }
Source:
public final byte byte_literal ( ) throws org.jf.smali.RecognitionException { byte value = 0 ; org.antlr.runtime.tree.CommonTree BYTE_LITERAL194 = null ; try { { BYTE_LITERAL194 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.BYTE_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_BYTE_LITERAL_in_byte_literal3292 ) ) ) ; value = org.jf.smali.LiteralTools.parseByte ( ( BYTE_LITERAL194 != null ? BYTE_LITERAL194.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final short short_literal ( ) throws org.jf.smali.RecognitionException { short value = 0 ; org.antlr.runtime.tree.CommonTree SHORT_LITERAL193 = null ; try { { SHORT_LITERAL193 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.SHORT_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_SHORT_LITERAL_in_short_literal3279 ) ) ) ; value = org.jf.smali.LiteralTools.parseShort ( ( SHORT_LITERAL193 != null ? SHORT_LITERAL193.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
public boolean requestDrawGL ( android.graphics.Canvas canvas ) { if ( ( mGLfunctor ) == null ) { mGLfunctor = new com.android.webview.chromium.DrawGLFunctor ( mAwContents.getAwDrawGLViewContext ( ) ) ; } return mGLfunctor.requestDrawGL ( ( ( android.view.HardwareCanvas ) ( canvas ) ) , mWebView.getViewRootImpl ( ) ) ; }

Target:
public boolean requestDrawGL ( android.graphics.Canvas canvas , boolean waitForCompletion ) { if ( ( mGLfunctor ) == null ) { mGLfunctor = new com.android.webview.chromium.DrawGLFunctor ( mAwContents.getAwDrawGLViewContext ( ) ) ; } boolean result = mGLfunctor.requestDrawGL ( ( ( android.view.HardwareCanvas ) ( canvas ) ) , mWebView.getViewRootImpl ( ) ) ; if ( result && waitForCompletion ) { java.lang.Runnable r = new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { } } ; result = mWebView.executeHardwareAction ( r ) ; } return result ; }
Source:
public void test_forNameLjava_lang_StringExceptions ( ) { try { java.lang.Character.UnicodeBlock.forName ( null ) ; fail ( "No NPE" ) ; } catch ( java.lang.NullPointerException e ) { } try { java.lang.Character.UnicodeBlock.forName ( "INVALID_NAME" ) ; fail ( "No illegal argument exception" ) ; } catch ( java.lang.IllegalArgumentException e ) { } }

Target:
public void test_forNameLjava_lang_StringExceptions ( ) { try { java.lang.Character.UnicodeBlock.forName ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } try { java.lang.Character.UnicodeBlock.forName ( "INVALID_NAME" ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } try { java.lang.Character.UnicodeBlock.forName ( "SURROGATES_AREA" ) ; fail ( ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mActivity = getActivity ( ) ; mInstrumentation = getInstrumentation ( ) ; mAutoCompleteTextView = ( ( android.widget.AutoCompleteTextView ) ( mActivity.findViewById ( R.id.autocompletetv_edit ) ) ) ; mAdapter = new android.widget.ArrayAdapter < java.lang.String > ( mActivity , android.R.layout.simple_dropdown_item_1line , WORDS ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mActivity = getActivity ( ) ; mInstrumentation = getInstrumentation ( ) ; mAutoCompleteTextView = ( ( android.widget.AutoCompleteTextView ) ( mActivity.findViewById ( R.id.autocompletetv_edit ) ) ) ; mAdapter = new android.widget.ArrayAdapter < java.lang.String > ( mActivity , android.R.layout.simple_dropdown_item_1line , WORDS ) ; android.view.KeyCharacterMap keymap = android.view.KeyCharacterMap.load ( KeyCharacterMap.BUILT_IN_KEYBOARD ) ; if ( ( keymap.getKeyboardType ( ) ) == ( android.view.KeyCharacterMap.NUMERIC ) ) { mNumeric = true ; } }
Source:
public void testUpgradeKeepsPermissions ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_22 ) , false , false ) ) ; runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest22" , "testAllPermissionsGrantedByDefault" ) ; assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , true , false ) ) ; runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testAllPermissionsGrantedOnUpgrade" ) ; }

Target:
public void testRequestPermissionFromTwoGroups23 ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , false , false ) ) ; runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRequestPermissionFromTwoGroups" ) ; }
Source:
public void testDstZoneNameWithNonDstTimestamp ( ) throws java.lang.Exception { java.text.SimpleDateFormat format = new java.text.SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm zzzz" ) ; java.util.Calendar calendar = new java.util.GregorianCalendar ( libcore.java.text.SimpleDateFormatTest.AMERICA_LOS_ANGELES ) ; calendar.setTime ( format.parse ( "2011-06-21T10:00 Pacific Standard Time" ) ) ; assertEquals ( 11 , calendar.get ( java.util.Calendar.HOUR_OF_DAY ) ) ; assertEquals ( 0 , calendar.get ( java.util.Calendar.MINUTE ) ) ; }

Target:
public void testDstZoneNameWithNonDstTimestamp ( ) throws java.lang.Exception { java.text.SimpleDateFormat format = new java.text.SimpleDateFormat ( "yyyy-MM-dd'T'HH:mm zzzz" , java.util.Locale.US ) ; java.util.Calendar calendar = new java.util.GregorianCalendar ( libcore.java.text.SimpleDateFormatTest.AMERICA_LOS_ANGELES ) ; calendar.setTime ( format.parse ( "2011-06-21T10:00 Pacific Standard Time" ) ) ; assertEquals ( 11 , calendar.get ( java.util.Calendar.HOUR_OF_DAY ) ) ; assertEquals ( 0 , calendar.get ( java.util.Calendar.MINUTE ) ) ; }
Source:
protected void finishMerge ( @ javax.annotation.Nonnull com.android.jack.tools.merger.JackMerger merger , @ javax.annotation.Nonnull com.android.sched.vfs.OutputVFile out ) throws com.android.jack.backend.dex.DexWritingException { java.io.OutputStream os = null ; try { try { os = new java.io.BufferedOutputStream ( out.getOutputStream ( ) ) ; merger.finish ( os ) ; } finally { if ( os != null ) { os.close ( ) ; } } } catch ( java.io.IOException e ) { throw new com.android.jack.backend.dex.DexWritingException ( e ) ; } }

Target:
protected void finishMerge ( @ javax.annotation.Nonnull com.android.jack.tools.merger.JackMerger merger , @ javax.annotation.Nonnull com.android.sched.vfs.OutputVFile out ) throws com.android.jack.backend.dex.DexWritingException { java.io.OutputStream os = null ; try { try { os = new java.io.BufferedOutputStream ( out.getOutputStream ( ) ) ; merger.finish ( os ) ; } finally { if ( os != null ) { os.close ( ) ; } } } catch ( java.io.IOException | com.android.sched.util.file.WrongPermissionException e ) { throw new com.android.jack.backend.dex.DexWritingException ( e ) ; } }
Source:
public void setLeftTopRightBottom ( int left , int top , int right , int bottom ) { setFrame ( left , top , right , bottom ) ; }

Target:
private void sizeChange ( int newWidth , int newHeight , int oldWidth , int oldHeight ) { onSizeChanged ( newWidth , newHeight , oldWidth , oldHeight ) ; if ( ( mOverlay ) != null ) { mOverlay.getOverlayView ( ) . setRight ( newWidth ) ; mOverlay.getOverlayView ( ) . setBottom ( newHeight ) ; } mPrivateFlags3 |= android.view.View.PFLAG3_OUTLINE_INVALID ; }
Source:
public static void remove ( java.lang.ref.FinalizerReference reference ) { synchronized ( java.lang.ref.FinalizerReference.class ) { java.lang.ref.FinalizerReference next = reference.next ; java.lang.ref.FinalizerReference prev = reference.prev ; reference.next = null ; reference.prev = null ; if ( prev != null ) { prev.next = next ; } else { java.lang.ref.FinalizerReference.head = next ; } if ( next != null ) { next.prev = prev ; } } }

Target:
public static void remove ( java.lang.ref.FinalizerReference reference ) { synchronized ( java.lang.ref.FinalizerReference.LIST_LOCK ) { java.lang.ref.FinalizerReference next = reference.next ; java.lang.ref.FinalizerReference prev = reference.prev ; reference.next = null ; reference.prev = null ; if ( prev != null ) { prev.next = next ; } else { java.lang.ref.FinalizerReference.head = next ; } if ( next != null ) { next.prev = prev ; } } }
Source:
private java.util.HashMap < java.lang.String , android.os.IBinder > getCommonServicesLocked ( ) { if ( ( mAppBindArgs ) == null ) { mAppBindArgs = new java.util.HashMap < java.lang.String , android.os.IBinder > ( ) ; mAppBindArgs.put ( "package" , android.os.ServiceManager.getService ( "package" ) ) ; mAppBindArgs.put ( "window" , android.os.ServiceManager.getService ( "window" ) ) ; mAppBindArgs.put ( Context.ALARM_SERVICE , android.os.ServiceManager.getService ( Context.ALARM_SERVICE ) ) ; } return mAppBindArgs ; }

Target:
private java.util.HashMap < java.lang.String , android.os.IBinder > getCommonServicesLocked ( boolean isolated ) { if ( ( mAppBindArgs ) == null ) { mAppBindArgs = new java.util.HashMap < > ( ) ; if ( ! isolated ) { mAppBindArgs.put ( "package" , android.os.ServiceManager.getService ( "package" ) ) ; mAppBindArgs.put ( "window" , android.os.ServiceManager.getService ( "window" ) ) ; mAppBindArgs.put ( Context.ALARM_SERVICE , android.os.ServiceManager.getService ( Context.ALARM_SERVICE ) ) ; } } return mAppBindArgs ; }
Source:
public java.util.Set < java.lang.String > getDisabledCapabilities ( ) { com.android.dialer.common.Assert.checkArgument ( isValid ( ) ) ; java.util.Set < java.lang.String > disabledCapabilities = com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.getDisabledCapabilities ( mCarrierConfig ) ; if ( disabledCapabilities != null ) { return disabledCapabilities ; } return com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.getDisabledCapabilities ( mTelephonyConfig ) ; }

Target:
public java.util.Set < java.lang.String > getDisabledCapabilities ( ) { com.android.dialer.common.Assert.checkArgument ( isValid ( ) ) ; java.util.Set < java.lang.String > disabledCapabilities ; disabledCapabilities = com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.getDisabledCapabilities ( mOverrideConfig ) ; if ( disabledCapabilities != null ) { return disabledCapabilities ; } disabledCapabilities = com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.getDisabledCapabilities ( mCarrierConfig ) ; if ( disabledCapabilities != null ) { return disabledCapabilities ; } return com.android.voicemail.impl.OmtpVvmCarrierConfigHelper.getDisabledCapabilities ( mTelephonyConfig ) ; }
Source:
protected boolean start ( ) { mAvrcp = com.android.bluetooth.avrcp.Avrcp.make ( this ) ; mStateMachine = com.android.bluetooth.a2dp.A2dpStateMachine.make ( this , this ) ; com.android.bluetooth.a2dp.A2dpService.setA2dpService ( this ) ; android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED ) ; registerReceiver ( mConnectionStateChangedReceiver , filter ) ; return true ; }

Target:
protected boolean start ( ) { mAvrcp = com.android.bluetooth.avrcp.Avrcp.make ( this ) ; mStateMachine = com.android.bluetooth.a2dp.A2dpStateMachine.make ( this , this ) ; com.android.bluetooth.a2dp.A2dpService.setA2dpService ( this ) ; if ( ( mConnectionStateChangedReceiver ) == null ) { android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED ) ; mConnectionStateChangedReceiver = new com.android.bluetooth.a2dp.A2dpService.CodecSupportReceiver ( ) ; registerReceiver ( mConnectionStateChangedReceiver , filter ) ; } return true ; }
Source:
public static char internalTypeFromArrayType ( byte arrayType ) { switch ( arrayType ) { case InstructionConstants.ARRAY_T_BOOLEAN : return proguard.classfile.ClassConstants.INTERNAL_TYPE_BOOLEAN ; case InstructionConstants.ARRAY_T_CHAR : return proguard.classfile.ClassConstants.INTERNAL_TYPE_CHAR ; case InstructionConstants.ARRAY_T_FLOAT : return proguard.classfile.ClassConstants.INTERNAL_TYPE_FLOAT ; case InstructionConstants.ARRAY_T_DOUBLE : return proguard.classfile.ClassConstants.INTERNAL_TYPE_DOUBLE ; case InstructionConstants.ARRAY_T_BYTE : return proguard.classfile.ClassConstants.INTERNAL_TYPE_BYTE ; case InstructionConstants.ARRAY_T_SHORT : return proguard.classfile.ClassConstants.INTERNAL_TYPE_SHORT ; case InstructionConstants.ARRAY_T_INT : return proguard.classfile.ClassConstants.INTERNAL_TYPE_INT ; case InstructionConstants.ARRAY_T_LONG : return proguard.classfile.ClassConstants.INTERNAL_TYPE_LONG ; default : throw new java.lang.IllegalArgumentException ( ( ( "Unknown array type [" + arrayType ) + "]" ) ) ; } }

Target:
public static char internalTypeFromArrayType ( byte arrayType ) { switch ( arrayType ) { case InstructionConstants.ARRAY_T_BOOLEAN : return proguard.classfile.ClassConstants.TYPE_BOOLEAN ; case InstructionConstants.ARRAY_T_CHAR : return proguard.classfile.ClassConstants.TYPE_CHAR ; case InstructionConstants.ARRAY_T_FLOAT : return proguard.classfile.ClassConstants.TYPE_FLOAT ; case InstructionConstants.ARRAY_T_DOUBLE : return proguard.classfile.ClassConstants.TYPE_DOUBLE ; case InstructionConstants.ARRAY_T_BYTE : return proguard.classfile.ClassConstants.TYPE_BYTE ; case InstructionConstants.ARRAY_T_SHORT : return proguard.classfile.ClassConstants.TYPE_SHORT ; case InstructionConstants.ARRAY_T_INT : return proguard.classfile.ClassConstants.TYPE_INT ; case InstructionConstants.ARRAY_T_LONG : return proguard.classfile.ClassConstants.TYPE_LONG ; default : throw new java.lang.IllegalArgumentException ( ( ( "Unknown array type [" + arrayType ) + "]" ) ) ; } }
Source:
public void connect ( java.net.SocketAddress remoteAddr , int timeout ) throws java.io.IOException { if ( ! ( channel.isBlocking ( ) ) ) { throw new java.nio.channels.IllegalBlockingModeException ( ) ; } if ( isConnected ( ) ) { throw new java.nio.channels.AlreadyConnectedException ( ) ; } super . connect ( remoteAddr , timeout ) ; channel.initLocalAddressAndPort ( ) ; if ( super . isConnected ( ) ) { channel.setConnected ( ) ; channel.isBound = super . isBound ( ) ; } }

Target:
public void connect ( java.net.SocketAddress remoteAddr , int timeout ) throws java.io.IOException { if ( ! ( channel.isBlocking ( ) ) ) { throw new java.nio.channels.IllegalBlockingModeException ( ) ; } if ( isConnected ( ) ) { throw new java.nio.channels.AlreadyConnectedException ( ) ; } super . connect ( remoteAddr , timeout ) ; channel.onBind ( false ) ; if ( super . isConnected ( ) ) { java.net.InetSocketAddress remoteInetAddress = ( ( java.net.InetSocketAddress ) ( remoteAddr ) ) ; channel.onConnectStatusChanged ( remoteInetAddress , java.nio.SocketChannelImpl.SOCKET_STATUS_CONNECTED , false ) ; } }
Source:
public boolean requestScores ( android.net.NetworkKey [ ] networks ) { mContext.enforceCallingOrSelfPermission ( permission.BROADCAST_NETWORK_PRIVILEGED , com.android.server.NetworkScoreService.TAG ) ; final android.net.INetworkRecommendationProvider provider = getRecommendationProvider ( ) ; if ( provider != null ) { try { provider.requestScores ( networks ) ; return true ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.server.NetworkScoreService.TAG , "Failed to request scores." , e ) ; } } return false ; }

Target:
public boolean requestScores ( android.net.NetworkKey [ ] networks ) { mContext.enforceCallingOrSelfPermission ( permission.BROADCAST_NETWORK_PRIVILEGED , com.android.server.NetworkScoreService.TAG ) ; final long token = android.os.Binder.clearCallingIdentity ( ) ; try { final android.net.INetworkRecommendationProvider provider = getRecommendationProvider ( ) ; if ( provider != null ) { try { provider.requestScores ( networks ) ; return true ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.server.NetworkScoreService.TAG , "Failed to request scores." , e ) ; } } return false ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }
Source:
protected static java.lang.String cstComment ( com.android.jack.dx.dex.code.DalvInsn insn ) { com.android.jack.dx.dex.code.CstInsn ci = ( ( com.android.jack.dx.dex.code.CstInsn ) ( insn ) ) ; if ( ! ( ci.hasIndex ( ) ) ) { return "" ; } java.lang.StringBuilder sb = new java.lang.StringBuilder ( 20 ) ; int index = ci.getIndex ( ) ; sb.append ( ci.getConstant ( ) . typeName ( ) ) ; sb.append ( '@' ) ; if ( index < 65536 ) { sb.append ( com.android.jack.dx.util.Hex.u2 ( index ) ) ; } else { sb.append ( com.android.jack.dx.util.Hex.u4 ( index ) ) ; } return sb.toString ( ) ; }

Target:
protected static java.lang.String cstComment ( @ javax.annotation.Nonnull com.android.jack.dx.dex.code.CstInsn ci ) { if ( ! ( ci.hasIndex ( ) ) ) { return "" ; } return com.android.jack.dx.dex.code.InsnFormat.insnCommentCstWithIndex ( ci.getConstant ( ) , ci.getIndex ( ) ) ; }
Source:
public final com.android.tools.perflib.heap.ClassObj findClass ( java.lang.String name ) { for ( com.android.tools.perflib.heap.Heap heap : mHeaps.values ( ) ) { com.android.tools.perflib.heap.ClassObj theClass = heap.getClass ( name ) ; if ( theClass != null ) { return theClass ; } } return null ; }

Target:
public final com.android.tools.perflib.heap.Instance findReference ( long id ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { com.android.tools.perflib.heap.Instance instance = mHeaps.get ( i ) . getInstance ( id ) ; if ( instance != null ) { return instance ; } } return findClass ( id ) ; }
Source:
public static void setBlocking ( java.io.FileDescriptor fd , boolean blocking ) throws java.io.IOException { try { int flags = Libcore.os.fcntlVoid ( fd , libcore.io.F_GETFL ) ; if ( ! blocking ) { flags |= O_NONBLOCK ; } else { flags &= ~ ( O_NONBLOCK ) ; } Libcore.os.fcntlLong ( fd , libcore.io.F_SETFL , flags ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }

Target:
public static void setBlocking ( java.io.FileDescriptor fd , boolean blocking ) throws java.io.IOException { try { int flags = Libcore.os.fcntlVoid ( fd , libcore.io.F_GETFL ) ; if ( ! blocking ) { flags |= O_NONBLOCK ; } else { flags &= ~ ( O_NONBLOCK ) ; } Libcore.os.fcntlLong ( fd , libcore.io.F_SETFL , flags ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }
Source:
public void testServiceForegroundDuration ( ) throws java.lang.Exception { batteryOnScreenOff ( ) ; installPackage ( com.android.server.cts.BatteryStatsValidationTest.DEVICE_SIDE_TEST_APK , true ) ; HEAD ( ( ef27fb = Merge ) ) ; startSimpleActivity ( ) ; assertValueRange ( "st" , "" , com.android.server.cts.BatteryStatsValidationTest.STATE_TIME_FOREGROUND_SERVICE_INDEX , 0 , 0 ) ; }

Target:
public void testServiceForegroundDuration ( ) throws java.lang.Exception { batteryOnScreenOff ( ) ; installPackage ( com.android.server.cts.BatteryStatsValidationTest.DEVICE_SIDE_TEST_APK , true ) ; startSimpleActivity ( ) ; assertValueRange ( "st" , "" , com.android.server.cts.BatteryStatsValidationTest.STATE_TIME_FOREGROUND_SERVICE_INDEX , 0 , 0 ) ; runDeviceTests ( com.android.server.cts.BatteryStatsValidationTest.DEVICE_SIDE_TEST_PACKAGE , ".BatteryStatsProcessStateTests" , "testForegroundService" ) ; assertValueRange ( "st" , "" , com.android.server.cts.BatteryStatsValidationTest.STATE_TIME_FOREGROUND_SERVICE_INDEX , ( ( long ) ( 2000 * 0.8 ) ) , 4000 ) ; batteryOffScreenOn ( ) ; }
Source:
public void onMessageReceived ( java.lang.Object peerHandle , byte [ ] message ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "peerId" , ( ( java.lang.Integer ) ( peerHandle ) ) ) ; mResults.putByteArray ( "message" , message ) ; mResults.putString ( "messageAsString" , new java.lang.String ( message ) ) ; mEventFacade.postEvent ( "WifiNanSessionOnMessageReceived" , mResults ) ; }

Target:
public void onMessageReceived ( java.lang.Object peerHandle , byte [ ] message ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "peerId" , ( ( android.net.wifi.nan.WifiNanManager.OpaquePeerHandle ) ( peerHandle ) ) . peerId ) ; mResults.putByteArray ( "message" , message ) ; mResults.putString ( "messageAsString" , new java.lang.String ( message ) ) ; mEventFacade.postEvent ( "WifiNanSessionOnMessageReceived" , mResults ) ; }
Source:
public java.lang.Object [ ] getElements ( java.lang.Object inputElement ) { if ( inputElement instanceof com.android.ide.eclipse.adt.internal.resources.IResourceRepository ) { if ( ( ( com.android.ide.eclipse.adt.internal.resources.IResourceRepository ) ( inputElement ) ) == ( mResources ) ) { return mResources.getAvailableResourceTypes ( ) ; } } return new java.lang.Object [ 0 ] ; }

Target:
public java.lang.Object [ ] getElements ( java.lang.Object inputElement ) { if ( inputElement instanceof com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository ) { if ( ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository ) ( inputElement ) ) == ( mResources ) ) { java.util.List < com.android.resources.ResourceType > types = mResources.getAvailableResourceTypes ( ) ; java.util.Collections.sort ( types ) ; return types.toArray ( ) ; } } return new java.lang.Object [ 0 ] ; }
Source:
protected int computeSerializedSize ( ) { int size = 0 ; int unknownFieldCount = ( ( unknownFieldData ) == null ) ? 0 : unknownFieldData.size ( ) ; for ( int i = 0 ; i < unknownFieldCount ; i ++ ) { com.google.protobuf.nano.UnknownFieldData unknownField = unknownFieldData.get ( i ) ; size += com.google.protobuf.nano.CodedOutputByteBufferNano.computeRawVarint32Size ( unknownField.tag ) ; size += unknownField.bytes.length ; } return size ; }

Target:
public final < T > T getExtension ( com.google.protobuf.nano.Extension < M , T > extension ) { if ( ( unknownFieldData ) == null ) { return null ; } com.google.protobuf.nano.FieldData field = unknownFieldData.get ( com.google.protobuf.nano.WireFormatNano.getTagFieldNumber ( extension.tag ) ) ; return field == null ? null : field.getValue ( extension ) ; }
Source:
public org.eclipse.swt.graphics.Font getFont ( java.lang.Object element , int columnIndex ) { if ( element instanceof com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) { if ( ( ( ( com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) ( element ) ) . getState ( ) ) != ( com.android.sdkuilib.internal.repository.PackagesPage.PkgState.INSTALLED ) ) { return mTreeFontItalic ; } } return super . getFont ( element ) ; }

Target:
public org.eclipse.swt.graphics.Font getFont ( java.lang.Object element , int columnIndex ) { if ( element instanceof com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) { if ( ( ( ( com.android.sdkuilib.internal.repository.PackagesPage.PkgItem ) ( element ) ) . getState ( ) ) != ( com.android.sdkuilib.internal.repository.PackagesPage.PkgState.INSTALLED ) ) { return mTreeFontItalic ; } } else if ( element instanceof java.lang.Package ) { return mTreeFontItalic ; } return super . getFont ( element ) ; }
Source:
public static < I , O > com.google.common.util.concurrent.ListenableFuture < O > transform ( com.google.common.util.concurrent.ListenableFuture < I > input , com.google.common.util.concurrent.AsyncFunction < ? super I , ? extends O > function , java.util.concurrent.Executor executor ) { com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > output = new com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > ( function , input ) ; input.addListener ( output , executor ) ; return output ; }

Target:
public static < I , O > com.google.common.util.concurrent.ListenableFuture < O > transform ( com.google.common.util.concurrent.ListenableFuture < I > input , final com.google.common.base.Function < ? super I , ? extends O > function ) { com.google.common.base.Preconditions.checkNotNull ( function ) ; com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > output = new com.google.common.util.concurrent.Futures.ChainingListenableFuture < I , O > ( com.google.common.util.concurrent.Futures.asAsyncFunction ( function ) , input ) ; input.addListener ( output , com.google.common.util.concurrent.MoreExecutors.directExecutor ( ) ) ; return output ; }
Source:
public void testStageInstallWithErrorCode_badSystemFile ( ) throws java.lang.Exception { java.io.File doesNotExist = new java.io.File ( testSystemTzDataDir , "doesNotExist" ) ; libcore.tzdata.update2.TimeZoneDistroInstaller brokenSystemInstaller = new libcore.tzdata.update2.TimeZoneDistroInstaller ( "TimeZoneDistroInstallerTest" , doesNotExist , testInstallDir ) ; libcore.tzdata.shared2.TimeZoneDistro tzData = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; try { brokenSystemInstaller.stageInstallWithErrorCode ( tzData.getBytes ( ) ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_badSystemFile ( ) throws java.lang.Exception { java.io.File doesNotExist = new java.io.File ( testSystemTzDataDir , "doesNotExist" ) ; libcore.tzdata.update2.TimeZoneDistroInstaller brokenSystemInstaller = new libcore.tzdata.update2.TimeZoneDistroInstaller ( "TimeZoneDistroInstallerTest" , doesNotExist , testInstallDir ) ; com.android.timezone.distro.TimeZoneDistro tzData = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; try { brokenSystemInstaller.stageInstallWithErrorCode ( tzData.getBytes ( ) ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }
Source:
public void test_create_BIO_OutputStream ( ) throws java.lang.Exception { byte [ ] actual = "Test" . getBytes ( ) ; java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream ( ) ; long ctx = org.conscrypt.NativeCrypto.create_BIO_OutputStream ( os ) ; try { org.conscrypt.NativeCrypto.BIO_write ( ctx , actual , 0 , actual.length ) ; assertEquals ( actual.length , os.size ( ) ) ; assertEquals ( java.util.Arrays.toString ( actual ) , java.util.Arrays.toString ( os.toByteArray ( ) ) ) ; } finally { org.conscrypt.NativeCrypto.BIO_free ( ctx ) ; } }

Target:
public void test_create_BIO_OutputStream ( ) throws java.lang.Exception { byte [ ] actual = "Test" . getBytes ( ) ; java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream ( ) ; long ctx = org.conscrypt.NativeCrypto.create_BIO_OutputStream ( os ) ; try { org.conscrypt.NativeCrypto.BIO_write ( ctx , actual , 0 , actual.length ) ; assertEquals ( actual.length , os.size ( ) ) ; assertEquals ( java.util.Arrays.toString ( actual ) , java.util.Arrays.toString ( os.toByteArray ( ) ) ) ; } finally { org.conscrypt.NativeCrypto.BIO_free_all ( ctx ) ; } }
Source:
public boolean updateNetworkAfterConnect ( int networkId ) { android.net.wifi.WifiConfiguration config = getInternalConfiguredNetwork ( networkId ) ; if ( config == null ) { return false ; } config.lastConnected = mClock.getWallClockMillis ( ) ; ( config.numAssociation ) ++ ; config.getNetworkSelectionStatus ( ) . clearDisableReasonCounter ( ) ; config.getNetworkSelectionStatus ( ) . setHasEverConnected ( true ) ; return true ; }

Target:
public boolean updateNetworkAfterConnect ( int networkId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManagerNew.TAG , ( "Update network after connect for " + networkId ) ) ; } android.net.wifi.WifiConfiguration config = getInternalConfiguredNetwork ( networkId ) ; if ( config == null ) { return false ; } config.lastConnected = mClock.getWallClockMillis ( ) ; ( config.numAssociation ) ++ ; config.getNetworkSelectionStatus ( ) . clearDisableReasonCounter ( ) ; config.getNetworkSelectionStatus ( ) . setHasEverConnected ( true ) ; setNetworkStatus ( config , WifiConfiguration.Status.CURRENT ) ; return true ; }
Source:
private void maybeLogEvaluationResult ( int evtype ) { if ( mEvaluationTimer.isRunning ( ) ) { mMetricsLog.log ( new android.net.metrics.NetworkEvent ( mNetId , evtype , mEvaluationTimer.stop ( ) ) ) ; mEvaluationTimer.reset ( ) ; } }

Target:
private void maybeLogEvaluationResult ( int evtype ) { if ( mEvaluationTimer.isRunning ( ) ) { int [ ] transports = mNetworkAgentInfo.networkCapabilities.getTransportTypes ( ) ; mMetricsLog.log ( mNetId , transports , new android.net.metrics.NetworkEvent ( evtype , mEvaluationTimer.stop ( ) ) ) ; mEvaluationTimer.reset ( ) ; } }
Source:
public E take ( ) throws java.lang.InterruptedException { final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lockInterruptibly ( ) ; E result ; try { while ( ( result = extract ( ) ) == null ) notEmpty.await ( ) ; } finally { lock.unlock ( ) ; } return result ; }

Target:
public E take ( ) throws java.lang.InterruptedException { final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lockInterruptibly ( ) ; E result ; try { while ( ( result = dequeue ( ) ) == null ) notEmpty.await ( ) ; } finally { lock.unlock ( ) ; } return result ; }
Source:
public static boolean shouldOptimize ( java.lang.String canonicalMethodName ) { if ( ( com.android.dx.dex.cf.OptimizerOptions.optimizeList ) != null ) { return com.android.dx.dex.cf.OptimizerOptions.optimizeList.contains ( canonicalMethodName ) ; } if ( ( com.android.dx.dex.cf.OptimizerOptions.dontOptimizeList ) != null ) { return ! ( com.android.dx.dex.cf.OptimizerOptions.dontOptimizeList.contains ( canonicalMethodName ) ) ; } return true ; }

Target:
public boolean shouldOptimize ( java.lang.String canonicalMethodName ) { if ( ( optimizeList ) != null ) { return optimizeList.contains ( canonicalMethodName ) ; } if ( ( dontOptimizeList ) != null ) { return ! ( dontOptimizeList.contains ( canonicalMethodName ) ) ; } return true ; }
Source:
private static native long nativeGetUidStat ( int uid , int type ) ;

Target:
public static long getUidTxPackets ( int uid ) { final int callingUid = android.net.android.os.Process.myUid ( ) ; if ( ( callingUid == android.net.android.os.Process ) || ( callingUid == uid ) ) { try { return android.net.TrafficStats.getStatsService ( ) . getUidStats ( uid , android.net.TrafficStats.TYPE_TX_PACKETS ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } else { return android.net.TrafficStats.UNSUPPORTED ; } }
Source:
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 ( ) ; } }

Target:
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 ( ) ; } }
Source:
public final void release ( ) throws android.os.RemoteException { synchronized ( this ) { checkOwnerOrSystemAndThrow ( ) ; if ( isReferenced ( ) ) { throw new java.lang.IllegalStateException ( "Cannot release a resource that has active references!" ) ; } if ( ( mResourceId ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { return ; } releaseResources ( ) ; if ( ( mBinder ) != null ) { mBinder.unlinkToDeath ( this , 0 ) ; } mBinder = null ; mResourceId = android.net.IpSecManager.INVALID_RESOURCE_ID ; } }

Target:
public boolean isReferenced ( ) { return ( mReferenceCount.get ( ) ) > 0 ; }
Source:
private void onConnectStateChanged ( byte [ ] address , int state ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_CONNECT_STATE_CHANGED ) ; msg.obj = address ; msg.arg1 = state ; mHandler.sendMessage ( msg ) ; }

Target:
private void onConnectStateChanged ( byte [ ] address , int state ) { if ( com.android.bluetooth.hid.HidService.DBG ) android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , ( "onConnectStateChanged: state=" + state ) ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_CONNECT_STATE_CHANGED ) ; msg.obj = address ; msg.arg1 = state ; mHandler.sendMessage ( msg ) ; }
Source:
public void onCallAudioStateChanged ( com.android.server.telecom.Call activeCall , android.telecom.CallAudioState audioState ) { final java.lang.String callId = mCallIdMapper.getCallId ( activeCall ) ; if ( ( callId != null ) && ( isServiceValid ( "onCallAudioStateChanged" ) ) ) { try { logOutgoing ( "onCallAudioStateChanged %s %s" , callId , audioState ) ; mServiceInterface.onCallAudioStateChanged ( callId , audioState ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
public void onCallAudioStateChanged ( com.android.server.telecom.Call activeCall , android.telecom.CallAudioState audioState ) { final java.lang.String callId = mCallIdMapper.getCallId ( activeCall ) ; if ( ( callId != null ) && ( isServiceValid ( "onCallAudioStateChanged" ) ) ) { try { logOutgoing ( "onCallAudioStateChanged %s %s" , callId , audioState ) ; mServiceInterface.onCallAudioStateChanged ( callId , audioState , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
private long getSuggestedRetryDelay ( android.os.AsyncResult ar ) { com.android.internal.telephony.dataconnection.DataCallResponse response = ( ( com.android.internal.telephony.dataconnection.DataCallResponse ) ( ar.result ) ) ; if ( ( response.suggestedRetryTime ) < 0 ) { if ( com.android.internal.telephony.dataconnection.DataConnection.DBG ) log ( "No suggested retry delay." ) ; return com.android.internal.telephony.RetryManager.NO_SUGGESTED_RETRY_DELAY ; } else if ( ( response.suggestedRetryTime ) == ( java.lang.Integer.MAX_VALUE ) ) { if ( com.android.internal.telephony.dataconnection.DataConnection.DBG ) log ( "Modem suggested not retrying." ) ; return com.android.internal.telephony.RetryManager.NO_RETRY ; } return ( ( long ) ( response.suggestedRetryTime ) ) ; }

Target:
private long getSuggestedRetryDelay ( android.os.AsyncResult ar ) { android.telephony.data.DataCallResponse response = ( ( android.telephony.data.DataCallResponse ) ( ar.result ) ) ; if ( ( response.getSuggestedRetryTime ( ) ) < 0 ) { if ( com.android.internal.telephony.dataconnection.DataConnection.DBG ) log ( "No suggested retry delay." ) ; return com.android.internal.telephony.RetryManager.NO_SUGGESTED_RETRY_DELAY ; } else if ( ( response.getSuggestedRetryTime ( ) ) == ( java.lang.Integer.MAX_VALUE ) ) { if ( com.android.internal.telephony.dataconnection.DataConnection.DBG ) log ( "Modem suggested not retrying." ) ; return com.android.internal.telephony.RetryManager.NO_RETRY ; } return ( ( long ) ( response.getSuggestedRetryTime ( ) ) ) ; }
Source:
public boolean isValid ( @ com.android.annotations.Nullable com.android.utils.ILogger log ) { for ( java.util.Map.Entry < com.android.sdklib.BuildToolInfo.PathId , java.lang.String > entry : mPaths.entrySet ( ) ) { java.io.File f = new java.io.File ( entry.getValue ( ) ) ; if ( ! ( f.exists ( ) ) ) { if ( log != null ) { log.warning ( "Build-tool %1$s is missing %2$s" , mRevision.toString ( ) , entry.getKey ( ) ) ; } return false ; } } return true ; }

Target:
public boolean isValid ( @ com.android.annotations.Nullable com.android.utils.ILogger log ) { for ( java.util.Map.Entry < com.android.sdklib.BuildToolInfo.PathId , java.lang.String > entry : mPaths.entrySet ( ) ) { java.io.File f = new java.io.File ( entry.getValue ( ) ) ; if ( ! ( f.exists ( ) ) ) { if ( log != null ) { log.warning ( "Build-tool %1$s is missing %2$s at %3$s" , mRevision.toString ( ) , entry.getKey ( ) , f.getAbsolutePath ( ) ) ; } return false ; } } return true ; }
Source:
public void dispose ( ) { if ( DBG ) log ( ( "Disposing SIMRecords this=" + ( this ) ) ) ; mCi.unregisterForIccRefresh ( this ) ; mCi.unSetOnSmsOnSim ( this ) ; mParentApp.unregisterForReady ( this ) ; mParentApp.unregisterForLocked ( this ) ; resetRecords ( ) ; super . dispose ( ) ; }

Target:
public void dispose ( ) { if ( DBG ) log ( ( "Disposing SIMRecords this=" + ( this ) ) ) ; mCi.unSetOnSmsOnSim ( this ) ; mParentApp.unregisterForReady ( this ) ; mParentApp.unregisterForLocked ( this ) ; mContext.unregisterReceiver ( mReceiver ) ; resetRecords ( ) ; super . dispose ( ) ; }
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 testAdd2_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.add ( ( ( list.size ( ) ) + 1 ) , "qwerty" ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
public final void addSuppressed ( java.lang.Throwable throwable ) { if ( throwable == ( this ) ) { throw new java.lang.IllegalArgumentException ( "suppressed == this" ) ; } if ( throwable == null ) { throw new java.lang.NullPointerException ( "suppressed == null" ) ; } if ( ( suppressedExceptions ) != null ) { suppressedExceptions.add ( throwable ) ; } }

Target:
public final void addSuppressed ( java.lang.Throwable throwable ) { if ( throwable == ( this ) ) { throw new java.lang.IllegalArgumentException ( "suppressed == this" ) ; } if ( throwable == null ) { throw new java.lang.NullPointerException ( "suppressed == null" ) ; } if ( ( suppressedExceptions ) != null ) { if ( suppressedExceptions.isEmpty ( ) ) { suppressedExceptions = new java.util.ArrayList < java.lang.Throwable > ( 1 ) ; } suppressedExceptions.add ( throwable ) ; } }
Source:
public void testMergedResourcesByName ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceMerger merger = com.android.ide.common.res2.ResourceMergerTest.getResourceMerger ( ) ; verifyResourceExists ( merger , "drawable/icon" , "drawable-ldpi/icon" , "drawable/icon2" , "drawable/patch" , "raw/foo" , "layout/main" , "layout/layout_ref" , "layout/alias_replaced_by_file" , "layout/file_replaced_by_alias" , "drawable/color_drawable" , "drawable/drawable_ref" , "color/color" , "string/basic_string" , "string/xliff_string" , "string/styled_string" , "style/style" , "array/string_array" , "attr/dimen_attr" , "attr/string_attr" , "attr/enum_attr" , "attr/flag_attr" , "declare-styleable/declare_styleable" , "dimen/dimen" , "id/item_id" , "integer/integer" ) ; }

Target:
public void testMergedResourcesByName ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceMerger merger = com.android.ide.common.res2.ResourceMergerTest.getResourceMerger ( ) ; verifyResourceExists ( merger , "drawable/icon" , "drawable-ldpi/icon" , "drawable/icon2" , "drawable/patch" , "raw/foo" , "layout/main" , "layout/layout_ref" , "layout/alias_replaced_by_file" , "layout/file_replaced_by_alias" , "drawable/color_drawable" , "drawable/drawable_ref" , "color/color" , "string/basic_string" , "string/xliff_string" , "string/styled_string" , "style/style" , "array/string_array" , "attr/dimen_attr" , "attr/string_attr" , "attr/enum_attr" , "attr/flag_attr" , "attr/android:colorForegroundInverse" , "attr/blah" , "declare-styleable/declare_styleable" , "dimen/dimen" , "id/item_id" , "integer/integer" ) ; }
Source:
public void testMultiExpression ( ) { org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "Hello:World" ) . matches ( "World" ) ) ; org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "Hello:World" ) . matches ( "World" ) ) ; org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "*Test:*Foo" ) . matches ( "UnitTest" ) ) ; }

Target:
public void testMultiExpression ( ) { org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "Hello:World" ) . apply ( "World" ) ) ; org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "Hello:World" ) . apply ( "World" ) ) ; org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "*Test:*Foo" ) . apply ( "UnitTest" ) ) ; }
Source:
private boolean startIPv6 ( ) { final java.lang.String PREFER_TEMPADDRS = "2" ; try { android.net.util.NetdService.run ( ( android.net.INetd netd ) -> { netd.setProcSysNet ( INetd.IPV6 , INetd.CONF , mInterfaceName , "use_tempaddr" , PREFER_TEMPADDRS ) ; } ) ; mNwService.enableIpv6 ( mInterfaceName ) ; } catch ( java.lang.IllegalStateException | android.os.RemoteException | android.os.ServiceSpecificException e ) { logError ( "Unable to change interface settings: %s" , e ) ; return false ; } return true ; }

Target:
private boolean startIPv6 ( ) { try { mNwService.setInterfaceIpv6PrivacyExtensions ( mInterfaceName , true ) ; mNwService.enableIpv6 ( mInterfaceName ) ; } catch ( android.os.RemoteException re ) { logError ( "Unable to change interface settings: %s" , re ) ; return false ; } catch ( java.lang.IllegalStateException ie ) { logError ( "Unable to change interface settings: %s" , ie ) ; return false ; } return true ; }
Source:
private static android.database.MatrixCursor createHeaderCursor ( android.content.Context context , java.lang.String name , long id ) { android.database.MatrixCursor headerCursor = new android.database.MatrixCursor ( com.android.dialer.searchfragment.remote.RemoteContactsCursor.PROJECTION , 1 ) ; headerCursor.addRow ( new java.lang.Object [ ] { context.getString ( R.string.directory , name ) , id } ) ; return headerCursor ; }

Target:
private static android.database.MatrixCursor createHeaderCursor ( android.content.Context context , java.lang.String name , long id ) { android.database.MatrixCursor headerCursor = new android.database.MatrixCursor ( com.android.dialer.searchfragment.remote.RemoteContactsCursor.PROJECTION , 1 ) ; if ( com.android.contacts.common.compat.DirectoryCompat.isOnlyEnterpriseDirectoryId ( id ) ) { headerCursor.addRow ( new java.lang.Object [ ] { context.getString ( R.string.directory_search_label_work ) , id } ) ; } else { headerCursor.addRow ( new java.lang.Object [ ] { context.getString ( R.string.directory , name ) , id } ) ; } return headerCursor ; }
Source:
public void run ( ) { final org.eclipse.swt.graphics.Image image = loadCapture ( viewNode ) ; if ( image != null ) { org.eclipse.swt.widgets.Display.getDefault ( ) . asyncExec ( new java.lang.Runnable ( ) { public void run ( ) { com.android.hierarchyviewerlib.ui.CaptureDisplay.show ( shell , viewNode , image ) ; } } ) ; } }

Target:
public void run ( ) { final org.eclipse.swt.graphics.Image image = loadCapture ( viewNode ) ; if ( image != null ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { com.android.hierarchyviewerlib.ui.CaptureDisplay.show ( shell , viewNode , image ) ; } } ) ; } }
Source:
public void timeDateIntervalFormat_formatDateRange_DATE ( int reps ) throws java.lang.Exception { android.icu.util.ULocale l = android.icu.util.ULocale.US ; android.icu.util.TimeZone utc = android.icu.util.TimeZone.getTimeZone ( "UTC" ) ; int flags = ( FORMAT_SHOW_DATE ) | ( FORMAT_SHOW_WEEKDAY ) ; for ( int rep = 0 ; rep < reps ; ++ rep ) { formatDateRange ( l , utc , 0L , 0L , flags ) ; } }

Target:
public void timeDateIntervalFormat_formatDateRange_DATE ( int reps ) throws java.lang.Exception { android.icu.util.ULocale l = android.icu.util.ULocale.US ; android.icu.util.TimeZone utc = android.icu.util.TimeZone.getTimeZone ( "UTC" ) ; int flags = ( FORMAT_SHOW_DATE ) | ( FORMAT_SHOW_WEEKDAY ) ; for ( int rep = 0 ; rep < reps ; ++ rep ) { libcore.icu.DateIntervalFormat.formatDateRange ( l , utc , 0L , 0L , flags ) ; } }