auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean removeUser ( int userId ) { com.android.server.pm.PackageManagerService.enforceSystemOrRoot ( "Only the system can remove users" ) ; if ( ( userId == 0 ) || ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) ) { return false ; } cleanUpUser ( userId ) ; if ( com.android.server.pm.PackageManagerService.sUserManager.removeUser ( userId ) ) { android.content.Intent addedIntent = new android.content.Intent ( android.content.Intent.ACTION_USER_REMOVED ) ; addedIntent.putExtra ( Intent.EXTRA_USERID , userId ) ; mContext.sendBroadcast ( addedIntent , android.Manifest.permission.MANAGE_ACCOUNTS ) ; } com.android.server.pm.PackageManagerService.sUserManager.removePackageFolders ( userId ) ; return true ; }

Target:
private boolean isVerificationEnabled ( int flags ) { if ( ! ( com.android.server.pm.PackageManagerService.DEFAULT_VERIFY_ENABLE ) ) { return false ; } if ( ( flags & ( android.content.pm.PackageManager.INSTALL_FROM_ADB ) ) != 0 ) { if ( android.app.ActivityManager.isRunningInTestHarness ( ) ) { return false ; } if ( ( android.provider.Settings.Global.getInt ( mContext.getContentResolver ( ) , android.provider.Settings.Global.PACKAGE_VERIFIER_INCLUDE_ADB , 1 ) ) == 0 ) { return false ; } } return ( android.provider.Settings.Global.getInt ( mContext.getContentResolver ( ) , android.provider.Settings.Global.PACKAGE_VERIFIER_ENABLE , 1 ) ) == 1 ; }
Source:
public java.lang.String getSimOperatorNumeric ( ) { int subId = android.telephony.SubscriptionManager.getDefaultDataSubId ( ) ; if ( ! ( android.telephony.SubscriptionManager.isUsableSubIdValue ( subId ) ) ) { subId = android.telephony.SubscriptionManager.getDefaultSmsSubId ( ) ; if ( ! ( android.telephony.SubscriptionManager.isUsableSubIdValue ( subId ) ) ) { subId = android.telephony.SubscriptionManager.getDefaultVoiceSubId ( ) ; if ( ! ( android.telephony.SubscriptionManager.isUsableSubIdValue ( subId ) ) ) { subId = android.telephony.SubscriptionManager.getDefaultSubId ( ) ; } } } return getSimOperatorNumericForSubscription ( subId ) ; }

Target:
public java.lang.String getSimOperatorNumeric ( ) { int subId = android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ; if ( ! ( android.telephony.SubscriptionManager.isUsableSubIdValue ( subId ) ) ) { subId = android.telephony.SubscriptionManager.getDefaultSmsSubscriptionId ( ) ; if ( ! ( android.telephony.SubscriptionManager.isUsableSubIdValue ( subId ) ) ) { subId = android.telephony.SubscriptionManager.getDefaultVoiceSubscriptionId ( ) ; if ( ! ( android.telephony.SubscriptionManager.isUsableSubIdValue ( subId ) ) ) { subId = android.telephony.SubscriptionManager.getDefaultSubscriptionId ( ) ; } } } return getSimOperatorNumeric ( subId ) ; }
Source:
public long getStatSize ( ) { if ( ( mWrapped ) != null ) { return mWrapped.getStatSize ( ) ; } else { try { final libcore.io.StructStat st = Libcore.os.fstat ( mFd ) ; if ( ( libcore.io.OsConstants.S_ISREG ( st.st_mode ) ) || ( libcore.io.OsConstants.S_ISLNK ( st.st_mode ) ) ) { return st.st_size ; } else { return - 1 ; } } catch ( libcore.io.ErrnoException e ) { android.util.Log.w ( android.os.ParcelFileDescriptor.TAG , ( "fstat() failed: " + e ) ) ; return - 1 ; } } }

Target:
public long getStatSize ( ) { if ( ( mWrapped ) != null ) { return mWrapped.getStatSize ( ) ; } else { try { final android.system.StructStat st = android.system.Os.fstat ( mFd ) ; if ( ( android.system.OsConstants.S_ISREG ( st.st_mode ) ) || ( android.system.OsConstants.S_ISLNK ( st.st_mode ) ) ) { return st.st_size ; } else { return - 1 ; } } catch ( android.system.ErrnoException e ) { android.util.Log.w ( android.os.ParcelFileDescriptor.TAG , ( "fstat() failed: " + e ) ) ; return - 1 ; } } }
Source:
static android.content.Intent createDisplayMessageIntent ( android.content.Context context , java.lang.Class intentClass , android.telephony.CellBroadcastMessage message , int notificationId ) { android.content.Intent intent = new android.content.Intent ( context , intentClass ) ; intent.putExtra ( CellBroadcastMessage.SMS_CB_MESSAGE_EXTRA , message ) ; intent.putExtra ( com.android.cellbroadcastreceiver.CellBroadcastAlertService.SMS_CB_NOTIFICATION_ID_EXTRA , notificationId ) ; intent.putExtra ( com.android.cellbroadcastreceiver.CellBroadcastAlertService.NEW_ALERT_EXTRA , true ) ; intent.setType ( java.lang.Integer.toString ( notificationId ) ) ; return intent ; }

Target:
static android.content.Intent createDisplayMessageIntent ( android.content.Context context , java.lang.Class intentClass , java.util.ArrayList < android.telephony.CellBroadcastMessage > messageList ) { android.content.Intent intent = new android.content.Intent ( context , intentClass ) ; intent.putParcelableArrayListExtra ( CellBroadcastMessage.SMS_CB_MESSAGE_EXTRA , messageList ) ; return intent ; }
Source:
public int getVersionCode ( ) { int versionCode = ( ( mMergedFlavor.getVersionCode ( ) ) != null ) ? mMergedFlavor.getVersionCode ( ) : - 1 ; if ( ( versionCode == ( - 1 ) ) && ( ! ( mType.isForTesting ( ) ) ) ) { versionCode = getVersionCodeFromManifest ( ) ; } return versionCode ; }

Target:
public java.lang.Boolean getFunctionalTest ( ) { com.android.builder.core.VariantConfiguration config = this ; if ( mType.isForTesting ( ) ) { config = getTestedConfig ( ) ; com.google.common.base.Preconditions.checkState ( ( config != null ) ) ; } java.lang.Boolean functionalTest = config.mMergedFlavor.getTestFunctionalTest ( ) ; return functionalTest != null ? functionalTest : com.android.builder.core.VariantConfiguration.DEFAULT_FUNCTIONAL_TEST ; }
Source:
public boolean retainAll ( final java.util.Collection < ? > collection ) { com.google.common.base.Preconditions.checkNotNull ( collection ) ; com.google.common.base.Predicate < E > combinedPredicate = new com.google.common.base.Predicate < E > ( ) { @ java.lang.Override public boolean apply ( E input ) { return ( predicate.apply ( input ) ) && ( ! ( collection.contains ( input ) ) ) ; } } ; return com.google.common.collect.Iterables.removeIf ( unfiltered , combinedPredicate ) ; }

Target:
public boolean retainAll ( final java.util.Collection < ? > collection ) { return com.google.common.collect.Iterables.removeIf ( unfiltered , com.google.common.base.Predicates.and ( predicate , com.google.common.base.Predicates.not ( com.google.common.base.Predicates.in ( collection ) ) ) ) ; }
Source:
private void checkCanOpenCamera ( boolean canOpen ) { boolean successToOpen = com.android.cts.managedprofile.CameraUtils.blockUntilOpenCamera ( mCameraManager , mBackgroundHandler ) ; assertEquals ( canOpen , successToOpen ) ; }

Target:
private void checkCanOpenCamera ( boolean canOpen ) throws java.lang.Exception { int retries = 10 ; boolean successToOpen = ! canOpen ; while ( ( successToOpen != canOpen ) && ( retries > 0 ) ) { retries -- ; java.lang.Thread.sleep ( 500 ) ; successToOpen = com.android.cts.managedprofile.CameraUtils.blockUntilOpenCamera ( mCameraManager , mBackgroundHandler ) ; } assertEquals ( java.lang.String.format ( "Timed out waiting the value to change to %b (actual=%b)" , canOpen , successToOpen ) , canOpen , successToOpen ) ; }
Source:
public android.os.ParcelUuid [ ] getUuids ( ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return null ; try { synchronized ( mManagerCallback ) { if ( ( mService ) != null ) return mService.getUuids ( ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return null ; }

Target:
public android.os.ParcelUuid [ ] getUuids ( ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return null ; try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) return mService.getUuids ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } return null ; }
Source:
public void testAesCbcHmacSha384Udp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA384 , getAuthKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , true , 1 , false ) ; }

Target:
public void testAesGcm96Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm authCrypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM , android.net.cts.IpSecManagerTest.AEAD_KEY , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , null , authCrypt , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , null , authCrypt , false , 1 , true ) ; }
Source:
public void setIsset ( java.lang.String name ) { if ( mConditionIsSet ) { throw new org.apache.tools.ant.BuildException ( "Cannot use both condition and isset attribute" ) ; } org.apache.tools.ant.Project antProject = getProject ( ) ; org.apache.tools.ant.taskdefs.condition.IsSet isSet = new org.apache.tools.ant.taskdefs.condition.IsSet ( ) ; isSet.setProject ( antProject ) ; isSet.setProperty ( name ) ; mCondition = isSet.eval ( ) ; mConditionIsSet = true ; }

Target:
public java.lang.Object createCondition ( ) { if ( mConditionIsSet ) { throw new org.apache.tools.ant.BuildException ( "Cannot use both condition attribute and <condition> element" ) ; } mAnd = new org.apache.tools.ant.taskdefs.condition.And ( ) ; mAnd.setProject ( getProject ( ) ) ; return mAnd ; }
Source:
protected android.graphics.Point runRenderSpec ( android.uirendering.cts.testinfrastructure.ActivityTestBase.TestCase testCase ) { android.graphics.Point testOffset = getActivity ( ) . enqueueRenderSpecAndWait ( testCase.layoutID , testCase.canvasClient , testCase.viewInitializer , testCase.useHardware , testCase.usePicture ) ; testCase.wasTestRan = true ; if ( ( testCase.readyFence ) != null ) { try { testCase.readyFence.await ( 5 , java.util.concurrent.TimeUnit.SECONDS ) ; } catch ( java.lang.InterruptedException e ) { throw new java.lang.RuntimeException ( "readyFence didn't signal within 5 seconds" ) ; } } return testOffset ; }

Target:
protected android.uirendering.cts.testinfrastructure.ActivityTestBase.TestPositionInfo runRenderSpec ( android.uirendering.cts.testinfrastructure.ActivityTestBase.TestCase testCase ) { android.uirendering.cts.testinfrastructure.ActivityTestBase.TestPositionInfo testPositionInfo = getActivity ( ) . enqueueRenderSpecAndWait ( testCase.layoutID , testCase.canvasClient , testCase.viewInitializer , testCase.useHardware , testCase.usePicture ) ; testCase.wasTestRan = true ; if ( ( testCase.readyFence ) != null ) { try { testCase.readyFence.await ( 5 , java.util.concurrent.TimeUnit.SECONDS ) ; } catch ( java.lang.InterruptedException e ) { throw new java.lang.RuntimeException ( "readyFence didn't signal within 5 seconds" ) ; } } return testPositionInfo ; }
Source:
private void addWarning ( org.eclipse.swt.widgets.Composite parent , java.lang.String message ) { if ( ( mWarning ) == null ) { mWarning = com.android.ide.eclipse.adt.AdtPlugin.getImageLoader ( ) . loadImage ( com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage.IMG_WARNING , mDisplay ) ; } new org.eclipse.swt.widgets.Label ( parent , org.eclipse.swt.SWT.NONE ) . setImage ( mWarning ) ; org.eclipse.swt.widgets.Label label = new org.eclipse.swt.widgets.Label ( parent , org.eclipse.swt.SWT.NONE ) ; label.setLayoutData ( new org.eclipse.swt.layout.GridData ( org.eclipse.swt.layout.GridData.FILL_HORIZONTAL ) ) ; label.setText ( message ) ; mHasMessage = true ; }

Target:
private void addWarning ( org.eclipse.swt.widgets.Composite parent , java.lang.String message ) { if ( ( mWarning ) == null ) { mWarning = com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) . getIcon ( com.android.ide.eclipse.adt.internal.wizards.export.ProjectCheckPage.IMG_WARNING ) ; } new org.eclipse.swt.widgets.Label ( parent , org.eclipse.swt.SWT.NONE ) . setImage ( mWarning ) ; org.eclipse.swt.widgets.Label label = new org.eclipse.swt.widgets.Label ( parent , org.eclipse.swt.SWT.NONE ) ; label.setLayoutData ( new org.eclipse.swt.layout.GridData ( org.eclipse.swt.layout.GridData.FILL_HORIZONTAL ) ) ; label.setText ( message ) ; mHasMessage = true ; }
Source:
public void bigArray ( ) throws java.io.IOException { com.android.ahat.TestDump dump = com.android.ahat.TestDump.getTestDump ( ) ; com.android.tools.perflib.heap.Instance bigArray = ( ( com.android.tools.perflib.heap.Instance ) ( dump.getDumpedThing ( "bigArray" ) ) ) ; org.junit.Assert.assertNotNull ( bigArray ) ; com.android.ahat.AhatSnapshot snapshot = dump.getAhatSnapshot ( ) ; com.android.ahat.AhatHandler handler = new com.android.ahat.ObjectHandler ( snapshot ) ; java.io.PrintStream ps = new java.io.PrintStream ( new com.android.ahat.PerformanceTest.NullOutputStream ( ) ) ; com.android.ahat.HtmlDoc doc = new com.android.ahat.HtmlDoc ( ps , com.android.ahat.DocString.text ( "bigArray test" ) , com.android.ahat.DocString.uri ( "style.css" ) ) ; java.lang.String uri = "http://localhost:7100/object?id=" + ( bigArray.getId ( ) ) ; com.android.ahat.Query query = new com.android.ahat.Query ( com.android.ahat.DocString.uri ( uri ) ) ; long start = java.lang.System.currentTimeMillis ( ) ; handler.handle ( doc , query ) ; long time = ( java.lang.System.currentTimeMillis ( ) ) - start ; org.junit.Assert.assertTrue ( ( ( "bigArray took too long: " + time ) + "ms" ) , ( time < 1000 ) ) ; }

Target:
public void bigArray ( ) throws java.io.IOException { com.android.ahat.TestDump dump = com.android.ahat.TestDump.getTestDump ( ) ; com.android.ahat.heapdump.AhatInstance bigArray = dump.getDumpedAhatInstance ( "bigArray" ) ; org.junit.Assert.assertNotNull ( bigArray ) ; com.android.ahat.heapdump.AhatSnapshot snapshot = dump.getAhatSnapshot ( ) ; com.android.ahat.AhatHandler handler = new com.android.ahat.ObjectHandler ( snapshot ) ; java.io.PrintStream ps = new java.io.PrintStream ( new com.android.ahat.PerformanceTest.NullOutputStream ( ) ) ; com.android.ahat.HtmlDoc doc = new com.android.ahat.HtmlDoc ( ps , com.android.ahat.DocString.text ( "bigArray test" ) , com.android.ahat.DocString.uri ( "style.css" ) ) ; java.lang.String uri = "http://localhost:7100/object?id=" + ( bigArray.getId ( ) ) ; com.android.ahat.Query query = new com.android.ahat.Query ( com.android.ahat.DocString.uri ( uri ) ) ; long start = java.lang.System.currentTimeMillis ( ) ; handler.handle ( doc , query ) ; long time = ( java.lang.System.currentTimeMillis ( ) ) - start ; org.junit.Assert.assertTrue ( ( ( "bigArray took too long: " + time ) + "ms" ) , ( time < 1000 ) ) ; }
Source:
private java.lang.String getFingerprint ( java.security.cert.X509Certificate cert ) throws java.lang.Exception { java.security.MessageDigest dgst = java.security.MessageDigest.getInstance ( "SHA512" ) ; byte [ ] encoded = cert.getPublicKey ( ) . getEncoded ( ) ; byte [ ] fingerprint = dgst.digest ( encoded ) ; return org.conscrypt.IntegralToString.bytesToHexString ( fingerprint , false ) ; }

Target:
private java.lang.String getFingerprint ( java.security.cert.X509Certificate cert ) throws java.lang.Exception { java.security.MessageDigest dgst = java.security.MessageDigest.getInstance ( "SHA512" ) ; byte [ ] encoded = cert.getPublicKey ( ) . getEncoded ( ) ; byte [ ] fingerprint = dgst.digest ( encoded ) ; return org.conscrypt.Hex.bytesToHexString ( fingerprint ) ; }
Source:
public final void activityDestroyed ( android.os.IBinder token ) { if ( com.android.server.am.ActivityManagerService.DEBUG_SWITCH ) android.util.Slog.v ( com.android.server.am.ActivityManagerService.TAG , ( "ACTIVITY DESTROYED: " + token ) ) ; synchronized ( this ) { com.android.server.am.ActivityStack stack = com.android.server.am.ActivityRecord.getStackLocked ( token ) ; if ( stack != null ) { stack.activityDestroyedLocked ( token ) ; } } }

Target:
public final void backgroundResourcesReleased ( android.os.IBinder token ) { final long origId = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( this ) { com.android.server.am.ActivityStack stack = com.android.server.am.ActivityRecord.getStackLocked ( token ) ; if ( stack != null ) { stack.backgroundResourcesReleased ( ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( origId ) ; } }
Source:
public void unlisten ( ) { com.android.phone.vvm.VvmSimStateTracker.getTelephonyManager ( mContext , mPhoneAccountHandle ) . listen ( this , PhoneStateListener.LISTEN_NONE ) ; com.android.phone.vvm.VvmSimStateTracker.sListeners.put ( mPhoneAccountHandle , null ) ; }

Target:
public void listen ( ) { android.telephony.TelephonyManager telephonyManager = com.android.phone.vvm.VvmSimStateTracker.getTelephonyManager ( mContext , mPhoneAccountHandle ) ; if ( telephonyManager == null ) { com.android.phone.vvm.omtp.VvmLog.e ( com.android.phone.vvm.VvmSimStateTracker.TAG , ( "Cannot create TelephonyManager from " + ( mPhoneAccountHandle ) ) ) ; return ; } telephonyManager.listen ( this , PhoneStateListener.LISTEN_SERVICE_STATE ) ; }
Source:
private void setOverscanLocked ( com.android.server.wm.DisplayContent displayContent , int left , int top , int right , int bottom ) { final android.view.DisplayInfo displayInfo = displayContent.getDisplayInfo ( ) ; synchronized ( displayContent.mDisplaySizeLock ) { displayInfo.overscanLeft = left ; displayInfo.overscanTop = top ; displayInfo.overscanRight = right ; displayInfo.overscanBottom = bottom ; } mDisplaySettings.setOverscanLocked ( displayInfo.name , left , top , right , bottom ) ; mDisplaySettings.writeSettingsLocked ( ) ; reconfigureDisplayLocked ( displayContent ) ; }

Target:
private void setOverscanLocked ( com.android.server.wm.DisplayContent displayContent , int left , int top , int right , int bottom ) { final android.view.DisplayInfo displayInfo = displayContent.getDisplayInfo ( ) ; synchronized ( displayContent.mDisplaySizeLock ) { displayInfo.overscanLeft = left ; displayInfo.overscanTop = top ; displayInfo.overscanRight = right ; displayInfo.overscanBottom = bottom ; } mDisplaySettings.setOverscanLocked ( displayInfo.uniqueId , left , top , right , bottom ) ; mDisplaySettings.writeSettingsLocked ( ) ; reconfigureDisplayLocked ( displayContent ) ; }
Source:
private boolean isNotInternationalNumber ( @ android.support.annotation.NonNull java.util.Optional < com.google.i18n.phonenumbers.Phonenumber.PhoneNumber > parsedPhoneNumber ) { if ( ( parsedPhoneNumber.get ( ) . hasCountryCode ( ) ) && ( ( parsedPhoneNumber.get ( ) . getCountryCodeSource ( ) ) != ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource.FROM_DEFAULT_COUNTRY ) ) ) { com.android.dialer.common.LogUtil.i ( "Constraints.isNotInternationalNumber" , "phone number already provided the country code" ) ; return false ; } return true ; }

Target:
private boolean isNotInternationalNumber ( @ android.support.annotation.NonNull java.util.Optional < com.google.i18n.phonenumbers.Phonenumber.PhoneNumber > parsedPhoneNumber ) { if ( ( parsedPhoneNumber.get ( ) . hasCountryCode ( ) ) && ( ( parsedPhoneNumber.get ( ) . getCountryCodeSource ( ) ) != ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber.CountryCodeSource.FROM_DEFAULT_COUNTRY ) ) ) { com.android.dialer.logging.Logger.get ( context ) . logImpression ( DialerImpression.Type.ASSISTED_DIALING_CONSTRAINT_NUMBER_HAS_COUNTRY_CODE ) ; com.android.dialer.common.LogUtil.i ( "Constraints.isNotInternationalNumber" , "phone number already provided the country code" ) ; return false ; } return true ; }
Source:
public boolean accept ( com.android.sdklib.internal.avd.AvdInfo avd ) { com.android.sdklib.IAndroidTarget avdTarget = avd.getTarget ( ) ; if ( avdTarget == null ) { return true ; } if ( mProjectTarget.isPlatform ( ) ) { return avdTarget.getVersion ( ) . canRun ( mProjectMinApiVersion ) ; } return mProjectTarget.canRunOn ( avdTarget ) ; }

Target:
public boolean accept ( com.android.sdklib.internal.avd.AvdInfo avd ) { com.android.ide.eclipse.adt.internal.launch.AvdCompatibility.Compatibility c = com.android.ide.eclipse.adt.internal.launch.AvdCompatibility.canRun ( avd , mProjectTarget , mProjectMinApiVersion ) ; return c == ( com.android.ide.eclipse.adt.internal.launch.AvdCompatibility.Compatibility.NO ) ? false : true ; }
Source:
public static java.lang.StringBuilder formatAndAppend ( java.lang.String compiledPattern , java.lang.StringBuilder appendTo , int [ ] offsets , java.lang.CharSequence ... values ) { int valuesLength = ( values != null ) ? values.length : 0 ; if ( valuesLength < ( android.icu.impl.SimplePatternFormatter.getPlaceholderCount ( compiledPattern ) ) ) { throw new java.lang.IllegalArgumentException ( "Too few values." ) ; } return android.icu.impl.SimplePatternFormatter.format ( compiledPattern , values , appendTo , null , true , offsets ) ; }

Target:
public static java.lang.StringBuilder formatAndAppend ( java.lang.String compiledPattern , java.lang.StringBuilder appendTo , int [ ] offsets , java.lang.CharSequence ... values ) { int valuesLength = ( values != null ) ? values.length : 0 ; if ( valuesLength < ( android.icu.impl.SimpleFormatterImpl.getArgumentLimit ( compiledPattern ) ) ) { throw new java.lang.IllegalArgumentException ( "Too few values." ) ; } return android.icu.impl.SimpleFormatterImpl.format ( compiledPattern , values , appendTo , null , true , offsets ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JLocalRef localRef ) { com.android.jack.ir.ast.JLocal clonedLocal = clonedLocals.get ( localRef.getLocal ( ) ) ; if ( clonedLocal == null ) { clonedLocal = cloneLocal ( localRef.getLocal ( ) ) ; } expression = new com.android.jack.ir.ast.JLocalRef ( localRef.getSourceInfo ( ) , clonedLocal ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JLocalRef localRef ) { com.android.jack.ir.ast.JLocal clonedLocal = clonedLocals.get ( localRef.getLocal ( ) ) ; if ( clonedLocal == null ) { clonedLocal = cloneLocal ( localRef.getLocal ( ) ) ; } expression = clonedLocal.makeRef ( localRef.getSourceInfo ( ) ) ; return false ; }
Source:
private void emitLocalEnd ( com.android.dx.dex.code.LocalList.Entry entry ) throws java.io.IOException { int mark = output.getCursor ( ) ; output.writeByte ( com.android.dx.dex.file.DBG_END_LOCAL ) ; output.writeUleb128 ( entry.getRegister ( ) ) ; if ( ( ( annotateTo ) != null ) || ( ( debugPrint ) != null ) ) { annotate ( ( ( output.getCursor ( ) ) - mark ) , java.lang.String.format ( "%04x: -local %s" , address , entryAnnotationString ( entry ) ) ) ; } if ( com.android.dx.dex.file.DebugInfoEncoder.DEBUG ) { java.lang.System.err.println ( "emit local end" ) ; } }

Target:
private void emitLocalEnd ( com.android.dx.dex.code.LocalList.Entry entry ) throws java.io.IOException { int mark = output.getCursor ( ) ; output.writeByte ( com.android.dx.dex.file.DebugInfoConstants.DBG_END_LOCAL ) ; output.writeUleb128 ( entry.getRegister ( ) ) ; if ( ( ( annotateTo ) != null ) || ( ( debugPrint ) != null ) ) { annotate ( ( ( output.getCursor ( ) ) - mark ) , java.lang.String.format ( "%04x: -local %s" , address , entryAnnotationString ( entry ) ) ) ; } if ( com.android.dx.dex.file.DebugInfoEncoder.DEBUG ) { java.lang.System.err.println ( "emit local end" ) ; } }
Source:
private void markAsReferenced ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface accessorClass , @ javax.annotation.Nonnull com.android.jack.ir.ast.JField field ) { com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker marker = accessorClass.getMarker ( com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker.class ) ; if ( marker == null ) { marker = new com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker ( ) ; accessorClass.addMarker ( marker ) ; } marker.addField ( field ) ; }

Target:
private void markAsReferenced ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface accessorClass , @ javax.annotation.Nonnull com.android.jack.ir.ast.JField field ) { com.android.jack.transformations.ast.inner.ReferencedFromInnerClassMarker marker = getOrCreateRFICMarker ( accessorClass ) ; marker.addField ( field ) ; }
Source:
public boolean disconnect ( ) { if ( android.bluetooth.BluetoothPbap.DBG ) android.bluetooth.BluetoothPbap.log ( "disconnect()" ) ; final android.bluetooth.IBluetoothPbap service = mService ; if ( service != null ) { try { service.disconnect ( ) ; return true ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothPbap.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothPbap.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothPbap.DBG ) android.bluetooth.BluetoothPbap.log ( android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } return false ; }

Target:
public java.util.List < android.bluetooth.BluetoothDevice > getConnectedDevices ( ) { android.bluetooth.BluetoothPbap.log ( "getConnectedDevices()" ) ; final android.bluetooth.IBluetoothPbap service = mService ; if ( service == null ) { android.util.Log.w ( android.bluetooth.BluetoothPbap.TAG , "Proxy not attached to service" ) ; return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; } try { return service.getConnectedDevices ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothPbap.TAG , e.toString ( ) ) ; } return new java.util.ArrayList < android.bluetooth.BluetoothDevice > ( ) ; }
Source:
public boolean copyMessageToIcc ( byte [ ] smsc , byte [ ] pdu , int status ) { boolean success = false ; try { com.android.internal.telephony.ISms iccISms = ISms.Stub.asInterface ( android.os.ServiceManager.getService ( "isms" ) ) ; if ( iccISms != null ) { success = iccISms.copyMessageToIccEf ( status , pdu , smsc ) ; } } catch ( android.os.RemoteException ex ) { } return success ; }

Target:
public boolean copyMessageToIcc ( byte [ ] smsc , byte [ ] pdu , int status ) { boolean success = false ; if ( null == pdu ) { throw new java.lang.IllegalArgumentException ( "pdu is NULL" ) ; } try { com.android.internal.telephony.ISms iccISms = ISms.Stub.asInterface ( android.os.ServiceManager.getService ( "isms" ) ) ; if ( iccISms != null ) { success = iccISms.copyMessageToIccEf ( status , pdu , smsc ) ; } } catch ( android.os.RemoteException ex ) { } return success ; }
Source:
public boolean isImsRegistered ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony == null ) return false ; return telephony.isImsRegistered ( ) ; } catch ( android.os.RemoteException ex ) { return false ; } catch ( java.lang.NullPointerException ex ) { return false ; } }

Target:
public static java.lang.String getTelephonyProperty ( java.lang.String property , java.lang.String defaultVal ) { java.lang.String propVal = android.os.SystemProperties.get ( property ) ; return propVal == null ? defaultVal : propVal ; }
Source:
public boolean setPairingConfirmation ( boolean confirm ) { if ( ( android.bluetooth.BluetoothDevice.sService ) == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot set pairing confirmation" ) ; return false ; } try { return android.bluetooth.BluetoothDevice.sService.setPairingConfirmation ( this , confirm ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }

Target:
public boolean sdpSearch ( android.os.ParcelUuid uuid ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot query remote device sdp records" ) ; return false ; } try { return service.sdpSearch ( this , uuid ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }
Source:
public void println ( java.lang.String message ) { java.lang.String tag = com.android.ide.eclipse.adt.AndroidPrintStream.getMessageTag ( ( ( mProject ) != null ? mProject.getName ( ) : null ) ) ; print ( tag ) ; print ( ": " ) ; if ( ( mPrefix ) != null ) { print ( mPrefix ) ; } super . println ( message ) ; }

Target:
public void println ( java.lang.String message ) { java.lang.String tag = com.android.ide.eclipse.adt.AndroidPrintStream.getMessageTag ( ( ( mProject ) != null ? mProject.getName ( ) : null ) ) ; print ( tag ) ; print ( " " ) ; if ( ( mPrefix ) != null ) { print ( mPrefix ) ; print ( " " ) ; } super . println ( message ) ; }
Source:
public boolean validates ( @ com.android.annotations.NonNull com.android.manifmerger.MergingReport.Builder mergingReport , @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull java.lang.String value ) { com.google.common.base.Optional < com.android.manifmerger.XmlElement > referencedElement = attribute.getOwnerElement ( ) . getDocument ( ) . getNodeByTypeAndKey ( referencedType , value ) ; if ( ! ( referencedElement.isPresent ( ) ) ) { mergingReport.addError ( java.lang.String.format ( ( "Referenced element %1$s=%2$s, in element %3$s declared at %4$s " + "does not exist" ) , attribute.getName ( ) , value , attribute.getOwnerElement ( ) . getId ( ) , attribute.printPosition ( ) ) ) ; return false ; } return true ; }

Target:
public boolean validates ( @ com.android.annotations.NonNull com.android.manifmerger.MergingReport.Builder mergingReport , @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull java.lang.String value ) { com.google.common.base.Optional < com.android.manifmerger.XmlElement > referencedElement = attribute.getOwnerElement ( ) . getDocument ( ) . getByTypeAndKey ( referencedType , value ) ; if ( ! ( referencedElement.isPresent ( ) ) ) { mergingReport.addError ( java.lang.String.format ( ( "Referenced element %1$s=%2$s, in element %3$s declared at %4$s " + "does not exist" ) , attribute.getName ( ) , value , attribute.getOwnerElement ( ) . getId ( ) , attribute.printPosition ( ) ) ) ; return false ; } return true ; }
Source:
public boolean setPhonebookAccessPermission ( int value ) { if ( ( android.bluetooth.BluetoothDevice.sService ) == null ) { return false ; } try { return android.bluetooth.BluetoothDevice.sService.setPhonebookAccessPermission ( this , value ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }

Target:
public boolean setPhonebookAccessPermission ( int value ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { return false ; } try { return service.setPhonebookAccessPermission ( this , value ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }
Source:
public void onResume ( ) { super . onResume ( ) ; if ( ( ( mState ) != ( com.android.printspooler.ui.PrintActivity.STATE_INITIALIZING ) ) && ( ( mCurrentPrinter ) != null ) ) { mPrinterRegistry.setTrackedPrinter ( mCurrentPrinter.getId ( ) ) ; } }

Target:
public void onResume ( ) { super . onResume ( ) ; if ( ( ( mState ) != ( com.android.printspooler.ui.PrintActivity.STATE_INITIALIZING ) ) && ( ( mCurrentPrinter ) != null ) ) { mPrinterRegistry.setTrackedPrinter ( mCurrentPrinter.getId ( ) ) ; } com.android.internal.logging.MetricsLogger.count ( this , "print_preview" , 1 ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { mTelephonyManager = ( ( android.telephony.TelephonyManager ) ( android.support.test.InstrumentationRegistry.getContext ( ) . getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; mTestHandlerThread = new android.carrierapi.cts.NetworkScanApiTest.NetworkScanHandlerThread ( android.carrierapi.cts.NetworkScanApiTest.TAG ) ; mTestHandlerThread.start ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mTelephonyManager = ( ( android.telephony.TelephonyManager ) ( android.support.test.InstrumentationRegistry.getContext ( ) . getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; mPackageManager = android.support.test.InstrumentationRegistry.getContext ( ) . getPackageManager ( ) ; mTestHandlerThread = new android.carrierapi.cts.NetworkScanApiTest.NetworkScanHandlerThread ( android.carrierapi.cts.NetworkScanApiTest.TAG ) ; mTestHandlerThread.start ( ) ; }
Source:
public javax.net.ssl.SSLEngine engineCreateSSLEngine ( ) { if ( ( sslParameters ) == null ) { throw new java.lang.IllegalStateException ( "SSLContext is not initialized." ) ; } org.conscrypt.SSLParametersImpl p = ( ( org.conscrypt.SSLParametersImpl ) ( sslParameters.clone ( ) ) ) ; p.setUseClientMode ( false ) ; return new org.conscrypt.SSLEngineImpl ( p ) ; }

Target:
public javax.net.ssl.SSLEngine engineCreateSSLEngine ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public void TestBasic ( ) { com.ibm.icu.text.PluralRanges a = new com.ibm.icu.text.PluralRanges ( ) ; a.add ( StandardPluralCategories.one , StandardPluralCategories.other , StandardPluralCategories.one ) ; com.ibm.icu.text.PluralRules.StandardPluralCategories actual = a.get ( StandardPluralCategories.one , StandardPluralCategories.other ) ; assertEquals ( "range" , StandardPluralCategories.one , actual ) ; a.freeze ( ) ; try { a.add ( StandardPluralCategories.one , StandardPluralCategories.one , StandardPluralCategories.one ) ; errln ( "Failed to cause exception on frozen instance" ) ; } catch ( java.lang.UnsupportedOperationException e ) { } }

Target:
public void TestBasic ( ) { com.ibm.icu.text.PluralRanges a = new com.ibm.icu.text.PluralRanges ( ) ; a.add ( StandardPlural.ONE , StandardPlural.OTHER , StandardPlural.ONE ) ; com.ibm.icu.impl.StandardPlural actual = a.get ( StandardPlural.ONE , StandardPlural.OTHER ) ; assertEquals ( "range" , StandardPlural.ONE , actual ) ; a.freeze ( ) ; try { a.add ( StandardPlural.ONE , StandardPlural.ONE , StandardPlural.ONE ) ; errln ( "Failed to cause exception on frozen instance" ) ; } catch ( java.lang.UnsupportedOperationException e ) { } }
Source:
synchronized void nScriptBindAllocation ( int script , int alloc , int slot ) { validate ( ) ; rsnScriptBindAllocation ( mContext , script , alloc , slot ) ; }

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , float [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }
Source:
public java.lang.String testNorm ( ) throws java.lang.Throwable { getTestLogger ( ) . logMessage ( R.string.snsr_mag_verify_norm ) ; android.hardware.cts.helpers.TestSensorEnvironment environment = new android.hardware.cts.helpers.TestSensorEnvironment ( getApplicationContext ( ) , android.hardware.Sensor.TYPE_MAGNETIC_FIELD , android.hardware.SensorManager.SENSOR_DELAY_FASTEST ) ; android.hardware.cts.helpers.sensoroperations.TestSensorOperation verifyNorm = new android.hardware.cts.helpers.sensoroperations.TestSensorOperation ( environment , 100 ) ; float expectedMagneticFieldEarth = ( ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MAX ) + ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MIN ) ) / 2 ; float magneticFieldEarthThreshold = expectedMagneticFieldEarth - ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MIN ) ; verifyNorm.addVerification ( new android.hardware.cts.helpers.sensorverification.MagnitudeVerification ( expectedMagneticFieldEarth , magneticFieldEarthThreshold ) ) ; verifyNorm.execute ( ) ; return null ; }

Target:
public java.lang.String testNorm ( ) throws java.lang.Throwable { getTestLogger ( ) . logMessage ( R.string.snsr_mag_verify_norm ) ; android.hardware.cts.helpers.TestSensorEnvironment environment = new android.hardware.cts.helpers.TestSensorEnvironment ( getApplicationContext ( ) , android.hardware.Sensor.TYPE_MAGNETIC_FIELD , android.hardware.SensorManager.SENSOR_DELAY_FASTEST ) ; android.hardware.cts.helpers.sensoroperations.TestSensorOperation verifyNorm = android.hardware.cts.helpers.sensoroperations.TestSensorOperation.createOperation ( environment , 100 ) ; float expectedMagneticFieldEarth = ( ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MAX ) + ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MIN ) ) / 2 ; float magneticFieldEarthThreshold = expectedMagneticFieldEarth - ( android.hardware.SensorManager.MAGNETIC_FIELD_EARTH_MIN ) ; verifyNorm.addVerification ( new android.hardware.cts.helpers.sensorverification.MagnitudeVerification ( expectedMagneticFieldEarth , magneticFieldEarthThreshold ) ) ; verifyNorm.execute ( getCurrentTestNode ( ) ) ; return null ; }
Source:
final void get ( char [ ] dst , int dstOffset , int charCount ) { int byteCount = checkGetBounds ( SizeOf.CHAR , dst.length , dstOffset , charCount ) ; this . block.peekCharArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , charCount , order.needsSwap ) ; position += byteCount ; }

Target:
public final int getInt ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.INT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } int result = this . block.peekInt ( ( ( offset ) + ( position ) ) , order ) ; position = newPosition ; return result ; }
Source:
private com.android.compatibility.common.util.MetricsReportLog createReport ( java.lang.String methodName ) { java.lang.String className = android.media.cts.bitstreams.MediaBitstreamsTest.class . getCanonicalName ( ) ; com.android.compatibility.common.util.MetricsReportLog report = new com.android.compatibility.common.util.MetricsReportLog ( mBuildHelper.getBuildInfo ( ) , mAbi.getName ( ) , java.lang.String.format ( "%s#%s" , className , methodName ) , ( ( ( MediaBitstreams.K_MODULE ) + "." ) + ( this . getClass ( ) . getCanonicalName ( ) ) ) , "media_bitstreams_conformance" ) ; return report ; }

Target:
private com.android.compatibility.common.util.MetricsReportLog createReport ( java.lang.String methodName ) { java.lang.String className = android.media.cts.bitstreams.MediaBitstreamsTest.class . getCanonicalName ( ) ; com.android.compatibility.common.util.MetricsReportLog report = new com.android.compatibility.common.util.MetricsReportLog ( mBuildHelper.getBuildInfo ( ) , mAbi.getName ( ) , java.lang.String.format ( "%s#%s" , className , methodName ) , ( ( ( MediaBitstreams.K_MODULE ) + "." ) + ( this . getClass ( ) . getSimpleName ( ) ) ) , "media_bitstreams_conformance" , true ) ; return report ; }
Source:
public org.bouncycastle.math.ec.ECFieldElement subtract ( org.bouncycastle.math.ec.ECFieldElement b ) { java.math.BigInteger x2 = b.toBigInteger ( ) ; java.math.BigInteger x3 = x.subtract ( x2 ) ; if ( ( x3.signum ( ) ) < 0 ) { x3 = x3.add ( q ) ; } return new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , x3 ) ; }

Target:
public org.bouncycastle.math.ec.ECFieldElement negate ( ) { return ( x.signum ( ) ) == 0 ? this : new org.bouncycastle.math.ec.ECFieldElement.Fp ( q , r , q.subtract ( x ) ) ; }
Source:
private static final java.lang.String whatToString ( int what ) { return android.net.ConnectivityManager.NoPreloadHolder.sMagicDecoderRing.get ( what , java.lang.Integer.toString ( what ) ) ; }

Target:
public int setUsbTethering ( boolean enable ) { try { java.lang.String pkgName = mContext.getOpPackageName ( ) ; android.util.Log.i ( android.net.ConnectivityManager.TAG , ( "setUsbTethering caller:" + pkgName ) ) ; return mService.setUsbTethering ( enable , pkgName ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public android.net.LinkAddress createFromParcel ( android.os.Parcel in ) { java.net.InetAddress address = null ; try { address = java.net.InetAddress.getByAddress ( in.createByteArray ( ) ) ; } catch ( java.net.UnknownHostException e ) { } int prefixLength = in.readInt ( ) ; return new android.net.LinkAddress ( address , prefixLength ) ; }

Target:
public android.net.LinkAddress createFromParcel ( android.os.Parcel in ) { java.net.InetAddress address = null ; try { address = java.net.InetAddress.getByAddress ( in.createByteArray ( ) ) ; } catch ( java.net.UnknownHostException e ) { } int prefixLength = in.readInt ( ) ; int flags = in.readInt ( ) ; int scope = in.readInt ( ) ; return new android.net.LinkAddress ( address , prefixLength , flags , scope ) ; }
Source:
final void get ( char [ ] dst , int dstOffset , int charCount ) { int byteCount = checkGetBounds ( SizeOf.CHAR , dst.length , dstOffset , charCount ) ; this . block.peekCharArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , charCount , order.needsSwap ) ; position += byteCount ; }

Target:
final void get ( char [ ] dst , int dstOffset , int charCount ) { checkNotFreed ( ) ; int byteCount = checkGetBounds ( SizeOf.CHAR , dst.length , dstOffset , charCount ) ; this . block.peekCharArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , charCount , order.needsSwap ) ; position += byteCount ; }
Source:
private boolean mode ( com.android.rs.test.RenderScript RS , com.android.rs.test.ScriptC_reduce s ) { final byte [ ] inputArray = createInputArrayByte ( 100000 , 12 ) ; final com.android.rs.test.Int2 javaRslt = mode ( RS , inputArray ) ; final com.android.rs.test.Int2 rsRslt = s.reduce_mode ( inputArray ) . get ( ) ; return result ( "mode" , javaRslt , rsRslt ) ; }

Target:
private boolean mode_array ( com.android.rs.test.RenderScript RS , com.android.rs.test.ScriptC_reduce s , int seed , int [ ] size ) { final byte [ ] inputArray = createInputArrayByte ( size [ 0 ] , seed ) ; final com.android.rs.test.Int2 javaRslt = mode ( RS , inputArray ) ; final com.android.rs.test.Int2 rsRslt = s.reduce_mode ( inputArray ) . get ( ) ; return result ( "mode" , new com.android.rs.test.UT_reduce.timing ( size [ 0 ] ) , javaRslt , rsRslt ) ; }
Source:
private com.android.jack.tools.merger.JackMerger getNewMerger ( ) { return new com.android.jack.tools.merger.JackMerger ( createDexFile ( ) , com.android.sched.util.config.ThreadConfig.get ( Options.BEST_MERGING_ACCURACY ) . booleanValue ( ) ) ; }

Target:
private com.android.jack.tools.merger.JackMerger getNewJackMerger ( int firstTypeIndex ) { if ( deterMultidex ) { return new com.android.jack.tools.merger.JackMerger ( createDexFile ( ) , com.android.sched.util.config.ThreadConfig.get ( Options.BEST_MERGING_ACCURACY ) . booleanValue ( ) , firstTypeIndex ) ; } else { return new com.android.jack.tools.merger.JackMerger ( createDexFile ( ) , com.android.sched.util.config.ThreadConfig.get ( Options.BEST_MERGING_ACCURACY ) . booleanValue ( ) ) ; } }
Source:
private final void resetContext ( ) { org.conscrypt.OpenSSLDigestContext ctxLocal = new org.conscrypt.OpenSSLDigestContext ( org.conscrypt.NativeCrypto.EVP_MD_CTX_create ( ) ) ; org.conscrypt.NativeCrypto.EVP_MD_CTX_init ( ctxLocal ) ; final org.conscrypt.OpenSSLKey macKey = this . macKey ; if ( macKey != null ) { org.conscrypt.NativeCrypto.EVP_DigestSignInit ( ctxLocal , evp_md , macKey.getPkeyContext ( ) ) ; } this . ctx = ctxLocal ; }

Target:
private final void resetContext ( ) { org.conscrypt.NativeRef.EVP_MD_CTX ctxLocal = new org.conscrypt.NativeRef.EVP_MD_CTX ( org.conscrypt.NativeCrypto.EVP_MD_CTX_create ( ) ) ; org.conscrypt.NativeCrypto.EVP_MD_CTX_init ( ctxLocal ) ; final org.conscrypt.OpenSSLKey macKey = this . macKey ; if ( macKey != null ) { org.conscrypt.NativeCrypto.EVP_DigestSignInit ( ctxLocal , evp_md , macKey.getPkeyContext ( ) ) ; } this . ctx = ctxLocal ; }
Source:
public void startEditors ( ) { com.android.ide.eclipse.adt.AdtPlugin.sAndroidLogoDesc = imageDescriptorFromPlugin ( com.android.ide.eclipse.adt.AdtPlugin.PLUGIN_ID , "/icons/android.png" ) ; com.android.ide.eclipse.adt.AdtPlugin.sAndroidLogo = com.android.ide.eclipse.adt.AdtPlugin.sAndroidLogoDesc.createImage ( ) ; org.eclipse.core.resources.IWorkspace ws = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) ; mResourceMonitor = com.android.ide.eclipse.adt.internal.resources.manager.GlobalProjectMonitor.startMonitoring ( ws ) ; if ( ( mResourceMonitor ) != null ) { try { setupDefaultEditor ( mResourceMonitor ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.setup ( mResourceMonitor ) ; } catch ( java.lang.Throwable t ) { com.android.ide.eclipse.adt.AdtPlugin.log ( t , "ResourceManager.setup failed" ) ; } } }

Target:
public void startEditors ( ) { com.android.ide.eclipse.adt.AdtPlugin.sAndroidLogoDesc = imageDescriptorFromPlugin ( com.android.ide.eclipse.adt.AdtPlugin.PLUGIN_ID , "/icons/android.png" ) ; com.android.ide.eclipse.adt.AdtPlugin.sAndroidLogo = com.android.ide.eclipse.adt.AdtPlugin.sAndroidLogoDesc.createImage ( ) ; org.eclipse.core.resources.IWorkspace ws = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) ; mResourceMonitor = com.android.ide.eclipse.adt.internal.resources.manager.GlobalProjectMonitor.startMonitoring ( ws ) ; if ( ( mResourceMonitor ) != null ) { try { setupDefaultEditor ( mResourceMonitor ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.setup ( mResourceMonitor ) ; com.android.ide.eclipse.adt.internal.lint.LintDeltaProcessor.startListening ( mResourceMonitor ) ; } catch ( java.lang.Throwable t ) { com.android.ide.eclipse.adt.AdtPlugin.log ( t , "ResourceManager.setup failed" ) ; } } }
Source:
public boolean removeLinkAddress ( android.net.LinkAddress toRemove ) { return mLinkAddresses.remove ( toRemove ) ; }

Target:
public boolean addLinkAddress ( android.net.LinkAddress address ) { if ( address == null ) { return false ; } int i = findLinkAddressIndex ( address ) ; if ( i < 0 ) { mLinkAddresses.add ( address ) ; return true ; } else if ( mLinkAddresses.get ( i ) . equals ( address ) ) { return false ; } else { mLinkAddresses.set ( i , address ) ; return true ; } }
Source:
public void addTestMethod ( java.lang.String testClassName , java.lang.String testMethodName ) { java.lang.Class < ? > clazz = mTestLoader.loadClass ( testClassName ) ; if ( clazz != null ) { mFilter = mFilter.intersect ( org.junit.runner.manipulation.Filter.matchMethodDescription ( org.junit.runner.Description.createTestDescription ( clazz , testMethodName ) ) ) ; } }

Target:
public void addTestMethod ( java.lang.String testClassName , java.lang.String testMethodName ) { java.lang.Class < ? > clazz = mTestLoader.loadClass ( testClassName ) ; if ( clazz != null ) { mFilter = mFilter.intersect ( com.android.test.runner.TestRequestBuilder.matchParameterizedMethod ( org.junit.runner.Description.createTestDescription ( clazz , testMethodName ) ) ) ; } }
Source:
public void testCreateInvalidConfigAeadWithAuth ( ) throws java.lang.Exception { android.net.IpSecConfig ipSecConfig = new android.net.IpSecConfig ( ) ; addDefaultSpisAndRemoteAddrToIpSecConfig ( ipSecConfig ) ; for ( int direction : com.android.server.IpSecServiceParameterizedTest.DIRECTIONS ) { ipSecConfig.setAuthentication ( direction , com.android.server.IpSecServiceParameterizedTest.AUTH_ALGO ) ; ipSecConfig.setAuthenticatedEncryption ( direction , com.android.server.IpSecServiceParameterizedTest.AEAD_ALGO ) ; } try { mIpSecService.createTransportModeTransform ( ipSecConfig , new android.os.Binder ( ) ) ; org.junit.Assert.fail ( ( "IpSecService should have thrown an error on authentication being" + " enabled with authenticated encryption" ) ) ; } catch ( java.lang.IllegalArgumentException expected ) { } }

Target:
public void testRemoveTransportModeTransform ( ) throws java.lang.Exception { android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.fromSocket ( new java.net.Socket ( ) ) ; mIpSecService.removeTransportModeTransforms ( pfd , 1 ) ; org.mockito.Mockito.verify ( mMockNetd ) . ipSecRemoveTransportModeTransform ( pfd.getFileDescriptor ( ) ) ; }