auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void stopAdvertising ( com.android.bluetooth.gatt.AdvertiseClient client ) { if ( mAdapterService.isMultiAdvertisementSupported ( ) ) { gattClientDisableAdvNative ( client.advertiserId ) ; } else { gattAdvertiseNative ( client.advertiserId , false ) ; try { mService.onAdvertiseInstanceDisabled ( AdvertiseCallback.ADVERTISE_SUCCESS , client.advertiserId ) ; } catch ( android.os.RemoteException e ) { android.util.Log.d ( com.android.bluetooth.gatt.AdvertiseManager.TAG , "failed onAdvertiseInstanceDisabled" , e ) ; } } }

Target:
void stopAdvertising ( com.android.bluetooth.gatt.AdvertiseClient client ) { if ( mAdapterService.isMultiAdvertisementSupported ( ) ) { gattClientEnableAdvNative ( client.advertiserId , false , 0 ) ; } else { gattAdvertiseNative ( client.advertiserId , false ) ; try { mService.onAdvertiseInstanceEnabled ( AdvertiseCallback.ADVERTISE_SUCCESS , client.advertiserId , false ) ; } catch ( android.os.RemoteException e ) { android.util.Log.d ( com.android.bluetooth.gatt.AdvertiseManager.TAG , "failed onAdvertiseInstanceDisabled" , e ) ; } } }
Source:
public void testKeyStore_IsKeyEntry_CA_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , android.security.AndroidKeyStoreTest.FAKE_CA_1 , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; assertFalse ( "Should return false for CA certificate" , mKeyStore.isKeyEntry ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) ; }

Target:
public void testKeyStore_ContainsAliases_CAOnly_Encrypted_Success ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.CA_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_2 ) ) , android.security.AndroidKeyStoreTest.FAKE_RSA_CA_1 , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; assertTrue ( "Should contain added CA certificate" , mKeyStore.containsAlias ( android.security.AndroidKeyStoreTest.TEST_ALIAS_2 ) ) ; }
Source:
public void unloadPlugIns ( ) { if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_INITIALIZED ) ) { _unloadPlugIns ( mUniqueId ) ; mCurrentState = android.drm.DrmManagerClient.STATE_UNINITIALIZED ; } }

Target:
public int unloadPlugIns ( ) { int result = android.drm.DrmManagerClient.ERROR_UNKNOWN ; if ( ( android.drm.DrmManagerClient.STATE_INITIALIZED ) == ( getState ( ) ) ) { if ( null != ( mEventHandler ) ) { android.os.Message msg = mEventHandler.obtainMessage ( android.drm.DrmManagerClient.ACTION_FINALIZE ) ; result = ( mEventHandler.sendMessage ( msg ) ) ? android.drm.DrmManagerClient.ERROR_NONE : result ; } } else { result = android.drm.DrmManagerClient.ERROR_NONE ; } return result ; }
Source:
public boolean equals ( java.lang.Object o ) { if ( ! ( o instanceof com.android.bluetooth.pbapclient.PhonebookEntry.Phone ) ) { return false ; } com.android.bluetooth.pbapclient.PhonebookEntry.Phone p = ( ( com.android.bluetooth.pbapclient.PhonebookEntry.Phone ) ( o ) ) ; return ( ( ( number ) == ( p.number ) ) || ( ( ( number ) != null ) && ( number.equals ( p.number ) ) ) ) && ( ( type ) == ( p.type ) ) ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ! ( o instanceof com.android.bluetooth.pbapclient.PhonebookEntry.Phone ) ) { return false ; } com.android.bluetooth.pbapclient.PhonebookEntry.Phone p = ( ( com.android.bluetooth.pbapclient.PhonebookEntry.Phone ) ( o ) ) ; return ( ( java.util.Objects.equals ( number , p.number ) ) || ( ( ( number ) != null ) && ( number.equals ( p.number ) ) ) ) && ( ( type ) == ( p.type ) ) ; }
Source:
public static java.util.List < org.jetbrains.plugins.github.api.GithubBranch > getRepoBranches ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.api.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String user , @ org.jetbrains.annotations.NotNull java.lang.String repo ) throws java.io.IOException { java.lang.String path = ( ( ( ( "/repos/" + user ) + "/" ) + repo ) + "/branches?" ) + ( org.jetbrains.plugins.github.api.GithubApiUtil.PER_PAGE ) ; org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubBranch > request = new org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubBranch > ( path , org.jetbrains.plugins.github.api.GithubBranch.class , org.jetbrains.plugins.github.api.GithubBranchRaw [ ] . class ) ; return request.getAll ( auth ) ; }

Target:
public static java.util.List < org.jetbrains.plugins.github.api.GithubBranch > getRepoBranches ( @ org.jetbrains.annotations.NotNull org.jetbrains.plugins.github.util.GithubAuthData auth , @ org.jetbrains.annotations.NotNull java.lang.String user , @ org.jetbrains.annotations.NotNull java.lang.String repo ) throws java.io.IOException { java.lang.String path = ( ( ( ( "/repos/" + user ) + "/" ) + repo ) + "/branches?" ) + ( org.jetbrains.plugins.github.api.GithubApiUtil.PER_PAGE ) ; org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubBranch > request = new org.jetbrains.plugins.github.api.GithubApiUtil.PagedRequest < org.jetbrains.plugins.github.api.GithubBranch > ( path , org.jetbrains.plugins.github.api.GithubBranch.class , org.jetbrains.plugins.github.api.GithubBranchRaw [ ] . class ) ; return request.getAll ( auth ) ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setResult ( com.android.cts.verifier.sensors.RESULT_CANCELED ) ; mSensorManager = ( ( android.hardware.SensorManager ) ( getApplicationContext ( ) . getSystemService ( Context.SENSOR_SERVICE ) ) ) ; com.android.cts.verifier.sensors.AccelerometerTestRenderer renderer = new com.android.cts.verifier.sensors.AccelerometerTestRenderer ( this ) ; mListener = renderer ; setContentView ( R.layout.pass_fail_gl ) ; setInfoResources ( R.string.snsr_accel_test , R.string.snsr_accel_test_info , ( - 1 ) ) ; mGLSurfaceView = ( ( android.opengl.GLSurfaceView ) ( findViewById ( R.id.gl_surface_view ) ) ) ; mGLSurfaceView.setRenderer ( renderer ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; mSensorManager = ( ( android.hardware.SensorManager ) ( getApplicationContext ( ) . getSystemService ( Context.SENSOR_SERVICE ) ) ) ; com.android.cts.verifier.sensors.AccelerometerTestRenderer renderer = new com.android.cts.verifier.sensors.AccelerometerTestRenderer ( this ) ; mListener = renderer ; setContentView ( R.layout.pass_fail_gl ) ; setPassFailButtonClickListeners ( ) ; setInfoResources ( R.string.snsr_accel_test , R.string.snsr_accel_test_info , ( - 1 ) ) ; mGLSurfaceView = ( ( android.opengl.GLSurfaceView ) ( findViewById ( R.id.gl_surface_view ) ) ) ; mGLSurfaceView.setRenderer ( renderer ) ; }
Source:
private void notifyDeviceDisconnected ( com.android.ddmlib.IDevice device ) { com.android.hierarchyviewerlib.models.DeviceSelectionModel.IWindowChangeListener [ ] listeners = getWindowChangeListenerList ( ) ; if ( listeners != null ) { for ( int i = 0 ; i < ( listeners.length ) ; i ++ ) { listeners [ i ] . deviceDisconnected ( device ) ; } } }

Target:
private void notifySelectionChanged ( com.android.hierarchyviewerlib.device.IHvDevice device , com.android.hierarchyviewerlib.models.Window window ) { com.android.hierarchyviewerlib.models.DeviceSelectionModel.IWindowChangeListener [ ] listeners = getWindowChangeListenerList ( ) ; if ( listeners != null ) { for ( int i = 0 ; i < ( listeners.length ) ; i ++ ) { listeners [ i ] . selectionChanged ( device , window ) ; } } }
Source:
protected void onRecordLoaded ( ) { mRecordsToLoad -= 1 ; if ( DBG ) log ( ( ( ( "onRecordLoaded " + ( mRecordsToLoad ) ) + " requested: " ) + ( mRecordsRequested ) ) ) ; if ( getRecordsLoaded ( ) ) { onAllRecordsLoaded ( ) ; } else if ( getLockedRecordsLoaded ( ) ) { onLockedAllRecordsLoaded ( ) ; } else if ( ( mRecordsToLoad ) < 0 ) { loge ( "recordsToLoad <0, programmer error suspected" ) ; mRecordsToLoad = 0 ; } }

Target:
protected void onRecordLoaded ( ) { mRecordsToLoad -= 1 ; if ( DBG ) log ( ( ( ( "onRecordLoaded " + ( mRecordsToLoad ) ) + " requested: " ) + ( mRecordsRequested ) ) ) ; if ( getRecordsLoaded ( ) ) { onAllRecordsLoaded ( ) ; } else if ( ( getLockedRecordsLoaded ( ) ) || ( getNetworkLockedRecordsLoaded ( ) ) ) { onLockedAllRecordsLoaded ( ) ; } else if ( ( mRecordsToLoad ) < 0 ) { loge ( "recordsToLoad <0, programmer error suspected" ) ; mRecordsToLoad = 0 ; } }
Source:
public com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder getResourceFolder ( com.android.io.IAbstractFolder folder ) { for ( java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder > list : mFolderMap.values ( ) ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder resFolder : list ) { com.android.io.IAbstractFolder wrapper = resFolder.getFolder ( ) ; if ( wrapper.equals ( folder ) ) { return resFolder ; } } } return null ; }

Target:
public com.android.ide.common.resources.ResourceFolder getResourceFolder ( com.android.io.IAbstractFolder folder ) { for ( java.util.List < com.android.ide.common.resources.ResourceFolder > list : mFolderMap.values ( ) ) { for ( com.android.ide.common.resources.ResourceFolder resFolder : list ) { com.android.io.IAbstractFolder wrapper = resFolder.getFolder ( ) ; if ( wrapper.equals ( folder ) ) { return resFolder ; } } } return null ; }
Source:
void unbind ( ) { if ( ( connection ) == null ) { return ; } ( unbindCount ) ++ ; lastUnbindMillis = java.lang.System.currentTimeMillis ( ) ; carrierPackage = null ; carrierServiceClass = null ; com.android.internal.telephony.CarrierServiceBindHelper.log ( "Unbinding from carrier app" ) ; mContext.unbindService ( connection ) ; connection = null ; }

Target:
private void performImmediateUnbind ( ) { ( unbindCount ) ++ ; lastUnbindMillis = java.lang.System.currentTimeMillis ( ) ; carrierPackage = null ; carrierServiceClass = null ; com.android.internal.telephony.CarrierServiceBindHelper.log ( "Unbinding from carrier app" ) ; mContext.unbindService ( connection ) ; connection = null ; mUnbindScheduledUptimeMillis = - 1 ; }
Source:
protected org.bouncycastle.asn1.x9.X9ECParameters createParameters ( ) { org.bouncycastle.math.ec.ECCurve curve = org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves.configureCurve ( new org.bouncycastle.math.ec.ECCurve.Fp ( new java.math.BigInteger ( "D35E472036BC4FB7E13C785ED201E065F98FCFA6F6F40DEF4F92B9EC7893EC28FCD412B1F1B32E27" , 16 ) , new java.math.BigInteger ( "D35E472036BC4FB7E13C785ED201E065F98FCFA6F6F40DEF4F92B9EC7893EC28FCD412B1F1B32E24" , 16 ) , new java.math.BigInteger ( "A7F561E038EB1ED560B3D147DB782013064C19F27ED27C6780AAF77FB8A547CEB5B4FEF422340353" , 16 ) ) ) ; return new org.bouncycastle.asn1.x9.X9ECParameters ( curve , curve.decodePoint ( org.bouncycastle.util.encoders.Hex.decode ( "04925BE9FB01AFC6FB4D3E7D4990010F813408AB106C4F09CB7EE07868CC136FFF3357F624A21BED5263BA3A7A27483EBF6671DBEF7ABB30EBEE084E58A0B077AD42A5A0989D1EE71B1B9BC0455FB0D2C3" ) ) , new java.math.BigInteger ( "D35E472036BC4FB7E13C785ED201E065F98FCFA5B68F12A32D482EC7EE8658E98691555B44C59311" , 16 ) , new java.math.BigInteger ( "01" , 16 ) ) ; }

Target:
protected org.bouncycastle.asn1.x9.X9ECParameters createParameters ( ) { java.math.BigInteger n = new java.math.BigInteger ( "AADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330870553E5C414CA92619418661197FAC10471DB1D381085DDADDB58796829CA90069" , 16 ) ; java.math.BigInteger h = new java.math.BigInteger ( "01" , 16 ) ; org.bouncycastle.math.ec.ECCurve curve = org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves.configureCurve ( new org.bouncycastle.math.ec.ECCurve.Fp ( new java.math.BigInteger ( "AADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA703308717D4D9B009BC66842AECDA12AE6A380E62881FF2F2D82C68528AA6056583A48F3" , 16 ) , new java.math.BigInteger ( "7830A3318B603B89E2327145AC234CC594CBDD8D3DF91610A83441CAEA9863BC2DED5D5AA8253AA10A2EF1C98B9AC8B57F1117A72BF2C7B9E7C1AC4D77FC94CA" , 16 ) , new java.math.BigInteger ( "3DF91610A83441CAEA9863BC2DED5D5AA8253AA10A2EF1C98B9AC8B57F1117A72BF2C7B9E7C1AC4D77FC94CADC083E67984050B75EBAE5DD2809BD638016F723" , 16 ) , n , h ) ) ; return new org.bouncycastle.asn1.x9.X9ECParameters ( curve , curve.decodePoint ( org.bouncycastle.util.encoders.Hex.decode ( "0481AEE4BDD82ED9645A21322E9C4C6A9385ED9F70B5D916C1B43B62EEF4D0098EFF3B1F78E2D0D48D50D1687B93B97D5F7C6D5047406A5E688B352209BCB9F8227DDE385D566332ECC0EABFA9CF7822FDF209F70024A57B1AA000C55B881F8111B2DCDE494A5F485E5BCA4BD88A2763AED1CA2B2FA8F0540678CD1E0F3AD80892" ) ) , n , h ) ; }
Source:
static com.android.dialer.calllog.datasources.DataSources provideCallLogDataSources ( com.android.dialer.calllog.datasources.systemcalllog.SystemCallLogDataSource systemCallLogDataSource , com.android.dialer.calllog.datasources.phonelookup.PhoneLookupDataSource phoneLookupDataSource ) { com.google.common.collect.ImmutableList < com.android.dialer.calllog.datasources.CallLogDataSource > allDataSources = com.google.common.collect.ImmutableList.of ( systemCallLogDataSource , phoneLookupDataSource ) ; return new com.android.dialer.calllog.datasources.DataSources ( ) { @ java.lang.Override public com.android.dialer.calllog.datasources.systemcalllog.SystemCallLogDataSource getSystemCallLogDataSource ( ) { return systemCallLogDataSource ; } @ java.lang.Override public com.google.common.collect.ImmutableList < com.android.dialer.calllog.datasources.CallLogDataSource > getDataSourcesIncludingSystemCallLog ( ) { return allDataSources ; } @ java.lang.Override public com.google.common.collect.ImmutableList < com.android.dialer.calllog.datasources.CallLogDataSource > getDataSourcesExcludingSystemCallLog ( ) { return allDataSources.subList ( 1 , allDataSources.size ( ) ) ; } } ; }

Target:
static com.android.dialer.calllog.datasources.DataSources provideCallLogDataSources ( com.android.dialer.calllog.datasources.systemcalllog.SystemCallLogDataSource systemCallLogDataSource , com.android.dialer.calllog.datasources.phonelookup.PhoneLookupDataSource phoneLookupDataSource , com.android.dialer.calllog.datasources.voicemail.VoicemailDataSource voicemailDataSource ) { com.google.common.collect.ImmutableList < com.android.dialer.calllog.datasources.CallLogDataSource > allDataSources = com.google.common.collect.ImmutableList.of ( systemCallLogDataSource , phoneLookupDataSource , voicemailDataSource ) ; return new com.android.dialer.calllog.datasources.DataSources ( ) { @ java.lang.Override public com.android.dialer.calllog.datasources.systemcalllog.SystemCallLogDataSource getSystemCallLogDataSource ( ) { return systemCallLogDataSource ; } @ java.lang.Override public com.google.common.collect.ImmutableList < com.android.dialer.calllog.datasources.CallLogDataSource > getDataSourcesIncludingSystemCallLog ( ) { return allDataSources ; } @ java.lang.Override public com.google.common.collect.ImmutableList < com.android.dialer.calllog.datasources.CallLogDataSource > getDataSourcesExcludingSystemCallLog ( ) { return allDataSources.subList ( 1 , allDataSources.size ( ) ) ; } } ; }
Source:
public static com.android.dx.rop.annotation.Annotation makeInnerClass ( com.android.dx.rop.cst.CstString name , int accessFlags ) { com.android.dx.rop.annotation.Annotation result = new com.android.dx.rop.annotation.Annotation ( com.android.dx.dex.file.AnnotationUtils.INNER_CLASS_TYPE , SYSTEM ) ; com.android.dx.rop.cst.Constant nameCst = ( name != null ) ? name : com.android.dx.rop.cst.CstKnownNull.THE_ONE ; result.put ( new com.android.dx.rop.annotation.NameValuePair ( com.android.dx.dex.file.AnnotationUtils.NAME_STRING , nameCst ) ) ; result.put ( new com.android.dx.rop.annotation.NameValuePair ( com.android.dx.dex.file.AnnotationUtils.ACCESS_FLAGS_STRING , com.android.dx.rop.cst.CstInteger.make ( accessFlags ) ) ) ; result.setImmutable ( ) ; return result ; }

Target:
public static com.android.dx.rop.annotation.Annotation makeInnerClass ( com.android.dx.rop.cst.CstString name , int accessFlags ) { com.android.dx.rop.annotation.Annotation result = new com.android.dx.rop.annotation.Annotation ( com.android.dx.dex.file.AnnotationUtils.INNER_CLASS_TYPE , com.android.dx.rop.annotation.AnnotationVisibility.SYSTEM ) ; com.android.dx.rop.cst.Constant nameCst = ( name != null ) ? name : com.android.dx.rop.cst.CstKnownNull.THE_ONE ; result.put ( new com.android.dx.rop.annotation.NameValuePair ( com.android.dx.dex.file.AnnotationUtils.NAME_STRING , nameCst ) ) ; result.put ( new com.android.dx.rop.annotation.NameValuePair ( com.android.dx.dex.file.AnnotationUtils.ACCESS_FLAGS_STRING , com.android.dx.rop.cst.CstInteger.make ( accessFlags ) ) ) ; result.setImmutable ( ) ; return result ; }
Source:
public com.android.ide.common.api.Rect set ( org.eclipse.swt.graphics.Rectangle swtRect ) { set ( swtRect.x , swtRect.y , swtRect.width , swtRect.height ) ; return this ; }

Target:
public int hashCode ( ) { int hc = x ; hc ^= ( ( ( y ) > > 8 ) & 16777215 ) | ( ( ( y ) & 255 ) << 24 ) ; hc ^= ( ( ( w ) > > 16 ) & 65535 ) | ( ( ( w ) & 65535 ) << 16 ) ; hc ^= ( ( ( h ) > > 24 ) & 255 ) | ( ( ( h ) & 16777215 ) << 8 ) ; return hc ; }
Source:
private void setAndBroadcastNetworkSetTimeZone ( java.lang.String zoneId ) { if ( DBG ) log ( ( "setAndBroadcastNetworkSetTimeZone: setTimeZone=" + zoneId ) ) ; android.app.AlarmManager alarm = ( ( android.app.AlarmManager ) ( phone.getContext ( ) . getSystemService ( Context.ALARM_SERVICE ) ) ) ; alarm.setTimeZone ( zoneId ) ; android.content.Intent intent = new android.content.Intent ( com.android.internal.telephony.TelephonyIntents.ACTION_NETWORK_SET_TIMEZONE ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REPLACE_PENDING ) ; intent.putExtra ( "time-zone" , zoneId ) ; phone.getContext ( ) . sendStickyBroadcast ( intent ) ; }

Target:
private void setAndBroadcastNetworkSetTime ( long time ) { if ( DBG ) log ( ( ( "setAndBroadcastNetworkSetTime: time=" + time ) + "ms" ) ) ; android.os.SystemClock.setCurrentTimeMillis ( time ) ; android.content.Intent intent = new android.content.Intent ( com.android.internal.telephony.TelephonyIntents.ACTION_NETWORK_SET_TIME ) ; intent.addFlags ( Intent.FLAG_RECEIVER_REPLACE_PENDING ) ; intent.putExtra ( "time" , time ) ; phone.getContext ( ) . sendStickyBroadcastAsUser ( intent , UserHandle.ALL ) ; }
Source:
public com.android.timezone.distro.TimeZoneDistro build ( ) throws com.android.timezone.distro.DistroException { if ( ( distroVersion ) == null ) { throw new java.lang.IllegalStateException ( "Missing distroVersion" ) ; } if ( ( icuData ) == null ) { throw new java.lang.IllegalStateException ( "Missing icuData" ) ; } if ( ( tzData ) == null ) { throw new java.lang.IllegalStateException ( "Missing tzData" ) ; } return buildUnvalidated ( ) ; }

Target:
public com.android.timezone.distro.TimeZoneDistro build ( ) throws com.android.timezone.distro.DistroException { return new com.android.timezone.distro.TimeZoneDistro ( buildBytes ( ) ) ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.InstanceOfExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JExpression expr = pop ( x.expression ) ; com.android.jack.ir.ast.JReferenceType testType = ( ( com.android.jack.ir.ast.JReferenceType ) ( getTypeMap ( ) . get ( x.type.resolvedType ) ) ) ; push ( new com.android.jack.ir.ast.JInstanceOf ( info , testType , expr ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.InstanceOfExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; com.android.jack.ir.ast.JExpression expr = pop ( x.expression ) ; com.android.jack.ir.ast.JReferenceType testType = ( ( com.android.jack.ir.ast.JReferenceType ) ( getTypeMap ( ) . get ( x.type.resolvedType ) ) ) ; push ( new com.android.jack.ir.ast.JInstanceOf ( info , testType , expr ) ) ; } catch ( com.android.jack.ir.ast.JTypeLookupException e ) { throw translateException ( x , e ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public int getTimeout ( ) { int timeout = getProperty ( com.android.jack.server.ConfigFile.TIME_OUT_PROPERTY , java.lang.Integer.valueOf ( 7200 ) , new com.android.sched.util.codec.IntCodec ( ) ) . intValue ( ) ; if ( ( timeout < 0 ) && ( timeout != ( com.android.jack.server.ConfigFile.TIMEOUT_DISABLED ) ) ) { com.android.jack.server.ConfigFile.logger.log ( java.util.logging.Level.WARNING , ( ( ( "Invalid config value for " + ( com.android.jack.server.ConfigFile.TIME_OUT_PROPERTY ) ) + ": " ) + timeout ) ) ; timeout = com.android.jack.server.ConfigFile.TIMEOUT_DISABLED ; } return timeout ; }

Target:
private int getDelay ( java.lang.String property , int defaultValue ) { int delay = getProperty ( property , java.lang.Integer.valueOf ( defaultValue ) , new com.android.sched.util.codec.IntCodec ( ) ) . intValue ( ) ; if ( ( delay < 0 ) && ( delay != ( com.android.jack.server.ConfigFile.TIME_DISABLED_VALUE ) ) ) { com.android.jack.server.ConfigFile.logger.log ( java.util.logging.Level.WARNING , ( ( ( "Invalid config value for " + property ) + ": " ) + delay ) ) ; delay = com.android.jack.server.ConfigFile.TIME_DISABLED_VALUE ; } return delay ; }
Source:
public void run ( ) { com.android.ide.eclipse.adt.internal.launch.DeviceChooserDialog dialog = new com.android.ide.eclipse.adt.internal.launch.DeviceChooserDialog ( com.android.ide.eclipse.adt.AdtPlugin.getDisplay ( ) . getActiveShell ( ) , response , manifestData.getPackage ( ) , projectTarget , minSdkVersion ) ; if ( ( dialog.open ( ) ) == ( org.eclipse.jface.dialogs.Dialog.OK ) ) { com.android.ide.eclipse.adt.internal.launch.DeviceChoiceCache.put ( configName , response ) ; continueLaunch [ 0 ] = true ; } }

Target:
public void run ( ) { com.android.ide.eclipse.adt.internal.launch.DeviceChooserDialog dialog = new com.android.ide.eclipse.adt.internal.launch.DeviceChooserDialog ( com.android.ide.eclipse.adt.AdtPlugin.getDisplay ( ) . getActiveShell ( ) , response , manifestData.getPackage ( ) , projectTarget , minSdkVersion , false ) ; if ( ( dialog.open ( ) ) == ( org.eclipse.jface.dialogs.Dialog.OK ) ) { com.android.ide.eclipse.adt.internal.launch.AndroidLaunchController.updateLaunchConfigWithLastUsedDevice ( config , response ) ; continueLaunch [ 0 ] = true ; } }
Source:
public android.net.Uri insert ( android.net.Uri uri , android.content.ContentValues values ) { android.database.sqlite.SQLiteDatabase db = mOpenHelper.getWritableDatabase ( ) ; long id = db.insert ( com.android.cts.verifier.TestResultsProvider.TABLE_NAME , null , values ) ; getContext ( ) . getContentResolver ( ) . notifyChange ( uri , null ) ; return android.net.Uri.withAppendedPath ( com.android.cts.verifier.TestResultsProvider.CONTENT_URI , ( "" + id ) ) ; }

Target:
public android.net.Uri insert ( android.net.Uri uri , android.content.ContentValues values ) { android.database.sqlite.SQLiteDatabase db = mOpenHelper.getWritableDatabase ( ) ; long id = db.insert ( com.android.cts.verifier.TestResultsProvider.TABLE_NAME , null , values ) ; getContext ( ) . getContentResolver ( ) . notifyChange ( uri , null ) ; return android.net.Uri.withAppendedPath ( com.android.cts.verifier.TestResultsProvider.RESULTS_CONTENT_URI , ( "" + id ) ) ; }
Source:
final void put ( short [ ] src , int srcOffset , int shortCount ) { int byteCount = checkPutBounds ( SizeOf.SHORT , src.length , srcOffset , shortCount ) ; this . block.pokeShortArray ( ( ( offset ) + ( position ) ) , src , srcOffset , shortCount , order.needsSwap ) ; position += byteCount ; }

Target:
final void put ( short [ ] src , int srcOffset , int shortCount ) { checkNotFreed ( ) ; int byteCount = checkPutBounds ( SizeOf.SHORT , src.length , srcOffset , shortCount ) ; this . block.pokeShortArray ( ( ( offset ) + ( position ) ) , src , srcOffset , shortCount , order.needsSwap ) ; position += byteCount ; }
Source:
private void setupFeature ( android.telephony.ims.feature.ImsFeature f , int slotId , int featureType , com.android.ims.internal.IImsFeatureStatusCallback c ) { f.setContext ( this ) ; f.setSlotId ( slotId ) ; f.addImsFeatureStatusCallback ( c ) ; addImsFeature ( slotId , featureType , f ) ; }

Target:
private void setupFeature ( android.telephony.ims.feature.ImsFeature f , int slotId , int featureType , com.android.ims.internal.IImsFeatureStatusCallback c ) { f.setContext ( this ) ; f.setSlotId ( slotId ) ; f.addImsFeatureStatusCallback ( c ) ; addImsFeature ( slotId , featureType , f ) ; f.onFeatureReady ( ) ; }
Source:
public java.util.Set < java.lang.Class < ? super T > > rawTypes ( ) { @ java.lang.SuppressWarnings ( value = { "unchecked" , "rawtypes" } ) com.google.common.collect.ImmutableList < java.lang.Class < ? super T > > collectedTypes = ( ( com.google.common.collect.ImmutableList ) ( com.google.common.reflect.TypeToken.TypeCollector.FOR_RAW_TYPE.collectTypes ( getImmediateRawTypes ( ) ) ) ) ; return com.google.common.collect.FluentIterable.from ( collectedTypes ) . filter ( new com.google.common.base.Predicate < java.lang.Class < ? > > ( ) { @ java.lang.Override public boolean apply ( java.lang.Class < ? > type ) { return type.isInterface ( ) ; } } ) . toImmutableSet ( ) ; }

Target:
public java.util.Set < java.lang.Class < ? super T > > rawTypes ( ) { @ java.lang.SuppressWarnings ( value = { "unchecked" , "rawtypes" } ) com.google.common.collect.ImmutableList < java.lang.Class < ? super T > > collectedTypes = ( ( com.google.common.collect.ImmutableList ) ( com.google.common.reflect.TypeToken.TypeCollector.FOR_RAW_TYPE.collectTypes ( getImmediateRawTypes ( ) ) ) ) ; return com.google.common.collect.FluentIterable.from ( collectedTypes ) . filter ( new com.google.common.base.Predicate < java.lang.Class < ? > > ( ) { @ java.lang.Override public boolean apply ( java.lang.Class < ? > type ) { return type.isInterface ( ) ; } } ) . toSet ( ) ; }
Source:
public void testBasicCycle ( ) { com.android.tools.perflib.heap.analysis.Snapshot snapshot = new com.android.tools.perflib.heap.analysis.SnapshotBuilder ( 3 ) . addReferences ( 1 , 2 ) . addReferences ( 2 , 3 ) . addReferences ( 3 , 1 ) . addRoot ( 1 ) . getSnapshot ( ) ; assertEquals ( 6 , snapshot.findReference ( 1 ) . getCompositeSize ( ) ) ; assertEquals ( 6 , snapshot.findReference ( 2 ) . getCompositeSize ( ) ) ; assertEquals ( 6 , snapshot.findReference ( 3 ) . getCompositeSize ( ) ) ; }

Target:
public void testBasicCycle ( ) { com.android.tools.perflib.heap.analysis.Snapshot snapshot = new com.android.tools.perflib.heap.analysis.SnapshotBuilder ( 3 ) . addReferences ( 1 , 2 ) . addReferences ( 2 , 3 ) . addReferences ( 3 , 1 ) . addRoot ( 1 ) . getSnapshot ( ) ; assertEquals ( 6 , snapshot.findInstance ( 1 ) . getCompositeSize ( ) ) ; assertEquals ( 6 , snapshot.findInstance ( 2 ) . getCompositeSize ( ) ) ; assertEquals ( 6 , snapshot.findInstance ( 3 ) . getCompositeSize ( ) ) ; }
Source:
public void propertyChange ( org.eclipse.core.runtime.Preferences.PropertyChangeEvent event ) { com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) . loadValues ( event ) ; if ( AdtPrefs.PREFS_SDK_DIR.equals ( event.getProperty ( ) ) ) { com.android.ide.eclipse.ddms.DdmsPlugin.setAdb ( com.android.ide.eclipse.adt.AdtPlugin.getOsAbsoluteAdb ( ) , true ) ; if ( checkSdkLocationAndId ( ) ) { reparseSdk ( ) ; } } }

Target:
public void propertyChange ( org.eclipse.core.runtime.Preferences.PropertyChangeEvent event ) { com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) . loadValues ( event ) ; if ( AdtPrefs.PREFS_SDK_DIR.equals ( event.getProperty ( ) ) ) { com.android.ide.eclipse.ddms.DdmsPlugin.setAdb ( com.android.ide.eclipse.adt.AdtPlugin.getOsAbsoluteAdb ( ) , true ) ; com.android.ide.eclipse.hierarchyviewer.HierarchyViewerPlugin.setAdb ( com.android.ide.eclipse.adt.AdtPlugin.getOsAbsoluteAdb ( ) , true ) ; if ( checkSdkLocationAndId ( ) ) { reparseSdk ( ) ; } } }
Source:
public void onShow ( android.content.DialogInterface dialog ) { mDialogTextField = ( ( android.widget.EditText ) ( alertDialog.findViewById ( R.id.fingerprint_rename_field ) ) ) ; java.lang.CharSequence name = ( ( mFingerName ) == null ) ? mFp.getName ( ) : mFingerName ; mDialogTextField.setText ( name ) ; if ( ( mTextHadFocus ) == null ) { mDialogTextField.selectAll ( ) ; } else { mDialogTextField.setSelection ( mTextSelectionStart , mTextSelectionEnd ) ; } }

Target:
public void onShow ( android.content.DialogInterface dialog ) { mDialogTextField = ( ( android.widget.EditText ) ( mAlertDialog.findViewById ( R.id.fingerprint_rename_field ) ) ) ; java.lang.CharSequence name = ( ( mFingerName ) == null ) ? mFp.getName ( ) : mFingerName ; mDialogTextField.setText ( name ) ; if ( ( mTextHadFocus ) == null ) { mDialogTextField.selectAll ( ) ; } else { mDialogTextField.setSelection ( mTextSelectionStart , mTextSelectionEnd ) ; } if ( mDeleteInProgress ) { mAlertDialog.getButton ( AlertDialog.BUTTON_NEGATIVE ) . setEnabled ( false ) ; } }
Source:
public void setTestCollection ( boolean collect ) { if ( collect ) { setLogOnly ( true ) ; setMaxTimeToOutputResponse ( com.android.ddmlib.testrunner.RemoteAndroidTestRunner.TEST_COLLECTION_TIMEOUT , java.util.concurrent.TimeUnit.MILLISECONDS ) ; if ( ( getApiLevel ( ) ) < 16 ) { addInstrumentationArg ( com.android.ddmlib.testrunner.RemoteAndroidTestRunner.DELAY_MSEC_ARG_NAME , "15" ) ; } } else { setLogOnly ( false ) ; setMaxTimeToOutputResponse ( mMaxTimeToOutputResponse , java.util.concurrent.TimeUnit.MILLISECONDS ) ; if ( ( getApiLevel ( ) ) < 16 ) { removeInstrumentationArg ( com.android.ddmlib.testrunner.RemoteAndroidTestRunner.DELAY_MSEC_ARG_NAME ) ; } } }

Target:
public void setTestCollection ( boolean collect ) { if ( collect ) { setLogOnly ( true ) ; setMaxTimeToOutputResponse ( com.android.ddmlib.testrunner.RemoteAndroidTestRunner.TEST_COLLECTION_TIMEOUT , java.util.concurrent.TimeUnit.MILLISECONDS ) ; if ( ( getApiLevel ( ) ) < 16 ) { addInstrumentationArg ( com.android.ddmlib.testrunner.RemoteAndroidTestRunner.DELAY_MSEC_ARG_NAME , "15" ) ; } } else { setLogOnly ( false ) ; setMaxTimeToOutputResponse ( mMaxTimeToOutputResponse , mMaxTimeUnits ) ; if ( ( getApiLevel ( ) ) < 16 ) { removeInstrumentationArg ( com.android.ddmlib.testrunner.RemoteAndroidTestRunner.DELAY_MSEC_ARG_NAME ) ; } } }
Source:
public static void computeClamp ( android.renderscript.cts.TestClamp.ArgumentsUintUintUintUint args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; long min = ( args.inMinValue ) & 4294967295L ; long max = ( args.inMaxValue ) & 4294967295L ; long in = ( args.inValue ) & 4294967295L ; args.out = ( ( int ) ( java.lang.StrictMath.min ( max , java.lang.StrictMath.max ( in , min ) ) ) ) ; }

Target:
public static void computeClamp ( android.renderscript.cts.TestClamp.ArgumentsUintUintUintUint args ) { args.out = android.renderscript.cts.CoreMathVerifier.minU32 ( args.inMaxValue , android.renderscript.cts.CoreMathVerifier.maxU32 ( args.inValue , args.inMinValue ) ) ; }
Source:
private synchronized void msgDeviceConnect ( android.bluetooth.BluetoothDevice device ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "msgDeviceConnect" ) ; mA2dpDevice = device ; mAvrcpCtrlSrvc = com.android.bluetooth.avrcpcontroller.AvrcpControllerService.getAvrcpControllerService ( ) ; if ( ( mAvrcpCtrlSrvc ) == null ) { android.util.Log.e ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "!!!AVRCP Controller cannot be null" ) ; return ; } refreshInitialPlayingState ( ) ; }

Target:
private synchronized void msgDeviceConnect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.DBG ) android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "msgDeviceConnect" ) ; mA2dpDevice = device ; mAvrcpCtrlSrvc = com.android.bluetooth.avrcpcontroller.AvrcpControllerService.getAvrcpControllerService ( ) ; if ( ( mAvrcpCtrlSrvc ) == null ) { android.util.Log.e ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "!!!AVRCP Controller cannot be null" ) ; return ; } refreshInitialPlayingState ( ) ; }
Source:
public void onFindResultReceived ( int activeMatchOrdinal , int numberOfMatches , boolean isDoneCounting ) { if ( isDoneCounting ) { set ( numberOfMatches ) ; } }

Target:
public void onFindResultReceived ( int activeMatchOrdinal , int numberOfMatches , boolean isDoneCounting ) { if ( isDoneCounting ) { if ( ( mRetry ) && ( numberOfMatches != ( mMatchesWanted ) ) ) { mWebViewOnUiThread.findAll ( mStringWanted ) ; } else { set ( numberOfMatches ) ; } } }
Source:
public final long long_literal ( ) throws org.jf.smali.RecognitionException { long value = 0 ; org.antlr.runtime.tree.CommonTree LONG_LITERAL192 = null ; try { { LONG_LITERAL192 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.LONG_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_LONG_LITERAL_in_long_literal3264 ) ) ) ; value = org.jf.smali.LiteralTools.parseLong ( ( LONG_LITERAL192 != null ? LONG_LITERAL192.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final boolean bool_literal ( ) throws org.jf.smali.RecognitionException { boolean value = false ; org.antlr.runtime.tree.CommonTree BOOL_LITERAL212 = null ; try { { BOOL_LITERAL212 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.BOOL_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_BOOL_LITERAL_in_bool_literal3562 ) ) ) ; value = java.lang.Boolean.parseBoolean ( ( BOOL_LITERAL212 != null ? BOOL_LITERAL212.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
public void testDropCdmaEnhancedPrivacyVoiceCall ( ) throws java.lang.Exception { mConnectionServiceFixtureA.mConnectionServiceDelegate.mProperties = android.telecom.Connection.PROPERTY_HAS_CDMA_VOICE_PRIVACY ; com.android.server.telecom.tests.IdPair ids = startAndMakeActiveOutgoingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; mConnectionServiceFixtureA.mLatestConnection.setConnectionProperties ( 0 ) ; assertFalse ( Call.Details.hasProperty ( mInCallServiceFixtureX.getCall ( ids.mCallId ) . getProperties ( ) , Call.Details.PROPERTY_HAS_CDMA_VOICE_PRIVACY ) ) ; }

Target:
public void testCdmaEnhancedPrivacyVoiceCall ( ) throws java.lang.Exception { mConnectionServiceFixtureA.mConnectionServiceDelegate.mProperties = android.telecom.Connection.PROPERTY_HAS_CDMA_VOICE_PRIVACY ; com.android.server.telecom.tests.IdPair ids = startAndMakeActiveOutgoingCall ( "650-555-1212" , mPhoneAccountA0.getAccountHandle ( ) , mConnectionServiceFixtureA ) ; org.junit.Assert.assertEquals ( Call.STATE_ACTIVE , mInCallServiceFixtureX.getCall ( ids.mCallId ) . getState ( ) ) ; org.junit.Assert.assertTrue ( Call.Details.hasProperty ( mInCallServiceFixtureX.getCall ( ids.mCallId ) . getProperties ( ) , Call.Details.PROPERTY_HAS_CDMA_VOICE_PRIVACY ) ) ; }
Source:
private void setInput ( java.lang.Readable input ) { this . input = input ; buffer.limit ( 0 ) ; matcher = delimiter.matcher ( buffer ) ; }

Target:
private void prepareForScan ( ) { if ( ( findStartIndex ) >= ( ( buffer.capacity ( ) ) / 2 ) ) { int oldPosition = buffer.position ( ) ; buffer.position ( findStartIndex ) ; buffer.compact ( ) ; buffer.position ( oldPosition ) ; bufferLength -= findStartIndex ; findStartIndex = 0 ; preStartIndex = - 1 ; resetMatcher ( ) ; } preStartIndex = findStartIndex ; }
Source:
public void test_joinAnySource_multiple_joins_IPv4 ( ) throws java.lang.Exception { test_joinAnySource_multiple_joins ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 ) ; }

Target:
public void test_join_canMixJoinTypesOnDifferentInterfaces ( ) throws java.lang.Exception { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; java.nio.channels.MembershipKey membershipKey1 = dc.join ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , ipv4networkInterface ) ; java.nio.channels.MembershipKey membershipKey2 = dc.join ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , loopbackInterface , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv4_1 ) ; assertNotSame ( membershipKey1 , membershipKey2 ) ; dc.close ( ) ; }
Source:
public void run ( ) { com.android.hierarchyviewerlib.device.ViewNode viewNode = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindowData ( window ) ; if ( viewNode != null ) { com.android.hierarchyviewerlib.device.DeviceBridge.loadProfileData ( window , viewNode ) ; com.android.hierarchyviewerlib.ComponentRegistry.getTreeViewModel ( ) . setData ( window , viewNode ) ; } }

Target:
public void run ( ) { com.android.hierarchyviewerlib.device.ViewNode viewNode = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindowData ( window ) ; if ( viewNode != null ) { com.android.hierarchyviewerlib.device.DeviceBridge.loadProfileData ( window , viewNode ) ; viewNode.setViewCount ( ) ; com.android.hierarchyviewerlib.models.TreeViewModel.getModel ( ) . setData ( window , viewNode ) ; } }
Source:
public final byte [ ] update ( byte [ ] input ) { checkCipherState ( ) ; if ( input == null ) { throw new java.lang.IllegalArgumentException ( "Null input buffer" ) ; } chooseFirstProvider ( ) ; if ( ( input.length ) == 0 ) { return null ; } return spi.engineUpdate ( input , 0 , input.length ) ; }

Target:
public final byte [ ] update ( byte [ ] input ) { checkCipherState ( ) ; if ( input == null ) { throw new java.lang.IllegalArgumentException ( "Null input buffer" ) ; } updateProviderIfNeeded ( ) ; if ( ( input.length ) == 0 ) { return null ; } return spi.engineUpdate ( input , 0 , input.length ) ; }
Source:
public void testImageConversionNew ( ) throws java.io.IOException , java.lang.ClassNotFoundException { com.android.ddmlib.RawImage rawImage = com.android.monkeyrunner.ImageUtilsTest.createRawImage ( "image2.raw" ) ; java.awt.image.BufferedImage convertedImage = com.android.monkeyrunner.adb.image.ImageUtils.convertImage ( rawImage ) ; java.awt.image.BufferedImage correctConvertedImage = com.android.monkeyrunner.ImageUtilsTest.createBufferedImage ( "image2.png" ) ; assertTrue ( com.android.monkeyrunner.ImageUtilsTest.checkImagesHaveSamePixels ( convertedImage , correctConvertedImage ) ) ; }

Target:
public void testImageConversionNew ( ) throws java.io.IOException , java.lang.ClassNotFoundException { com.android.ddmlib.RawImage rawImage = com.android.chimpchat.ImageUtilsTest.createRawImage ( "image2.raw" ) ; java.awt.image.BufferedImage convertedImage = com.android.chimpchat.adb.image.ImageUtils.convertImage ( rawImage ) ; java.awt.image.BufferedImage correctConvertedImage = com.android.chimpchat.ImageUtilsTest.createBufferedImage ( "image2.png" ) ; assertTrue ( com.android.chimpchat.ImageUtilsTest.checkImagesHaveSamePixels ( convertedImage , correctConvertedImage ) ) ; }
Source:
public void testHandleUserUnlockAfterBootup ( ) throws java.lang.Exception { int user1 = com.android.server.wifi.WifiConfigManagerTest.TEST_DEFAULT_USER ; when ( mWifiConfigStore.read ( ) ) . thenReturn ( new com.android.server.wifi.WifiConfigStoreData ( new java.util.ArrayList < android.net.wifi.WifiConfiguration > ( ) , new java.util.ArrayList < android.net.wifi.WifiConfiguration > ( ) , new java.util.HashSet < java.lang.String > ( ) ) ) ; mWifiConfigManager.handleUserUnlock ( user1 ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore ) . read ( ) ; }

Target:
public void testHandleUserUnlockAfterBootup ( ) throws java.lang.Exception { int user1 = com.android.server.wifi.WifiConfigManagerTest.TEST_DEFAULT_USER ; when ( mWifiConfigStore.switchUserStoreAndRead ( any ( WifiConfigStore.StoreFile.class ) ) ) . thenReturn ( new com.android.server.wifi.WifiConfigStoreData ( new java.util.ArrayList < android.net.wifi.WifiConfiguration > ( ) , new java.util.ArrayList < android.net.wifi.WifiConfiguration > ( ) , new java.util.HashSet < java.lang.String > ( ) ) ) ; mWifiConfigManager.handleUserUnlock ( user1 ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore ) . switchUserStoreAndRead ( any ( WifiConfigStore.StoreFile.class ) ) ; }
Source:
public java.io.FileDescriptor accept ( java.io.FileDescriptor fd , java.net.SocketAddress peerAddress ) throws android.system.ErrnoException , java.net.SocketException { dalvik.system.BlockGuard.getThreadPolicy ( ) . onNetwork ( ) ; return tagSocket ( os.accept ( fd , peerAddress ) ) ; }

Target:
public java.io.FileDescriptor accept ( java.io.FileDescriptor fd , java.net.SocketAddress peerAddress ) throws android.system.ErrnoException , java.net.SocketException { dalvik.system.BlockGuard.getThreadPolicy ( ) . onNetwork ( ) ; final java.io.FileDescriptor acceptFd = os.accept ( fd , peerAddress ) ; if ( libcore.io.BlockGuardOs.isInetSocket ( acceptFd ) ) { tagSocket ( acceptFd ) ; } return acceptFd ; }
Source:
void playDtmfTone ( com.android.server.telecom.Call call , char digit ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "playDtmfTone" ) ) ) { try { logOutgoing ( "playDtmfTone %s %c" , callId , digit ) ; mServiceInterface.playDtmfTone ( callId , digit ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
void playDtmfTone ( com.android.server.telecom.Call call , char digit ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "playDtmfTone" ) ) ) { try { logOutgoing ( "playDtmfTone %s %c" , callId , digit ) ; mServiceInterface.playDtmfTone ( callId , digit , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
private boolean verify ( byte [ ] keyName , byte [ ] data , byte [ ] signature ) { execute ( 'v' , keyName , data , signature ) ; return ( mError ) == ( android.security.KeyStore.NO_ERROR ) ; }

Target:
public boolean grant ( java.lang.String key , int uid ) { try { return ( mBinder.grant ( key , uid ) ) == ( 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 testKeyguardHidesActivity ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } launchActivity ( "TestActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "TestActivity" } ) ; mAmWmState.assertVisibility ( "TestActivity" , true ) ; gotoKeyguard ( ) ; mAmWmState.computeState ( mDevice , null ) ; assertShowingAndNotOccluded ( ) ; mAmWmState.assertVisibility ( "TestActivity" , false ) ; unlockDevice ( ) ; }

Target:
public void testKeyguardHidesActivity ( ) throws java.lang.Exception { if ( ! ( supportsKeyguard ( ) ) ) { return ; } launchActivity ( "TestActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "TestActivity" } ) ; mAmWmState.assertVisibility ( "TestActivity" , true ) ; gotoKeyguard ( ) ; mAmWmState.computeState ( mDevice , null ) ; assertShowingAndNotOccluded ( ) ; mAmWmState.assertVisibility ( "TestActivity" , false ) ; unlockDevice ( ) ; }
Source:
public void testSingleOutput ( ) { com.android.build.SplitOutput match ; java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( ( match = com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( ) ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertEquals ( match , result ) ; }

Target:
public void testDensityOnlyWithUniversalMatch ( ) { com.android.build.SplitOutput match ; java.util.List < com.android.build.SplitOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( ( match = com.android.ide.common.build.SplitOutputMatcherTest.getUniversalOutput ( 3 ) ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 320 , 2 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getDensityOutput ( 480 , 1 ) ) ; com.android.build.SplitOutput result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "foo" ) ; assertEquals ( match , result ) ; }
Source:
private void init ( ) { if ( ( ( mFormat12 ) == null ) || ( ( mFormat24 ) == null ) ) { libcore.icu.LocaleData ld = libcore.icu.LocaleData.get ( getContext ( ) . getResources ( ) . getConfiguration ( ) . locale ) ; if ( ( mFormat12 ) == null ) { mFormat12 = ld.timeFormat12 ; } if ( ( mFormat24 ) == null ) { mFormat24 = ld.timeFormat24 ; } } createTime ( mTimeZone ) ; chooseFormat ( false ) ; }

Target:
private void init ( ) { if ( ( ( mFormat12 ) == null ) || ( ( mFormat24 ) == null ) ) { libcore.icu.LocaleData ld = libcore.icu.LocaleData.get ( getContext ( ) . getResources ( ) . getConfiguration ( ) . locale ) ; if ( ( mFormat12 ) == null ) { mFormat12 = ld.timeFormat_hm ; } if ( ( mFormat24 ) == null ) { mFormat24 = ld.timeFormat_Hm ; } } createTime ( mTimeZone ) ; chooseFormat ( false ) ; }
Source:
public static void sort ( char [ ] a ) { java.util.DualPivotQuicksort.sort ( a ) ; }

Target:
public static void sort ( char [ ] a , int fromIndex , int toIndex ) { java.util.Arrays.rangeCheck ( a.length , fromIndex , toIndex ) ; java.util.DualPivotQuicksort.sort ( a , fromIndex , ( toIndex - 1 ) , null , 0 , 0 ) ; }
Source:
public void testSmsUsageMonitor ( ) { if ( ! ( mPackageManager.hasSystemFeature ( PackageManager.FEATURE_TELEPHONY ) ) ) { return ; } com.android.internal.telephony.SmsUsageMonitor monitor = new com.android.internal.telephony.SmsUsageMonitor ( getContext ( ) ) ; for ( android.telephony.cts.SmsUsageMonitorShortCodeTest.ShortCodeTest test : android.telephony.cts.SmsUsageMonitorShortCodeTest.sShortCodeTests ) { assertEquals ( ( ( ( "country: " + ( test.countryIso ) ) + " number: " ) + ( test.address ) ) , test.category , monitor.checkDestination ( test.address , test.countryIso ) ) ; } }

Target:
public void testSmsUsageMonitor ( ) { if ( ! ( mPackageManager.hasSystemFeature ( PackageManager.FEATURE_TELEPHONY ) ) ) { return ; } com.android.internal.telephony.SmsUsageMonitor monitor = new com.android.internal.telephony.SmsUsageMonitor ( mContext ) ; for ( android.telephony.cts.SmsUsageMonitorShortCodeTest.ShortCodeTest test : android.telephony.cts.SmsUsageMonitorShortCodeTest.sShortCodeTests ) { assertEquals ( ( ( ( "country: " + ( test.countryIso ) ) + " number: " ) + ( test.address ) ) , test.category , ( isCDMA112 ( test.address ) ? android.telephony.cts.SmsUsageMonitorShortCodeTest.CATEGORY_NOT_SHORT_CODE : monitor.checkDestination ( test.address , test.countryIso ) ) ) ; } }
Source:
public void test_d2i_SSL_SESSION ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 0 ] ) ; fail ( "Should throw IOException with invalid SSL_SESSION data" ) ; } catch ( java.io.IOException expected ) { } try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 1 ] ) ; fail ( "Should throw IOException with invalid SSL_SESSION data" ) ; } catch ( java.io.IOException expected ) { } }

Target:
public void test_d2i_SSL_SESSION ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( null ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 0 ] ) ; org.junit.Assert.fail ( "Should throw IOException with invalid SSL_SESSION data" ) ; } catch ( java.io.IOException expected ) { } try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 1 ] ) ; org.junit.Assert.fail ( "Should throw IOException with invalid SSL_SESSION data" ) ; } catch ( java.io.IOException expected ) { } }