auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void removeTransportModeTransform ( android.os.ParcelFileDescriptor pfd , android.net.IpSecTransform transform ) { try { mService.removeTransportModeTransform ( pfd , transform.getResourceId ( ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void removeTransportModeTransforms ( java.io.FileDescriptor socket , android.net.IpSecTransform transform ) throws java.io.IOException { try ( android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.dup ( socket ) ) { removeTransportModeTransforms ( pfd , transform ) ; } }
Source:
public static long LongMultiplication ( ) { long a ; long b ; long c ; a = 7L ; b = 3L ; c = a * b ; return c ; }

Target:
public static float FloatMultiplication ( ) { float a ; float b ; float c ; a = Main.$inline$float ( 7.0F ) ; b = Main.$inline$float ( 3.0F ) ; c = a * b ; return c ; }
Source:
public T or ( T defaultValue ) { com.google.common.base.Preconditions.checkNotNull ( defaultValue , "use orNull() instead of or(null)" ) ; return reference ; }

Target:
public T or ( T defaultValue ) { com.google.common.base.Preconditions.checkNotNull ( defaultValue , "use Optional.orNull() instead of Optional.or(null)" ) ; return reference ; }
Source:
protected boolean isImsConnection ( ) { return ( getOriginalConnection ( ) ) instanceof com.android.internal.telephony.imsphone.ImsPhoneConnection ; }

Target:
protected boolean isImsConnection ( ) { android.telecom.Connection originalConnection = getOriginalConnection ( ) ; return ( originalConnection != null ) && ( ( originalConnection.getPhoneType ( ) ) == ( com.android.internal.telephony.PhoneConstants.PHONE_TYPE_IMS ) ) ; }
Source:
public void render ( T model , org.w3c.dom.Element content ) { this . results = model ; tabsRenderer.clear ( ) ; registerTabs ( ) ; renderTabs ( content ) ; }

Target:
public void render ( T model , org.gradle.api.internal.html.SimpleHtmlWriter htmlWriter ) throws java.io.IOException { this . results = model ; tabsRenderer.clear ( ) ; registerTabs ( ) ; renderTabs ( htmlWriter ) ; }
Source:
protected void doOKAction ( ) { super . doOKAction ( ) ; org.jetbrains.plugins.github.GithubSettings.getInstance ( ) . setCreatePullRequestDefaultBranch ( getTargetBranch ( ) ) ; }

Target:
protected void doOKAction ( ) { super . doOKAction ( ) ; org.jetbrains.plugins.github.util.GithubSettings.getInstance ( ) . setCreatePullRequestDefaultBranch ( getTargetBranch ( ) ) ; }
Source:
public static android.telecom.ParcelableCall toParcelableCall ( com.android.server.telecom.Call call , boolean includeVideoProvider , com.android.server.telecom.PhoneAccountRegistrar phoneAccountRegistrar , boolean supportsExternalCalls ) { return com.android.server.telecom.ParcelableCallUtils.toParcelableCall ( call , includeVideoProvider , phoneAccountRegistrar , supportsExternalCalls , com.android.server.telecom.ParcelableCallUtils.CALL_STATE_OVERRIDE_NONE ) ; }

Target:
public static android.telecom.ParcelableCall toParcelableCall ( com.android.server.telecom.Call call , boolean includeVideoProvider , com.android.server.telecom.PhoneAccountRegistrar phoneAccountRegistrar , boolean supportsExternalCalls , boolean includeRttCall ) { return com.android.server.telecom.ParcelableCallUtils.toParcelableCall ( call , includeVideoProvider , phoneAccountRegistrar , supportsExternalCalls , com.android.server.telecom.ParcelableCallUtils.CALL_STATE_OVERRIDE_NONE , includeRttCall ) ; }
Source:
public static void computeRemainder ( android.renderscript.cts.TestRemainder.ArgumentsFloatFloatFloat args ) { args.ulf = 64 ; args.ulfRelaxed = 128 ; args.out = android.renderscript.cts.CoreMathVerifier.remainderAndQuotient ( args.inX , args.inY ) . remainder ; }

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:
protected void finalize ( ) throws java.lang.Throwable { helpDestroy ( ) ; super . finalize ( ) ; }

Target:
protected void finalize ( ) throws java.lang.Throwable { try { if ( ( guard ) != null ) { guard.warnIfOpen ( ) ; } helpDestroy ( ) ; } finally { super . finalize ( ) ; } }
Source:
public void syncFailed ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.NotNull final java.lang.String errorMessage ) { com.intellij.openapi.application.ApplicationManager.getApplication ( ) . invokeLater ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.intellij.openapi.ui.Messages.showErrorDialog ( ( "Error importing App Engine module : " + errorMessage ) , com.google.gct.idea.appengine.wizard.NewAppEngineModuleAction.ERROR_MESSAGE_TITLE ) ; } } ) ; }

Target:
public void syncFailed ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.NotNull final java.lang.String errorMessage ) { com.intellij.openapi.application.ApplicationManager.getApplication ( ) . invokeLater ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.intellij.openapi.ui.Messages.showErrorDialog ( ( "Error importing App Engine module : " + errorMessage ) , com.google.gct.idea.appengine.wizard.CloudModuleUtils.ERROR_MESSAGE_TITLE ) ; } } ) ; }
Source:
public void Test11619_UnrecognizedTimeZoneID ( ) { android.icu.util.VTimeZone vzone = android.icu.util.VTimeZone.create ( "ABadTimeZoneId" ) ; this . assertNull ( "" , vzone ) ; }

Target:
public void Test11619_UnrecognizedTimeZoneID ( ) { android.icu.util.VTimeZone vzone = android.icu.util.VTimeZone.create ( "ABadTimeZoneId" ) ; android.icu.dev.test.TestFmwk.assertNull ( "" , vzone ) ; }
Source:
public void registerContentObservers ( android.content.Context appContext , com.android.dialer.phonelookup.blockednumber.ContentObserverCallbacks contentObserverCallbacks ) { appContext.getContentResolver ( ) . registerContentObserver ( FilteredNumber.CONTENT_URI , true , new com.android.dialer.phonelookup.blockednumber.DialerBlockedNumberPhoneLookup.FilteredNumberObserver ( appContext , contentObserverCallbacks ) ) ; }

Target:
public void registerContentObservers ( android.content.Context appContext , com.android.dialer.phonelookup.blockednumber.ContentObserverCallbacks contentObserverCallbacks ) { appContext.getContentResolver ( ) . registerContentObserver ( FilteredNumber.CONTENT_URI , true , new com.android.dialer.phonelookup.blockednumber.MarkDirtyObserver ( appContext , contentObserverCallbacks ) ) ; }
Source:
public void shouldRequireSupplicantStartupToLeaveInitialState ( ) throws java.lang.Exception { when ( mClientInterface.enableSupplicant ( ) ) . thenReturn ( false ) ; mWsm.setSupplicantRunning ( true ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( "InitialState" , getCurrentState ( ) . getName ( ) ) ; }

Target:
public void loadComponentsInApMode ( ) throws java.lang.Exception { mWsm.setHostApRunning ( new android.net.wifi.WifiConfiguration ( ) , true ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( "SoftApState" , getCurrentState ( ) . getName ( ) ) ; verify ( mSoftApManager ) . start ( ) ; }
Source:
public java.util.List < java.lang.String > getBootClasspath ( ) { return java.util.Collections.singletonList ( getPath ( IAndroidTarget.ANDROID_JAR ) ) ; }

Target:
public java.util.List < java.lang.String > getBootClasspath ( ) { return com.google.common.collect.ImmutableList.of ( getPath ( IAndroidTarget.ANDROID_JAR ) ) ; }
Source:
private com.android.jack.ir.ast.JStatement makeAssignStatement ( @ javax.annotation.Nonnull com.android.jack.ir.sourceinfo.SourceInfo info , @ javax.annotation.Nonnull com.android.jack.ir.ast.JLocal local , com.android.jack.ir.ast.JExpression value ) { return new com.android.jack.ir.ast.JAsgOperation ( info , new com.android.jack.ir.ast.JLocalRef ( info , local ) , value ) . makeStatement ( ) ; }

Target:
private com.android.jack.ir.ast.JStatement makeAssignStatement ( @ javax.annotation.Nonnull com.android.jack.ir.sourceinfo.SourceInfo info , @ javax.annotation.Nonnull com.android.jack.ir.ast.JLocal local , com.android.jack.ir.ast.JExpression value ) { return new com.android.jack.ir.ast.JAsgOperation ( info , local.makeRef ( info ) , value ) . makeStatement ( ) ; }
Source:
public void onAbort ( ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( "onAbort " + ( mCurrentCall ) ) ) ; onDisconnect ( ) ; }

Target:
public void onAbort ( ) { if ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( "onAbort " + ( mCurrentCall ) ) ) ; } onDisconnect ( ) ; }
Source:
public java.nio.CharBuffer asReadOnlyBuffer ( ) { java.nio.CharToByteBufferAdapter buf = new java.nio.CharToByteBufferAdapter ( byteBuffer.asReadOnlyBuffer ( ) ) ; buf.limit = limit ; buf.position = position ; buf.mark = mark ; buf.byteBuffer.order = byteBuffer.order ; return buf ; }

Target:
public java.nio.CharBuffer asReadOnlyBuffer ( ) { java.nio.ByteBufferAsCharBuffer buf = new java.nio.ByteBufferAsCharBuffer ( byteBuffer.asReadOnlyBuffer ( ) ) ; buf.limit = limit ; buf.position = position ; buf.mark = mark ; buf.byteBuffer.order = byteBuffer.order ; return buf ; }
Source:
public static void computeSign ( android.renderscript.cts.TestSign.ArgumentsFloatFloat args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = java.lang.Math.signum ( args.inV ) ; }

Target:
public static void computeSign ( android.renderscript.cts.TestSign.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( java.lang.Math.signum ( args.inV ) , 0 , 0 ) ; }
Source:
public void onRecordLoaded ( android.os.AsyncResult ar ) { mEFpl = ( ( byte [ ] ) ( ar.result ) ) ; if ( com.android.internal.telephony.uicc.RuimRecords.DBG ) log ( ( "EF_PL=" + ( com.android.internal.telephony.uicc.IccUtils.bytesToHexString ( mEFpl ) ) ) ) ; }

Target:
public void onRecordLoaded ( android.os.AsyncResult ar ) { mEFpl = ( ( byte [ ] ) ( ar.result ) ) ; if ( DBG ) log ( ( "EF_PL=" + ( com.android.internal.telephony.uicc.IccUtils.bytesToHexString ( mEFpl ) ) ) ) ; }
Source:
public static native boolean BN_is_prime_ex ( long p , int nchecks , long cb ) ;

Target:
public static native boolean BN_primality_test ( long candidate , int checks , boolean do_trial_division ) ;
Source:
public void setup ( ) { put ( "Cipher.FOO" , MockCipherSpi.SpecificKeyTypes.class . getName ( ) ) ; put ( "Cipher.FOO SupportedKeyClasses" , ( ( this . getClass ( ) . getPackage ( ) . getName ( ) ) + ".MockKey" ) ) ; }

Target:
public void setup ( ) { put ( "Cipher.FOO" , MockCipherSpi.SpecificKeyTypes.class . getName ( ) ) ; put ( "Cipher.FOO SupportedKeyClasses" , libcore.javax.crypto.MockKey.class . getName ( ) ) ; }
Source:
public static java.lang.String getTimeZoneDatabaseVersion ( ) { return libcore.util.ZoneInfoDB.getVersion ( ) ; }

Target:
public static java.lang.String getTimeZoneDatabaseVersion ( ) { return libcore.util.ZoneInfoDB.getInstance ( ) . getVersion ( ) ; }
Source:
public java.util.Collection < java.io.File > getProguardFiles ( ) { return com.google.common.collect.Lists.newArrayList ( ) ; }

Target:
public java.util.Collection < java.io.File > getProguardFiles ( ) { return productFlavor.getProguardFiles ( ) ; }
Source:
public void testSetOnCancelListener ( ) throws java.lang.InterruptedException { HEAD ( 8 ) ; android.app.cts.a2b3a Merge ; android.app.cts.Removed assertion ; android.app.cts.in testPerformGlobalActionRe ; BRANCH ( 42.0F ) ; }

Target:
public void testSetOnDismissListener ( ) throws java.lang.InterruptedException { if ( ( isTelevision ( ) ) || ( isWatch ( ) ) ) { return ; } android.app.stubs.SearchManagerStubActivity.setCTSResult ( this ) ; setupActivity ( SearchManagerStubActivity.TEST_ON_DISMISSLISTENER ) ; waitForResult ( ) ; }
Source:
void resetIdleManagementLocked ( ) { mNextIdlePendingDelay = 0 ; mNextIdleDelay = 0 ; cancelAlarmLocked ( ) ; cancelSensingAlarmLocked ( ) ; cancelLocatingLocked ( ) ; stopMonitoringSignificantMotion ( ) ; mAnyMotionDetector.stop ( ) ; }

Target:
void resetIdleManagementLocked ( ) { mNextIdlePendingDelay = 0 ; mNextIdleDelay = 0 ; cancelAlarmLocked ( ) ; cancelSensingAlarmLocked ( ) ; cancelLocatingLocked ( ) ; stopMonitoringMotionLocked ( ) ; mAnyMotionDetector.stop ( ) ; }
Source:
public void factory_ofEpochDay_aboveMax ( ) { java.time.LocalDate.ofEpochDay ( ( ( MAX_VALID_EPOCHDAYS ) + 1 ) ) ; }

Target:
public void factory_ofEpochDay_belowMin ( ) { java.time.LocalDate.ofEpochDay ( ( ( tck.java.time.TCKLocalDate.MIN_VALID_EPOCHDAYS ) - 1 ) ) ; }
Source:
public com.android.sched.vfs.InputVFile apply ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { return getDexInputVFileOfType ( jackOutputLibrary , type ) ; }

Target:
public void merge ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) throws com.android.jack.backend.dex.DexWritingException { com.android.sched.vfs.InputVFile vFile = getDexInputVFileOfType ( jackOutputLibrary , type ) ; try { mergeDex ( merger , vFile ) ; } catch ( com.android.jack.tools.merger.MergingOverflowException e ) { throw new com.android.jack.backend.dex.DexWritingException ( new com.android.jack.backend.dex.SingleDexOverflowException ( e ) ) ; } }
Source:
private native java.lang.reflect.Field [ ] getPublicDeclaredFields ( ) ;

Target:
private native java.lang.reflect.Constructor < ? > [ ] getDeclaredConstructorsInternal ( boolean publicOnly ) ;
Source:
public void cancelSession ( java.lang.String callingPackage , byte [ ] transactionId , @ android.telephony.euicc.EuiccCardManager.CancelReason int reason , com.android.internal.telephony.euicc.ICancelSessionCallback callback ) { checkCallingPackage ( callingPackage ) ; }

Target:
public void cancelSession ( java.lang.String callingPackage , java.lang.String cardId , byte [ ] transactionId , @ android.telephony.euicc.EuiccCardManager.CancelReason int reason , com.android.internal.telephony.euicc.ICancelSessionCallback callback ) { checkCallingPackage ( callingPackage ) ; }
Source:
static android.telephony.SignalStrength convertHalSignalStrength ( com.android.internal.telephony.V1_0.SignalStrength signalStrength ) { return new android.telephony.SignalStrength ( signalStrength.gw.signalStrength , signalStrength.gw.bitErrorRate , signalStrength.cdma.dbm , signalStrength.cdma.ecio , signalStrength.evdo.dbm , signalStrength.evdo.ecio , signalStrength.evdo.signalNoiseRatio , signalStrength.lte.signalStrength , signalStrength.lte.rsrp , signalStrength.lte.rsrq , signalStrength.lte.rssnr , signalStrength.lte.cqi , signalStrength.tdScdma.rscp , false ) ; }

Target:
public static android.telephony.SignalStrength convertHalSignalStrength_1_2 ( com.android.internal.telephony.V1_2.SignalStrength signalStrength ) { return new android.telephony.SignalStrength ( signalStrength.gsm.signalStrength , signalStrength.gsm.bitErrorRate , signalStrength.cdma.dbm , signalStrength.cdma.ecio , signalStrength.evdo.dbm , signalStrength.evdo.ecio , signalStrength.evdo.signalNoiseRatio , signalStrength.lte.signalStrength , signalStrength.lte.rsrp , signalStrength.lte.rsrq , signalStrength.lte.rssnr , signalStrength.lte.cqi , signalStrength.tdScdma.rscp , signalStrength.wcdma.base.signalStrength , signalStrength.wcdma.rscp ) ; }
Source:
public void testE1 ( ) { dot.junit.opcodes.aget_char.d.T_aget_char_1 t = new dot.junit.opcodes.aget_char.d.T_aget_char_1 ( ) ; char [ ] arr = new char [ 2 ] ; try { t.run ( arr , 2 ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE2 ( ) { loadAndRun ( "dot.junit.opcodes.aget_char.d.T_aget_char_1" , java.lang.NullPointerException.class , null , 2 ) ; }
Source:
public void onConnectionServiceReleased ( com.android.server.telecom.ConnectionServiceFocusManager.ConnectionServiceFocus connectionServiceFocus ) { mEventHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_RELEASE_CONNECTION_FOCUS , connectionServiceFocus ) . sendToTarget ( ) ; }

Target:
public void onConnectionServiceReleased ( com.android.server.telecom.ConnectionServiceFocusManager.ConnectionServiceFocus connectionServiceFocus ) { mEventHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_RELEASE_CONNECTION_FOCUS , new com.android.server.telecom.ConnectionServiceFocusManager.MessageArgs ( android.telecom.Log.createSubsession ( ) , "CSFM.oCSR" , connectionServiceFocus ) ) . sendToTarget ( ) ; }
Source:
public com.android.sdklib.AndroidVersion getAndroidVersion ( ) { return version ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newSysImg ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IdDisplay tag , @ com.android.annotations.NonNull java.lang.String abi , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_SYS_IMAGES ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mTag = tag ; p.mPath = abi ; return p ; }
Source:
public java.lang.String toString ( ) { return ( ( ( "[" + ( mComponentName ) ) + " supportsExternal? " ) + ( mIsExternalCallsSupported ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( "[" + ( mComponentName ) ) + " supportsExternal? " ) + ( mIsExternalCallsSupported ) ) + " supportsSelfMg?" ) + ( mIsSelfManagedCallsSupported ) ) + "]" ; }
Source:
public static java.lang.String hidePii ( java.lang.String s ) { return com.android.internal.telephony.sip.SipPhone.VDBG ? s : "xxxxx" ; }

Target:
public static java.lang.String hidePii ( java.lang.String s ) { return com.android.internal.telephony.sip.SipPhone.VDBG ? android.telephony.Rlog.pii ( com.android.internal.telephony.sip.SipPhone.LOG_TAG , s ) : "xxxxx" ; }
Source:
public java.util.List < android.icu.util.TimeZone > lookupTimeZonesByCountry ( java.lang.String countryIso ) { countryIso = libcore.util.TimeZoneFinder.normalizeCountryIso ( countryIso ) ; libcore.util.TimeZoneFinder.CountryTimeZones countryTimeZones = findCountryTimeZones ( countryIso ) ; return countryTimeZones == null ? null : countryTimeZones.getTimeZones ( ) ; }

Target:
public java.util.List < android.icu.util.TimeZone > lookupTimeZonesByCountry ( java.lang.String countryIso ) { libcore.util.CountryTimeZones countryTimeZones = lookupCountryTimeZones ( countryIso ) ; return countryTimeZones == null ? null : countryTimeZones.getIcuTimeZones ( ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession t ) throws java.lang.Exception { try { com.android.jack.shrob.shrink.StructurePrinter.Visitor visitor = new com.android.jack.shrob.shrink.StructurePrinter.Visitor ( ) ; visitor.accept ( t.getTypesToEmit ( ) ) ; } finally { stream.close ( ) ; } }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession t ) throws java.lang.Exception { try { com.android.jack.util.StructurePrinter visitor = new com.android.jack.util.StructurePrinter ( stream ) ; visitor.accept ( t.getTypesToEmit ( ) ) ; } finally { stream.close ( ) ; } }
Source:
public void testConstructor_NullSerial_Failure ( ) throws java.lang.Exception { try { new android.security.KeyPairGeneratorSpec ( getContext ( ) , android.security.KeyPairGeneratorSpecTest.TEST_ALIAS_1 , "RSA" , 1024 , null , android.security.KeyPairGeneratorSpecTest.TEST_DN_1 , null , android.security.KeyPairGeneratorSpecTest.NOW , android.security.KeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS , 0 ) ; fail ( "Should throw IllegalArgumentException when startDate is null" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testConstructor_NullSerial_Success ( ) throws java.lang.Exception { android.security.KeyPairGeneratorSpec spec = new android.security.KeyPairGeneratorSpec ( getContext ( ) , android.security.KeyPairGeneratorSpecTest.TEST_ALIAS_1 , "RSA" , 1024 , null , android.security.KeyPairGeneratorSpecTest.TEST_DN_1 , null , android.security.KeyPairGeneratorSpecTest.NOW , android.security.KeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS , 0 ) ; assertEquals ( android.security.KeyPairGeneratorSpecTest.DEFAULT_CERT_SERIAL_NUMBER , spec.getSerialNumber ( ) ) ; }
Source:
public void onSearchBarClicked ( ) { com.android.dialer.logging.Logger.get ( mainActivity ) . logImpression ( DialerImpression.Type.NUI_CLICK_SEARCH_BAR ) ; openSearch ( com.google.common.base.Optional.absent ( ) ) ; }

Target:
public void onSearchBarClicked ( ) { com.android.dialer.common.LogUtil.enterBlock ( "MainSearchController.onSearchBarClicked" ) ; com.android.dialer.logging.Logger.get ( mainActivity ) . logImpression ( DialerImpression.Type.NUI_CLICK_SEARCH_BAR ) ; openSearch ( com.google.common.base.Optional.absent ( ) ) ; }
Source:
public void setSession ( org.conscrypt.OpenSSLSessionImpl sslSession ) { this . sslSession = sslSession ; }

Target:
java.lang.String chooseClientAlias ( javax.net.ssl.X509KeyManager keyManager , javax.security.auth.x500.X500Principal [ ] issuers , java.lang.String [ ] keyTypes ) ;
Source:
com.google.common.collect.ImmutableMap < K , V > map ( ) { return this ; }

Target:
com.google.common.collect.ImmutableCollection < com.google.common.collect.Table.Cell < R , C , V > > delegateCollection ( ) { return this ; }
Source:
native boolean nLoadSO ( boolean useNative ) ;

Target:
native boolean nLoadSO ( boolean useNative , int deviceApi ) ;
Source:
public void onNanDownCleanupDataPaths ( ) { if ( com.android.server.wifi.nan.WifiNanDataPathStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.nan.WifiNanDataPathStateManager.TAG , "onNanDownCleanupDataPaths" ) ; for ( com.android.server.wifi.nan.WifiNanDataPathStateManager.NanNetworkRequestInformation nnri : mNetworkRequestsCache.values ( ) ) { tearDownInterface ( nnri ) ; } mNetworkRequestsCache.clear ( ) ; }

Target:
public void onAwareDownCleanupDataPaths ( ) { if ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.TAG , "onAwareDownCleanupDataPaths" ) ; for ( com.android.server.wifi.aware.WifiAwareDataPathStateManager.AwareNetworkRequestInformation nnri : mNetworkRequestsCache.values ( ) ) { tearDownInterface ( nnri ) ; } mNetworkRequestsCache.clear ( ) ; }
Source:
public void testE1 ( ) { dot.junit.opcodes.rem_long.d.T_rem_long_1 t = new dot.junit.opcodes.rem_long.d.T_rem_long_1 ( ) ; try { t.run ( 1234567890123L , 0L ) ; fail ( "expected ArithmeticException" ) ; } catch ( java.lang.ArithmeticException ae ) { } }

Target:
public void testVFE1 ( ) { load ( "dot.junit.opcodes.rem_long.d.T_rem_long_2" , java.lang.VerifyError.class ) ; }
Source:
static byte [ ] asBytes ( int [ ] x ) { byte [ ] z = new byte [ 16 ] ; org.bouncycastle.crypto.util.Pack.intToBigEndian ( x , z , 0 ) ; return z ; }

Target:
static byte [ ] asBytes ( int [ ] x ) { byte [ ] z = new byte [ 16 ] ; org.bouncycastle.util.Pack.intToBigEndian ( x , z , 0 ) ; return z ; }
Source:
void setIsDebuggable ( java.lang.Boolean isDebuggable ) ;

Target:
void setDebuggable ( java.lang.Boolean isDebuggable ) ;
Source:
private void incrementWaiters ( com.google.common.util.concurrent.Monitor.Guard guard ) { int waiters = ( guard.waiterCount ) ++ ; if ( waiters == 0 ) { activeGuards.add ( guard ) ; } }

Target:
private void beginWaitingFor ( com.google.common.util.concurrent.Monitor.Guard guard ) { int waiters = ( guard.waiterCount ) ++ ; if ( waiters == 0 ) { guard.next = activeGuards ; activeGuards = guard ; } }
Source:
private native void gattServerConnectNative ( int server_if , java.lang.String address , boolean is_direct , int transport ) ;

Target:
private native void gattServerConnectNative ( int serverIf , java.lang.String address , boolean isDirect , int transport ) ;
Source:
public com.android.layoutlib.api.SceneResult removeChild ( ) { return new com.android.layoutlib.api.SceneResult ( com.android.layoutlib.api.SceneResult.LayoutStatus.NOT_IMPLEMENTED ) ; }

Target:
public com.android.layoutlib.api.SceneResult removeChild ( ) { return SceneStatus.NOT_IMPLEMENTED.getResult ( ) ; }
Source:
protected void saveCredentials ( org.jetbrains.plugins.github.GithubAuthData auth ) { final org.jetbrains.plugins.github.GithubSettings settings = org.jetbrains.plugins.github.GithubSettings.getInstance ( ) ; settings.setCredentials ( myGithubLoginPanel.getHost ( ) , auth , myGithubLoginPanel.isSavePasswordSelected ( ) ) ; }

Target:
protected void saveCredentials ( org.jetbrains.plugins.github.util.GithubAuthData auth ) { final org.jetbrains.plugins.github.util.GithubSettings settings = org.jetbrains.plugins.github.util.GithubSettings.getInstance ( ) ; settings.setCredentials ( myGithubLoginPanel.getHost ( ) , auth , myGithubLoginPanel.isSavePasswordSelected ( ) ) ; }
Source:
public final void err ( java.lang.String message ) { msg ( message , android.icu.dev.test.ERR , true , false ) ; }

Target:
public static final void err ( java.lang.String message ) { org.junit.Assert.fail ( message ) ; }
Source:
public final com.android.dialer.spam.status.SpamMetadata getSpamMetadata ( ) { return com.android.dialer.spam.status.SpamMetadata.empty ( ) ; }

Target:
public com.android.dialer.spam.status.SimpleSpamStatus.Builder setTimestampMillis ( @ android.support.annotation.Nullable java.lang.Long timestampMillis ) { return setTimestampMillis ( com.google.common.base.Optional.fromNullable ( timestampMillis ) ) ; }
Source:
void onViewHolderCollapsed ( com.android.dialer.voicemail.listui.NewVoicemailViewHolder expandedViewHolder ) ;

Target:
void expandViewHolderFirstTimeAndCollapseAllOtherVisibleViewHolders ( com.android.dialer.voicemail.listui.NewVoicemailViewHolder expandedViewHolder , com.android.dialer.voicemail.model.VoicemailEntry voicemailEntryOfViewHolder , com.android.dialer.voicemail.listui.NewVoicemailViewHolder.NewVoicemailViewHolderListener listener ) ;
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mPackageManager = getContext ( ) . getPackageManager ( ) ; mDpm = getContext ( ) . getSystemService ( android.app.admin.DevicePolicyManager.class ) ; mEnabledAppsBeforeTest = getPackageNameList ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mPackageManager = getContext ( ) . getPackageManager ( ) ; mDpm = getContext ( ) . getSystemService ( android.app.admin.DevicePolicyManager.class ) ; mEnabledAppsBeforeTest = getSystemPackageNameList ( ) ; }
Source:
public void attach ( @ android.annotation.NonNull android.net.wifi.aware.WifiAwareAttachCallback attachCallback , @ android.annotation.Nullable android.os.Handler handler ) { attach ( handler , null , attachCallback , null ) ; }

Target:
public void attach ( @ android.annotation.NonNull android.net.wifi.aware.AttachCallback attachCallback , @ android.annotation.Nullable android.os.Handler handler ) { attach ( handler , null , attachCallback , null ) ; }
Source:
public static java.nio.file.attribute.FileTime from ( long value , java.util.concurrent.TimeUnit unit ) { return new java.nio.file.attribute.FileTime ( value , unit ) ; }

Target:
public static java.nio.file.attribute.FileTime fromMillis ( long value ) { return new java.nio.file.attribute.FileTime ( value , java.util.concurrent.TimeUnit.MILLISECONDS , null ) ; }
Source:
public java.lang.String getDefaultSkin ( ) { return "HVGA" ; }

Target:
public java.lang.String getDefaultSkin ( ) { if ( ( mSkins.length ) == 1 ) { return mSkins [ 0 ] ; } if ( ( mVersion.getApiLevel ( ) ) >= 4 ) { return "WVGA800" ; } return "HVGA" ; }
Source:
public void supplyPin ( java.lang.String pin , android.os.Message onComplete ) { synchronized ( mLock ) { mCi.supplyIccPin ( pin , onComplete ) ; } }

Target:
public void changeIccFdnPassword ( java.lang.String oldPassword , java.lang.String newPassword , android.os.Message onComplete ) { synchronized ( mLock ) { if ( com.android.internal.telephony.uicc.UiccCardApplication.DBG ) log ( "changeIccFdnPassword" ) ; mCi.changeIccPin2ForApp ( oldPassword , newPassword , mAid , mHandler.obtainMessage ( com.android.internal.telephony.uicc.UiccCardApplication.EVENT_CHANGE_PIN2_DONE , onComplete ) ) ; } }
Source:
public java.lang.String apply ( com.android.jack.plugin.Plugin plugin ) { return plugin.getVersion ( ) . getVersion ( ) ; }

Target:
public java.lang.String apply ( com.android.jack.plugin.v01.Plugin plugin ) { return plugin.getVersion ( ) . getVersion ( ) ; }
Source:
public void doWork ( ) throws android.os.RemoteException { mService.hasFeatures ( mResponse , account , features ) ; }

Target:
public void doWork ( ) throws android.os.RemoteException { mService.hasFeatures ( mResponse , account , features , mContext.getOpPackageName ( ) ) ; }
Source:
public java.lang.String getActions ( ) { return "" ; }

Target:
public java.lang.String getUnresolvedName ( ) { return null ; }
Source:
public void visitEnd ( ) { if ( ( ! ( isInterface ) ) && ( ! ( interfaces.isEmpty ( ) ) ) ) { recordInheritedMethods ( ) ; stubMissingDefaultMethods ( interfaces ) ; } super . visitEnd ( ) ; }

Target:
public void visitEnd ( ) { if ( ( ! ( isInterface ) ) && ( defaultMethodsDefined ( interfaces ) ) ) { recordInheritedMethods ( ) ; stubMissingDefaultMethods ( interfaces ) ; } super . visitEnd ( ) ; }
Source:
public java.util.List < com.android.tools.perflib.vmtrace.Call > getCalls ( int threadId ) { return mCalls.get ( threadId ) ; }

Target:
public com.android.tools.perflib.vmtrace.Call getTopLevelCall ( int threadId ) { return mCalls.get ( threadId ) ; }
Source:
public boolean enableCellBroadcastRange ( int startMessageId , int endMessageId ) { android.util.Log.e ( com.android.internal.telephony.cdma.RuimSmsInterfaceManager.LOG_TAG , "Error! Not implemented for CDMA." ) ; return false ; }

Target:
public boolean disableCellBroadcastRange ( int startMessageId , int endMessageId ) { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.RuimSmsInterfaceManager.LOG_TAG , "Error! Not implemented for CDMA." ) ; return false ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { getExpandableListView ( ) . invalidateViews ( ) ; com.android.music.MusicUtils.updateNowPlaying ( this ) ; }

Target:
public void onError ( java.lang.String id ) { android.widget.Toast.makeText ( getApplicationContext ( ) , R.string.error_loading_media , Toast.LENGTH_LONG ) . show ( ) ; }
Source:
public void perform ( android.support.test.espresso.UiController uiController , android.view.View view ) { ( ( android.support.v4.widget.DrawerLayout ) ( view ) ) . openDrawer ( GravityCompat.START ) ; }

Target:
public void perform ( android.support.test.espresso.UiController uiController , android.view.View view ) { ( ( android.support.v4.widget.DrawerLayout ) ( view ) ) . openDrawer ( gravity ) ; }
Source:
public android.view.accessibility.AccessibilityNodeProvider call ( ) { return getAccessibilityNodeProvider ( ) ; }

Target:
public void run ( ) { onInitializeAccessibilityNodeInfo ( info ) ; }
Source:
public int load ( android.content.Context context , int resId , int priority ) { return 0 ; }

Target:
public int load ( android.content.res.AssetFileDescriptor afd , int priority ) { return 0 ; }
Source:
public boolean enableCellBroadcastRange ( int startMessageId , int endMessageId ) { android.util.Log.e ( com.android.internal.telephony.cdma.RuimSmsInterfaceManager.LOG_TAG , "Error! Not implemented for CDMA." ) ; return false ; }

Target:
public boolean enableCellBroadcastRange ( int startMessageId , int endMessageId ) { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.RuimSmsInterfaceManager.LOG_TAG , "Error! Not implemented for CDMA." ) ; return false ; }
Source:
public void setProxyChanged ( boolean proxy ) { proxyChanged = proxy ; }

Target:
public boolean hasCredentialChanged ( ) { return credentialChanged ; }
Source:
public void copy1DRangeFrom ( int off , int count , int [ ] d ) { validateIsInt32 ( ) ; copy1DRangeFromUnchecked ( off , count , d ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , int [ ] d ) { validateIsInt32 ( ) ; copy1DRangeFromUnchecked ( off , count , d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public void test_withMinute_minuteTooLow ( ) { TEST_12_30_40_987654321.withMinute ( ( - 1 ) ) ; }

Target:
public void test_withSecond_secondTooHigh ( ) { tck.java.time.TCKLocalTime.TEST_12_30_40_987654321.withSecond ( 60 ) ; }
Source:
public void createTempDir ( ) throws java.lang.Exception { mTempDir = java.io.File.createTempFile ( "timeZoneUpdateTest" , null ) ; assertTrue ( mTempDir.delete ( ) ) ; assertTrue ( mTempDir.mkdir ( ) ) ; }

Target:
public com.android.tradefed.device.ITestDevice getDevice ( ) { return mDevice ; }
Source:
public void spawnDescendant ( com.android.apksig.SigningCertificateLineage.SignerConfig parent , com.android.apksig.SigningCertificateLineage.SignerConfig child ) throws java.security.InvalidKeyException , java.security.NoSuchAlgorithmException , java.security.SignatureException , java.security.cert.CertificateEncodingException { com.android.apksig.SigningCertificateLineage.SignerCapabilities signerCapabilities = new com.android.apksig.SigningCertificateLineage.SignerCapabilities.Builder ( ) . build ( ) ; spawnDescendant ( parent , signerCapabilities , child , signerCapabilities ) ; }

Target:
public com.android.apksig.SigningCertificateLineage.Builder setNewCapabilities ( com.android.apksig.SigningCertificateLineage.SignerCapabilities signerCapabilities ) { if ( signerCapabilities == null ) { throw new java.lang.NullPointerException ( "signerCapabilities == null" ) ; } mNewCapabilities = signerCapabilities ; return this ; }
Source:
public java.lang.Object getViewKey ( ) { return null ; }

Target:
public java.lang.Object getViewCookie ( ) { return null ; }
Source:
public void testPlurals ( ) throws java.lang.Exception { assertEquals ( "plurals.xml:3: Warning: The resource R.plurals.my_plural appears to be unused" , lintProject ( "res/values/strings4.xml" , "res/values/plurals.xml" , "AndroidManifest.xml" ) ) ; }

Target:
public void testPlurals ( ) throws java.lang.Exception { assertEquals ( ( "res/values/plurals.xml:3: Warning: The resource R.plurals.my_plural appears to be unused [UnusedResources]\n" + ( ( ( " <plurals name=\"my_plural\">\n" + " ~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) + "" ) ) , lintProject ( "res/values/strings4.xml" , "res/values/plurals.xml" , "AndroidManifest.xml" ) ) ; }
Source:
static void add ( java.lang.String locale , java.lang.String ... data ) { com.ibm.icu.text.ListFormatter.localeToData.put ( new com.ibm.icu.util.ULocale ( locale ) , new com.ibm.icu.text.ListFormatter ( data [ 0 ] , data [ 1 ] , data [ 2 ] , data [ 3 ] ) ) ; }

Target:
private static com.ibm.icu.impl.SimplePatternFormatter compilePattern ( java.lang.String pattern ) { return com.ibm.icu.impl.SimplePatternFormatter.compileMinMaxPlaceholders ( pattern , 2 , 2 ) ; }
Source:
public java.lang.String getSubscriberId ( ) { return getSubscriberId ( android.telephony.TelephonyManager.getDefaultSubscription ( ) ) ; }

Target:
public java.lang.String getSubscriberId ( ) { return getSubscriberId ( getSubId ( ) ) ; }
Source:
public int syncAddOrUpdateNetwork ( com.android.internal.util.AsyncChannel channel , com.android.server.wifi.WifiConfiguration config ) { android.os.Message resultMsg = channel.sendMessageSynchronously ( com.android.server.wifi.WifiStateMachine.CMD_ADD_OR_UPDATE_NETWORK , config ) ; int result = resultMsg.arg1 ; resultMsg.recycle ( ) ; return result ; }

Target:
public int syncAddOrUpdateNetwork ( com.android.internal.util.AsyncChannel channel , android.net.wifi.WifiConfiguration config ) { android.os.Message resultMsg = channel.sendMessageSynchronously ( com.android.server.wifi.WifiStateMachine.CMD_ADD_OR_UPDATE_NETWORK , config ) ; int result = resultMsg.arg1 ; resultMsg.recycle ( ) ; return result ; }
Source:
public void testExact ( ) { org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "abc/def.txt" ) . apply ( "abc/def.txt" ) ) ; }

Target:
public void testExact ( ) { org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "abc/def.txt" ) . matches ( "abc/def.txt" ) ) ; }
Source:
protected com.android.builder.core.AndroidBuilder getBuilder ( ) { return androidBuilder ; }

Target:
protected com.android.builder.core.AndroidBuilder getBuilder ( ) { com.google.common.base.Preconditions.checkState ( ( ( androidBuilder ) != null ) , "androidBuilder required for task '%s'." , getName ( ) ) ; return androidBuilder ; }
Source:
public libcore.util.ZoneInfoTestHelper.ZoneInfoDataBuilder setMagic ( int magic ) { this . magic = magic ; return this ; }

Target:
public libcore.tzdata.testing.ZoneInfoTestHelper.ZoneInfoDataBuilder setMagic ( int magic ) { this . magic = magic ; return this ; }
Source:
public static void computeMax ( android.renderscript.cts.TestMax.ArgumentsIntIntInt args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = java.lang.StrictMath.max ( args.inV1 , args.inV2 ) ; }

Target:
public static void computeClamp ( android.renderscript.cts.TestClamp.ArgumentsUcharUcharUcharUchar args ) { args.out = android.renderscript.cts.CoreMathVerifier.minU8 ( args.inMaxValue , android.renderscript.cts.CoreMathVerifier.maxU8 ( args.inValue , args.inMinValue ) ) ; }
Source:
private void checkIntentHelperInitializedAndReliabilityTrackingEnabled ( ) { mFakeIntentHelper.assertInitialized ( com.android.server.timezone.PackageTrackerTest.UPDATE_APP_PACKAGE_NAME , com.android.server.timezone.PackageTrackerTest.DATA_APP_PACKAGE_NAME ) ; mFakeIntentHelper.assertReliabilityTriggeringEnabled ( ) ; }

Target:
private void checkIntentHelperInitializedAndReliabilityTrackingEnabled ( ) { mFakeIntentHelper.assertInitialized ( com.android.server.timezone.PackageTrackerTest.UPDATE_APP_PACKAGE_NAME , com.android.server.timezone.PackageTrackerTest.DATA_APP_PACKAGE_NAME ) ; mFakeIntentHelper.assertReliabilityTriggerScheduled ( ) ; }
Source:
public void test_getSubjectAlternativeNames ( ) throws java.lang.Exception { org.apache.harmony.security.x509.GeneralName san1 = new org.apache.harmony.security.x509.GeneralName ( 1 , "rfc@822.Name" ) ; org.apache.harmony.security.x509.GeneralName san2 = new org.apache.harmony.security.x509.GeneralName ( 2 , "dNSName" ) ; org.apache.harmony.security.x509.GeneralNames sans = new org.apache.harmony.security.x509.GeneralNames ( ) ; sans.addName ( san1 ) ; sans.addName ( san2 ) ; tests.security.cert.X509CertSelectorTest.TestCert cert_1 = new tests.security.cert.X509CertSelectorTest.TestCert ( sans ) ; java.security.cert.X509CertSelector selector = new java.security.cert.X509CertSelector ( ) ; assertNull ( "Selector should return null" , selector.getSubjectAlternativeNames ( ) ) ; selector.setSubjectAlternativeNames ( sans.getPairsList ( ) ) ; assertTrue ( "The certificate should match the selection criteria." , selector.match ( cert_1 ) ) ; selector.getSubjectAlternativeNames ( ) . clear ( ) ; assertTrue ( ( "The modification of initialization object " + ( "should not affect the modification " + "of internal object." ) ) , selector.match ( cert_1 ) ) ; }

Target:
public void test_getSubjectAlternativeNames ( ) throws java.lang.Exception { sun.security.x509.GeneralName san1 = new sun.security.x509.GeneralName ( new sun.security.x509.RFC822Name ( "rfc@822.Name" ) ) ; sun.security.x509.GeneralName san2 = new sun.security.x509.GeneralName ( new sun.security.x509.DNSName ( "dNSName" ) ) ; sun.security.x509.GeneralNames sans = new sun.security.x509.GeneralNames ( ) ; sans.add ( san1 ) ; sans.add ( san2 ) ; tests.security.cert.X509CertSelectorTest.TestCert cert_1 = new tests.security.cert.X509CertSelectorTest.TestCert ( sans ) ; java.security.cert.X509CertSelector selector = new java.security.cert.X509CertSelector ( ) ; assertNull ( "Selector should return null" , selector.getSubjectAlternativeNames ( ) ) ; selector.setSubjectAlternativeNames ( getGeneralNamePairList ( sans ) ) ; assertTrue ( "The certificate should match the selection criteria." , selector.match ( cert_1 ) ) ; selector.getSubjectAlternativeNames ( ) . clear ( ) ; assertTrue ( ( "The modification of initialization object " + ( "should not affect the modification " + "of internal object." ) ) , selector.match ( cert_1 ) ) ; }
Source:
long getHiSyncId ( android.bluetooth.BluetoothDevice device ) { if ( ! ( mDeviceHiSyncIdMap.containsKey ( device ) ) ) { return android.bluetooth.BluetoothHearingAid.HI_SYNC_ID_INVALID ; } return mDeviceHiSyncIdMap.get ( device ) ; }

Target:
long getHiSyncId ( android.bluetooth.BluetoothDevice device ) { if ( device == null ) { return android.bluetooth.BluetoothHearingAid.HI_SYNC_ID_INVALID ; } return mDeviceHiSyncIdMap.getOrDefault ( device , BluetoothHearingAid.HI_SYNC_ID_INVALID ) ; }
Source:
public int getDefaultSim ( ) { return android.telephony.SubscriptionManager.getSlotId ( android.telephony.SubscriptionManager.getDefaultSubId ( ) ) ; }

Target:
private int getPhoneId ( int preferredSubId ) { return android.telephony.SubscriptionManager.getPhoneId ( getSubId ( preferredSubId ) ) ; }
Source:
com.android.ide.common.api.Point canvasToControlPoint ( int canvasX , int canvasY ) { int x = mHScale.translate ( canvasX ) ; int y = mVScale.translate ( canvasY ) ; return new com.android.ide.common.api.Point ( x , y ) ; }

Target:
com.android.ide.eclipse.adt.internal.editors.layout.gle2.ScaleInfo getVerticalTransform ( ) { return mVScale ; }
Source:
public void test_until_TemporalUnit_nullUnit ( ) { TEST_2008_06.until ( TEST_2008_06 , null ) ; }

Target:
public void test_until_TemporalUnit_nullEnd ( ) { tck.java.time.TCKYearMonth.TEST_2008_06.until ( null , java.time.temporal.ChronoUnit.DAYS ) ; }
Source:
public native java.lang.Class < ? > getEnclosingClass ( ) ;

Target:
public native java.lang.Class < ? > getDeclaringClass ( ) ;
Source:
public long getExclusiveThreadTime ( ) { return ( getInclusiveThreadTime ( ) ) - ( mInclusiveThreadTimeInCallees ) ; }

Target:
public long getExclusiveTime ( com.android.tools.perflib.vmtrace.ClockType clockType ) { long inclusiveTimeInCallees = ( clockType == ( ClockType.THREAD ) ) ? mInclusiveThreadTimeInCallees : mInclusiveGlobalTimeInCallees ; return ( getInclusiveTime ( clockType ) ) - inclusiveTimeInCallees ; }
Source:
public void stop ( ) { if ( ( mCurrentLogCatOutputReceiver ) != null ) { mCurrentLogCatOutputReceiver.mIsCancelled = true ; mCurrentLogCatOutputReceiver = null ; } mLogMessages = null ; mCurrentDevice = null ; }

Target:
public void stop ( ) { if ( ( mCurrentLogCatOutputReceiver ) != null ) { mCurrentLogCatOutputReceiver.mIsCancelled = true ; mCurrentLogCatOutputReceiver = null ; processLogMessages ( java.util.Collections.singletonList ( com.android.ddmuilib.logcat.LogCatReceiver.DEVICE_DISCONNECTED_MESSAGE ) ) ; } mCurrentDevice = null ; }
Source:
public static java.lang.String getCallId ( android.telecom.Call call ) { if ( call != null ) { return call.toString ( ) ; } else return "" ; }

Target:
public static java.lang.String getCallId ( android.telecom.Call call ) { if ( call != null ) { return "Call:" + ( call.hashCode ( ) ) ; } else return "" ; }
Source:
public static native double log ( double a ) ;

Target:
public static native double exp ( double a ) ;
Source:
public boolean isUserMobileDataEnabled ( ) { return isUserMobileDataEnabled ( getSubId ( android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ) ) ; }

Target:
public void setDataEnabled ( boolean enable ) { setDataEnabled ( getSubId ( android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ) , enable ) ; }
Source:
native void rsnAllocationData1D ( long con , long id , int off , int mip , int count , float [ ] d , int sizeBytes ) ;

Target:
native void rsnAllocationData2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , int dt , int mSize , boolean usePadding ) ;
Source:
public android.os.Bundle confirmCredentials ( android.accounts.AccountAuthenticatorResponse r , android.accounts.Account account , android.os.Bundle bundle ) throws android.accounts.NetworkErrorException { android.util.Log.d ( com.android.bluetooth.pbapclient.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; return null ; }

Target:
public android.os.Bundle addAccount ( android.accounts.AccountAuthenticatorResponse r , java.lang.String s , java.lang.String s2 , java.lang.String [ ] strings , android.os.Bundle bundle ) throws android.accounts.NetworkErrorException { if ( com.android.bluetooth.pbapclient.Authenticator.DBG ) android.util.Log.d ( com.android.bluetooth.pbapclient.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public static void computeSinh ( android.renderscript.cts.TestSinh.ArgumentsFloatFloat args ) { args.ulf = 4 ; args.ulfRelaxed = 128 ; args.out = ( ( float ) ( java.lang.StrictMath.sinh ( args.in ) ) ) ; }

Target:
public static void computeConvert ( android.renderscript.cts.TestConvert.ArgumentsUshortInt args ) { args.out = android.renderscript.cts.CoreMathVerifier.convertUshortToInt ( args.inV ) ; }
Source:
public static java.lang.String toUnicode ( java.lang.String input ) { return libcore.icu.NativeIDN.toUnicode ( input , 0 ) ; }

Target:
public static java.lang.String toUnicode ( java.lang.String input , int flags ) { try { return java.net.IDN.convertFullStop ( com.ibm.icu.text.IDNA.convertIDNToUnicode ( input , flags ) ) . toString ( ) ; } catch ( java.net.com.ibm e ) { return input ; } }
Source:
public static com.android.sdklib.io.IAbstractFile getManifest ( com.android.sdklib.io.IAbstractFolder projectFolder ) { com.android.sdklib.io.IAbstractFile file = projectFolder.getFile ( SdkConstants.FN_ANDROID_MANIFEST_XML ) ; if ( file.exists ( ) ) { return file ; } return null ; }

Target:
public static com.android.io.IAbstractFile getManifest ( com.android.io.IAbstractFolder projectFolder ) { com.android.io.IAbstractFile file = projectFolder.getFile ( SdkConstants.FN_ANDROID_MANIFEST_XML ) ; if ( file.exists ( ) ) { return file ; } return null ; }
Source:
public void dispose ( ) { super . dispose ( ) ; mImage.dispose ( ) ; mImage = null ; }

Target:
public void dispose ( ) { super . dispose ( ) ; if ( mDisposeImage ) { mImage.dispose ( ) ; } mImage = null ; }
Source:
public boolean apply ( E input ) { return ( predicate.apply ( input ) ) && ( collection.contains ( input ) ) ; }

Target:
public boolean remove ( java.lang.Object element ) { return ( contains ( element ) ) && ( unfiltered.remove ( element ) ) ; }
Source:
private void decCallbackHandlerRefCount ( ) { synchronized ( android.net.ConnectivityManager.sCallbackRefCount ) { if ( ( android.net.ConnectivityManager.sCallbackRefCount.decrementAndGet ( ) ) == 0 ) { android.net.ConnectivityManager.sCallbackHandler.obtainMessage ( android.net.ConnectivityManager.CALLBACK_EXIT ) . sendToTarget ( ) ; android.net.ConnectivityManager.sCallbackHandler = null ; } } }

Target:
private android.net.ConnectivityManager.CallbackHandler getHandler ( ) { synchronized ( android.net.ConnectivityManager.sCallbacks ) { if ( ( android.net.ConnectivityManager.sCallbackHandler ) == null ) { android.net.ConnectivityManager.sCallbackHandler = new android.net.ConnectivityManager.CallbackHandler ( android.net.ConnectivityThread.getInstanceLooper ( ) ) ; } return android.net.ConnectivityManager.sCallbackHandler ; } }
Source:
public static int BoolCond_IntVarCst ( boolean cond , int x ) { return cond ? x : 1 ; }

Target:
public static int BoolCond_IntVarCst ( boolean cond , int x ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return cond ? x : 1 ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setSuiteVersionBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 32 ; suiteVersion_ = value ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setBranchBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 4 ; branch_ = value ; onChanged ( ) ; return this ; }