auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void registerForRecordsLoaded ( android.os.Handler h , int what , java.lang.Object obj ) { if ( mDestroyed.get ( ) ) { return ; } android.os.Registrant r = new android.os.Registrant ( h , what , obj ) ; mRecordsLoadedRegistrants.add ( r ) ; if ( ( ( mRecordsToLoad ) == 0 ) && ( ( mRecordsRequested ) == true ) ) { r.notifyRegistrant ( new android.os.AsyncResult ( null , null , null ) ) ; } }

Target:
public void registerForLockedRecordsLoaded ( android.os.Handler h , int what , java.lang.Object obj ) { if ( mDestroyed.get ( ) ) { return ; } android.os.Registrant r = new android.os.Registrant ( h , what , obj ) ; mLockedRecordsLoadedRegistrants.add ( r ) ; if ( getLockedRecordsLoaded ( ) ) { r.notifyRegistrant ( new android.os.AsyncResult ( null , null , null ) ) ; } }
Source:
public void setMasterVolume ( int index , int flags ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { service.setMasterVolume ( index , flags , getContext ( ) . getOpPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in setMasterVolume" , e ) ; } }

Target:
public void setMasterVolume ( int index , int flags ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { service.setMasterVolume ( index , flags , mApplicationContext.getOpPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in setMasterVolume" , e ) ; } }
Source:
private static int getSlotId ( final int subId ) { try { final java.lang.reflect.Method method = android.telephony.SubscriptionManager.class . getMethod ( "getSlotId" , java.lang.Integer.TYPE ) ; if ( method != null ) { return ( ( java.lang.Integer ) ( method.invoke ( null , subId ) ) ) ; } } catch ( java.lang.Exception e ) { android.util.Log.w ( MmsService.TAG , ( "SubscriptionManager.getSlotId failed " + e ) ) ; } return - 1 ; }

Target:
private static int getSlotId ( final int subId ) { try { final java.lang.reflect.Method method = android.telephony.SubscriptionManager.class . getMethod ( "getSlotIndex" , java.lang.Integer.TYPE ) ; if ( method != null ) { return ( ( java.lang.Integer ) ( method.invoke ( null , subId ) ) ) ; } } catch ( java.lang.Exception e ) { android.util.Log.w ( MmsService.TAG , ( "SubscriptionManager.getSlotIndex failed " + e ) ) ; } return - 1 ; }
Source:
public void test_unmodifiableList_sort ( ) { try { java.util.Collections.unmodifiableList ( new java.util.ArrayList < > ( ) ) . sort ( ( k1 , k2 ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } try { java.util.ArrayList l = new java.util.ArrayList ( ) ; l.add ( 1 ) ; l.add ( 2 ) ; java.util.Collections.unmodifiableList ( l ) . sort ( ( k1 , k2 ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }

Target:
public void test_SingletonMap_compute ( ) { try { java.util.Collections.singletonMap ( 1 , 11.0 ) . compute ( 1 , ( k , v ) -> 5.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }
Source:
public int countCombinationsCollapsingOrientation ( ) { int product = 1 ; for ( com.google.gct.testing.GoogleCloudTestingDimension dimension : getDimensions ( ) ) { if ( dimension instanceof com.google.gct.testing.OrientationDimension ) { product *= java.lang.Math.min ( dimension.getEnabledTypes ( ) . size ( ) , 1 ) ; } else { product *= dimension.getEnabledTypes ( ) . size ( ) ; } } return product ; }

Target:
public int countCombinationsCollapsingOrientation ( ) { int product = 1 ; for ( com.google.gct.testing.CloudConfigurationDimension dimension : getDimensions ( ) ) { if ( dimension instanceof com.google.gct.testing.OrientationDimension ) { product *= java.lang.Math.min ( dimension.getEnabledTypes ( ) . size ( ) , 1 ) ; } else { product *= dimension.getEnabledTypes ( ) . size ( ) ; } } return product ; }
Source:
public void testBaseResourceSetByName ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceSet resourceSet = com.android.ide.common.res2.ResourceSetTest.getBaseResourceSet ( ) ; verifyResourceExists ( resourceSet , "drawable/icon" , "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 testBaseResourceSetByName ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceSet resourceSet = com.android.ide.common.res2.ResourceSetTest.getBaseResourceSet ( ) ; verifyResourceExists ( resourceSet , "drawable/icon" , "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 java.lang.Void call ( ) throws java.lang.Exception { server.setEnabledProtocols ( new java.lang.String [ ] { "TLSv1" , "SSLv3" } ) ; server.setEnabledCipherSuites ( serverCipherSuites ) ; try { server.startHandshake ( ) ; fail ( "Should result in inappropriate fallback" ) ; } catch ( javax.net.ssl.SSLHandshakeException expected ) { } return null ; }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { server.setEnabledProtocols ( new java.lang.String [ ] { "TLSv1" , "SSLv3" } ) ; server.setEnabledCipherSuites ( serverCipherSuites ) ; try { server.startHandshake ( ) ; fail ( "Should result in inappropriate fallback" ) ; } catch ( javax.net.ssl.SSLHandshakeException expected ) { java.lang.Throwable cause = expected.getCause ( ) ; assertEquals ( javax.net.ssl.SSLProtocolException.class , cause.getClass ( ) ) ; assertTrue ( cause.getMessage ( ) , cause.getMessage ( ) . contains ( "inappropriate fallback" ) ) ; } return null ; }
Source:
private android.bluetooth.BluetoothGattCharacteristic getCharacteristic ( java.util.UUID serverUid , java.util.UUID characteristicUid ) { android.bluetooth.BluetoothGattCharacteristic characteristic = null ; android.bluetooth.BluetoothGattService service = getService ( serverUid ) ; if ( service != null ) { characteristic = service.getCharacteristic ( characteristicUid ) ; if ( characteristic == null ) { showMessage ( "Characteristic not found" ) ; } } return characteristic ; }

Target:
private android.bluetooth.BluetoothGattCharacteristic getCharacteristic ( java.util.UUID uuid ) { android.bluetooth.BluetoothGattService service = getService ( ) ; if ( service == null ) return null ; android.bluetooth.BluetoothGattCharacteristic characteristic = service.getCharacteristic ( uuid ) ; if ( characteristic == null ) { showMessage ( "Characteristic not found" ) ; return null ; } return characteristic ; }
Source:
int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidService.DBG ) android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , ( "getConnectionState: " + ( device.getAddress ( ) ) ) ) ; if ( ( mInputDevices.get ( device ) ) == null ) { return android.bluetooth.BluetoothHidHost.STATE_DISCONNECTED ; } return mInputDevices.get ( device ) ; }

Target:
int getConnectionState ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidHostService.DBG ) android.util.Log.d ( com.android.bluetooth.hid.HidHostService.TAG , ( "getConnectionState: " + ( device.getAddress ( ) ) ) ) ; if ( ( mInputDevices.get ( device ) ) == null ) { return android.bluetooth.BluetoothHidHost.STATE_DISCONNECTED ; } return mInputDevices.get ( device ) ; }
Source:
public java.lang.String replace ( char oldChar , char newChar ) { java.lang.String replaced = this ; if ( oldChar != newChar ) { final int len = length ( ) ; for ( int i = 0 ; i < len ; ++ i ) { if ( ( charAt ( i ) ) == oldChar ) { if ( replaced == ( this ) ) { replaced = java.lang.StringFactory.newStringFromString ( this ) ; } replaced.setCharAt ( i , newChar ) ; } } } return replaced ; }

Target:
public java.lang.String replace ( char oldChar , char newChar ) { if ( oldChar != newChar ) { final int len = length ( ) ; for ( int i = 0 ; i < len ; ++ i ) { if ( ( charAt ( i ) ) == oldChar ) { return doReplace ( oldChar , newChar ) ; } } } return this ; }
Source:
private void createPropertySheet ( ) { mPropertySheetComposite = new org.eclipse.wb.internal.core.editor.structure.PageSiteComposite ( mControl , org.eclipse.swt.SWT.BORDER ) ; mPropertySheetComposite.setTitleText ( "Properties" ) ; mPropertySheetComposite.setTitleImage ( com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) . getIcon ( "properties_view" ) ) ; mPropertySheet = new com.android.ide.eclipse.adt.internal.editors.layout.properties.PropertySheetPage ( mGraphicalEditorPart ) ; mPropertySheetComposite.setPage ( mPropertySheet ) ; }

Target:
public void mouseDown ( org.eclipse.swt.events.MouseEvent e ) { mPressInPropSheet = true ; }
Source:
public void testOnSaveInstanceState ( ) throws java.lang.InterruptedException { startDialogActivity ( DialogStubActivity.TEST_ONSTART_AND_ONSTOP ) ; final android.app.stubs.TestDialog d = ( ( android.app.stubs.TestDialog ) ( mActivity.getDialog ( ) ) ) ; final android.content.pm.PackageManager pm = mContext.getPackageManager ( ) ; if ( ! ( ( pm.hasSystemFeature ( PackageManager.FEATURE_SCREEN_LANDSCAPE ) ) && ( pm.hasSystemFeature ( PackageManager.FEATURE_SCREEN_PORTRAIT ) ) ) ) { return ; } d.onSaveInstanceStateObserver.startObserving ( ) ; TestDialog.onRestoreInstanceStateObserver.startObserving ( ) ; android.app.stubs.OrientationTestUtils.toggleOrientation ( mActivity ) ; d.onSaveInstanceStateObserver.await ( ) ; TestDialog.onRestoreInstanceStateObserver.await ( ) ; }

Target:
public void testOnSaveInstanceState ( ) { startDialogActivity ( DialogStubActivity.TEST_ONSTART_AND_ONSTOP ) ; final android.app.stubs.TestDialog d = ( ( android.app.stubs.TestDialog ) ( mActivity.getDialog ( ) ) ) ; assertFalse ( d.isOnSaveInstanceStateCalled ) ; assertFalse ( TestDialog.isOnRestoreInstanceStateCalled ) ; final android.content.pm.PackageManager pm = mContext.getPackageManager ( ) ; if ( ! ( ( pm.hasSystemFeature ( PackageManager.FEATURE_SCREEN_LANDSCAPE ) ) && ( pm.hasSystemFeature ( PackageManager.FEATURE_SCREEN_PORTRAIT ) ) ) ) { return ; } android.app.stubs.OrientationTestUtils.toggleOrientationSync ( mActivity , mInstrumentation ) ; assertTrue ( d.isOnSaveInstanceStateCalled ) ; assertTrue ( TestDialog.isOnRestoreInstanceStateCalled ) ; }
Source:
static com.android.jack.ir.ast.JAnnotationLiteral getAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.Annotable annotable , @ javax.annotation.Nonnull java.lang.String annotationType ) { for ( com.android.jack.ir.ast.JAnnotationLiteral annotation : annotable.getAnnotations ( ) ) { if ( annotationType.equals ( com.android.jack.ecj.loader.jast.LoaderUtils.getSignatureFormatter ( ) . getName ( annotation.getType ( ) ) ) ) { return annotation ; } } return null ; }

Target:
static com.android.jack.ir.ast.JAnnotation getAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.Annotable annotable , @ javax.annotation.Nonnull java.lang.String annotationType ) { for ( com.android.jack.ir.ast.JAnnotation annotation : annotable.getAnnotations ( ) ) { if ( annotationType.equals ( com.android.jack.ecj.loader.jast.LoaderUtils.getSignatureFormatter ( ) . getName ( annotation.getType ( ) ) ) ) { return annotation ; } } return null ; }
Source:
public void test_isJavaIdentifierPartC ( ) { assertTrue ( "letter returned false" , java.lang.Character.isJavaIdentifierPart ( 'l' ) ) ; assertTrue ( "currency returned false" , java.lang.Character.isJavaIdentifierPart ( '$' ) ) ; assertTrue ( "digit returned false" , java.lang.Character.isJavaIdentifierPart ( '9' ) ) ; assertTrue ( "connecting char returned false" , java.lang.Character.isJavaIdentifierPart ( '_' ) ) ; assertTrue ( "ignorable control returned true" , ( ! ( java.lang.Character.isJavaIdentifierPart ( '​' ) ) ) ) ; assertTrue ( "semi returned true" , ( ! ( java.lang.Character.isJavaIdentifierPart ( ';' ) ) ) ) ; }

Target:
public void test_isJavaIdentifierPartC ( ) { assertTrue ( "letter returned false" , java.lang.Character.isJavaIdentifierPart ( 'l' ) ) ; assertTrue ( "currency returned false" , java.lang.Character.isJavaIdentifierPart ( '$' ) ) ; assertTrue ( "digit returned false" , java.lang.Character.isJavaIdentifierPart ( '9' ) ) ; assertTrue ( "connecting char returned false" , java.lang.Character.isJavaIdentifierPart ( '_' ) ) ; assertTrue ( "ignorable control returned false" , java.lang.Character.isJavaIdentifierPart ( '​' ) ) ; assertFalse ( "semi returned true" , java.lang.Character.isJavaIdentifierPart ( ';' ) ) ; }
Source:
public static void showMessage ( final com.intellij.openapi.project.Project project , final java.lang.String message , final com.intellij.openapi.ui.MessageType type , final int delaySeconds ) { javax.swing.SwingUtilities.invokeLater ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.intellij.openapi.wm.StatusBar statusBar = com.intellij.openapi.wm.WindowManager.getInstance ( ) . getStatusBar ( project ) ; com.intellij.openapi.ui.popup.JBPopupFactory.getInstance ( ) . createHtmlTextBalloonBuilder ( message , type , null ) . setFadeoutTime ( ( delaySeconds * 1000 ) ) . createBalloon ( ) . show ( com.intellij.ui.awt.RelativePoint.getCenterOf ( statusBar.getComponent ( ) ) , Balloon.Position.atRight ) ; } } ) ; }

Target:
public static void showBalloonMessage ( final com.intellij.openapi.project.Project project , final java.lang.String message , final com.intellij.openapi.ui.MessageType type , final int delaySeconds ) { javax.swing.SwingUtilities.invokeLater ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.intellij.openapi.wm.StatusBar statusBar = com.intellij.openapi.wm.WindowManager.getInstance ( ) . getStatusBar ( project ) ; com.intellij.openapi.ui.popup.JBPopupFactory.getInstance ( ) . createHtmlTextBalloonBuilder ( message , type , null ) . setFadeoutTime ( ( delaySeconds * 1000 ) ) . createBalloon ( ) . show ( com.intellij.ui.awt.RelativePoint.getCenterOf ( statusBar.getComponent ( ) ) , Balloon.Position.atRight ) ; } } ) ; }
Source:
private void enableUsageLocal ( ) { if ( com.android.server.wifi.aware.WifiAwareStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareStateManager.TAG , ( "enableUsageLocal: mUsageEnabled=" + ( mUsageEnabled ) ) ) ; if ( mUsageEnabled ) { return ; } com.android.server.wifi.aware.WifiAwareNative.getInstance ( ) . deInitAware ( ) ; mUsageEnabled = true ; queryCapabilities ( ) ; createAllDataPathInterfaces ( ) ; sendAwareStateChangedBroadcast ( true ) ; }

Target:
private void enableUsageLocal ( ) { if ( com.android.server.wifi.aware.WifiAwareStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareStateManager.TAG , ( "enableUsageLocal: mUsageEnabled=" + ( mUsageEnabled ) ) ) ; if ( mUsageEnabled ) { return ; } mWifiAwareNative.deInitAware ( ) ; mUsageEnabled = true ; queryCapabilities ( ) ; createAllDataPathInterfaces ( ) ; sendAwareStateChangedBroadcast ( true ) ; }
Source:
private boolean isExpectingError ( java.lang.String expectedOutput ) throws java.io.IOException { java.io.StringReader stringReader = new java.io.StringReader ( expectedOutput ) ; java.io.BufferedReader reader = new java.io.BufferedReader ( stringReader ) ; java.lang.String line ; while ( ( line = reader.readLine ( ) ) != null ) { if ( ( line.charAt ( 0 ) ) == 'E' ) return true ; } return false ; }

Target:
private boolean isExpectingError ( java.lang.String expectedOutput ) throws java.io.IOException { java.io.StringReader stringReader = new java.io.StringReader ( expectedOutput ) ; java.io.BufferedReader reader = new java.io.BufferedReader ( stringReader ) ; java.lang.String line ; while ( ( line = reader.readLine ( ) ) != null ) { if ( ( line.startsWith ( "SEVERE" ) ) || ( line.startsWith ( "ERROR" ) ) ) return true ; } return false ; }
Source:
public void disableScoring ( ) { if ( ( android.net.NetworkScorerAppManager.isCallerActiveScorer ( mContext , getCallingUid ( ) ) ) || ( ( mContext.checkCallingOrSelfPermission ( permission.BROADCAST_NETWORK_PRIVILEGED ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) { setScorerInternal ( null ) ; } else { throw new java.lang.SecurityException ( "Caller is neither the active scorer nor the scorer manager." ) ; } }

Target:
public void disableScoring ( ) { if ( ( mNetworkScorerAppManager.isCallerActiveScorer ( getCallingUid ( ) ) ) || ( ( mContext.checkCallingOrSelfPermission ( permission.BROADCAST_NETWORK_PRIVILEGED ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) { setScorerInternal ( null ) ; } else { throw new java.lang.SecurityException ( "Caller is neither the active scorer nor the scorer manager." ) ; } }
Source:
public void setZeroDigit ( char zeroDigit ) { if ( ( digits ) != null ) { digits = digits.clone ( ) ; this . digits [ 0 ] = zeroDigit ; for ( int i = 1 ; i < 10 ; i ++ ) { this . digits [ i ] = ( ( char ) ( zeroDigit + i ) ) ; } } else { this . zeroDigit = zeroDigit ; } }

Target:
public void setZeroDigit ( char zeroDigit ) { this . zeroDigit = zeroDigit ; digitStrings = digitStrings.clone ( ) ; digits = digits.clone ( ) ; digitStrings [ 0 ] = java.lang.String.valueOf ( zeroDigit ) ; digits [ 0 ] = zeroDigit ; for ( int i = 1 ; i < 10 ; i ++ ) { char d = ( ( char ) ( zeroDigit + i ) ) ; digitStrings [ i ] = java.lang.String.valueOf ( d ) ; digits [ i ] = d ; } }
Source:
public boolean resetPnoList ( ) { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , ( "resetPnoList cmd " + ( com.android.server.wifi.WifiNative.sPnoCmdId ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { com.android.server.wifi.WifiNative.sPnoCmdId = com.android.server.wifi.WifiNative.getNewCmdIdLocked ( ) ; com.android.server.wifi.WifiNative.sPnoEventHandler = null ; if ( com.android.server.wifi.WifiNative.resetPnoListNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sPnoCmdId ) ) { return true ; } } return false ; } }

Target:
public boolean resetPnoList ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , "resetPnoList not supported" ) ; return false ; } else { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , ( "resetPnoList cmd " + ( com.android.server.wifi.WifiNative.sPnoCmdId ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { com.android.server.wifi.WifiNative.sPnoCmdId = com.android.server.wifi.WifiNative.getNewCmdIdLocked ( ) ; com.android.server.wifi.WifiNative.sPnoEventHandler = null ; if ( com.android.server.wifi.WifiNative.resetPnoListNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sPnoCmdId ) ) { return true ; } } return false ; } } }
Source:
private void removePredecessor ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JBasicBlock predecessor ) { int sizeM1 = ( predecessors.size ( ) ) - 1 ; for ( int idx = 0 ; idx < sizeM1 ; idx ++ ) { if ( ( predecessors.get ( idx ) ) == predecessor ) { predecessors.set ( idx , predecessors.get ( sizeM1 ) ) ; break ; } } predecessors.remove ( sizeM1 ) ; }

Target:
private void removePredecessor ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JBasicBlock predecessor ) { assert predecessors.contains ( predecessor ) ; int sizeM1 = ( predecessors.size ( ) ) - 1 ; for ( int idx = 0 ; idx < sizeM1 ; idx ++ ) { if ( ( predecessors.get ( idx ) ) == predecessor ) { predecessors.set ( idx , predecessors.get ( sizeM1 ) ) ; break ; } } predecessors.remove ( sizeM1 ) ; }
Source:
void registerDisconnected ( ) { if ( ( mLastNetworkId ) != ( android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID ) ) { android.net.wifi.WifiConfiguration config = mWifiConfigManager.getWifiConfiguration ( mLastNetworkId ) ; if ( config != null ) { config.lastDisconnected = mClock.getWallClockMillis ( ) ; if ( config.ephemeral ) { mWifiConfigManager.forgetNetwork ( mLastNetworkId ) ; } } } }

Target:
void registerConnected ( ) { if ( ( mLastNetworkId ) != ( android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID ) ) { mWifiConfigManager.updateNetworkAfterConnect ( mLastNetworkId ) ; mWifiScoreReport.reset ( ) ; } }
Source:
private static java.lang.invoke.CallSite linkerMethod ( ) throws java.lang.Throwable { java.lang.invoke.MethodHandle mh_add = java.lang.invoke.MethodHandles.lookup ( ) . findStatic ( com.android.jack.java7.invokecustom.test001.Tests.class , "add" , java.lang.invoke.MethodType.methodType ( int . class , int . class , int . class ) ) ; return new java.lang.invoke.ConstantCallSite ( mh_add ) ; }

Target:
private static java.lang.invoke.CallSite linkerMethod ( java.lang.invoke.MethodHandles.Lookup caller , java.lang.String name , java.lang.invoke.MethodType methodType ) throws java.lang.Throwable { java.lang.invoke.MethodHandle mh_add = java.lang.invoke.MethodHandles.lookup ( ) . findStatic ( com.android.jack.java7.invokecustom.test001.Tests.class , name , methodType ) ; return new java.lang.invoke.ConstantCallSite ( mh_add ) ; }
Source:
public void run ( ) { traceViewPanel.setTrace ( traceData ) ; }

Target:
private static void createAndShowUI ( ) { final com.android.tools.perflib.vmtrace.viz.TraceView.TraceViewPanel traceViewPanel = new com.android.tools.perflib.vmtrace.viz.TraceView.TraceViewPanel ( ) ; final com.android.tools.perflib.vmtrace.VmTraceData traceData = com.android.tools.perflib.vmtrace.viz.TraceView.getVmTraceData ( com.android.tools.perflib.vmtrace.viz.TraceView.TRACE_FILE_NAME ) ; javax.swing.JFrame frame = new javax.swing.JFrame ( "TraceViewTestApplication" ) ; frame.setLayout ( new java.awt.BorderLayout ( ) ) ; frame.add ( traceViewPanel , java.awt.BorderLayout.CENTER ) ; frame.setDefaultCloseOperation ( javax.swing.WindowConstants.DISPOSE_ON_CLOSE ) ; frame.pack ( ) ; frame.setSize ( 800 , 600 ) ; frame.setVisible ( true ) ; traceViewPanel.setTrace ( traceData ) ; }
Source:
public final short readShort ( ) throws java.io.IOException { int ch1 = in.read ( ) ; int ch2 = in.read ( ) ; if ( ( ch1 | ch2 ) < 0 ) throw new java.io.EOFException ( ) ; return ( ( short ) ( ( ch1 << 8 ) + ( ch2 << 0 ) ) ) ; }

Target:
public final short readShort ( ) throws java.io.IOException { readFully ( readBuffer , 0 , 2 ) ; return libcore.io.Memory.peekShort ( readBuffer , 0 , java.nio.ByteOrder.BIG_ENDIAN ) ; }
Source:
public void writeOnImsCallTerminated ( int phoneId , com.android.ims.internal.ImsCallSession session , com.android.ims.ImsReasonInfo reasonInfo ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = mInProgressCallSessions.get ( phoneId ) ; if ( callSession == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.metrics.TelephonyMetrics.TAG , "Call session is missing" ) ; } else { callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_CALL_TERMINATED ) . setCallIndex ( getCallId ( session ) ) . setImsReasonInfo ( toImsReasonInfoProto ( reasonInfo ) ) ) ; } }

Target:
public void writeOnImsCommand ( int phoneId , android.telephony.ims.ImsCallSession session , int command ) { com.android.internal.telephony.metrics.InProgressCallSession callSession = mInProgressCallSessions.get ( phoneId ) ; if ( callSession == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.metrics.TelephonyMetrics.TAG , "Call session is missing" ) ; } else { callSession.addEvent ( new com.android.internal.telephony.metrics.CallSessionEventBuilder ( com.android.internal.telephony.nano.TelephonyProto.TelephonyCallSession.Event.RilCall.Type.IMS_COMMAND ) . setCallIndex ( getCallId ( session ) ) . setImsCommand ( command ) ) ; } }
Source:
private void setSpeakerphoneOn ( boolean on ) { if ( ( mAudioManager.isSpeakerphoneOn ( ) ) != on ) { android.telecom.Log.i ( this , "turning speaker phone %s" , on ) ; mAudioManager.setSpeakerphoneOn ( on ) ; mStatusBarNotifier.notifySpeakerphone ( on ) ; } }

Target:
private void reinitialize ( ) { android.telecom.CallAudioState initState = getInitialAudioState ( ) ; mDeviceSupportedRoutes = initState.getSupportedRouteMask ( ) ; mAvailableRoutes = ( mDeviceSupportedRoutes ) & ( getCurrentCallSupportedRoutes ( ) ) ; mIsMuted = initState.isMuted ( ) ; setSpeakerphoneOn ( ( ( initState.getRoute ( ) ) == ( android.telecom.CallAudioState.ROUTE_SPEAKER ) ) ) ; setMuteOn ( mIsMuted ) ; mWasOnSpeaker = false ; mHasUserExplicitlyLeftBluetooth = false ; mLastKnownCallAudioState = initState ; transitionTo ( mRouteCodeToQuiescentState.get ( initState.getRoute ( ) ) ) ; }
Source:
private int getDxAccessFlagsForType ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { int accessFlags = type.getModifier ( ) ; boolean isInner = ( type.getEnclosingType ( ) ) != null ; if ( isInner && ( type.isProtected ( ) ) ) { accessFlags |= com.android.jack.ir.ast.JModifier.PUBLIC ; } if ( com.android.jack.ir.ast.JModifier.isAnonymousType ( accessFlags ) ) { if ( ! ( type.isStatic ( ) ) ) { accessFlags &= ~ ( com.android.jack.ir.ast.JModifier.FINAL ) ; } } accessFlags &= com.android.jack.dx.rop.code.AccessFlags.CLASS_FLAGS ; if ( emitJackFlag ) { accessFlags |= com.android.jack.ir.ast.JModifier.CLASS_COMPILED_WITH_JACK ; } return accessFlags ; }

Target:
private int getDxAccessFlagsForType ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { int accessFlags = type.getModifier ( ) ; boolean isInner = ( type.getEnclosingType ( ) ) != null ; if ( isInner && ( type.isProtected ( ) ) ) { accessFlags |= com.android.jack.ir.ast.JModifier.PUBLIC ; } if ( type.isAnonymous ( ) ) { if ( ! ( type.isStatic ( ) ) ) { accessFlags &= ~ ( com.android.jack.ir.ast.JModifier.FINAL ) ; } } accessFlags &= com.android.jack.dx.rop.code.AccessFlags.CLASS_FLAGS ; if ( emitJackFlag ) { accessFlags |= com.android.jack.ir.ast.JModifier.CLASS_COMPILED_WITH_JACK ; } return accessFlags ; }
Source:
public void visitConstructor ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.Nullable lombok.ast.AstVisitor visitor , @ com.android.annotations.NonNull lombok.ast.ConstructorInvocation node , @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedMethod constructor ) { com.android.tools.lint.detector.api.Location location = context.getLocation ( node ) ; context.report ( com.android.tools.lint.checks.AllowAllHostnameVerifierDetector.ISSUE , node , location , ( "Using the AllowAllHostnameVerifier HostnameVerifier is unsafe " + ( ( "because it always returns true, which could cause insecure network " + "traffic due to trusting TLS/SSL server certificates for wrong " ) + "hostnames" ) ) ) ; }

Target:
public void visitConstructor ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.Nullable com.intellij.psi.JavaElementVisitor visitor , @ com.android.annotations.NonNull com.intellij.psi.PsiNewExpression node , @ com.android.annotations.NonNull com.intellij.psi.PsiMethod constructor ) { com.android.tools.lint.detector.api.Location location = context.getLocation ( node ) ; context.report ( com.android.tools.lint.checks.AllowAllHostnameVerifierDetector.ISSUE , node , location , ( "Using the AllowAllHostnameVerifier HostnameVerifier is unsafe " + ( ( "because it always returns true, which could cause insecure network " + "traffic due to trusting TLS/SSL server certificates for wrong " ) + "hostnames" ) ) ) ; }
Source:
public void addLayoutActions ( java.util.List < com.android.ide.common.api.MenuAction > actions , final com.android.ide.common.api.INode parentNode , final java.util.List < ? extends com.android.ide.common.api.INode > children ) { super . addLayoutActions ( actions , parentNode , children ) ; actions.add ( createGravityAction ( java.util.Collections.< com.android.ide.common.api.INode > singletonList ( parentNode ) ) ) ; actions.add ( com.android.ide.common.api.MenuAction.createSeparator ( 25 ) ) ; actions.add ( createMarginAction ( parentNode , children ) ) ; }

Target:
public void addLayoutActions ( java.util.List < com.android.ide.common.api.MenuAction > actions , final com.android.ide.common.api.INode parentNode , final java.util.List < ? extends com.android.ide.common.api.INode > children ) { super . addLayoutActions ( actions , parentNode , children ) ; actions.add ( createGravityAction ( java.util.Collections.< com.android.ide.common.api.INode > singletonList ( parentNode ) , com.android.ide.common.layout.LayoutConstants.ATTR_GRAVITY ) ) ; actions.add ( com.android.ide.common.api.MenuAction.createSeparator ( 25 ) ) ; actions.add ( createMarginAction ( parentNode , children ) ) ; }
Source:
private void registerSensors ( int [ ] sensors ) { for ( int sensorType : sensors ) { android.hardware.Sensor s = mSensorManager.getDefaultSensor ( sensorType ) ; if ( s != null ) { mSensorManager.registerListener ( this , s , SensorManager.SENSOR_DELAY_GAME ) ; } } }

Target:
private void registerSensors ( int [ ] sensors ) { android.os.Trace.beginSection ( "FalsingManager.registerSensors" ) ; for ( int sensorType : sensors ) { android.os.Trace.beginSection ( ( "get sensor " + sensorType ) ) ; android.hardware.Sensor s = mSensorManager.getDefaultSensor ( sensorType ) ; android.os.Trace.endSection ( ) ; if ( s != null ) { android.os.Trace.beginSection ( "register" ) ; mSensorManager.registerListener ( this , s , SensorManager.SENSOR_DELAY_GAME ) ; android.os.Trace.endSection ( ) ; } } android.os.Trace.endSection ( ) ; }
Source:
public static double nextDown ( double d ) { if ( ( sun.misc.FpUtils.isNaN ( d ) ) || ( d == ( java.lang.Double.NEGATIVE_INFINITY ) ) ) return d ; else { if ( d == 0.0 ) return - ( java.lang.Double.MIN_VALUE ) ; else return java.lang.Double.longBitsToDouble ( ( ( java.lang.Double.doubleToRawLongBits ( d ) ) + ( d > 0.0 ? - 1L : + 1L ) ) ) ; } }

Target:
public static double ulp ( double d ) { return java.lang.Math.ulp ( d ) ; }
Source:
public void onSend ( byte [ ] msg , int offset , int count , long timestamp ) throws java.io.IOException { for ( android.media.midi.MidiReceiver receiver : mReceivers ) { try { receiver.send ( msg , offset , count , timestamp ) ; } catch ( java.io.IOException e ) { mReceivers.remove ( receiver ) ; } } }

Target:
public void onSend ( byte [ ] msg , int offset , int count , long timestamp ) throws java.io.IOException { for ( android.media.midi.MidiReceiver receiver : mReceivers ) { try { receiver.send ( msg , offset , count , timestamp ) ; } catch ( java.io.IOException e ) { mReceivers.remove ( receiver ) ; if ( ( mFailureHandler ) != null ) { mFailureHandler.onReceiverFailure ( receiver , e ) ; } } } }
Source:
public boolean put ( java.lang.String key , byte [ ] value ) { return put ( android.security.KeyStore.getKeyBytes ( key ) , value ) ; }

Target:
public boolean put ( java.lang.String key , byte [ ] value ) { try { return ( mBinder.insert ( key , value ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
public void testInterfaceCountersUdp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1000 , false ) ; }

Target:
public void testAesCbcHmacSha512Udp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , android.net.cts.IpSecManagerTest.getKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }
Source:
public static < R extends java.lang.Readable & java.io.Closeable > void copy ( com.google.common.io.InputSupplier < R > from , java.io.File to , java.nio.charset.Charset charset ) throws java.io.IOException { com.google.common.io.CharStreams.copy ( from , com.google.common.io.Files.newWriterSupplier ( to , charset ) ) ; }

Target:
private static java.nio.MappedByteBuffer map ( java.io.RandomAccessFile raf , java.nio.channels.FileChannel.MapMode mode , long size ) throws java.io.IOException { com.google.common.io.Closer closer = com.google.common.io.Closer.create ( ) ; try { java.nio.channels.FileChannel channel = closer.register ( raf.getChannel ( ) ) ; return channel.map ( mode , 0 , size ) ; } catch ( java.lang.Throwable e ) { throw closer.rethrow ( e ) ; } finally { closer.close ( ) ; } }
Source:
public void testConstructorWithThreeDigitMnc ( ) { final java.lang.String mncWithThreeDigit = "061" ; android.telephony.CellIdentityLte ci = new android.telephony.CellIdentityLte ( com.android.internal.telephony.CellIdentityLteTest.CI , com.android.internal.telephony.CellIdentityLteTest.PCI , com.android.internal.telephony.CellIdentityLteTest.TAC , com.android.internal.telephony.CellIdentityLteTest.EARFCN , com.android.internal.telephony.CellIdentityLteTest.MCC_STR , mncWithThreeDigit , com.android.internal.telephony.CellIdentityLteTest.ALPHA_LONG , com.android.internal.telephony.CellIdentityLteTest.ALPHA_SHORT ) ; assertEquals ( com.android.internal.telephony.CellIdentityLteTest.MCC , ci.getMcc ( ) ) ; assertEquals ( 61 , ci.getMnc ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityLteTest.MCC_STR , ci.getMccStr ( ) ) ; assertEquals ( mncWithThreeDigit , ci.getMncStr ( ) ) ; assertEquals ( ( ( com.android.internal.telephony.CellIdentityLteTest.MCC_STR ) + mncWithThreeDigit ) , ci.getMobileNetworkOperator ( ) ) ; }

Target:
public void testConstructorWithThreeDigitMnc ( ) { final java.lang.String mncWithThreeDigit = "061" ; android.telephony.CellIdentityLte ci = new android.telephony.CellIdentityLte ( com.android.internal.telephony.CellIdentityLteTest.CI , com.android.internal.telephony.CellIdentityLteTest.PCI , com.android.internal.telephony.CellIdentityLteTest.TAC , com.android.internal.telephony.CellIdentityLteTest.EARFCN , com.android.internal.telephony.CellIdentityLteTest.BANDWIDTH , com.android.internal.telephony.CellIdentityLteTest.MCC_STR , mncWithThreeDigit , com.android.internal.telephony.CellIdentityLteTest.ALPHA_LONG , com.android.internal.telephony.CellIdentityLteTest.ALPHA_SHORT ) ; assertEquals ( com.android.internal.telephony.CellIdentityLteTest.MCC , ci.getMcc ( ) ) ; assertEquals ( 61 , ci.getMnc ( ) ) ; assertEquals ( com.android.internal.telephony.CellIdentityLteTest.MCC_STR , ci.getMccStr ( ) ) ; assertEquals ( mncWithThreeDigit , ci.getMncStr ( ) ) ; assertEquals ( ( ( com.android.internal.telephony.CellIdentityLteTest.MCC_STR ) + mncWithThreeDigit ) , ci.getMobileNetworkOperator ( ) ) ; }
Source:
private void updateClip ( java.lang.String number ) { android.bluetooth.BluetoothHeadsetClientCall c = getCall ( BluetoothHeadsetClientCall.CALL_STATE_INCOMING ) ; if ( c == null ) { android.bluetooth.BluetoothHeadsetClientCall cw = getCall ( BluetoothHeadsetClientCall.CALL_STATE_WAITING ) ; if ( cw != null ) { setCallState ( cw , BluetoothHeadsetClientCall.CALL_STATE_INCOMING ) ; } else { addCall ( BluetoothHeadsetClientCall.CALL_STATE_INCOMING , number ) ; } } else { c.setNumber ( number ) ; sendCallChangedIntent ( c ) ; } }

Target:
private void updateCCWA ( java.lang.String number ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "updateCCWA " + number ) ) ; } sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.QUERY_CURRENT_CALLS ) ; }
Source:
public void run ( ) { android.os.PowerManager pm = ( ( android.os.PowerManager ) ( this . getSystemService ( "power" ) ) ) ; android.os.PowerManager.WakeLock wl = pm.newWakeLock ( PowerManager.PARTIAL_WAKE_LOCK , "sound" ) ; wl.acquire ( ) ; pm.goToSleep ( android.os.SystemClock.uptimeMillis ( ) ) ; android.app.Notification n = new android.app.Notification ( ) ; n.sound = android.net.Uri.parse ( "file:///sdcard/virtual-void.mp3" ) ; android.util.Log.d ( com.android.statusbartest.NotificationTestList.TAG , ( "n.sound=" + ( n.sound ) ) ) ; mNM.notify ( 1 , n ) ; android.util.Log.d ( com.android.statusbartest.NotificationTestList.TAG , "releasing wake lock" ) ; wl.release ( ) ; android.util.Log.d ( com.android.statusbartest.NotificationTestList.TAG , "released wake lock" ) ; }

Target:
public void run ( ) { android.os.PowerManager pm = ( ( android.os.PowerManager ) ( this . getSystemService ( Context.POWER_SERVICE ) ) ) ; android.os.PowerManager.WakeLock wl = pm.newWakeLock ( PowerManager.PARTIAL_WAKE_LOCK , "sound" ) ; wl.acquire ( ) ; pm.goToSleep ( android.os.SystemClock.uptimeMillis ( ) ) ; android.app.Notification n = new android.app.Notification ( ) ; n.sound = android.net.Uri.parse ( "file:///sdcard/virtual-void.mp3" ) ; android.util.Log.d ( com.android.statusbartest.NotificationTestList.TAG , ( "n.sound=" + ( n.sound ) ) ) ; mNM.notify ( 1 , n ) ; android.util.Log.d ( com.android.statusbartest.NotificationTestList.TAG , "releasing wake lock" ) ; wl.release ( ) ; android.util.Log.d ( com.android.statusbartest.NotificationTestList.TAG , "released wake lock" ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { final java.lang.reflect.Constructor < com.android.server.wifi.WifiNative > wifiNativeConstructor = com.android.server.wifi.WifiNative.class . getDeclaredConstructor ( java.lang.String.class , java.lang.Boolean.TYPE ) ; wifiNativeConstructor.setAccessible ( true ) ; mWifiNative = org.mockito.Mockito.spy ( wifiNativeConstructor.newInstance ( "test" , true ) ) ; mWifiVendorHal = org.mockito.Mockito.mock ( com.android.server.wifi.WifiVendorHal.class ) ; org.mockito.Mockito.when ( mWifiVendorHal.startVendorHal ( org.mockito.Mockito.anyBoolean ( ) ) ) . thenReturn ( true ) ; mWifiNative.setWifiVendorHal ( mWifiVendorHal ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; org.mockito.Mockito.when ( mWifiVendorHal.startVendorHal ( org.mockito.Mockito.anyBoolean ( ) ) ) . thenReturn ( true ) ; mWifiNative = new com.android.server.wifi.WifiNative ( "test0" , mWifiVendorHal , mStaIfaceHal , mP2pIfaceHal , mWificondControl ) ; }
Source:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg , java.lang.Throwable thrown ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr , bundleName ) ; }

Target:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.util.ResourceBundle bundle , java.lang.String msg , java.lang.Throwable thrown ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr , bundle ) ; }
Source:
public void resolve ( ) { block.setThenBlock ( com.android.jack.cfg.ForwardBranchResolver.getTargetBlock ( ifStatement ) ) ; if ( ( elseStatement ) != null ) { block.setElseBlock ( com.android.jack.cfg.ForwardBranchResolver.getTargetBlock ( elseStatement ) ) ; } }

Target:
public void resolve ( ) { block.setThenBlock ( com.android.jack.cfg.ForwardBranchResolver.getTargetBlock ( ifStatement ) ) ; if ( ( elseStatement ) == null ) { block.setElseBlock ( exitBlock ) ; } else { block.setElseBlock ( com.android.jack.cfg.ForwardBranchResolver.getTargetBlock ( elseStatement ) ) ; } }
Source:
public void testIncompatiblePlugin ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( com.android.tools.lint.checks.GradleDetector.GRADLE_PLUGIN_COMPATIBILITY ) ; assertEquals ( ( "" + ( ( ( "build.gradle:6: Error: You must use a newer version of the Android Gradle plugin. The minimum supported version is 0.12.0 and the recommended version is 0.13.0 [AndroidGradlePluginVersion]\n" + " classpath \'com.android.tools.build:gradle:0.1.0\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "gradle/IncompatiblePlugin.gradle=>build.gradle" ) ) ; }

Target:
public void testIncompatiblePlugin ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( com.android.tools.lint.checks.GradleDetector.GRADLE_PLUGIN_COMPATIBILITY ) ; assertEquals ( ( ( ( ( ( ( "" + "build.gradle:6: Error: You must use a newer version of the Android Gradle plugin. The minimum supported version is 0.12.0 and the recommended version is " ) + ( com.android.SdkConstants.GRADLE_PLUGIN_RECOMMENDED_VERSION ) ) + " [AndroidGradlePluginVersion]\n" ) + " classpath \'com.android.tools.build:gradle:0.1.0\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) , lintProject ( "gradle/IncompatiblePlugin.gradle=>build.gradle" ) ) ; }
Source:
public < K1 extends K , V1 extends V > com.google.common.cache.CacheBuilder < K1 , V1 > removalListener ( com.google.common.cache.RemovalListener < ? super K1 , ? super V1 > listener ) { com.google.common.base.Preconditions.checkState ( ( ( this . removalListener ) == null ) ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) com.google.common.cache.CacheBuilder < K1 , V1 > me = ( ( com.google.common.cache.CacheBuilder < K1 , V1 > ) ( this ) ) ; me.removalListener = com.google.common.base.Preconditions.checkNotNull ( listener ) ; return me ; }

Target:
public com.google.common.cache.CacheBuilder < K , V > maximumWeight ( long weight ) { com.google.common.base.Preconditions.checkState ( ( ( this . maximumWeight ) == ( com.google.common.cache.CacheBuilder.UNSET_INT ) ) , "maximum weight was already set to %s" , this . maximumWeight ) ; com.google.common.base.Preconditions.checkState ( ( ( this . maximumSize ) == ( com.google.common.cache.CacheBuilder.UNSET_INT ) ) , "maximum size was already set to %s" , this . maximumSize ) ; this . maximumWeight = weight ; com.google.common.base.Preconditions.checkArgument ( ( weight >= 0 ) , "maximum weight must not be negative" ) ; return this ; }
Source:
protected com.android.jack.test.toolchain.JackBasedToolchain getReferenceToolchain ( ) { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; java.io.File oneDexPerTypeFolder ; try { oneDexPerTypeFolder = com.android.jack.TestTools.createTempDir ( "oneDexPerType" , "dex" ) ; toolchain.addProperty ( Options.EMIT_LINE_NUMBER_DEBUG_INFO.getName ( ) , java.lang.Boolean.toString ( withDebugInfos ) ) ; toolchain.addProperty ( ScheduleInstance.DEFAULT_RUNNER.getName ( ) , "single-threaded" ) ; toolchain.addProperty ( Options.TYPEDEX_DIR.getName ( ) , oneDexPerTypeFolder.getAbsolutePath ( ) ) ; } catch ( java.io.IOException e ) { throw new java.lang.AssertionError ( e ) ; } return toolchain ; }

Target:
protected com.android.jack.test.toolchain.JackBasedToolchain getReferenceToolchain ( ) { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; java.io.File oneDexPerTypeFolder ; try { oneDexPerTypeFolder = com.android.jack.TestTools.createTempDir ( "oneDexPerType" , "dex" ) ; toolchain.addProperty ( Options.EMIT_LINE_NUMBER_DEBUG_INFO.getName ( ) , java.lang.Boolean.toString ( withDebugInfos ) ) ; toolchain.addProperty ( ScheduleInstance.DEFAULT_RUNNER.getName ( ) , "single-threaded" ) ; toolchain.addProperty ( Options.INTERMEDIATE_DEX_DIR.getName ( ) , oneDexPerTypeFolder.getAbsolutePath ( ) ) ; } catch ( java.io.IOException e ) { throw new java.lang.AssertionError ( e ) ; } return toolchain ; }
Source:
protected void releaseResources ( ) { if ( mOwnedByTransform ) { android.util.Log.d ( com.android.server.IpSecService.TAG , ( ( "Cannot release Spi " + ( mSpi ) ) + ": Currently locked by a Transform" ) ) ; return ; } try { getNetdInstance ( ) . ipSecDeleteSecurityAssociation ( mResourceId , mDirection , mLocalAddress , mRemoteAddress , mSpi ) ; } catch ( android.os.ServiceSpecificException e ) { } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.IpSecService.TAG , ( "Failed to delete SPI reservation with ID: " + ( mResourceId ) ) ) ; } mSpi = android.net.IpSecManager.INVALID_SECURITY_PARAMETER_INDEX ; }

Target:
protected void releaseResources ( ) { if ( mOwnedByTransform ) { android.util.Log.d ( com.android.server.IpSecService.TAG , ( ( "Cannot release Spi " + ( mSpi ) ) + ": Currently locked by a Transform" ) ) ; return ; } try { mSrvConfig.getNetdInstance ( ) . ipSecDeleteSecurityAssociation ( mResourceId , mDirection , mLocalAddress , mRemoteAddress , mSpi ) ; } catch ( android.os.ServiceSpecificException e ) { } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.IpSecService.TAG , ( "Failed to delete SPI reservation with ID: " + ( mResourceId ) ) ) ; } mSpi = android.net.IpSecManager.INVALID_SECURITY_PARAMETER_INDEX ; }
Source:
public boolean [ ] getSubjectUniqueID ( ) { if ( ( info ) == null ) return null ; try { sun.security.x509.UniqueIdentity id = ( ( sun.security.x509.UniqueIdentity ) ( info.get ( ( ( ( CertificateSubjectUniqueIdentity.NAME ) + ( sun.security.x509.X509CertImpl.DOT ) ) + ( CertificateSubjectUniqueIdentity.ID ) ) ) ) ) ; if ( id == null ) return null ; else return id.getId ( ) ; } catch ( java.lang.Exception e ) { return null ; } }

Target:
public boolean [ ] getSubjectUniqueID ( ) { if ( ( info ) == null ) return null ; try { sun.security.x509.UniqueIdentity id = ( ( sun.security.x509.UniqueIdentity ) ( info.get ( sun.security.x509.X509CertInfo.SUBJECT_ID ) ) ) ; if ( id == null ) return null ; else return id.getId ( ) ; } catch ( java.lang.Exception e ) { return null ; } }
Source:
void init ( java.io.File codePath , java.io.File resourcePath , java.lang.String nativeLibraryPathString , int pVersionCode ) { this . codePath = codePath ; this . codePathString = codePath.toString ( ) ; this . resourcePath = resourcePath ; this . resourcePathString = resourcePath.toString ( ) ; this . nativeLibraryPathString = nativeLibraryPathString ; this . versionCode = pVersionCode ; }

Target:
void init ( java.io.File codePath , java.io.File resourcePath , java.lang.String nativeLibraryPathString , java.lang.String requiredCpuAbiString , int pVersionCode ) { this . codePath = codePath ; this . codePathString = codePath.toString ( ) ; this . resourcePath = resourcePath ; this . resourcePathString = resourcePath.toString ( ) ; this . nativeLibraryPathString = nativeLibraryPathString ; this . requiredCpuAbiString = requiredCpuAbiString ; this . versionCode = pVersionCode ; }