auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testApplyingWithCriticalFiles ( ) throws java.lang.Exception { com.intellij.updater.PatchFileCreator.create ( myOlderDir , myNewerDir , myFile , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Arrays.asList ( "lib/annotations.jar" ) , java.util.Collections.< java.lang.String > emptyList ( ) , com.intellij.updater.TEST_UI ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; assertTrue ( com.intellij.updater.PatchFileCreator.apply ( preparationResult , new java.util.HashMap < java.lang.String , com.intellij.updater.ValidationResult.Option > ( ) , com.intellij.updater.TEST_UI ) ) ; assertAppliedCorrectly ( ) ; }

Target:
public void testApplyingWithCriticalFiles ( ) throws java.lang.Exception { myPatchSpec.setCriticalFiles ( java.util.Arrays.asList ( "lib/annotations.jar" ) ) ; com.intellij.updater.PatchFileCreator.create ( myPatchSpec , myFile , com.intellij.updater.TEST_UI ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; assertTrue ( com.intellij.updater.PatchFileCreator.apply ( preparationResult , new java.util.HashMap < java.lang.String , com.intellij.updater.ValidationResult.Option > ( ) , com.intellij.updater.TEST_UI ) ) ; assertAppliedCorrectly ( ) ; }
Source:
public static void computeAsinh ( android.renderscript.cts.TestAsinh.ArgumentsFloatFloat args ) { args.ulf = 5 ; args.ulfRelaxed = 5 ; double x = ( ( double ) ( args.in ) ) ; args.out = ( ( float ) ( java.lang.StrictMath.log ( ( x + ( java.lang.StrictMath.sqrt ( ( ( x * x ) + 1.0 ) ) ) ) ) ) ) ; }

Target:
public static void computeCopysign ( android.renderscript.cts.TestCopysign.ArgumentsFloatFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( java.lang.Math.copySign ( args.inX , args.inY ) , 0 , 0 ) ; }
Source:
public boolean passwordUid ( java.lang.String password , int uid ) { try { mError = mBinder.password_uid ( password , uid ) ; return ( mError ) == ( 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 ; } }

Target:
public java.lang.String [ ] list ( java.lang.String prefix ) { return list ( prefix , android.security.KeyStore.UID_SELF ) ; }
Source:
public void testBadSurrogates() throws java.lang.Exception { java.io.StringWriter stringWriter = new java.io.StringWriter(); org.xmlpull.v1.XmlSerializer serializer = new org.kxml2.io.KXmlSerializer(); serializer.setOutput(stringWriter); serializer.startDocument("UTF-8", null); serializer.startTag(libcore.xml.KxmlSerializerTest.NAMESPACE, "tag"); try { serializer.attribute(libcore.xml.KxmlSerializerTest.NAMESPACE, "attr", "a\ud83d@b"); } catch (java.lang.IllegalArgumentException expected) { } try { serializer.text("c\ud83d@d"); } catch (java.lang.IllegalArgumentException expected) { } try { serializer.cdsect("e\ud83d@f"); } catch (java.lang.IllegalArgumentException expected) { } }

Target:
public void testBadSurrogates() throws java.lang.Exception { java.io.StringWriter stringWriter = new java.io.StringWriter(); org.xmlpull.v1.XmlSerializer serializer = new org.kxml2.io.KXmlSerializer(); serializer.setOutput(stringWriter); serializer.startDocument("UTF-8", null); serializer.startTag(libcore.xml.KxmlSerializerTest.NAMESPACE, "tag"); try { serializer.attribute(libcore.xml.KxmlSerializerTest.NAMESPACE, "attr", "a\ud83d@b"); fail(); } catch (java.lang.IllegalArgumentException expected) { } try { serializer.text("c\ud83d@d"); fail(); } catch (java.lang.IllegalArgumentException expected) { } try { serializer.cdsect("e\ud83d@f"); fail(); } catch (java.lang.IllegalArgumentException expected) { } }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { java.lang.String v = org.conscrypt.NativeCrypto.SSL_SESSION_get_version ( session ) ; assertTrue ( StandardNames.SSL_SOCKET_PROTOCOLS.contains ( v ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { java.lang.String v = org.conscrypt.NativeCrypto.SSL_SESSION_get_version ( session ) ; org.junit.Assert.assertTrue ( StandardNames.SSL_SOCKET_PROTOCOLS.contains ( v ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public void checkValidity ( ) { super . checkValidity ( ) ; if ( ! ( ( getLastElement ( ) ) instanceof com.android.jack.ir.ast.cfg.JReturnBlockElement ) ) { throw new com.android.jack.ir.JNodeInternalError ( this , "The last element of the block must be return element" ) ; } }

Target:
public void checkValidity ( ) { super . checkValidity ( ) ; if ( ! ( ( getLastElement ( ) ) instanceof com.android.jack.ir.ast.cfg.JReturnBlockElement ) ) { throw new com.android.jack.ir.JNodeInternalError ( this , "JReturnBasicBlock's last element must be JReturnBlockElement" ) ; } if ( ! ( ( getPrimarySuccessor ( ) ) instanceof com.android.jack.ir.ast.cfg.JExitBasicBlock ) ) { throw new com.android.jack.ir.JNodeInternalError ( this , "JReturnBasicBlock's primary successor must be JExitBasicBlock" ) ; } }
Source:
public void testDeserialize ( ) { java.lang.String json = "{\"startLine\":11,\"startColumn\":22,\"startOffset\":33," + ( "\"endLine\":66,\"endColumn\":77,\"endOffset\":88, " + "\"invalid\":[\"ignored\"]}" ) ; com.android.ide.common.blame.SourcePosition range = mGson.fromJson ( json , com.android.ide.common.blame.SourcePosition.class ) ; org.junit.Assert.assertEquals ( range , new com.android.ide.common.blame.SourcePosition ( 11 , 22 , 33 , 66 , 77 , 88 ) ) ; }

Target:
public void testDeserialize ( ) { java.lang.String json = "{\"startLine\":11,\"startColumn\":22,\"startOffset\":33," + "\"endLine\":66,\"endColumn\":77,\"endOffset\":88}" ; com.android.ide.common.blame.SourcePosition range = mGson.fromJson ( json , com.android.ide.common.blame.SourcePosition.class ) ; org.junit.Assert.assertEquals ( range , new com.android.ide.common.blame.SourcePosition ( 11 , 22 , 33 , 66 , 77 , 88 ) ) ; }
Source:
public void testMinSdkVersion ( ) { assertEquals ( 7 , mManifestTestApp.getMinSdkVersion ( ) ) ; assertEquals ( 8 , mManifestTestApp.getTargetSdkVersion ( ) ) ; assertEquals ( "foo" , mManifestInstrumentation.getMinSdkVersionString ( ) ) ; assertEquals ( 0 , mManifestInstrumentation.getMinSdkVersion ( ) ) ; }

Target:
public void testMinSdkVersion ( ) { assertEquals ( 7 , mManifestTestApp.getMinSdkVersion ( ) ) ; assertEquals ( 8 , mManifestTestApp.getTargetSdkVersion ( ) ) ; assertEquals ( "foo" , mManifestInstrumentation.getMinSdkVersionString ( ) ) ; assertEquals ( ManifestData.MIN_SDK_CODENAME , mManifestInstrumentation.getMinSdkVersion ( ) ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { objArray = null ; ll = null ; super . tearDown ( ) ; }

Target:
public void assertDeserialized ( java.io.Serializable initial , java.io.Serializable deserialized ) { java.util.LinkedList < java.lang.Object > formerQue = ( ( java.util.LinkedList ) ( initial ) ) ; java.util.LinkedList < java.lang.Object > deserializedQue = ( ( java.util.LinkedList ) ( deserialized ) ) ; assertEquals ( formerQue.remove ( ) , deserializedQue.remove ( ) ) ; }
Source:
public void actionPerformed ( java.awt.event.ActionEvent event ) { if ( ! ( showBadPatches ) ) { findBadPatches ( ) ; checkButton.setText ( "Hide bad patches" ) ; } else { checkButton.setText ( "Show bad patches" ) ; corruptedPatches = null ; } repaint ( ) ; showBadPatches = ! ( showBadPatches ) ; }

Target:
public void eventDispatched ( java.awt.AWTEvent event ) { enableEraseMode ( ( ( java.awt.event.KeyEvent ) ( event ) ) ) ; }
Source:
public boolean setCountryCode ( java.lang.String countryCode ) { if ( countryCode != null ) return doBooleanCommand ( ( "DRIVER COUNTRY " + ( countryCode.toUpperCase ( java.util.Locale.ROOT ) ) ) ) ; else return doBooleanCommand ( "DRIVER COUNTRY" ) ; }

Target:
public boolean setCountryCode ( java.lang.String countryCode ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.setCountryCode ( countryCode ) ; } else { if ( countryCode != null ) { return doBooleanCommand ( ( "DRIVER COUNTRY " + ( countryCode.toUpperCase ( java.util.Locale.ROOT ) ) ) ) ; } else { return doBooleanCommand ( "DRIVER COUNTRY" ) ; } } }
Source:
public int [ ] getAdnRecordsSize ( int efid ) { if ( DBG ) logd ( ( "getAdnRecordsSize: efid=" + efid ) ) ; synchronized ( mLock ) { checkThread ( ) ; recordSize = new int [ 3 ] ; java.util.concurrent.atomic.AtomicBoolean status = new java.util.concurrent.atomic.AtomicBoolean ( false ) ; android.os.Message response = mBaseHandler.obtainMessage ( com.android.internal.telephony.cdma.EVENT_GET_SIZE_DONE , status ) ; phone.getIccFileHandler ( ) . getEFLinearRecordSize ( efid , response ) ; waitForResult ( status ) ; } return recordSize ; }

Target:
public int [ ] getAdnRecordsSize ( int efid ) { if ( DBG ) logd ( ( "getAdnRecordsSize: efid=" + efid ) ) ; synchronized ( mLock ) { checkThread ( ) ; recordSize = new int [ 3 ] ; java.util.concurrent.atomic.AtomicBoolean status = new java.util.concurrent.atomic.AtomicBoolean ( false ) ; android.os.Message response = mBaseHandler.obtainMessage ( com.android.internal.telephony.cdma.EVENT_GET_SIZE_DONE , status ) ; com.android.internal.telephony.IccFileHandler fh = phone.getIccFileHandler ( ) ; if ( fh != null ) { fh.getEFLinearRecordSize ( efid , response ) ; waitForResult ( status ) ; } } return recordSize ; }
Source:
public boolean sameAs ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; org.python.core.PyObject otherObject = ap.getPyObject ( 0 ) ; com.android.monkeyrunner.core.IMonkeyImage other = ( ( com.android.monkeyrunner.core.IMonkeyImage ) ( otherObject.__tojava__ ( com.android.monkeyrunner.core.IMonkeyImage.class ) ) ) ; double percent = com.android.monkeyrunner.JythonUtils.getFloat ( ap , 1 , 1.0 ) ; return impl.sameAs ( other , percent ) ; }

Target:
public boolean sameAs ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; org.python.core.PyObject otherObject = ap.getPyObject ( 0 ) ; com.android.chimpchat.core.IChimpImage other = ( ( com.android.chimpchat.core.IChimpImage ) ( otherObject.__tojava__ ( com.android.chimpchat.core.IChimpImage.class ) ) ) ; double percent = com.android.monkeyrunner.JythonUtils.getFloat ( ap , 1 , 1.0 ) ; return impl.sameAs ( other , percent ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( super . toString ( ) ) + ( ( status ) == 0 ? " not active " : " active " ) ) + " reason: " ) + ( reason ) ) + " serviceClass: " ) + ( serviceClass ) ) + " " ) + ( timeSeconds ) ) + " seconds" ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( ( ( "[CallForwardInfo: status=" + ( ( status ) == 0 ? " not active " : " active " ) ) + ", reason= " ) + ( reason ) ) + ", serviceClass= " ) + ( serviceClass ) ) + ", timeSec= " ) + ( timeSeconds ) ) + " seconds" ) + ", number=" ) + ( android.telecom.Log.pii ( number ) ) ) + "]" ; }
Source:
public boolean setInstallLocation ( int loc ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.WRITE_SECURE_SETTINGS , null ) ; if ( ( getInstallLocation ( ) ) == loc ) { return true ; } if ( ( ( loc == ( com.android.internal.content.PackageHelper.APP_INSTALL_AUTO ) ) || ( loc == ( com.android.internal.content.PackageHelper.APP_INSTALL_INTERNAL ) ) ) || ( loc == ( com.android.internal.content.PackageHelper.APP_INSTALL_EXTERNAL ) ) ) { android.provider.Settings.System.putInt ( mContext.getContentResolver ( ) , android.provider.Settings.Secure.DEFAULT_INSTALL_LOCATION , loc ) ; return true ; } return false ; }

Target:
public boolean setInstallLocation ( int loc ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.WRITE_SECURE_SETTINGS , null ) ; if ( ( getInstallLocation ( ) ) == loc ) { return true ; } if ( ( ( loc == ( com.android.internal.content.PackageHelper.APP_INSTALL_AUTO ) ) || ( loc == ( com.android.internal.content.PackageHelper.APP_INSTALL_INTERNAL ) ) ) || ( loc == ( com.android.internal.content.PackageHelper.APP_INSTALL_EXTERNAL ) ) ) { android.provider.Settings.Global.putInt ( mContext.getContentResolver ( ) , android.provider.Settings.Global.DEFAULT_INSTALL_LOCATION , loc ) ; return true ; } return false ; }
Source:
public void copyFrom ( byte [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFrom" ) ; mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFromUnchecked ( byte [ ] d ) { copyFromUnchecked ( d , Element.DataType.SIGNED_8 , d.length ) ; }
Source:
public void writeSmsToRuim ( int status , java.lang.String pdu , android.os.Message response ) { status = translateStatus ( status ) ; com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM , response ) ; rr.mParcel.writeInt ( status ) ; rr.mParcel.writeString ( pdu ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGV ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + status ) ) ; send ( rr ) ; }

Target:
public void writeSmsToRuim ( int status , java.lang.String pdu , android.os.Message response ) { status = translateStatus ( status ) ; com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM , response , mRILDefaultWorkSource ) ; rr.mParcel.writeInt ( status ) ; rr.mParcel.writeString ( pdu ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGV ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + status ) ) ; send ( rr ) ; }
Source:
public com.ibm.icu.impl.SimplePatternFormatter getByVariant ( java.lang.CharSequence variant ) { assert isValid ( ) ; int idx = com.ibm.icu.text.PluralRules.StandardPluralCategories.getIndexOrOtherIndex ( variant ) ; com.ibm.icu.impl.SimplePatternFormatter template = templates [ idx ] ; return ( template == null ) && ( idx != ( com.ibm.icu.text.PluralRules.StandardPluralCategories.OTHER_INDEX ) ) ? templates [ com.ibm.icu.text.PluralRules.StandardPluralCategories.OTHER_INDEX ] : template ; }

Target:
public com.ibm.icu.impl.SimplePatternFormatter getByVariant ( java.lang.CharSequence variant ) { assert isValid ( ) ; int idx = com.ibm.icu.impl.StandardPlural.indexOrOtherIndexFromString ( variant ) ; com.ibm.icu.impl.SimplePatternFormatter template = templates [ idx ] ; return ( template == null ) && ( idx != ( com.ibm.icu.impl.StandardPlural.OTHER_INDEX ) ) ? templates [ com.ibm.icu.impl.StandardPlural.OTHER_INDEX ] : template ; }
Source:
public java.nio.ByteBuffer putLong ( int index , long value ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.LONG ) ; this . block.pokeLong ( ( ( offset ) + index ) , value , order ) ; return this ; }

Target:
public java.nio.ByteBuffer putLong ( int index , long value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.LONG ) ; this . block.pokeLong ( ( ( offset ) + index ) , value , order ) ; return this ; }
Source:
private void assertDomainEmpty ( java.lang.String domain ) throws java.io.FileNotFoundException { java.util.List < android.security.cts.SELinuxDomainTest.ProcessDetails > procs = android.security.cts.SELinuxDomainTest.ProcessDetails.getProcessMap ( ) . get ( domain ) ; assertNull ( procs ) ; }

Target:
private void assertDomainEmpty ( java.lang.String domain ) throws java.io.FileNotFoundException { java.util.List < android.security.cts.SELinuxDomainTest.ProcessDetails > procs = android.security.cts.SELinuxDomainTest.ProcessDetails.getProcessMap ( ) . get ( domain ) ; java.lang.String msg = ( ( ( ( "Expected no processes in SELinux domain \"" + domain ) + "\"" ) + " Found: \"" ) + procs ) + "\"" ; assertNull ( msg , procs ) ; }
Source:
public java.nio.ByteBuffer putLong ( int index , long value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.LONG ) ; this . block.pokeLong ( ( ( offset ) + index ) , value , order ) ; return this ; }

Target:
public java.nio.ByteBuffer putLong ( int index , long value ) { checkIsAccessible ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.LONG ) ; this . block.pokeLong ( ( ( offset ) + index ) , value , order ) ; return this ; }
Source:
public java.lang.String getISO3Language ( ) { java.lang.String code = libcore.icu.ICU.getISO3LanguageNative ( toString ( ) ) ; if ( ( ! ( languageCode.isEmpty ( ) ) ) && ( code.isEmpty ( ) ) ) { throw new java.util.MissingResourceException ( ( "No 3-letter language code for locale: " + ( this ) ) , ( "FormatData_" + ( this ) ) , "ShortLanguage" ) ; } return code ; }

Target:
public boolean equals ( java.lang.Object object ) { if ( object == ( this ) ) { return true ; } if ( object instanceof java.util.Locale ) { java.util.Locale o = ( ( java.util.Locale ) ( object ) ) ; return ( ( ( ( languageCode.equals ( o.languageCode ) ) && ( countryCode.equals ( o.countryCode ) ) ) && ( variantCode.equals ( o.variantCode ) ) ) && ( scriptCode.equals ( o.scriptCode ) ) ) && ( extensions.equals ( o.extensions ) ) ; } return false ; }
Source:
public java.lang.String getIsimChallengeResponse ( java.lang.String nonce ) { try { com.android.internal.telephony.IPhoneSubInfo info = getSubscriberInfo ( ) ; if ( info == null ) return null ; return info.getIsimChallengeResponse ( nonce ) ; } catch ( android.os.RemoteException ex ) { return null ; } catch ( java.lang.NullPointerException ex ) { return null ; } }

Target:
public android.telephony.ims.aidl.IImsMmTelFeature getImsMmTelFeatureAndListen ( int slotIndex , com.android.ims.internal.IImsServiceFeatureCallback callback ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getMmTelFeatureAndListen ( slotIndex , callback ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsMmTelFeatureAndListen, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { com.android.tv.TvApplication.setCurrentRunningProcess ( this , true ) ; super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.activity_dvr_series_settings ) ; if ( savedInstanceState == null ) { com.android.tv.dvr.ui.SeriesDeletionFragment deletionFragment = new com.android.tv.dvr.ui.SeriesDeletionFragment ( ) ; deletionFragment.setArguments ( getIntent ( ) . getExtras ( ) ) ; android.support.v17.leanback.app.GuidedStepFragment.addAsRoot ( this , deletionFragment , R.id.dvr_settings_view_frame ) ; } }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { com.android.tv.TvApplication.setCurrentRunningProcess ( this , true ) ; super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.activity_dvr_series_settings ) ; if ( savedInstanceState == null ) { com.android.tv.dvr.ui.DvrSeriesDeletionFragment deletionFragment = new com.android.tv.dvr.ui.DvrSeriesDeletionFragment ( ) ; deletionFragment.setArguments ( getIntent ( ) . getExtras ( ) ) ; android.support.v17.leanback.app.GuidedStepFragment.addAsRoot ( this , deletionFragment , R.id.dvr_settings_view_frame ) ; } }
Source:
private void deselectAll ( java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo > canvasViewInfos ) { for ( java.util.ListIterator < com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection > it = mSelections.listIterator ( ) ; it.hasNext ( ) ; ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection s = it.next ( ) ; if ( canvasViewInfos.contains ( s.getViewInfo ( ) ) ) { it.remove ( ) ; } } }

Target:
private void deselectAll ( java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo > canvasViewInfos ) { for ( java.util.ListIterator < com.android.ide.eclipse.adt.internal.editors.layout.gle2.SelectionItem > it = mSelections.listIterator ( ) ; it.hasNext ( ) ; ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.SelectionItem s = it.next ( ) ; if ( canvasViewInfos.contains ( s.getViewInfo ( ) ) ) { it.remove ( ) ; } } }
Source:
boolean accept ( java.lang.Package pkg ) { if ( pkg instanceof com.android.sdklib.internal.repository.PlatformPackage ) { com.android.sdklib.internal.repository.PlatformPackage pp = ( ( com.android.sdklib.internal.repository.PlatformPackage ) ( pkg ) ) ; com.android.sdklib.AndroidVersion v = pp.getVersion ( ) ; return ( ! ( v.isPreview ( ) ) ) && ( ( v.getApiLevel ( ) ) == ( mApiLevel ) ) ; } return false ; }

Target:
boolean accept ( java.lang.Package pkg ) { if ( pkg instanceof com.android.sdklib.internal.repository.packages.PlatformPackage ) { com.android.sdklib.internal.repository.packages.PlatformPackage pp = ( ( com.android.sdklib.internal.repository.packages.PlatformPackage ) ( pkg ) ) ; com.android.sdklib.AndroidVersion v = pp.getVersion ( ) ; return ( ! ( v.isPreview ( ) ) ) && ( ( v.getApiLevel ( ) ) == ( mApiLevel ) ) ; } return false ; }
Source:
public void initTarget ( java.lang.String targetHash , com.android.sdklib.repository.FullRevision buildToolRevision , @ com.android.annotations.NonNull com.android.builder.core.AndroidBuilder androidBuilder ) { if ( targetHash == null ) { throw new java.lang.IllegalArgumentException ( "android.compileSdkVersion is missing!" ) ; } if ( buildToolRevision == null ) { throw new java.lang.IllegalArgumentException ( "android.buildToolsVersion is missing!" ) ; } com.android.builder.sdk.SdkLoader sdkLoader = getSdkLoader ( ) ; com.android.builder.sdk.SdkInfo sdkInfo = sdkLoader.getSdkInfo ( logger ) ; com.android.builder.sdk.TargetInfo targetInfo = sdkLoader.getTargetInfo ( targetHash , buildToolRevision , logger ) ; androidBuilder.setTargetInfo ( sdkInfo , targetInfo ) ; }

Target:
public void initTarget ( @ com.android.annotations.NonNull java.lang.String targetHash , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision buildToolRevision , @ com.android.annotations.NonNull java.util.Collection < com.android.builder.core.LibraryRequest > usedLibraries , @ com.android.annotations.NonNull com.android.builder.core.AndroidBuilder androidBuilder ) { com.google.common.base.Preconditions.checkNotNull ( targetHash , "android.compileSdkVersion is missing!" ) ; com.google.common.base.Preconditions.checkNotNull ( buildToolRevision , "android.buildToolsVersion is missing!" ) ; com.android.builder.sdk.SdkLoader sdkLoader = getSdkLoader ( ) ; com.android.builder.sdk.SdkInfo sdkInfo = sdkLoader.getSdkInfo ( logger ) ; com.android.builder.sdk.TargetInfo targetInfo = sdkLoader.getTargetInfo ( targetHash , buildToolRevision , logger ) ; androidBuilder.setTargetInfo ( sdkInfo , targetInfo , usedLibraries ) ; }
Source:
public static void computeLogb ( android.renderscript.cts.TestLogb.ArgumentsFloatFloat args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( ( java.lang.Float.floatToIntBits ( args.in ) ) > > 23 ) & 255 ) - 127.0F ; }

Target:
static android.renderscript.cts.CoreMathVerifier.RemainderAndQuotient remainderAndQuotient ( float numerator , float denominator ) { android.renderscript.cts.CoreMathVerifier.RemainderAndQuotient result = new android.renderscript.cts.CoreMathVerifier.RemainderAndQuotient ( ) ; if ( denominator == 0.0F ) { result.quotient = 0 ; result.remainder = java.lang.Float.NaN ; } else { result.quotient = ( ( int ) ( java.lang.StrictMath.round ( ( numerator / denominator ) ) ) ) ; result.remainder = numerator - ( ( result.quotient ) * denominator ) ; } return result ; }
Source:
public void setUp ( ) throws java.lang.Exception { mMockDevice = org.easymock.EasyMock.createNiceMock ( com.android.tradefed.device.ITestDevice.class ) ; mMockBuildInfo = org.easymock.EasyMock.createNiceMock ( com.android.tradefed.build.IBuildInfo.class ) ; mPreparer = new com.android.tradefed.targetprep.VtsTraceCollectPreparer ( ) ; com.android.tradefed.config.OptionSetter setter = new com.android.tradefed.config.OptionSetter ( mPreparer ) ; setter.setOptionValue ( "local-trace-dir" , com.android.tradefed.targetprep.VtsTraceCollectPreparerTest.TEST_TRACE_DIR ) ; }

Target:
com.android.compatibility.common.tradefed.build.VtsCompatibilityInvocationHelper createVtsHelper ( ) { return mMockHelper ; }
Source:
public android.bluetooth.le.AdvertisingSetParameters.Builder setSecondaryPhy ( int secondaryPhy ) { if ( ( ( secondaryPhy != ( android.bluetooth.le.AdvertisingSetParameters.PHY_LE_1M ) ) && ( secondaryPhy != ( android.bluetooth.le.AdvertisingSetParameters.PHY_LE_2M ) ) ) && ( secondaryPhy != ( android.bluetooth.le.AdvertisingSetParameters.PHY_LE_CODED ) ) ) { throw new java.lang.IllegalArgumentException ( ( "bad secondaryPhy " + secondaryPhy ) ) ; } this . secondaryPhy = secondaryPhy ; return this ; }

Target:
public android.bluetooth.le.AdvertisingSetParameters.Builder setSecondaryPhy ( int secondaryPhy ) { if ( ( ( secondaryPhy != ( android.bluetooth.BluetoothDevice.PHY_LE_1M ) ) && ( secondaryPhy != ( android.bluetooth.BluetoothDevice.PHY_LE_2M ) ) ) && ( secondaryPhy != ( android.bluetooth.BluetoothDevice.PHY_LE_CODED ) ) ) { throw new java.lang.IllegalArgumentException ( ( "bad secondaryPhy " + secondaryPhy ) ) ; } this . secondaryPhy = secondaryPhy ; return this ; }
Source:
private static void writeStringStringMap ( java.util.Map < java.lang.String , java.lang.String > map , java.io.ObjectOutputStream oos ) throws java.io.IOException { if ( map != null ) { oos.writeInt ( map.size ( ) ) ; for ( java.util.Map.Entry < java.lang.String , java.lang.String > entry : map.entrySet ( ) ) { oos.writeUTF ( entry.getKey ( ) ) ; oos.writeUTF ( entry.getValue ( ) ) ; } } else { oos.writeInt ( 0 ) ; } }

Target:
static void writeStringStringMap ( java.util.Map < java.lang.String , java.lang.String > map , java.io.OutputStream os ) throws java.io.IOException { if ( map != null ) { com.android.volley.toolbox.DiskBasedCache.writeInt ( os , map.size ( ) ) ; for ( java.util.Map.Entry < java.lang.String , java.lang.String > entry : map.entrySet ( ) ) { com.android.volley.toolbox.DiskBasedCache.writeString ( os , entry.getKey ( ) ) ; com.android.volley.toolbox.DiskBasedCache.writeString ( os , entry.getValue ( ) ) ; } } else { com.android.volley.toolbox.DiskBasedCache.writeInt ( os , 0 ) ; } }
Source:
protected static java.io.File [ ] getNinePatches ( ) { java.io.File pngFolder = getPngFolder ( ) ; java.io.File ninePatchFolder = new java.io.File ( pngFolder , "ninepatch" ) ; java.io.File [ ] files = ninePatchFolder.listFiles ( new java.io.FileFilter ( ) { @ java.lang.Override public boolean accept ( java.io.File file ) { return file.getPath ( ) . endsWith ( SdkConstants.DOT_9PNG ) ; } } ) ; if ( files != null ) { return files ; } return new java.io.File [ 0 ] ; }

Target:
public static java.util.Collection < java.lang.Object [ ] > getNinePatches ( ) { java.util.Collection < java.lang.Object [ ] > params = com.android.builder.png.NinePatchAaptProcessorTestUtils.getNinePatches ( ) ; com.android.builder.png.NinePatchAaptProcessorTest.sClassStartTime.set ( java.lang.System.currentTimeMillis ( ) ) ; return params ; }
Source:
private static java.lang.String byteArray2Hex ( final byte [ ] hash ) { java.util.Formatter formatter = new java.util.Formatter ( ) ; for ( byte b : hash ) { formatter.format ( "%02x" , b ) ; } return formatter.toString ( ) ; }

Target:
private static java.lang.String byteArray2Hex ( final byte [ ] hash ) { java.util.Formatter formatter = new java.util.Formatter ( ) ; try { for ( byte b : hash ) { formatter.format ( "%02x" , b ) ; } return formatter.toString ( ) ; } finally { formatter.close ( ) ; } }
Source:
public boolean mkdirs ( ) { if ( exists ( ) ) { return false ; } if ( mkdir ( ) ) { return true ; } java.lang.String parentDir = getParent ( ) ; if ( parentDir == null ) { return false ; } return ( new java.io.File ( parentDir ) . mkdirs ( ) ) && ( mkdir ( ) ) ; }

Target:
private boolean mkdirs ( boolean resultIfExists ) { try { mkdirErrno ( ) ; return true ; } catch ( libcore.io.ErrnoException errnoException ) { if ( ( errnoException.errno ) == ( ENOENT ) ) { java.io.File parent = getParentFile ( ) ; return ( ( parent != null ) && ( parent.mkdirs ( true ) ) ) && ( mkdir ( ) ) ; } else if ( ( errnoException.errno ) == ( EEXIST ) ) { return resultIfExists ; } return false ; } }
Source:
public com.android.ide.common.res2.MergingException addFilePosition ( @ com.android.annotations.NonNull java.io.File file , @ com.android.annotations.NonNull org.xml.sax.SAXParseException exception ) { int lineNumber = exception.getLineNumber ( ) ; if ( lineNumber != ( - 1 ) ) { addFilePosition ( new com.android.ide.common.blame.FilePosition ( file , new com.android.ide.common.blame.SourcePosition ( ( ( exception.getLineNumber ( ) ) - 1 ) , ( ( exception.getColumnNumber ( ) ) - 1 ) , ( - 1 ) ) ) ) ; } else { addFile ( file ) ; } return this ; }

Target:
public com.android.ide.common.res2.MergingException addFilePosition ( @ com.android.annotations.NonNull java.io.File file , @ com.android.annotations.NonNull org.xml.sax.SAXParseException exception ) { int lineNumber = exception.getLineNumber ( ) ; if ( lineNumber != ( - 1 ) ) { addFilePosition ( new com.android.ide.common.blame.SourceFilePosition ( file , new com.android.ide.common.blame.SourcePosition ( ( ( exception.getLineNumber ( ) ) - 1 ) , ( ( exception.getColumnNumber ( ) ) - 1 ) , ( - 1 ) ) ) ) ; } else { addFile ( file ) ; } return this ; }
Source:
public final java.lang.Object getObject ( javax.crypto.Cipher c ) throws java.io.IOException , java.lang.ClassNotFoundException , javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException { if ( c == null ) { throw new java.lang.NullPointerException ( "c == null" ) ; } byte [ ] serialized = c.doFinal ( encryptedContent ) ; java.io.ObjectInputStream ois = new java.io.ObjectInputStream ( new java.io.ByteArrayInputStream ( serialized ) ) ; return ois.readObject ( ) ; }

Target:
public final java.lang.Object getObject ( javax.crypto.Cipher c ) throws java.io.IOException , java.lang.ClassNotFoundException , javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException { if ( c == null ) { throw new java.lang.NullPointerException ( "c == null" ) ; } byte [ ] serialized = c.doFinal ( encryptedContent ) ; return javax.crypto.SealedObject.readSerialized ( serialized ) ; }
Source:
void onBeforeUserStartUninitialized ( final int userId ) { synchronized ( mPackages ) { if ( mSettings.areDefaultRuntimePermissionsGrantedLPr ( userId ) ) { return ; } } mDefaultPermissionPolicy.grantDefaultPermissions ( userId ) ; if ( android.os.Build.PERMISSIONS_REVIEW_REQUIRED ) { updatePermissionsLPw ( null , null , ( ( com.android.server.pm.PackageManagerService.UPDATE_PERMISSIONS_ALL ) | ( com.android.server.pm.PackageManagerService.UPDATE_PERMISSIONS_REPLACE_ALL ) ) ) ; } }

Target:
void onBeforeUserStartUninitialized ( final int userId ) { synchronized ( mPackages ) { if ( mSettings.areDefaultRuntimePermissionsGrantedLPr ( userId ) ) { return ; } } mDefaultPermissionPolicy.grantDefaultPermissions ( userId ) ; if ( ( mPermissionReviewRequired ) || ( android.os.Build.PERMISSIONS_REVIEW_REQUIRED ) ) { updatePermissionsLPw ( null , null , ( ( com.android.server.pm.PackageManagerService.UPDATE_PERMISSIONS_ALL ) | ( com.android.server.pm.PackageManagerService.UPDATE_PERMISSIONS_REPLACE_ALL ) ) ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { mResultsDir = com.android.tradefed.util.FileUtil.createTempDir ( "results" ) ; mResultDir = com.android.tradefed.util.FileUtil.createTempDir ( "12345" , mResultsDir ) ; mSubPlansDir = com.android.tradefed.util.FileUtil.createTempDir ( "subplans" ) ; mBuildHelper = new com.android.compatibility.common.tradefed.result.SubPlanCreatorTest.SpctMockCompatibilityBuildHelper ( new com.android.tradefed.build.BuildInfo ( "0" , "" , "" ) ) ; populateResults ( ) ; mSubPlanCreator = new com.android.compatibility.common.tradefed.result.SubPlanCreator ( ) ; com.android.tradefed.config.ArgsOptionParser optionParser = new com.android.tradefed.config.ArgsOptionParser ( mSubPlanCreator ) ; optionParser.parse ( java.util.Arrays.asList ( "-n" , com.android.compatibility.common.tradefed.result.SubPlanCreatorTest.SP_NAME , "-s" , com.android.compatibility.common.tradefed.result.SubPlanCreatorTest.SP_SESSION , "-r" , com.android.compatibility.common.tradefed.result.SubPlanCreatorTest.SP_RESULT_TYPE_FAILED , "-r" , com.android.compatibility.common.tradefed.result.SubPlanCreatorTest.SP_RESULT_TYPE_NOT_EXECUTED ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mResultsDir = com.android.tradefed.util.FileUtil.createTempDir ( "results" ) ; mResultDir = com.android.tradefed.util.FileUtil.createTempDir ( "12345" , mResultsDir ) ; mSubPlansDir = com.android.tradefed.util.FileUtil.createTempDir ( "subplans" ) ; mBuildHelper = new com.android.compatibility.common.tradefed.result.SubPlanCreatorTest.SpctMockCompatibilityBuildHelper ( new com.android.tradefed.build.BuildInfo ( "0" , "" , "" ) ) ; populateResults ( ) ; mSubPlanCreator = new com.android.compatibility.common.tradefed.result.SubPlanCreator ( ) ; com.android.tradefed.config.ArgsOptionParser optionParser = new com.android.tradefed.config.ArgsOptionParser ( mSubPlanCreator ) ; optionParser.parse ( java.util.Arrays.asList ( "-n" , com.android.compatibility.common.tradefed.result.SubPlanCreatorTest.SP_NAME , "--session" , com.android.compatibility.common.tradefed.result.SubPlanCreatorTest.SP_SESSION , "-r" , com.android.compatibility.common.tradefed.result.SubPlanCreatorTest.SP_RESULT_TYPE_FAILED , "-r" , com.android.compatibility.common.tradefed.result.SubPlanCreatorTest.SP_RESULT_TYPE_NOT_EXECUTED ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; mComponentContextFixture.setTelecomManager ( mTelecomManager ) ; new java.io.File ( mComponentContextFixture.getTestDouble ( ) . getApplicationContext ( ) . getFilesDir ( ) , com.android.server.telecom.tests.PhoneAccountRegistrarTest.FILE_NAME ) . delete ( ) ; mRegistrar = new com.android.server.telecom.PhoneAccountRegistrar ( mComponentContextFixture.getTestDouble ( ) . getApplicationContext ( ) , com.android.server.telecom.tests.PhoneAccountRegistrarTest.FILE_NAME ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; mComponentContextFixture.setTelecomManager ( mTelecomManager ) ; new java.io.File ( mComponentContextFixture.getTestDouble ( ) . getApplicationContext ( ) . getFilesDir ( ) , com.android.server.telecom.tests.PhoneAccountRegistrarTest.FILE_NAME ) . delete ( ) ; org.mockito.Mockito.when ( mDefaultDialerCache.getDefaultDialerApplication ( org.mockito.Matchers.anyInt ( ) ) ) . thenReturn ( "com.android.dialer" ) ; mRegistrar = new com.android.server.telecom.PhoneAccountRegistrar ( mComponentContextFixture.getTestDouble ( ) . getApplicationContext ( ) , com.android.server.telecom.tests.PhoneAccountRegistrarTest.FILE_NAME , mDefaultDialerCache ) ; }
Source:
private int getParameterWordCount ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { int wordCount = ( method.isStatic ( ) ) ? 0 : Type.OBJECT.getWordCount ( ) ; for ( com.android.jack.ir.ast.JParameter param : method.getParams ( ) ) { wordCount += com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( param.getType ( ) ) . getWordCount ( ) ; } return wordCount ; }

Target:
private int getParameterWordCount ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { int wordCount = ( method.isStatic ( ) ) ? 0 : Type.OBJECT.getWordCount ( ) ; for ( com.android.jack.ir.ast.JParameter param : method.getParams ( ) ) { if ( ( param.getMarker ( com.android.jack.transformations.lambda.CapturedVariable.class ) ) != null ) { continue ; } wordCount += com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( param.getType ( ) ) . getWordCount ( ) ; } return wordCount ; }
Source:
protected void dispatchBroadcastMessage ( android.telephony.SmsCbMessage message ) { if ( message.isEmergencyMessage ( ) ) { android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , message ) ; android.telephony.Rlog.d ( com.android.internal.telephony.SMSDispatcher.TAG , "Dispatching emergency SMS CB" ) ; dispatch ( intent , com.android.internal.telephony.SMSDispatcher.RECEIVE_EMERGENCY_BROADCAST_PERMISSION , AppOpsManager.OP_RECEIVE_EMERGECY_SMS ) ; } else { android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , message ) ; android.telephony.Rlog.d ( com.android.internal.telephony.SMSDispatcher.TAG , "Dispatching SMS CB" ) ; dispatch ( intent , com.android.internal.telephony.SMSDispatcher.RECEIVE_SMS_PERMISSION , AppOpsManager.OP_RECEIVE_SMS ) ; } }

Target:
public boolean isIms ( ) { if ( ( mImsSMSDispatcher ) != null ) { return mImsSMSDispatcher.isIms ( ) ; } else { android.telephony.Rlog.e ( com.android.internal.telephony.SMSDispatcher.TAG , ( ( mImsSMSDispatcher ) + " is null" ) ) ; return false ; } }
Source:
public java.lang.String createNetworkSpecifier ( @ android.net.wifi.nan.WifiNanManager.DataPathRole int role , @ android.annotation.Nullable java.lang.Object peerHandle , @ android.annotation.Nullable byte [ ] token ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.nan.WifiNanDiscoveryBaseSession.TAG , "createNetworkSpecifier: called on terminated session" ) ; return null ; } else { android.net.wifi.nan.WifiNanManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.nan.WifiNanDiscoveryBaseSession.TAG , "createNetworkSpecifier: called post GC on WifiNanManager" ) ; return null ; } return mgr.createNetworkSpecifier ( mClientId , role , mSessionId , peerHandle , token ) ; } }

Target:
public java.lang.String createNetworkSpecifier ( @ android.net.wifi.aware.WifiAwareManager.DataPathRole int role , @ android.annotation.Nullable java.lang.Object peerHandle , @ android.annotation.Nullable byte [ ] token ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.WifiAwareDiscoveryBaseSession.TAG , "createNetworkSpecifier: called on terminated session" ) ; return null ; } else { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.WifiAwareDiscoveryBaseSession.TAG , "createNetworkSpecifier: called post GC on WifiAwareManager" ) ; return null ; } return mgr.createNetworkSpecifier ( mClientId , role , mSessionId , peerHandle , token ) ; } }
Source:
public static com.android.server.telecom.Analytics.CallInfo initiateCallAnalytics ( java.lang.String callId , int direction ) { com.android.server.telecom.Log.d ( com.android.server.telecom.Analytics.TAG , ( "Starting analytics for call " + callId ) ) ; com.android.server.telecom.Analytics.CallInfoImpl callInfo = new com.android.server.telecom.Analytics.CallInfoImpl ( callId , direction ) ; synchronized ( com.android.server.telecom.Analytics.sLock ) { com.android.server.telecom.Analytics.sCallIdToInfo.put ( callId , callInfo ) ; } return callInfo ; }

Target:
public static com.android.server.telecom.Analytics.CallInfo initiateCallAnalytics ( java.lang.String callId , int direction ) { android.telecom.Log.d ( com.android.server.telecom.Analytics.TAG , ( "Starting analytics for call " + callId ) ) ; com.android.server.telecom.Analytics.CallInfoImpl callInfo = new com.android.server.telecom.Analytics.CallInfoImpl ( callId , direction ) ; synchronized ( com.android.server.telecom.Analytics.sLock ) { com.android.server.telecom.Analytics.sCallIdToInfo.put ( callId , callInfo ) ; } return callInfo ; }
Source:
public void onContactInfoComplete ( java.lang.String callId , com.android.incallui.ContactInfoCache.ContactCacheEntry entry ) { com.android.incallui.call.DialerCall call = callList.getCallById ( callId ) ; if ( call != null ) { call.getLogState ( ) . contactLookupResult = entry.contactLookupResult ; buildAndSendNotification ( callList , call , entry ) ; } }

Target:
public void onContactInfoComplete ( java.lang.String callId , com.android.incallui.ContactInfoCache.ContactCacheEntry entry ) { com.android.incallui.call.DialerCall call = com.android.incallui.call.CallList.getInstance ( ) . getCallById ( callId ) ; if ( call != null ) { call.getLogState ( ) . contactLookupResult = entry.contactLookupResult ; buildAndSendNotification ( com.android.incallui.call.CallList.getInstance ( ) , call , entry ) ; } }
Source:
private synchronized void msgPassThru ( int cmd ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , ( "msgPassThru " + cmd ) ) ; if ( ( mA2dpDevice ) == null ) { android.util.Log.e ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "Already disconnected ignoring." ) ; return ; } mAvrcpCtrlSrvc.sendPassThroughCmd ( mA2dpDevice , cmd , AvrcpControllerService.KEY_STATE_PRESSED ) ; mAvrcpCtrlSrvc.sendPassThroughCmd ( mA2dpDevice , cmd , AvrcpControllerService.KEY_STATE_RELEASED ) ; }

Target:
private synchronized void msgGetPlayStatusNative ( ) { if ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.DBG ) android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "msgGetPlayStatusNative" ) ; if ( ( mA2dpDevice ) == null ) { android.util.Log.w ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "Already disconnected ignoring." ) ; return ; } mAvrcpCtrlSrvc.getPlaybackState ( mA2dpDevice , false ) ; }
Source:
private static android.net.wifi.hotspot2.pps.Credential createCredentialWithCertificateCredential ( ) { android.net.wifi.hotspot2.pps.Credential.CertificateCredential certCred = new android.net.wifi.hotspot2.pps.Credential.CertificateCredential ( ) ; certCred.certType = "x509v3" ; certCred.certSha256FingerPrint = new byte [ 32 ] ; return android.net.wifi.hotspot2.pps.CredentialTest.createCredential ( null , certCred , null , FakeKeys.CA_CERT0 , new java.security.cert.X509Certificate [ ] { android.net.wifi.FakeKeys.CLIENT_CERT } , FakeKeys.RSA_KEY1 ) ; }

Target:
public void validateCertCredentialWithMismatchFingerprint ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = android.net.wifi.hotspot2.pps.CredentialTest.createCredentialWithCertificateCredential ( ) ; cred.getCertCredential ( ) . setCertSha256Fingerprint ( new byte [ 32 ] ) ; org.junit.Assert.assertFalse ( cred.validate ( ) ) ; }
Source:
public void callSessionMergeComplete ( com.android.ims.internal.ImsCallSession newSession ) { logi ( ( "callSessionMergeComplete :: newSession =" + newSession ) ) ; if ( ! ( isMergeHost ( ) ) ) { mMergeHost.processMergeComplete ( ) ; } else { if ( newSession != null ) { mTransientConferenceSession = ( doesCallSessionExistsInMerge ( newSession ) ) ? null : newSession ; } processMergeComplete ( ) ; } }

Target:
public void callSessionMergeComplete ( android.telephony.ims.ImsCallSession newSession ) { logi ( ( "callSessionMergeComplete :: newSession =" + newSession ) ) ; if ( ! ( isMergeHost ( ) ) ) { mMergeHost.processMergeComplete ( ) ; } else { if ( newSession != null ) { mTransientConferenceSession = ( doesCallSessionExistsInMerge ( newSession ) ) ? null : newSession ; } processMergeComplete ( ) ; } }
Source:
public static void computeMin ( android.renderscript.cts.TestMin.ArgumentsUintUintUint args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( int ) ( java.lang.StrictMath.min ( ( ( long ) ( ( args.inV1 ) & 4294967295L ) ) , ( ( long ) ( ( args.inV2 ) & 4294967295L ) ) ) ) ) ; }

Target:
public static void computeMin ( android.renderscript.cts.TestMin.ArgumentsCharCharChar args ) { args.out = android.renderscript.cts.CoreMathVerifier.minI8 ( args.inV1 , args.inV2 ) ; }
Source:
private com.android.internal.policy.impl.LockPatternKeyguardView.UnlockMode getUnlockMode ( ) { final com.android.internal.telephony.SimCard.State simState = mUpdateMonitor.getSimState ( ) ; if ( ( simState == ( SimCard.State.PIN_REQUIRED ) ) || ( simState == ( SimCard.State.PUK_REQUIRED ) ) ) { return com.android.internal.policy.impl.LockPatternKeyguardView.UnlockMode.SimPin ; } else { return mLockPatternUtils.isPermanentlyLocked ( ) ? com.android.internal.policy.impl.LockPatternKeyguardView.UnlockMode.Account : com.android.internal.policy.impl.LockPatternKeyguardView.UnlockMode.Pattern ; } }

Target:
private com.android.internal.policy.impl.LockPatternKeyguardView.UnlockMode getUnlockMode ( ) { final com.android.internal.telephony.IccCard.State simState = mUpdateMonitor.getSimState ( ) ; if ( ( simState == ( IccCard.State.PIN_REQUIRED ) ) || ( simState == ( IccCard.State.PUK_REQUIRED ) ) ) { return com.android.internal.policy.impl.LockPatternKeyguardView.UnlockMode.SimPin ; } else { return mLockPatternUtils.isPermanentlyLocked ( ) ? com.android.internal.policy.impl.LockPatternKeyguardView.UnlockMode.Account : com.android.internal.policy.impl.LockPatternKeyguardView.UnlockMode.Pattern ; } }
Source:
public static void render ( final com.android.ahat.heapdump.AhatSnapshot snapshot , com.android.ahat.Doc doc , com.android.ahat.Query query , java.lang.String id , java.util.Collection < com.android.ahat.heapdump.AhatInstance > instances ) { java.util.List < com.android.ahat.heapdump.AhatInstance > insts = new java.util.ArrayList < com.android.ahat.heapdump.AhatInstance > ( instances ) ; java.util.Collections.sort ( insts , com.android.ahat.Sort.defaultInstanceCompare ( snapshot ) ) ; com.android.ahat.HeapTable.render ( doc , query , id , new com.android.ahat.DominatedList.TableConfig ( ) , snapshot , insts ) ; }

Target:
public static void render ( final com.android.ahat.heapdump.AhatSnapshot snapshot , com.android.ahat.Doc doc , com.android.ahat.Query query , java.lang.String id , java.util.Collection < com.android.ahat.heapdump.AhatInstance > instances ) { java.util.List < com.android.ahat.heapdump.AhatInstance > insts = new java.util.ArrayList < com.android.ahat.heapdump.AhatInstance > ( instances ) ; java.util.Collections.sort ( insts , com.android.ahat.heapdump.Sort.defaultInstanceCompare ( snapshot ) ) ; com.android.ahat.HeapTable.render ( doc , query , id , new com.android.ahat.DominatedList.TableConfig ( ) , snapshot , insts ) ; }
Source:
public boolean delete ( java.lang.String key ) { try { return ( mBinder.del ( key , ( - 1 ) ) ) == ( 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 ; } }

Target:
public boolean contains ( java.lang.String key , int uid ) { try { return ( mBinder.exist ( 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 ; } }