auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean disableRttResponder ( ) { try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.disableRttResponder ( ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } legacyHalWarning ( ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( ! ( isHalStarted ( ) ) ) return false ; if ( ( com.android.server.wifi.WifiNative.sRttResponderCmdId ) == 0 ) { android.util.Log.e ( mTAG , "responder role not enabled yet" ) ; return true ; } com.android.server.wifi.WifiNative.sRttResponderCmdId = 0 ; return com.android.server.wifi.WifiNative.disableRttResponderNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sRttResponderCmdId ) ; } }

Target:
public boolean disableRttResponder ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( ! ( isHalStarted ( ) ) ) return false ; if ( ( com.android.server.wifi.WifiNative.sRttResponderCmdId ) == 0 ) { android.util.Log.e ( mTAG , "responder role not enabled yet" ) ; return true ; } com.android.server.wifi.WifiNative.sRttResponderCmdId = 0 ; return com.android.server.wifi.WifiNative.disableRttResponderNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sRttResponderCmdId ) ; } }
Source:
private android.graphics.drawable.Drawable getConnectionIcon ( ) { android.telecom.StatusHints statusHints = mPrimary.getTelecommCall ( ) . getDetails ( ) . getStatusHints ( ) ; if ( ( statusHints != null ) && ( ( statusHints.getIconResId ( ) ) != 0 ) ) { android.graphics.drawable.Drawable icon = statusHints.getIcon ( mContext ) ; if ( icon != null ) { return icon ; } } return getCallProviderIcon ( mPrimary ) ; }

Target:
private android.graphics.drawable.Drawable getConnectionIcon ( ) { android.telecom.StatusHints statusHints = mPrimary.getTelecommCall ( ) . getDetails ( ) . getStatusHints ( ) ; if ( ( statusHints != null ) && ( ( statusHints.getIconResId ( ) ) != 0 ) ) { android.graphics.drawable.Drawable icon = statusHints.getIcon ( mContext ) ; if ( icon != null ) { return icon ; } } return null ; }
Source:
private static void onTransmitFollowupEvent ( short transactionId , int reason ) { if ( com.android.server.wifi.nan.WifiNanNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.nan.WifiNanNative.TAG , ( ( ( "onTransmitFollowupEvent: transactionId=" + transactionId ) + ", reason=" ) + reason ) ) ; } if ( reason == ( com.android.server.wifi.nan.WifiNanNative.NAN_STATUS_SUCCESS ) ) { com.android.server.wifi.nan.WifiNanStateManager.getInstance ( ) . onMessageSendSuccessNotification ( transactionId ) ; } else { com.android.server.wifi.nan.WifiNanStateManager.getInstance ( ) . onMessageSendFailNotification ( transactionId , com.android.server.wifi.nan.WifiNanNative.translateHalStatusToNanSessionCallbackReason ( reason ) ) ; } }

Target:
private static void onTransmitFollowupEvent ( short transactionId , int reason ) { if ( com.android.server.wifi.nan.WifiNanNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.nan.WifiNanNative.TAG , ( ( ( "onTransmitFollowupEvent: transactionId=" + transactionId ) + ", reason=" ) + reason ) ) ; } if ( reason == ( com.android.server.wifi.nan.WifiNanNative.NAN_STATUS_SUCCESS ) ) { com.android.server.wifi.nan.WifiNanStateManager.getInstance ( ) . onMessageSendSuccessNotification ( transactionId ) ; } else { com.android.server.wifi.nan.WifiNanStateManager.getInstance ( ) . onMessageSendFailNotification ( transactionId , reason ) ; } }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.CastExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JType type = getTypeMap ( ) . get ( x.resolvedType ) ; com.android.jack.ir.ast.JExpression expression = pop ( x.expression ) ; push ( new com.android.jack.ir.ast.JDynamicCastOperation ( info , type , expression ) ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.CastExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JType type = getTypeMap ( ) . get ( x.resolvedType ) ; com.android.jack.ir.ast.JExpression expression = pop ( x.expression ) ; push ( new com.android.jack.ir.ast.JDynamicCastOperation ( info , type , expression ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
private void removeMulticasterLocked ( int i , int uid ) { com.android.server.WifiService.Multicaster removed = mMulticasters.remove ( i ) ; if ( removed != null ) { removed.unlinkDeathRecipient ( ) ; } if ( ( mMulticasters.size ( ) ) == 0 ) { mWifiStateMachine.startFilteringMulticastV4Packets ( ) ; } java.lang.Long ident = android.os.Binder.clearCallingIdentity ( ) ; try { mBatteryStats.noteWifiMulticastDisabled ( uid ) ; } catch ( android.os.RemoteException e ) { } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } }

Target:
private void removeMulticasterLocked ( int i , int uid ) { com.android.server.WifiService.Multicaster removed = mMulticasters.remove ( i ) ; if ( removed != null ) { removed.unlinkDeathRecipient ( ) ; } if ( ( mMulticasters.size ( ) ) == 0 ) { mWifiStateMachine.startFilteringMulticastV4Packets ( ) ; } final long ident = android.os.Binder.clearCallingIdentity ( ) ; try { mBatteryStats.noteWifiMulticastDisabled ( uid ) ; } catch ( android.os.RemoteException e ) { } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } }
Source:
public static void writeUint32 ( long i , byte [ ] buf , int offset ) { buf [ offset ] = ( ( byte ) ( i > > 24 ) ) ; buf [ ( offset + 1 ) ] = ( ( byte ) ( i > > 16 ) ) ; buf [ ( offset + 2 ) ] = ( ( byte ) ( i > > 8 ) ) ; buf [ ( offset + 3 ) ] = ( ( byte ) ( i ) ) ; }

Target:
public static void writeUint32 ( long i , byte [ ] buf , int offset ) { buf [ offset ] = ( ( byte ) ( i > > > 24 ) ) ; buf [ ( offset + 1 ) ] = ( ( byte ) ( i > > > 16 ) ) ; buf [ ( offset + 2 ) ] = ( ( byte ) ( i > > > 8 ) ) ; buf [ ( offset + 3 ) ] = ( ( byte ) ( i ) ) ; }
Source:
final boolean isPowered ( int plugTypeSet ) { if ( ( mBatteryStatus ) == ( android.os.BatteryManager.BATTERY_STATUS_UNKNOWN ) ) { return true ; } if ( plugTypeSet == 0 ) { return false ; } int plugTypeBit = 0 ; if ( ( mAcOnline ) && ( ( mBatteryStatus ) == ( android.os.BatteryManager.BATTERY_STATUS_CHARGING ) ) ) { plugTypeBit |= android.os.BatteryManager.BATTERY_PLUGGED_AC ; } if ( ( mUsbOnline ) && ( ( mBatteryStatus ) == ( android.os.BatteryManager.BATTERY_STATUS_CHARGING ) ) ) { plugTypeBit |= android.os.BatteryManager.BATTERY_PLUGGED_USB ; } return ( plugTypeSet & plugTypeBit ) != 0 ; }

Target:
final boolean isPowered ( int plugTypeSet ) { if ( ( mBatteryStatus ) == ( android.os.BatteryManager.BATTERY_STATUS_UNKNOWN ) ) { return true ; } if ( plugTypeSet == 0 ) { return false ; } int plugTypeBit = 0 ; if ( mAcOnline ) { plugTypeBit |= android.os.BatteryManager.BATTERY_PLUGGED_AC ; } if ( mUsbOnline ) { plugTypeBit |= android.os.BatteryManager.BATTERY_PLUGGED_USB ; } return ( plugTypeSet & plugTypeBit ) != 0 ; }
Source:
public void testStoreAudioPlaylistsInternal ( ) { android.content.ContentValues values = new android.content.ContentValues ( ) ; values.put ( Playlists.NAME , "My favourites" ) ; values.put ( Playlists.DATA , "/data/data/com.android.cts.stub/files/my_favorites.pl" ) ; long dateAdded = java.lang.System.currentTimeMillis ( ) ; values.put ( Playlists.DATE_ADDED , dateAdded ) ; long dateModified = java.lang.System.currentTimeMillis ( ) ; values.put ( Playlists.DATE_MODIFIED , dateModified ) ; android.net.Uri uri = mContentResolver.insert ( Playlists.INTERNAL_CONTENT_URI , values ) ; assertNotNull ( uri ) ; assertTrue ( java.util.regex.Pattern.matches ( "content://media/internal/audio/playlists/\\d+" , uri.toString ( ) ) ) ; }

Target:
public void testStoreAudioPlaylistsInternal ( ) { android.content.ContentValues values = new android.content.ContentValues ( ) ; values.put ( Playlists.NAME , "My favourites" ) ; values.put ( Playlists.DATA , "/data/data/com.android.cts.stub/files/my_favorites.pl" ) ; long dateAdded = java.lang.System.currentTimeMillis ( ) ; values.put ( Playlists.DATE_ADDED , dateAdded ) ; long dateModified = java.lang.System.currentTimeMillis ( ) ; values.put ( Playlists.DATE_MODIFIED , dateModified ) ; android.net.Uri uri = mContentResolver.insert ( Playlists.INTERNAL_CONTENT_URI , values ) ; assertNotNull ( uri ) ; try { assertTrue ( java.util.regex.Pattern.matches ( "content://media/internal/audio/playlists/\\d+" , uri.toString ( ) ) ) ; } finally { assertEquals ( 1 , mContentResolver.delete ( uri , null , null ) ) ; } }
Source:
public void Test4089106 ( ) { com.ibm.icu.util.TimeZone def = com.ibm.icu.util.TimeZone.getDefault ( ) ; try { com.ibm.icu.util.TimeZone z = new com.ibm.icu.util.SimpleTimeZone ( ( ( int ) ( 1.25 * 3600000 ) ) , "FAKEZONE" ) ; com.ibm.icu.util.TimeZone.setDefault ( z ) ; z = com.ibm.icu.util.TimeZone.getDefault ( ) ; com.ibm.icu.text.SimpleDateFormat f = new com.ibm.icu.text.SimpleDateFormat ( ) ; if ( ! ( f.getTimeZone ( ) . equals ( z ) ) ) errln ( "Fail: SimpleTimeZone should use TimeZone.getDefault()" ) ; } finally { com.ibm.icu.util.TimeZone.setDefault ( def ) ; } }

Target:
public void Test4089106 ( ) { com.ibm.icu.util.TimeZone def = com.ibm.icu.util.TimeZone.getDefault ( ) ; try { com.ibm.icu.util.TimeZone z = new com.ibm.icu.util.SimpleTimeZone ( ( ( int ) ( 1.25 * 3600000 ) ) , "FAKEZONE" ) ; com.ibm.icu.util.TimeZone.setDefault ( z ) ; com.ibm.icu.text.SimpleDateFormat f = new com.ibm.icu.text.SimpleDateFormat ( ) ; if ( ! ( f.getTimeZone ( ) . equals ( z ) ) ) errln ( "Fail: SimpleTimeZone should use TimeZone.getDefault()" ) ; } finally { com.ibm.icu.util.TimeZone.setDefault ( def ) ; } }
Source:
public void applyRepresentation ( com.android.gallery3d.filtershow.filters.FilterRepresentation representation , android.support.v8.renderscript.Allocation in , android.support.v8.renderscript.Allocation out ) { com.android.gallery3d.filtershow.filters.ImageFilter filter = mFiltersManager.getFilterForRepresentation ( representation ) ; filter.useRepresentation ( representation ) ; filter.setEnvironment ( this ) ; if ( filter.supportsAllocationInput ( ) ) { filter.apply ( in , out ) ; } filter.setGeneralParameters ( ) ; filter.setEnvironment ( null ) ; }

Target:
public void applyRepresentation ( com.android.gallery3d.filtershow.filters.FilterRepresentation representation , android.renderscript.Allocation in , android.renderscript.Allocation out ) { com.android.gallery3d.filtershow.filters.ImageFilter filter = mFiltersManager.getFilterForRepresentation ( representation ) ; filter.useRepresentation ( representation ) ; filter.setEnvironment ( this ) ; if ( filter.supportsAllocationInput ( ) ) { filter.apply ( in , out ) ; } filter.setGeneralParameters ( ) ; filter.setEnvironment ( null ) ; }
Source:
private void writeAndReadBack ( ) { try { java.io.StringWriter writer = new java.io.StringWriter ( ) ; mPackageDexUsage.write ( writer ) ; mPackageDexUsage = new com.android.server.pm.dex.PackageDexUsage ( ) ; mPackageDexUsage.read ( new java.io.StringReader ( writer.toString ( ) ) ) ; } catch ( java.io.IOException e ) { org.junit.Assert.fail ( ( "Unexpected IOException: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
private void writeAndReadBack ( ) { mPackageDexUsage = writeAndReadBack ( mPackageDexUsage ) ; }
Source:
public boolean createBond ( android.bluetooth.BluetoothDevice device , int transport ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "createBond() - Not allowed for non-active user" ) ; return false ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return false ; return service.createBond ( device , transport ) ; }

Target:
public boolean createBond ( android.bluetooth.BluetoothDevice device , int transport ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "createBond() - Not allowed for non-active user" ) ; return false ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return false ; return service.createBond ( device , transport , null ) ; }
Source:
public void removeIcon ( java.lang.String slot , int index , int viewIndex ) { if ( com.android.systemui.statusbar.phone.PhoneStatusBar.SPEW ) android.util.Slog.d ( com.android.systemui.statusbar.phone.PhoneStatusBar.TAG , ( ( ( ( ( "removeIcon slot=" + slot ) + " index=" ) + index ) + " viewIndex=" ) + viewIndex ) ) ; mStatusIcons.removeViewAt ( viewIndex ) ; }

Target:
public void removeIcon ( java.lang.String slot , int index , int viewIndex ) { if ( com.android.systemui.statusbar.phone.PhoneStatusBar.SPEW ) android.util.Log.d ( com.android.systemui.statusbar.phone.PhoneStatusBar.TAG , ( ( ( ( ( "removeIcon slot=" + slot ) + " index=" ) + index ) + " viewIndex=" ) + viewIndex ) ) ; mStatusIcons.removeViewAt ( viewIndex ) ; }
Source:
private void setUpEnvironment ( ) throws java.lang.Exception { device.disconnectFromWifi ( ) ; dhryMin = java.lang.Double.MAX_VALUE ; dhryMax = java.lang.Double.MIN_VALUE ; java.lang.Thread.sleep ( 600000 ) ; device.executeAdbCommand ( "logcat" , "-c" ) ; device.executeShellCommand ( "settings put global airplane_mode_on 1" ) ; device.executeShellCommand ( "am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true" ) ; }

Target:
private void setUpEnvironment ( ) throws java.lang.Exception { dhryMin = java.lang.Double.MAX_VALUE ; dhryMax = java.lang.Double.MIN_VALUE ; java.lang.Thread.sleep ( 600000 ) ; device.executeAdbCommand ( "logcat" , "-c" ) ; device.executeShellCommand ( "settings put global airplane_mode_on 1" ) ; device.executeShellCommand ( "am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true" ) ; }
Source:
public void dataCallListChanged ( int indicationType , java.util.ArrayList < android.hardware.radio.V1_0.SetupDataCallResult > dcList ) { mRil.processIndication ( indicationType ) ; java.util.ArrayList < android.telephony.data.DataCallResponse > response = new java.util.ArrayList < > ( ) ; for ( android.hardware.radio.V1_0.SetupDataCallResult dcResult : dcList ) { response.add ( com.android.internal.telephony.RIL.convertDataCallResult ( dcResult ) ) ; } if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_DATA_CALL_LIST_CHANGED , response ) ; mRil.mDataCallListChangedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , response , null ) ) ; }

Target:
public void dataCallListChanged ( int indicationType , java.util.ArrayList < android.hardware.radio.V1_0.SetupDataCallResult > dcList ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLogRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_DATA_CALL_LIST_CHANGED , dcList ) ; mRil.mDataCallListChangedRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , dcList , null ) ) ; }
Source:
public void onHeaderClick ( com.android.dialer.app.settings.Header header , int position ) { if ( ( header.id ) == ( R.id.settings_header_sounds_and_vibration ) ) { if ( ! ( Settings.System.canWrite ( this ) ) ) { android.widget.Toast.makeText ( this , getResources ( ) . getString ( R.string.toast_cannot_write_system_settings ) , Toast.LENGTH_SHORT ) . show ( ) ; startActivity ( new android.content.Intent ( android.provider.Settings.ACTION_SOUND_SETTINGS ) ) ; return ; } } super . onHeaderClick ( header , position ) ; }

Target:
public void onHeaderClick ( com.android.dialer.app.settings.Header header , int position ) { if ( ( header.id ) == ( R.id.settings_header_sounds_and_vibration ) ) { if ( ! ( Settings.System.canWrite ( this ) ) ) { android.widget.Toast.makeText ( this , getResources ( ) . getString ( R.string.toast_cannot_write_system_settings ) , Toast.LENGTH_SHORT ) . show ( ) ; } startActivity ( new android.content.Intent ( android.provider.Settings.ACTION_SOUND_SETTINGS ) ) ; return ; } super . onHeaderClick ( header , position ) ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.SynchronizedStatement x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.ast.JBlock block = pop ( x.block ) ; com.android.jack.ir.ast.JExpression expression = pop ( x.expression ) ; com.android.jack.ir.ast.JSynchronizedBlock syncBlock = new com.android.jack.ir.ast.JSynchronizedBlock ( makeSourceInfo ( x ) , expression , block ) ; push ( syncBlock ) ; } catch ( java.lang.Throwable e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.SynchronizedStatement x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.ast.JBlock block = pop ( x.block ) ; com.android.jack.ir.ast.JExpression expression = pop ( x.expression ) ; com.android.jack.ir.ast.JSynchronizedBlock syncBlock = new com.android.jack.ir.ast.JSynchronizedBlock ( makeSourceInfo ( x ) , expression , block ) ; push ( syncBlock ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public void testCurrencyUsageFractionOverrides ( ) { com.ibm.icu.text.NumberFormat df = com.ibm.icu.text.DecimalFormat.getCurrencyInstance ( ULocale.US ) ; expect2 ( df , 35.0 , "$35.00" ) ; df.setMinimumFractionDigits ( 3 ) ; expect2 ( df , 35.0 , "$35.000" ) ; df.setMaximumFractionDigits ( 3 ) ; expect2 ( df , 35.0 , "$35.000" ) ; df.setMinimumFractionDigits ( ( - 1 ) ) ; expect2 ( df , 35.0 , "$35" ) ; df.setMaximumFractionDigits ( ( - 1 ) ) ; expect2 ( df , 35.0 , "$35.00" ) ; }

Target:
public void testCurrencyUsageFractionOverrides ( ) { com.ibm.icu.text.NumberFormat df = com.ibm.icu.text.DecimalFormat.getCurrencyInstance ( ULocale.US ) ; expect2 ( df , 35.0 , "$35.00" ) ; df.setMinimumFractionDigits ( 3 ) ; expect2 ( df , 35.0 , "$35.000" ) ; df.setMaximumFractionDigits ( 3 ) ; expect2 ( df , 35.0 , "$35.000" ) ; df.setMinimumFractionDigits ( ( - 1 ) ) ; expect2 ( df , 35.0 , "$35.00" ) ; df.setMaximumFractionDigits ( ( - 1 ) ) ; expect2 ( df , 35.0 , "$35.00" ) ; }
Source:
private void responseLastCallFailCauseInfo ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.LastCallFailCauseInfo fcInfo ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.LastCallFailCause ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = new com.android.internal.telephony.LastCallFailCause ( ) ; ret.causeCode = fcInfo.causeCode ; ret.vendorCause = fcInfo.vendorCause ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseLastCallFailCauseInfo ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.LastCallFailCauseInfo fcInfo ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.LastCallFailCause ret = new com.android.internal.telephony.LastCallFailCause ( ) ; ret.causeCode = fcInfo.causeCode ; ret.vendorCause = fcInfo.vendorCause ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
protected void readManifest ( java.io.File manifest ) { if ( manifest.exists ( ) ) { try { java.lang.String xml = com.google.common.io.Files.toString ( manifest , com.google.common.base.Charsets.UTF_8 ) ; org.w3c.dom.Document document = com.android.utils.XmlUtils.parseDocumentSilently ( xml , true ) ; readManifest ( document ) ; } catch ( java.io.IOException e ) { mClient.log ( e , "Could not read manifest %1$s" , manifest ) ; } } }

Target:
protected void readManifest ( java.io.File manifest ) { if ( manifest.exists ( ) ) { try { java.lang.String xml = com.google.common.io.Files.toString ( manifest , com.google.common.base.Charsets.UTF_8 ) ; org.w3c.dom.Document document = com.android.utils.XmlUtils.parseDocumentSilently ( xml , true ) ; if ( document != null ) { readManifest ( document ) ; } } catch ( java.io.IOException e ) { mClient.log ( e , "Could not read manifest %1$s" , manifest ) ; } } }
Source:
public void testDelete ( ) throws java.lang.Exception { assertFalse ( mKeyStore.delete ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ; assertFalse ( mKeyStore.delete ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; mKeyStore.put ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.TEST_KEYVALUE ) ; assertTrue ( java.util.Arrays.equals ( android.security.KeyStoreTest.TEST_KEYVALUE , mKeyStore.get ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ) ; assertTrue ( mKeyStore.delete ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; assertNull ( mKeyStore.get ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; }

Target:
public void testDelete ( ) throws java.lang.Exception { assertFalse ( mKeyStore.delete ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ; assertFalse ( mKeyStore.delete ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; assertTrue ( mKeyStore.put ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.TEST_KEYVALUE ) ) ; assertTrue ( java.util.Arrays.equals ( android.security.KeyStoreTest.TEST_KEYVALUE , mKeyStore.get ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ) ; assertTrue ( mKeyStore.delete ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; assertNull ( mKeyStore.get ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; }
Source:
private boolean releaseWakeLock ( java.lang.String lockName ) { synchronized ( this ) { if ( ( mWakeLock ) == null ) { errorLog ( ( "Repeated wake lock release; aborting release: " + lockName ) ) ; return false ; } mWakeLock.release ( ) ; mWakeLock = null ; mWakeLockName = null ; } return true ; }

Target:
private boolean releaseWakeLock ( java.lang.String lockName ) { synchronized ( this ) { if ( ( mWakeLock ) == null ) { errorLog ( ( "Repeated wake lock release; aborting release: " + lockName ) ) ; return false ; } mWakeLock.release ( ) ; } return true ; }
Source:
public sun.nio.fs.DynamicFileAttributeView getFileAttributeView ( java.nio.file.Path obj , java.lang.String name , java.nio.file.LinkOption ... options ) { if ( name.equals ( "dos" ) ) { return new sun.nio.fs.LinuxDosFileAttributeView ( sun.nio.fs.UnixPath.toUnixPath ( obj ) , sun.nio.fs.Util.followLinks ( options ) ) ; } if ( name.equals ( "user" ) ) { return new sun.nio.fs.LinuxUserDefinedFileAttributeView ( sun.nio.fs.UnixPath.toUnixPath ( obj ) , sun.nio.fs.Util.followLinks ( options ) ) ; } return super . getFileAttributeView ( obj , name , options ) ; }

Target:
public sun.nio.fs.DynamicFileAttributeView getFileAttributeView ( java.nio.file.Path obj , java.lang.String name , java.nio.file.LinkOption ... options ) { return super . getFileAttributeView ( obj , name , options ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { updateDeviceImage ( shell ) ; for ( int i = 0 ; i < ( mRotateCount ) ; i ++ ) { mRawImage = mRawImage.getRotated ( ) ; } updateImageDisplay ( shell ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { updateDeviceImage ( shell ) ; if ( ( mRawImage ) != null ) { for ( int i = 0 ; i < ( mRotateCount ) ; i ++ ) { mRawImage = mRawImage.getRotated ( ) ; } updateImageDisplay ( shell ) ; } }
Source:
public java.lang.Integer call ( ) { java.lang.Integer result ; try { java.lang.Class < ? > c = java.lang.Class.forName ( "Test" ) ; java.lang.reflect.Method m = c.getMethod ( "synchronizedHashCode" , new java.lang.Class [ ] { java.lang.Object.class } ) ; result = ( ( java.lang.Integer ) ( m.invoke ( null , m_obj ) ) ) ; } catch ( java.lang.Exception e ) { java.lang.System.err.println ( "Hash code query exception" ) ; e.printStackTrace ( ) ; result = - 1 ; } return result ; }

Target:
public java.lang.Integer call ( ) { java.lang.Integer result ; try { java.lang.Class < ? > c = java.lang.Class.forName ( "Test" ) ; java.lang.reflect.Method m = c.getMethod ( "synchronizedHashCode" , java.lang.Object.class ) ; result = ( ( java.lang.Integer ) ( m.invoke ( null , m_obj ) ) ) ; } catch ( java.lang.Exception e ) { java.lang.System.err.println ( "Hash code query exception" ) ; e.printStackTrace ( ) ; result = - 1 ; } return result ; }
Source:
public void TestCyrillicTailoring ( ) { java.lang.String [ ] test = new java.lang.String [ ] { "Аb" , "Ӑa" , "ӐA" } ; genericLocaleStarter ( new java.util.Locale ( "en" , "" ) , test ) ; genericRulesStarter ( "&А = А" , test ) ; genericRulesStarter ( "&Z < А" , test ) ; genericRulesStarter ( "&А = А < Ӑ" , test ) ; genericRulesStarter ( "&Z < А < Ӑ" , test ) ; genericRulesStarter ( "&А = А < А́" , test ) ; genericRulesStarter ( "&Z < А < А́" , test ) ; }

Target:
public void TestCyrillicTailoring ( ) { java.lang.String [ ] test = new java.lang.String [ ] { "Аb" , "Ӑa" , "ӐA" } ; genericRulesStarter ( "&А = А < Ӑ" , test ) ; genericRulesStarter ( "&Z < А < Ӑ" , test ) ; }
Source:
public static < K , V > org.hamcrest.Matcher < java.util.Map < K , V > > hasEntry ( org.hamcrest.Matcher < K > keyMatcher , org.hamcrest.Matcher < V > valueMatcher ) { return new org.hamcrest.collection.IsMapContaining < K , V > ( keyMatcher , valueMatcher ) ; }

Target:
public static < K , V > org.hamcrest.Matcher < java.util.Map < ? extends K , ? extends V > > hasEntry ( org.hamcrest.Matcher < ? super K > keyMatcher , org.hamcrest.Matcher < ? super V > valueMatcher ) { return new org.hamcrest.collection.IsMapContaining < K , V > ( keyMatcher , valueMatcher ) ; }
Source:
private void fillUi ( ) { if ( ( ( com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ) != null ) && ( mProject.isOpen ( ) ) ) { com.android.ide.eclipse.adt.internal.project.ProjectState state = com.android.ide.eclipse.adt.internal.sdk.Sdk.getProjectState ( mProject ) ; com.android.sdklib.IAndroidTarget target = state.getTarget ( ) ; if ( target != null ) { mSelector.setSelection ( target ) ; } mIsLibrary.setSelection ( state.isLibrary ( ) ) ; mLibraryDependencies.setContent ( state ) ; mLibraryDependencies.setEnabled ( ( ! ( state.isLibrary ( ) ) ) ) ; } }

Target:
private void fillUi ( ) { if ( ( ( com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ) != null ) && ( mProject.isOpen ( ) ) ) { com.android.ide.eclipse.adt.internal.project.ProjectState state = com.android.ide.eclipse.adt.internal.sdk.Sdk.getProjectState ( mProject ) ; com.android.sdklib.IAndroidTarget target = state.getTarget ( ) ; if ( target != null ) { mSelector.setSelection ( target ) ; } mIsLibrary.setSelection ( state.isLibrary ( ) ) ; mLibraryDependencies.setContent ( state ) ; } }
Source:
public boolean registerApp ( android.bluetooth.BluetoothHidDeviceAppConfiguration config , android.bluetooth.BluetoothHidDeviceAppSdpSettings sdp , android.bluetooth.BluetoothHidDeviceAppQosSettings inQos , android.bluetooth.BluetoothHidDeviceAppQosSettings outQos , android.bluetooth.IBluetoothHidDeviceCallback callback ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.BluetoothHidDeviceBinder.TAG , "registerApp()" ) ; } com.android.bluetooth.hid.HidDeviceService service = getService ( ) ; if ( service == null ) { return false ; } return service.registerApp ( config , sdp , inQos , outQos , callback ) ; }

Target:
public boolean registerApp ( android.bluetooth.BluetoothHidDeviceAppSdpSettings sdp , android.bluetooth.BluetoothHidDeviceAppQosSettings inQos , android.bluetooth.BluetoothHidDeviceAppQosSettings outQos , android.bluetooth.IBluetoothHidDeviceCallback callback ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.BluetoothHidDeviceBinder.TAG , "registerApp()" ) ; } com.android.bluetooth.hid.HidDeviceService service = getService ( ) ; if ( service == null ) { return false ; } return service.registerApp ( sdp , inQos , outQos , callback ) ; }
Source:
public void testQuerySupportedImsFeatures ( ) throws android.os.RemoteException { android.telephony.ims.stub.ImsFeatureConfiguration config = new android.telephony.ims.stub.ImsFeatureConfiguration.Builder ( ) . addFeature ( ImsFeature.FEATURE_MMTEL ) . addFeature ( ImsFeature.FEATURE_RCS ) . build ( ) ; mTestImsService.testFeatureConfig = config ; android.telephony.ims.stub.ImsFeatureConfiguration result = mTestImsServiceBinder.querySupportedImsFeatures ( ) ; junit.framework.Assert.assertEquals ( config , result ) ; }

Target:
public void testQuerySupportedImsFeatures ( ) throws android.os.RemoteException { android.telephony.ims.stub.ImsFeatureConfiguration config = new android.telephony.ims.stub.ImsFeatureConfiguration.Builder ( ) . addFeature ( 0 , ImsFeature.FEATURE_MMTEL ) . addFeature ( 0 , ImsFeature.FEATURE_RCS ) . build ( ) ; mTestImsService.testFeatureConfig = config ; android.telephony.ims.stub.ImsFeatureConfiguration result = mTestImsServiceBinder.querySupportedImsFeatures ( ) ; junit.framework.Assert.assertEquals ( config , result ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.io.IOException { if ( ! ( util.build.BuildDalvikSuite.parseArgs ( args ) ) ) { util.build.BuildDalvikSuite.printUsage ( ) ; java.lang.System.exit ( ( - 1 ) ) ; } long start = java.lang.System.currentTimeMillis ( ) ; util.build.BuildDalvikSuite cat = new util.build.BuildDalvikSuite ( ) ; cat.compose ( ) ; long end = java.lang.System.currentTimeMillis ( ) ; java.lang.System.out.println ( ( "elapsed seconds: " + ( ( end - start ) / 1000 ) ) ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.io.IOException { util.build.BuildDalvikSuite cat = new util.build.BuildDalvikSuite ( ) ; if ( ! ( cat.parseArgs ( args ) ) ) { util.build.BuildDalvikSuite.printUsage ( ) ; java.lang.System.exit ( ( - 1 ) ) ; } long start = java.lang.System.currentTimeMillis ( ) ; cat.run ( null ) ; long end = java.lang.System.currentTimeMillis ( ) ; java.lang.System.out.println ( ( "elapsed seconds: " + ( ( end - start ) / 1000 ) ) ) ; }
Source:
public static java.util.Map < java.lang.String , java.lang.String > getHardwareProperties ( com.android.sdklib.devices.Device d ) { java.util.Map < java.lang.String , java.lang.String > props = com.android.sdklib.devices.DeviceManager.getHardwareProperties ( d.getDefaultState ( ) ) ; for ( com.android.sdklib.devices.State s : d.getAllStates ( ) ) { if ( s.getKeyState ( ) . equals ( KeyboardState.HIDDEN ) ) { props.put ( "hw.keyboard.lid" , com.android.sdklib.devices.DeviceManager.getBooleanVal ( true ) ) ; } } return com.android.sdklib.devices.DeviceManager.getHardwareProperties ( d.getDefaultState ( ) ) ; }

Target:
public static java.util.Map < java.lang.String , java.lang.String > getHardwareProperties ( com.android.sdklib.devices.Device d ) { java.util.Map < java.lang.String , java.lang.String > props = com.android.sdklib.devices.DeviceManager.getHardwareProperties ( d.getDefaultState ( ) ) ; for ( com.android.sdklib.devices.State s : d.getAllStates ( ) ) { if ( s.getKeyState ( ) . equals ( KeyboardState.HIDDEN ) ) { props.put ( "hw.keyboard.lid" , com.android.sdklib.devices.DeviceManager.getBooleanVal ( true ) ) ; } } return props ; }
Source:
private boolean isSyntheticCloseResourceMethod ( int access , java.lang.String name , java.lang.String desc ) { return ( ( com.google.devtools.build.android.desugar.BitFlags.isSet ( access , ( ( org.objectweb.asm.Opcodes.ACC_SYNTHETIC ) | ( org.objectweb.asm.Opcodes.ACC_STATIC ) ) ) ) && ( com.google.devtools.build.android.desugar.TryWithResourcesRewriter.CLOSE_RESOURCE_METHOD_NAME.equals ( name ) ) ) && ( com.google.devtools.build.android.desugar.TryWithResourcesRewriter.CLOSE_RESOURCE_METHOD_DESC.equals ( desc ) ) ; }

Target:
public static boolean isSyntheticCloseResourceMethod ( int access , java.lang.String name , java.lang.String desc ) { return ( ( com.google.devtools.build.android.desugar.BitFlags.isSet ( access , ( ( org.objectweb.asm.Opcodes.ACC_SYNTHETIC ) | ( org.objectweb.asm.Opcodes.ACC_STATIC ) ) ) ) && ( com.google.devtools.build.android.desugar.TryWithResourcesRewriter.CLOSE_RESOURCE_METHOD_NAME.equals ( name ) ) ) && ( com.google.devtools.build.android.desugar.TryWithResourcesRewriter.CLOSE_RESOURCE_METHOD_DESC.equals ( desc ) ) ; }
Source:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA" , "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "TLS_ECDH_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDH_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_MD5" , "SSL_RSA_WITH_RC4_128_SHA" , "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_RSA_WITH_3DES_EDE_CBC_SHA" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }

Target:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA" , "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "TLS_ECDH_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDH_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_MD5" , "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_RSA_WITH_3DES_EDE_CBC_SHA" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }
Source:
private java.awt.image.BufferedImage getImage ( @ com.android.annotations.Nullable java.io.File file ) throws java.io.IOException { if ( ( mImageCache ) == null ) { mImageCache = com.google.common.collect.Maps.newHashMap ( ) ; } else { java.awt.image.BufferedImage image = mImageCache.get ( file ) ; if ( image != null ) { return image ; } } java.awt.image.BufferedImage image = javax.imageio.ImageIO.read ( file ) ; mImageCache.put ( file , image ) ; return image ; }

Target:
private java.awt.image.BufferedImage getImage ( @ com.android.annotations.Nullable java.io.File file ) throws java.io.IOException { if ( file == null ) { return null ; } if ( ( mImageCache ) == null ) { mImageCache = com.google.common.collect.Maps.newHashMap ( ) ; } else { java.awt.image.BufferedImage image = mImageCache.get ( file ) ; if ( image != null ) { return image ; } } java.awt.image.BufferedImage image = javax.imageio.ImageIO.read ( file ) ; mImageCache.put ( file , image ) ; return image ; }
Source:
public static < T , U > T [ ] copyOf ( U [ ] original , int newLength , java.lang.Class < ? extends T [ ] > newType ) { if ( newLength < 0 ) { throw new java.lang.NegativeArraySizeException ( ) ; } return java.util.Arrays.copyOfRange ( original , 0 , newLength , newType ) ; }

Target:
public static < T > T [ ] copyOf ( T [ ] original , int newLength ) { if ( original == null ) { throw new java.lang.NullPointerException ( ) ; } if ( newLength < 0 ) { throw new java.lang.NegativeArraySizeException ( java.lang.Integer.toString ( newLength ) ) ; } return java.util.Arrays.copyOfRange ( original , 0 , newLength ) ; }
Source:
private void updateLocation ( final java.lang.String providerName , final double latitude , final double longitude ) { android.location.Location location = new android.location.Location ( providerName ) ; location.setLatitude ( latitude ) ; location.setLongitude ( longitude ) ; location.setAccuracy ( 1.0F ) ; location.setTime ( java.lang.System.currentTimeMillis ( ) ) ; location.setElapsedRealtimeNanos ( android.os.SystemClock.elapsedRealtimeNanos ( ) ) ; mManager.setTestProviderLocation ( providerName , location ) ; }

Target:
private void updateLocation ( final java.lang.String providerName , final double latitude , final double longitude ) { updateLocation ( providerName , providerName , latitude , longitude ) ; }
Source:
private void assertDomainAndVendorInfoParses ( java.lang.String expectedDomain , byte [ ] domainBytes , java.lang.String expectedVendorInfo , byte [ ] vendorInfoBytes ) throws java.lang.Exception { java.nio.ByteBuffer packet = new android.net.dhcp.DhcpPacketTest.TestDhcpPacket ( DHCP_MESSAGE_TYPE_OFFER ) . setDomainBytes ( domainBytes ) . setVendorInfoBytes ( vendorInfoBytes ) . build ( ) ; android.net.dhcp.DhcpPacket.DhcpPacket offerPacket = android.net.dhcp.DhcpPacket.DhcpPacket.decodeFullPacket ( packet , android.net.dhcp.ENCAP_BOOTP ) ; assertEquals ( expectedDomain , offerPacket.mDomainName ) ; assertEquals ( expectedVendorInfo , offerPacket.mVendorInfo ) ; }

Target:
private void assertDomainAndVendorInfoParses ( java.lang.String expectedDomain , byte [ ] domainBytes , java.lang.String expectedVendorInfo , byte [ ] vendorInfoBytes ) throws java.lang.Exception { java.nio.ByteBuffer packet = new android.net.dhcp.DhcpPacketTest.TestDhcpPacket ( DHCP_MESSAGE_TYPE_OFFER ) . setDomainBytes ( domainBytes ) . setVendorInfoBytes ( vendorInfoBytes ) . build ( ) ; android.net.dhcp.DhcpPacket.DhcpPacket offerPacket = android.net.dhcp.DhcpPacket.DhcpPacket.decodeFullPacket ( packet , android.net.dhcp.ENCAP_BOOTP ) ; org.junit.Assert.assertEquals ( expectedDomain , offerPacket.mDomainName ) ; org.junit.Assert.assertEquals ( expectedVendorInfo , offerPacket.mVendorInfo ) ; }
Source:
public void trace ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType t ) { if ( t instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) { trace ( ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( t ) ) ) ; } else if ( t instanceof com.android.jack.ir.ast.JArrayType ) { trace ( ( ( com.android.jack.ir.ast.JArrayType ) ( t ) ) . getLeafType ( ) ) ; } }

Target:
private void trace ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType t ) { if ( t instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) { trace ( ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( t ) ) ) ; } else if ( t instanceof com.android.jack.ir.ast.JArrayType ) { trace ( ( ( com.android.jack.ir.ast.JArrayType ) ( t ) ) . getLeafType ( ) ) ; } }
Source:
private com.android.internal.telephony.NitzData createValidNitzDataForTime ( android.icu.util.TimeZone timeZone , long timeMillis , boolean includeEmulatorTimeZone ) { int [ ] offsets = new int [ 2 ] ; timeZone.getOffset ( timeMillis , false , offsets ) ; int zoneOffsetMillis = offsets [ 0 ] ; int dstOffsetMillis = offsets [ 1 ] ; java.util.TimeZone emulatorTimeZone = null ; if ( includeEmulatorTimeZone ) { emulatorTimeZone = java.util.TimeZone.getTimeZone ( timeZone.getID ( ) ) ; } return com.android.internal.telephony.NitzData.createForTests ( zoneOffsetMillis , dstOffsetMillis , timeMillis , emulatorTimeZone ) ; }

Target:
private static com.android.internal.telephony.NitzData createValidNitzDataForTime ( android.icu.util.TimeZone timeZone , long timeMillis , boolean includeEmulatorTimeZone ) { int [ ] offsets = new int [ 2 ] ; timeZone.getOffset ( timeMillis , false , offsets ) ; int zoneOffsetMillis = offsets [ 0 ] ; int dstOffsetMillis = offsets [ 1 ] ; java.util.TimeZone emulatorTimeZone = null ; if ( includeEmulatorTimeZone ) { emulatorTimeZone = java.util.TimeZone.getTimeZone ( timeZone.getID ( ) ) ; } return com.android.internal.telephony.NitzData.createForTests ( zoneOffsetMillis , dstOffsetMillis , timeMillis , emulatorTimeZone ) ; }
Source:
public void testInterrupted ( ) throws java.io.IOException { java.nio.channels.Selector selector = java.nio.channels.Selector.open ( ) ; try { java.lang.Thread.currentThread ( ) . interrupt ( ) ; int count = selector.select ( ) ; assertEquals ( 0 , count ) ; assertTrue ( java.lang.Thread.currentThread ( ) . isInterrupted ( ) ) ; } finally { selector.close ( ) ; assertTrue ( java.lang.Thread.interrupted ( ) ) ; } }

Target:
public void testInterrupted ( ) throws java.io.IOException { java.nio.channels.Selector selector = java.nio.channels.Selector.open ( ) ; java.lang.Thread.currentThread ( ) . interrupt ( ) ; try { int count = selector.select ( ) ; assertEquals ( 0 , count ) ; assertTrue ( java.lang.Thread.currentThread ( ) . isInterrupted ( ) ) ; } finally { java.lang.Thread.interrupted ( ) ; selector.close ( ) ; } }
Source:
public static int Min2Print2 ( int a , int b ) { int [ ] values = new int [ ] { a , b } ; java.lang.System.err.println ( ( ( "Running Main.Min2Print2(" + ( java.util.Arrays.toString ( values ) ) ) + ")" ) ) ; return a > b ? a : b ; }

Target:
public static int Min2Print2 ( int a , int b ) { int [ ] values = new int [ ] { a , b } ; java.lang.System.out.println ( ( ( "Running Main.Min2Print2(" + ( java.util.Arrays.toString ( values ) ) ) + ")" ) ) ; return a > b ? a : b ; }
Source:
private java.lang.String applyAdbFunction ( java.lang.String functions ) { if ( functions == null ) { functions = "" ; } if ( mAdbEnabled ) { functions = android.hardware.usb.UsbManager.addFunction ( functions , UsbManager.USB_FUNCTION_ADB ) ; } else { functions = android.hardware.usb.UsbManager.removeFunction ( functions , UsbManager.USB_FUNCTION_ADB ) ; } return functions ; }

Target:
protected java.lang.String applyAdbFunction ( java.lang.String functions ) { if ( functions == null ) { functions = "" ; } if ( mAdbEnabled ) { functions = android.hardware.usb.UsbManager.addFunction ( functions , UsbManager.USB_FUNCTION_ADB ) ; } else { functions = android.hardware.usb.UsbManager.removeFunction ( functions , UsbManager.USB_FUNCTION_ADB ) ; } return functions ; }
Source:
public java.nio.ByteBuffer put ( int i , byte x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } put ( ix ( checkIndex ( i ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer put ( int i , byte x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } put ( ix ( checkIndex ( i ) ) , x ) ; return this ; }
Source:
public void incrementalBuildFromFolder ( ) throws java.lang.Exception { startOutRedirection ( ) ; startErrRedirection ( ) ; com.android.jack.Options options = com.android.jack.TestTools.buildCommandLineArgs ( testingFolder ) ; options.setIncrementalFolder ( getCompilerStateFolder ( ) ) ; com.android.jack.experimental.incremental.IncrementalTestingEnvironment.compileSourceToDex ( options , sourceFolder , com.android.jack.TestTools.getClasspathAsString ( com.android.jack.TestTools.getDefaultBootclasspath ( ) ) , dexFile ) ; java.lang.Thread.sleep ( 1000 ) ; java.lang.System.setOut ( new java.io.PrintStream ( new java.io.FileOutputStream ( java.io.FileDescriptor.out ) ) ) ; java.lang.System.setErr ( new java.io.PrintStream ( new java.io.FileOutputStream ( java.io.FileDescriptor.err ) ) ) ; }

Target:
public void incrementalBuildFromFolder ( ) throws java.lang.Exception { startOutRedirection ( ) ; startErrRedirection ( ) ; com.android.jack.Options options = com.android.jack.TestTools.buildCommandLineArgs ( testingFolder ) ; options.setIncrementalFolder ( getCompilerStateFolder ( ) ) ; com.android.jack.experimental.incremental.IncrementalTestingEnvironment.compileSourceToDex ( options , sourceFolder , com.android.jack.TestTools.getClasspathAsString ( com.android.jack.TestTools.getDefaultBootclasspath ( ) ) , testingFolder ) ; java.lang.Thread.sleep ( 1000 ) ; java.lang.System.setOut ( new java.io.PrintStream ( new java.io.FileOutputStream ( java.io.FileDescriptor.out ) ) ) ; java.lang.System.setErr ( new java.io.PrintStream ( new java.io.FileOutputStream ( java.io.FileDescriptor.err ) ) ) ; }
Source:
public void testDensityOnlyWithNoMatch ( ) { java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 320 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 480 ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertNull ( result ) ; }

Target:
public void testDensityOnlyWithNoMatch ( ) { java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 320 , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 480 , 2 ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertNull ( result ) ; }
Source:
private void runPreloadDensityTestForDrawable ( int drawableResId , boolean isConstantSize ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final android.content.res.Resources res = mResources ; final int densityDpi = res.getConfiguration ( ) . densityDpi ; try { runPreloadDensityTestForDrawableInner ( res , drawableResId , isConstantSize ) ; } finally { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , densityDpi ) ; } }

Target:
private void runPreloadDensityTestForDrawable ( int drawableResId , boolean isConstantSize ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { final android.content.res.Resources res = mResources ; final int densityDpi = res.getConfiguration ( ) . densityDpi ; try { runPreloadDensityTestForDrawableInner ( res , densityDpi , drawableResId , isConstantSize ) ; } finally { android.graphics.drawable.cts.DrawableTestUtils.setResourcesDensity ( res , densityDpi ) ; } }
Source:
private static void testGcAndDump ( ) throws java.lang.Exception { Main.Allocator allocator = new Main.Allocator ( ) ; Main.Dumper dumper = new Main.Dumper ( allocator ) ; allocator.start ( ) ; dumper.start ( ) ; try { allocator.join ( ) ; dumper.join ( ) ; } catch ( java.lang.InterruptedException e ) { java.lang.System.err.println ( "join interrupted" ) ; } }

Target:
private static void testGcAndDump ( ) throws java.lang.Exception { Main.Allocator allocator = new Main.Allocator ( ) ; Main.Dumper dumper = new Main.Dumper ( allocator ) ; allocator.start ( ) ; dumper.start ( ) ; try { allocator.join ( ) ; dumper.join ( ) ; } catch ( java.lang.InterruptedException e ) { java.lang.System.out.println ( "join interrupted" ) ; } }