auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public int getDSTSavings ( ) { return mUseDst ? mDstSavings : 0 ; }

Target:
private void readObject ( java.io.ObjectInputStream in ) throws java.io.IOException , java.lang.ClassNotFoundException { in.defaultReadObject ( ) ; if ( ( ! ( mUseDst ) ) && ( ( mDstSavings ) != 0 ) ) { mDstSavings = 0 ; } }
Source:
public static java.io.FileDescriptor getFileDescriptorFromSSLSocket ( org.conscrypt.OpenSSLSocketImpl openSSLSocketImpl ) { return org.conscrypt.Platform.getFileDescriptor ( openSSLSocketImpl ) ; }

Target:
static java.io.FileDescriptor getFileDescriptorFromSSLSocket ( org.conscrypt.AbstractConscryptSocket socket ) { return org.conscrypt.Platform.getFileDescriptor ( socket ) ; }
Source:
private int getHeaderOffset ( int halfWorldOffset ) { return ( android.security.cts.ReadElf.EI_NIDENT ) + ( halfWorldOffset * ( mHalfWordSize ) ) ; }

Target:
private int getHeaderOffset ( int halfWorldOffset ) { return ( android.os.cts.ReadElf.EI_NIDENT ) + ( halfWorldOffset * ( mHalfWordSize ) ) ; }
Source:
public void setMaxtimeToOutputResponse ( int maxTimeToOutputResponse ) { mMaxTimeToOutputResponse = maxTimeToOutputResponse ; }

Target:
public void setMaxtimeToOutputResponse ( int maxTimeToOutputResponse ) { setMaxTimeToOutputResponse ( maxTimeToOutputResponse , java.util.concurrent.TimeUnit.MILLISECONDS ) ; }
Source:
static com.google.common.collect.ImmutableList < com.android.dialer.phonelookup.PhoneLookup > providePhoneLookupList ( com.android.dialer.phonelookup.cequint.CequintPhoneLookup cequintPhoneLookup , com.android.dialer.phonelookup.cnap.CnapPhoneLookup cnapPhoneLookup , com.android.dialer.phonelookup.cp2.Cp2DefaultDirectoryPhoneLookup cp2DefaultDirectoryPhoneLookup , com.android.dialer.phonelookup.cp2.Cp2ExtendedDirectoryPhoneLookup cp2ExtendedDirectoryPhoneLookup , com.android.dialer.phonelookup.blockednumber.SystemBlockedNumberPhoneLookup systemBlockedNumberPhoneLookup , com.android.dialer.phonelookup.spam.SpamPhoneLookup spamPhoneLookup ) { return com.google.common.collect.ImmutableList.of ( cequintPhoneLookup , cnapPhoneLookup , cp2DefaultDirectoryPhoneLookup , cp2ExtendedDirectoryPhoneLookup , systemBlockedNumberPhoneLookup , spamPhoneLookup ) ; }

Target:
static com.google.common.collect.ImmutableList < com.android.dialer.phonelookup.PhoneLookup > providePhoneLookupList ( com.android.dialer.phonelookup.cequint.CequintPhoneLookup cequintPhoneLookup , com.android.dialer.phonelookup.cnap.CnapPhoneLookup cnapPhoneLookup , com.android.dialer.phonelookup.cp2.Cp2DefaultDirectoryPhoneLookup cp2DefaultDirectoryPhoneLookup , com.android.dialer.phonelookup.cp2.Cp2ExtendedDirectoryPhoneLookup cp2ExtendedDirectoryPhoneLookup , com.android.dialer.phonelookup.emergency.EmergencyPhoneLookup emergencyPhoneLookup , com.android.dialer.phonelookup.blockednumber.SystemBlockedNumberPhoneLookup systemBlockedNumberPhoneLookup , com.android.dialer.phonelookup.spam.SpamPhoneLookup spamPhoneLookup ) { return com.google.common.collect.ImmutableList.of ( cequintPhoneLookup , cnapPhoneLookup , cp2DefaultDirectoryPhoneLookup , cp2ExtendedDirectoryPhoneLookup , emergencyPhoneLookup , systemBlockedNumberPhoneLookup , spamPhoneLookup ) ; }
Source:
public final android.content.ContentProviderClient acquireContentProviderClient ( java.lang.String name ) { android.content.IContentProvider provider = acquireProvider ( name ) ; if ( provider != null ) { return new android.content.ContentProviderClient ( this , provider ) ; } return null ; }

Target:
public final android.content.ContentProviderClient acquireContentProviderClient ( android.net.Uri uri ) { android.content.IContentProvider provider = acquireProvider ( uri ) ; if ( provider != null ) { return new android.content.ContentProviderClient ( this , provider , true ) ; } return null ; }
Source:
public void displayAlert ( @ com.android.annotations.NonNull java.lang.String message ) { org.eclipse.jface.dialogs.MessageDialog.openInformation ( com.android.ide.eclipse.adt.AdtPlugin.getDisplay ( ) . getActiveShell ( ) , mFqcn , message ) ; }

Target:
public void displayAlert ( @ com.android.annotations.NonNull java.lang.String message ) { org.eclipse.jface.dialogs.MessageDialog.openInformation ( com.android.ide.eclipse.adt.AdtPlugin.getShell ( ) , mFqcn , message ) ; }
Source:
public void run ( ) { setBackgroundColor ( color ) ; }

Target:
public java.lang.Integer call ( ) { return computeHorizontalScrollRange ( ) ; }
Source:
native long rsnScriptKernelIDCreate ( long con , long sid , int slot , int sig ) ;

Target:
native long rsnScriptKernelIDCreate ( long con , long sid , int slot , int sig , boolean mUseInc ) ;
Source:
public void showDialpadFromNewIntent ( ) { com.android.dialer.common.LogUtil.enterBlock ( "MainSearchController.showDialpadFromNewIntent" ) ; showDialpad ( false , true ) ; }

Target:
public void showDialpadFromNewIntent ( ) { com.android.dialer.common.LogUtil.enterBlock ( "MainSearchController.showDialpadFromNewIntent" ) ; if ( isDialpadVisible ( ) ) { com.android.dialer.common.LogUtil.i ( "MainSearchController.showDialpadFromNewIntent" , "Dialpad is already visible." ) ; getDialpadFragment ( ) . setStartedFromNewIntent ( true ) ; return ; } showDialpad ( false , true ) ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder clearInfraLogPath ( ) { bitField0_ = ( bitField0_ ) & ( ~ 524288 ) ; infraLogPath_ = com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.getDefaultInstance ( ) . getInfraLogPath ( ) ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder clearModulesTotal ( ) { bitField0_ = ( bitField0_ ) & ( ~ 524288 ) ; modulesTotal_ = 0 ; onChanged ( ) ; return this ; }
Source:
public java.lang.String hashString ( ) { return java.lang.String.format ( com.android.sdklib.PlatformTarget.PLATFORM_HASH , mVersion.getApiString ( ) ) ; }

Target:
public java.lang.String hashString ( ) { return com.android.sdklib.AndroidTargetHash.getPlatformHashString ( mVersion ) ; }
Source:
public void init ( android.bluetooth.BluetoothCodecConfig [ ] codecConfigPriorities ) { initNative ( codecConfigPriorities ) ; }

Target:
public void init ( int maxConnectedAudioDevices , android.bluetooth.BluetoothCodecConfig [ ] codecConfigPriorities ) { initNative ( maxConnectedAudioDevices , codecConfigPriorities ) ; }
Source:
public void cleanup ( ) { cleanupNative ( ) ; }

Target:
public void cleanup ( ) { cleanupNative ( ) ; if ( ( mVolumeMapping ) != null ) mVolumeMapping.clear ( ) ; }
Source:
public void onDetailsChanged ( com.android.incallui.Call call , com.android.incallui.Call.Details details ) { updatePrimaryCallState ( ) ; }

Target:
public void onDetailsChanged ( com.android.incallui.Call call , com.android.incallui.Call.Details details ) { updatePrimaryCallState ( ) ; if ( ( call.can ( PhoneCapabilities.MANAGE_CONFERENCE ) ) != ( android.telecom.PhoneCapabilities.can ( details.getCallCapabilities ( ) , PhoneCapabilities.MANAGE_CONFERENCE ) ) ) { maybeShowManageConferenceCallButton ( ) ; } }
Source:
public void initializeMulticastFiltering ( ) { enforceMulticastChangePermission ( ) ; mWifiMulticastLockManager.initializeFiltering ( ) ; }

Target:
public void initializeMulticastFiltering ( ) { enforceMulticastChangePermission ( ) ; mLog.trace ( "initializeMulticastFiltering uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; mWifiMulticastLockManager.initializeFiltering ( ) ; }
Source:
public short readShort ( ) { checkType ( com.android.dx.io.EncodedValueReader.ENCODED_SHORT ) ; type = com.android.dx.io.EncodedValueReader.MUST_READ ; return ( ( short ) ( com.android.dx.util.EncodedValueUtils.readSignedInt ( in , arg ) ) ) ; }

Target:
public short readShort ( ) { checkType ( com.android.dex.EncodedValueReader.ENCODED_SHORT ) ; type = com.android.dex.EncodedValueReader.MUST_READ ; return ( ( short ) ( com.android.dex.EncodedValueCodec.readSignedInt ( in , arg ) ) ) ; }
Source:
static byte $opt$ShortToByte ( short a ) { return ( ( byte ) ( a ) ) ; }

Target:
static double $opt$ShortToDouble ( short a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( double ) ( a ) ) ; }
Source:
public static void startExternalSession ( android.telecom.Logging.Session.Info sessionInfo , java.lang.String shortMethodName ) { android.telecom.Log.getSessionManager ( ) . startExternalSession ( sessionInfo , shortMethodName ) ; }

Target:
public static Session.Info getExternalSession ( ) { return android.telecom.Log.getSessionManager ( ) . getExternalSession ( ) ; }
Source:
public void testVFE8 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.aput_object.d.T_aput_object_13" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testE3 ( ) { loadAndRun ( "dot.junit.opcodes.aput_object.d.T_aput_object_1" , java.lang.NullPointerException.class , null , 0 , "abc" ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; hostName = server.getHostName ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; server = new com.google.mockwebserver.MockWebServer ( ) ; hostName = server.getHostName ( ) ; }
Source:
public static long ReturnLong33 ( ) { int imm = 33 ; return ( ( long ) ( imm ) ) ; }

Target:
public static long ReturnLong33 ( ) { int imm = Main.$inline$int ( 33 ) ; return ( ( long ) ( imm ) ) ; }
Source:
public java.awt.Color getFillColor ( com.android.tools.perflib.vmtrace.Call c , java.lang.String threadName ) { if ( isHighlightedMethod ( c ) ) { return com.android.tools.perflib.vmtrace.viz.RenderContext.HIGHLIGHTED_METHOD_COLOR ; } double percent = mTraceData.getDurationPercentage ( c , threadName , mRenderClock , mUseInclusiveTimeForColorAssignment ) ; return com.android.tools.perflib.vmtrace.viz.RenderContext.QUANTIZED_COLORS [ getColorIndex ( percent ) ] ; }

Target:
public java.awt.Color getFillColor ( com.android.tools.perflib.vmtrace.Call c , com.android.tools.perflib.vmtrace.ThreadInfo thread ) { if ( isHighlightedMethod ( c ) ) { return com.android.tools.perflib.vmtrace.viz.RenderContext.HIGHLIGHTED_METHOD_COLOR ; } double percent = mTraceData.getDurationPercentage ( c , thread , mRenderClock , mUseInclusiveTimeForColorAssignment ) ; return com.android.tools.perflib.vmtrace.viz.RenderContext.QUANTIZED_COLORS [ getColorIndex ( percent ) ] ; }
Source:
static float pythag ( float x , float y ) { return ( ( float ) ( java.lang.Math.sqrt ( ( ( x * x ) + ( y * y ) ) ) ) ) ; }

Target:
static float pythag ( float x , float y ) { return ( ( float ) ( java.lang.Math.hypot ( x , y ) ) ) ; }
Source:
public void testHostWithLeadingPeriod ( ) throws java.lang.Exception { assertEquals ( ".vk.com" , new java.net.URI ( "https://.vk.com/" ) . getHost ( ) ) ; }

Target:
public void testHostWithEmptyLabel ( ) throws java.lang.Exception { assertEquals ( ".example.com" , new java.net.URI ( "http://.example.com/" ) . getHost ( ) ) ; assertEquals ( "example..com" , new java.net.URI ( "http://example..com/" ) . getHost ( ) ) ; }
Source:
public org.bouncycastle.openssl.jcajce.JceOpenSSLPKCS8EncryptorBuilder setProvider ( java.lang.String providerName ) { helper = new org.bouncycastle.jcajce.NamedJcaJceHelper ( providerName ) ; return this ; }

Target:
public org.bouncycastle.openssl.jcajce.JceOpenSSLPKCS8EncryptorBuilder setProvider ( java.lang.String providerName ) { helper = new org.bouncycastle.jcajce.util.NamedJcaJceHelper ( providerName ) ; return this ; }
Source:
synchronized void onDeviceStateChanged ( com.android.bluetooth.hfp.HeadsetDeviceState deviceState ) { broadCastMessageToStateMachines ( HeadsetStateMachine.DEVICE_STATE_CHANGED , deviceState ) ; }

Target:
synchronized void onDeviceStateChanged ( com.android.bluetooth.hfp.HeadsetDeviceState deviceState ) { mStateMachine.sendMessage ( HeadsetStateMachine.DEVICE_STATE_CHANGED , deviceState ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { mFilePath = com.android.ide.eclipse.tests.AdtTestData.getInstance ( ) . getTestFilePath ( com.android.ide.common.resources.platform.AttrsXmlParserManifestTest.MOCK_DATA_PATH ) ; mParser = new com.android.ide.common.resources.platform.AttrsXmlParser ( mFilePath , com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mFilePath = com.android.ide.eclipse.tests.AdtTestData.getInstance ( ) . getTestFilePath ( com.android.ide.common.resources.platform.AttrsXmlParserManifestTest.MOCK_DATA_PATH ) ; mParser = new com.android.ide.common.resources.platform.AttrsXmlParser ( mFilePath , new com.android.ide.eclipse.mock.TestLogger ( ) ) ; }
Source:
public void visitLocalVariableTypeInfo ( proguard.classfile.util.Clazz clazz , proguard.classfile.util.Method method , proguard.classfile.util.CodeAttribute codeAttribute , proguard.classfile.util.LocalVariableTypeInfo localVariableTypeInfo ) { localVariableTypeInfo.referencedClasses = findReferencedClasses ( clazz.getName ( ) , clazz.getString ( localVariableTypeInfo.u2signatureIndex ) ) ; }

Target:
public void visitLocalVariableInfo ( proguard.classfile.util.Clazz clazz , proguard.classfile.util.Method method , proguard.classfile.util.CodeAttribute codeAttribute , proguard.classfile.util.LocalVariableInfo localVariableInfo ) { localVariableInfo.referencedClass = findReferencedClass ( clazz.getName ( ) , localVariableInfo.getDescriptor ( clazz ) ) ; }
Source:
public void setTestVariantData ( @ com.android.annotations.Nullable com.android.build.gradle.internal.variant.TestVariantData testVariantData ) { this . testVariantData = testVariantData ; }

Target:
public void setTestVariantData ( @ com.android.annotations.NonNull com.android.build.gradle.internal.variant.TestVariantData testVariantData , @ com.android.annotations.NonNull com.android.builder.core.VariantConfiguration.Type type ) { testVariants.put ( type , testVariantData ) ; }
Source:
public void removeRegistrationListener ( com.android.ims.internal.IImsRegistrationListener listener ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; getServiceInterface ( mBinder ) . removeRegistrationListener ( mSlotId , mSupportedFeature , listener ) ; } }

Target:
public void addRegistrationListener ( com.android.ims.internal.IImsRegistrationListener listener ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; getServiceInterface ( mBinder ) . addRegistrationListener ( listener ) ; } }
Source:
protected boolean isSupported ( ) throws java.lang.Exception { return true ; }

Target:
protected boolean setUpActiveNetworkMeteringState ( ) throws java.lang.Exception { return true ; }
Source:
boolean canTransfer ( ) { android.util.Log.e ( com.android.internal.telephony.cdma.CdmaCallTracker.LOG_TAG , "canTransfer: not possible in CDMA" ) ; return false ; }

Target:
boolean canTransfer ( ) { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CdmaCallTracker.LOG_TAG , "canTransfer: not possible in CDMA" ) ; return false ; }
Source:
public void testNonFullscreenActivityPermitted ( ) throws java.lang.Exception { setComponentName ( android.server.cts.TRANSLUCENT_SDK_26_PACKAGE ) ; setDeviceRotation ( 0 ) ; launchActivity ( android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_ACTIVITY ) ; mAmWmState.assertResumedActivity ( "target SDK <= 26 non-fullscreen activity should be allowed to launch" , android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_ACTIVITY ) ; assertEquals ( "non-fullscreen activity requested landscape orientation" , 0 , mAmWmState.getWmState ( ) . getLastOrientation ( ) ) ; }

Target:
public void testNonFullscreenActivityPermitted ( ) throws java.lang.Exception { setComponentName ( android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_SDK_26_PACKAGE ) ; setDeviceRotation ( 0 ) ; launchActivity ( android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_ACTIVITY ) ; mAmWmState.assertResumedActivity ( "target SDK <= 26 non-fullscreen activity should be allowed to launch" , android.server.cts.ActivityManagerAppConfigurationTests.TRANSLUCENT_ACTIVITY ) ; assertEquals ( "non-fullscreen activity requested landscape orientation" , 0 , mAmWmState.getWmState ( ) . getLastOrientation ( ) ) ; }
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < java.lang.Iterable < T > > hasItems ( org.hamcrest.org.hamcrest.Matcher ... elementMatchers ) { return org.hamcrest.collection.IsCollectionContaining.< org.hamcrest.T > hasItems ( elementMatchers ) ; }

Target:
public static < T > org.hamcrest.collection.IsArray < T > array ( org.hamcrest.org.hamcrest.Matcher ... elementMatchers ) { return org.hamcrest.collection.IsArray.< org.hamcrest.T > array ( elementMatchers ) ; }
Source:
public static boolean useNewFiltering ( android.content.Context context ) { return ( com.android.dialer.blocking.FilteredNumberCompat.canUseNewFiltering ( ) ) && ( com.android.dialer.blocking.FilteredNumberCompat.hasMigratedToNewBlocking ( context ) ) ; }

Target:
public static boolean useNewFiltering ( android.content.Context context ) { return ( ( ! ( com.android.dialer.configprovider.ConfigProviderBindings.get ( context ) . getBoolean ( "debug_force_dialer_filtering" , false ) ) ) && ( com.android.dialer.blocking.FilteredNumberCompat.canUseNewFiltering ( ) ) ) && ( com.android.dialer.blocking.FilteredNumberCompat.hasMigratedToNewBlocking ( context ) ) ; }
Source:
public java.lang.String format ( com.ibm.icu.dev.test.format.NumberFormatTestData tuple ) { return null ; }

Target:
public java.lang.String select ( com.ibm.icu.dev.test.format.DataDrivenNumberFormatTestData tuple ) { if ( ( ( tuple.output ) != null ) && ( tuple.output.equals ( "fail" ) ) ) return "fail" ; return null ; }
Source:
public void testWithRowString_columnNameMatcherAndValueMatcher ( ) { assertTrue ( android.support.test.espresso.matcher.CursorMatchers.withRowString ( org.hamcrest.Matchers.is ( android.support.test.espresso.matcher.CursorMatchersTest.COLUMN_STR ) , android.support.test.espresso.matcher.CursorMatchersTest.STRING_VALUE_MATCHER ) . matches ( cursor ) ) ; }

Target:
public void withRowString_columnNameMatcherAndValueMatcher ( ) { org.junit.Assert.assertTrue ( android.support.test.espresso.matcher.CursorMatchers.withRowString ( org.hamcrest.Matchers.is ( android.support.test.espresso.matcher.CursorMatchersTest.COLUMN_STR ) , android.support.test.espresso.matcher.CursorMatchersTest.STRING_VALUE_MATCHER ) . matches ( cursor ) ) ; }
Source:
public native T newInstance ( java.lang.Object [ ] args , boolean accessible ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException , java.lang.InstantiationException , java.lang.reflect.InvocationTargetException ;

Target:
public native T newInstanceTwoFrames ( java.lang.Object ... args ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException , java.lang.InstantiationException , java.lang.reflect.InvocationTargetException ;
Source:
public < T > com.google.common.hash.Hasher putObject ( T instance , com.google.common.hash.Funnel < ? super T > funnel ) { checkNotDone ( ) ; funnel.funnel ( instance , this ) ; return this ; }

Target:
protected void update ( byte [ ] b , int off , int len ) { checkNotDone ( ) ; digest.update ( b , off , len ) ; }
Source:
private void launchSecuritySettings ( ) { android.content.Intent launchSettingsIntent = new android.content.Intent ( android.provider.Settings.ACTION_SECURITY_SETTINGS ) ; startActivityForResult ( launchSettingsIntent , com.android.packageinstaller.PackageInstallerActivity.REQUEST_ENABLE_UNKNOWN_SOURCES ) ; }

Target:
private void launchSettingsAppAndFinish ( ) { android.content.Intent launchSettingsIntent = new android.content.Intent ( android.provider.Settings.ACTION_SECURITY_SETTINGS ) ; launchSettingsIntent.setFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; startActivity ( launchSettingsIntent ) ; finish ( ) ; }
Source:
public com.android.ide.eclipse.adt.editors.layout.gscripts.Point getTopRight ( ) { return new com.android.ide.eclipse.adt.editors.layout.gscripts.Point ( ( ( x ) + ( ( w ) > 0 ? w : 0 ) ) , y ) ; }

Target:
public com.android.ide.common.api.Point getTopRight ( ) { return new com.android.ide.common.api.Point ( ( ( x ) + ( ( w ) > 0 ? w : 0 ) ) , y ) ; }
Source:
private final void fireOnOriginalConnectionRetryDial ( ) { for ( com.android.services.telephony.TelephonyConnection.TelephonyConnectionListener l : mTelephonyListeners ) { l.onOriginalConnectionRetry ( this ) ; } }

Target:
private final void fireOnOriginalConnectionRetryDial ( boolean isPermanentFailure ) { for ( com.android.services.telephony.TelephonyConnection.TelephonyConnectionListener l : mTelephonyListeners ) { l.onOriginalConnectionRetry ( this , isPermanentFailure ) ; } }
Source:
public void disconnect ( ) { com.android.dialer.common.LogUtil.i ( "DialerCall.disconnect" , "" ) ; setState ( com.android.incallui.call.DialerCall.State.DISCONNECTING ) ; for ( com.android.incallui.call.DialerCallListener listener : listeners ) { listener.onDialerCallUpdate ( ) ; } telecomCall.disconnect ( ) ; }

Target:
public void disconnect ( ) { com.android.dialer.common.LogUtil.i ( "DialerCall.disconnect" , "" ) ; setState ( DialerCallState.DISCONNECTING ) ; for ( com.android.incallui.call.DialerCallListener listener : listeners ) { listener.onDialerCallUpdate ( ) ; } telecomCall.disconnect ( ) ; }
Source:
synchronized void reportConnectionEvent ( byte event ) { }

Target:
synchronized void reportConnectionEvent ( long connectionId , byte event ) { }
Source:
public void testEncodeDecodeVideoFromSurfaceToSurfaceQCIF ( ) throws java.lang.Throwable { setParameters ( 176 , 144 , 1000000 ) ; android.media.cts.EncodeDecodeTest.SurfaceToSurfaceWrapper.runTest ( this ) ; }

Target:
public void testVP8EncodeDecodeVideoFromBufferToSurfaceQCIF ( ) throws java.lang.Throwable { setParameters ( 176 , 144 , 1000000 , android.media.cts.EncodeDecodeTest.MIME_TYPE_VP8 ) ; android.media.cts.EncodeDecodeTest.BufferToSurfaceWrapper.runTest ( this ) ; }
Source:
private boolean canReadPhoneState ( java.lang.String callingPackage , java.lang.String message ) { try { return com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , callingPackage , message ) ; } catch ( java.lang.SecurityException e ) { return false ; } }

Target:
private boolean canReadPhoneState ( java.lang.String callingPackage , java.lang.String message ) { try { return com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , SubscriptionManager.INVALID_SUBSCRIPTION_ID , callingPackage , message ) ; } catch ( java.lang.SecurityException e ) { return false ; } }
Source:
public void add ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodId method ) { virtualMethods.add ( method ) ; }

Target:
public com.android.jack.ir.ast.JMethodId get ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodId method ) { com.android.jack.frontend.VirtualMethodsMarker.ComparableMethodId searched = new com.android.jack.frontend.VirtualMethodsMarker.ComparableMethodId ( method ) ; com.android.jack.frontend.VirtualMethodsMarker.ComparableMethodId found = virtualMethods.get ( searched ) ; if ( found != null ) { return found.methodId ; } else { return null ; } }
Source:
public void TestFollowing ( ) { android.icu.text.RuleBasedBreakIterator rbbi = new android.icu.text.RuleBasedBreakIterator ( "" ) ; rbbi.setText ( "dummy" ) ; if ( ( rbbi.following ( ( - 1 ) ) ) != 0 ) { errln ( ( "RuleBasedBreakIterator.following(-1) was suppose to return " + "0 when the object has a fText of dummy." ) ) ; } }

Target:
public void TestFollowing ( ) { android.icu.text.RuleBasedBreakIterator rbbi = new android.icu.text.RuleBasedBreakIterator ( ".;" ) ; rbbi.setText ( "dummy" ) ; if ( ( rbbi.following ( ( - 1 ) ) ) != 0 ) { errln ( ( "RuleBasedBreakIterator.following(-1) was suppose to return " + "0 when the object has a fText of dummy." ) ) ; } }
Source:
public void rm ( java.io.File name ) { new vogar.commands.Command ( log , "adb" , "shell" , "rm" , "-r" , name.getPath ( ) ) . execute ( ) ; }

Target:
public void rm ( java.io.File name ) { new vogar.commands.Command.Builder ( log ) . args ( "adb" , "shell" , "rm" , "-r" , name.getPath ( ) ) . permitNonZeroExitStatus ( true ) . execute ( ) ; }
Source:
private static void expectEquals32 ( int expected , int result ) { if ( expected != result ) { throw new java.lang.Error ( ( ( ( "Expected: " + expected ) + ", found: " ) + result ) ) ; } }

Target:
private static void expectEqualsInt ( int expected , int result ) { if ( expected != result ) { throw new java.lang.Error ( ( ( ( "Expected: " + expected ) + ", found: " ) + result ) ) ; } }
Source:
public java.lang.String getmManifestTheme ( ) { sync ( ) ; return mManifestTheme ; }

Target:
public java.lang.String getManifestTheme ( ) { sync ( ) ; return mManifestTheme ; }
Source:
public java.lang.String getName ( ) { return com.android.compatibility.common.util.AbiUtils.parseTestName ( mId ) ; }

Target:
public java.lang.String getName ( ) { return com.android.compatibility.common.util.ModuleResult.parseId ( mId ) [ 1 ] ; }
Source:
public boolean initializeSupplicantHal ( ) { if ( ! ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) ) { return true ; } return mSupplicantStaIfaceHal.initialize ( ) ; }

Target:
public boolean initializeSupplicantHal ( ) { if ( ! ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) ) { return true ; } if ( ! ( mSupplicantP2pIfaceHal.initialize ( ) ) ) { return false ; } return mSupplicantStaIfaceHal.initialize ( ) ; }
Source:
public void dispose ( ) { super . dispose ( ) ; if ( ( image ) != null ) { image.dispose ( ) ; } crosshairColor.dispose ( ) ; borderColor.dispose ( ) ; paddingColor.dispose ( ) ; }

Target:
public void widgetDisposed ( org.eclipse.swt.events.DisposeEvent e ) { model.removeImageChangeListener ( this ) ; if ( ( image ) != null ) { image.dispose ( ) ; } crosshairColor.dispose ( ) ; borderColor.dispose ( ) ; paddingColor.dispose ( ) ; }
Source:
public static long getRxBytes ( java.lang.String iface ) { return android.net.TrafficStats.nativeGetIfaceStat ( iface , android.net.TrafficStats.TYPE_RX_BYTES ) ; }

Target:
public static long getRxBytes ( java.lang.String iface ) { try { return android.net.TrafficStats.getStatsService ( ) . getIfaceStats ( iface , android.net.TrafficStats.TYPE_RX_BYTES ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public boolean isMatchFor ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier qualifier ) { if ( ( mValue ) == ( com.android.resources.DockMode.NONE ) ) { return true ; } return ( ( ( com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier ) ( qualifier ) ) . mValue ) == ( mValue ) ; }

Target:
public boolean isMatchFor ( com.android.ide.common.resources.configuration.ResourceQualifier qualifier ) { if ( ( mValue ) == ( com.android.resources.DockMode.NONE ) ) { return true ; } return ( ( ( com.android.ide.common.resources.configuration.DockModeQualifier ) ( qualifier ) ) . mValue ) == ( mValue ) ; }
Source:
public void test_joinSourceSpecific_null ( ) throws java.lang.Exception { java.net.InetAddress ipv4LocalAddress = libcore.java.nio.channels.DatagramChannelMulticastTest.getLocalIpv4Address ( ipv4NetworkInterface ) ; test_joinSourceSpecific ( ipv4LocalAddress , libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv4_1 , ipv4NetworkInterface ) ; }

Target:
public void test_joinSourceSpecific_null ( ) throws java.lang.Exception { if ( ! ( supportsMulticast ) ) { return ; } java.net.InetAddress ipv4LocalAddress = libcore.java.nio.channels.DatagramChannelMulticastTest.getLocalIpv4Address ( ipv4NetworkInterface ) ; test_joinSourceSpecific ( ipv4LocalAddress , libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv4 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv4_1 , ipv4NetworkInterface ) ; }
Source:
public java.lang.String getBaseAvdFolder ( ) throws com.android.prefs.AndroidLocation.AndroidLocationException { if ( ( mTmpAvdRoot ) == null ) { mTmpAvdRoot = new java.io.File ( getSdkManager ( ) . getLocation ( ) , "tmp_avds" ) ; mTmpAvdRoot.mkdirs ( ) ; } return mTmpAvdRoot.getAbsolutePath ( ) ; }

Target:
public java.lang.String getBaseAvdFolder ( ) throws com.android.prefs.AndroidLocation.AndroidLocationException { if ( ( mTmpAvdRoot ) == null ) { mTmpAvdRoot = new java.io.File ( getSdk ( ) . getLocation ( ) , "tmp_avds" ) ; mTmpAvdRoot.mkdirs ( ) ; } return mTmpAvdRoot.getAbsolutePath ( ) ; }
Source:
public void onInitializeAccessibilityEvent ( android.view.View host , android.view.accessibility.AccessibilityEvent event ) { super . onInitializeAccessibilityEvent ( host , event ) ; event.setChecked ( isChecked ( ) ) ; }

Target:
public void onInitializeAccessibilityEvent ( android.view.View host , android.view.accessibility.AccessibilityEvent event ) { super . onInitializeAccessibilityEvent ( host , event ) ; if ( checkable ) { event.setChecked ( isChecked ( ) ) ; } }
Source:
public static short $noinline$shortToCharToShort ( short value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( short ) ( ( char ) ( value ) ) ) ; }

Target:
public static byte $noinline$shortToCharToByte ( short value ) { return ( ( byte ) ( ( char ) ( value ) ) ) ; }
Source:
public void onGetService ( java.lang.String address , int srvcType , int srvcInstId , android.os.ParcelUuid srvcUuid ) throws android.os.RemoteException { }

Target:
public void onSearchComplete ( java.lang.String address , java.util.List < android.bluetooth.BluetoothGattService > services , int status ) throws android.os.RemoteException { }
Source:
public void lockNow ( ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.DEVICE_POWER , null ) ; mHandler.removeCallbacks ( mScreenLockTimeout ) ; mHandler.post ( mScreenLockTimeout ) ; }

Target:
public void lockNow ( android.os.Bundle options ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.DEVICE_POWER , null ) ; mHandler.removeCallbacks ( mScreenLockTimeout ) ; if ( options != null ) { mScreenLockTimeout.setLockOptions ( options ) ; } mHandler.post ( mScreenLockTimeout ) ; }
Source:
public void setInitialAttachApn ( java.lang.String apn , java.lang.String protocol , int authType , java.lang.String username , java.lang.String password , android.os.Message result ) ;

Target:
public void setSimCardPower ( boolean powerUp , android.os.Message result ) ;
Source:
public static float DivMP25 ( float arg ) { return arg / ( - 0.25F ) ; }

Target:
public static double $noinline$DivMP25 ( double arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg / ( - 0.25F ) ; }
Source:
public static com.google.gct.login.GoogleLogin getInstance ( ) { return com.google.gct.login.GoogleLogin.instance ; }

Target:
public static com.google.gct.login.GoogleLogin getInstance ( ) { if ( ( com.google.gct.login.GoogleLogin.instance ) == null ) { com.google.gct.login.GoogleLogin.instance = new com.google.gct.login.GoogleLogin ( ) ; com.google.gct.login.GoogleLogin.instance.dataStore.initializeUsers ( ) ; } return com.google.gct.login.GoogleLogin.instance ; }
Source:
protected abstract void sendData ( java.lang.String destAddr , java.lang.String scAddr , int destPort , byte [ ] data , android.app.PendingIntent sentIntent , android.app.PendingIntent deliveryIntent ) ;

Target:
private void triggerSentIntentForFailure ( android.app.PendingIntent sentIntent ) { if ( sentIntent != null ) { try { sentIntent.send ( SmsManager.RESULT_ERROR_GENERIC_FAILURE ) ; } catch ( android.app.PendingIntent.CanceledException ex ) { android.telephony.Rlog.e ( com.android.internal.telephony.SMSDispatcher.TAG , "Intent has been canceled!" ) ; } } }
Source:
protected java.lang.String engineToString ( ) { }

Target:
protected java.lang.String engineToString ( ) { return "GCM" ; }
Source:
public static java.lang.String internalClassNameFromClassType ( java.lang.String internalClassType ) { return proguard.classfile.util.ClassUtil.isInternalClassType ( internalClassType ) ? internalClassType.substring ( ( ( internalClassType.indexOf ( ClassConstants.INTERNAL_TYPE_CLASS_START ) ) + 1 ) , ( ( internalClassType.length ( ) ) - 1 ) ) : internalClassType ; }

Target:
public static java.lang.String internalClassNameFromClassType ( java.lang.String internalClassType ) { return proguard.classfile.util.ClassUtil.isInternalClassType ( internalClassType ) ? internalClassType.substring ( ( ( internalClassType.indexOf ( ClassConstants.TYPE_CLASS_START ) ) + 1 ) , ( ( internalClassType.length ( ) ) - 1 ) ) : internalClassType ; }
Source:
public static void loop8 ( ) { boolean incoming = Main.field ; while ( ( java.lang.Runtime.getRuntime ( ) ) != null ) { while ( incoming ) { } } }

Target:
public static void loop7 ( boolean incoming ) { while ( ( java.lang.Runtime.getRuntime ( ) ) != null ) { java.lang.System.out.println ( incoming ) ; while ( incoming ) { } java.lang.System.nanoTime ( ) ; } }
Source:
public native double getDouble ( java.lang.Object obj ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;

Target:
public native float getFloat ( java.lang.Object obj ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;
Source:
public com.android.server.wifi.hotspot2.PasspointEventHandler makePasspointEventHandler ( com.android.server.wifi.hotspot2.PasspointEventHandler.Callbacks callbacks ) { return new com.android.server.wifi.hotspot2.PasspointEventHandler ( mWifiNative , callbacks ) ; }

Target:
public com.android.server.wifi.WifiConnectivityManager makeWifiConnectivityManager ( android.net.wifi.WifiInfo wifiInfo , boolean hasConnectionRequests ) { return new com.android.server.wifi.WifiConnectivityManager ( mContext , mWifiStateMachine , getWifiScanner ( ) , mWifiConfigManager , wifiInfo , mWifiNetworkSelector , mWifiLastResortWatchdog , mWifiMetrics , mWifiStateMachineHandlerThread.getLooper ( ) , mClock , hasConnectionRequests ) ; }
Source:
public void onMatch ( int peerId , byte [ ] serviceSpecificInfo , byte [ ] matchFilter ) { }

Target:
public void onServiceDiscovered ( int peerId , byte [ ] serviceSpecificInfo , byte [ ] matchFilter ) { }
Source:
private void sanitizeApplicationIndexes ( ) { mGsmUmtsSubscriptionAppIndex = checkIndex ( mGsmUmtsSubscriptionAppIndex , AppType.APPTYPE_SIM , AppType.APPTYPE_USIM ) ; mCdmaSubscriptionAppIndex = checkIndex ( mCdmaSubscriptionAppIndex , AppType.APPTYPE_RUIM , AppType.APPTYPE_CSIM ) ; mImsSubscriptionAppIndex = checkIndex ( mImsSubscriptionAppIndex , AppType.APPTYPE_ISIM , null ) ; }

Target:
private void sanitizeApplicationIndexesLocked ( ) { mGsmUmtsSubscriptionAppIndex = checkIndexLocked ( mGsmUmtsSubscriptionAppIndex , AppType.APPTYPE_SIM , AppType.APPTYPE_USIM ) ; mCdmaSubscriptionAppIndex = checkIndexLocked ( mCdmaSubscriptionAppIndex , AppType.APPTYPE_RUIM , AppType.APPTYPE_CSIM ) ; mImsSubscriptionAppIndex = checkIndexLocked ( mImsSubscriptionAppIndex , AppType.APPTYPE_ISIM , null ) ; }
Source:
protected void engineSetSeed ( byte [ ] seed ) { selfSeedIfNotSeeded ( ) ; org.conscrypt.NativeCrypto.RAND_seed ( seed ) ; }

Target:
protected void engineSetSeed ( byte [ ] seed ) { if ( seed == null ) { throw new java.lang.NullPointerException ( "seed == null" ) ; } selfSeedIfNotSeeded ( ) ; org.conscrypt.NativeCrypto.RAND_seed ( seed ) ; }
Source:
protected java.lang.String computeName ( ) { return getVariantConfiguration ( ) . hasFlavors ( ) ? java.lang.String.format ( "%sTest" , getFlavoredName ( true ) ) : "Test" ; }

Target:
public java.lang.String getDescription ( ) { if ( getVariantConfiguration ( ) . hasFlavors ( ) ) { return java.lang.String.format ( "Test build for the %s%s build" , getCapitalizedFlavorName ( ) , getCapitalizedBuildTypeName ( ) ) ; } else { return java.lang.String.format ( "Test build for the %s build" , getCapitalizedBuildTypeName ( ) ) ; } }
Source:
public void testQuickFix_ApiMethodAnnotation ( ) { com.intellij.openapi.project.Project myProject = myFixture.getProject ( ) ; java.lang.String annotationString = ( "@" + ( com.google.gct.intellij.endpoints.GctConstants.APP_ENGINE_ANNOTATION_API_METHOD ) ) + "(name = \"someName\")" ; com.intellij.psi.PsiAnnotation annotation = com.intellij.psi.JavaPsiFacade.getInstance ( myProject ) . getElementFactory ( ) . createAnnotationFromText ( annotationString , null ) ; com.google.gct.intellij.endpoints.validation.FullMethodNameInspection.MyQuickFix myQuickFix = new com.google.gct.intellij.endpoints.validation.FullMethodNameInspection ( ) . new com.google.gct.intellij.endpoints.validation.MyQuickFix ( ) ; com.intellij.testFramework.MockProblemDescriptor problemDescriptor = new com.intellij.testFramework.MockProblemDescriptor ( annotation , "" , com.intellij.codeInspection.ProblemHighlightType.ERROR , null ) ; myQuickFix.applyFix ( myProject , problemDescriptor ) ; junit.framework.Assert.assertEquals ( ( ( "@" + ( com.google.gct.intellij.endpoints.GctConstants.APP_ENGINE_ANNOTATION_API_METHOD ) ) + "(name = \"someName_1\")" ) , annotation.getText ( ) ) ; }

Target:
public void testQuickFix_ApiMethodAnnotation ( ) { com.intellij.openapi.project.Project myProject = myFixture.getProject ( ) ; java.lang.String annotationString = ( "@" + ( com.google.gct.idea.appengine.GctConstants.APP_ENGINE_ANNOTATION_API_METHOD ) ) + "(name = \"someName\")" ; com.intellij.psi.PsiAnnotation annotation = com.intellij.psi.JavaPsiFacade.getInstance ( myProject ) . getElementFactory ( ) . createAnnotationFromText ( annotationString , null ) ; com.google.gct.idea.appengine.validation.FullMethodNameInspection.MyQuickFix myQuickFix = new com.google.gct.idea.appengine.validation.FullMethodNameInspection ( ) . new com.google.gct.idea.appengine.validation.MyQuickFix ( ) ; com.intellij.testFramework.MockProblemDescriptor problemDescriptor = new com.intellij.testFramework.MockProblemDescriptor ( annotation , "" , com.intellij.codeInspection.ProblemHighlightType.ERROR , null ) ; myQuickFix.applyFix ( myProject , problemDescriptor ) ; junit.framework.Assert.assertEquals ( ( ( "@" + ( com.google.gct.idea.appengine.GctConstants.APP_ENGINE_ANNOTATION_API_METHOD ) ) + "(name = \"someName_1\")" ) , annotation.getText ( ) ) ; }
Source:
public void onClick ( android.content.DialogInterface dialog , int which ) { if ( ( mResumeMsg ) != null ) { remember.sendToTarget ( ) ; mResumeMsg = null ; } }

Target:
public void onClick ( android.content.DialogInterface dialog , int which ) { if ( ( mResumeMsg ) != null ) { remember.sendToTarget ( ) ; mResumeMsg = null ; } mSavePasswordDialog = null ; }
Source:
public com.android.tools.rpclib.rpc.TypeKind getKind ( ) { return Kind ; }

Target:
public void setFromAtomId ( long v ) { FromAtomId = v ; }
Source:
public void testE1 ( ) { dot.junit.opcodes.aget_byte.d.T_aget_byte_1 t = new dot.junit.opcodes.aget_byte.d.T_aget_byte_1 ( ) ; byte [ ] arr = new byte [ 2 ] ; try { t.run ( arr , 2 ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE2 ( ) { loadAndRun ( "dot.junit.opcodes.aget_byte.d.T_aget_byte_1" , java.lang.NullPointerException.class , null , 2 ) ; }
Source:
void enforceNotIsolatedCaller ( java.lang.String caller ) { if ( android.os.UserId.isIsolated ( android.os.Binder.getCallingUid ( ) ) ) { throw new java.lang.SecurityException ( ( "Isolated process not allowed to call " + caller ) ) ; } }

Target:
void enforceNotIsolatedCaller ( java.lang.String caller ) { if ( android.os.UserHandle.isIsolated ( android.os.Binder.getCallingUid ( ) ) ) { throw new java.lang.SecurityException ( ( "Isolated process not allowed to call " + caller ) ) ; } }
Source:
public libcore.tzdata.update2.tools.TzDataBundleBuilder clearVersionForTests ( ) { this . bundleFormatVersion = null ; return this ; }

Target:
public libcore.tzdata.update2.tools.TimeZoneBundleBuilder clearVersionForTests ( ) { this . bundleFormatVersion = null ; return this ; }
Source:
public void listNotifications ( java.lang.String callingPackage , @ android.telephony.euicc.EuiccNotification.Event int events , com.android.internal.telephony.euicc.IListNotificationsCallback callback ) { checkCallingPackage ( callingPackage ) ; }

Target:
public void onException ( java.lang.Throwable e ) { try { callback.onComplete ( getResultCode ( e ) , null ) ; } catch ( android.os.RemoteException exception ) { throw exception.rethrowFromSystemServer ( ) ; } }
Source:
public void testConstructor_EmptyCanonicalName ( ) { try { new tests.api.java.nio.charset.CharsetTest.MockCharset ( "" , new java.lang.String [ 0 ] ) ; fail ( ) ; } catch ( java.nio.charset.IllegalCharsetNameException expected ) { } }

Target:
public void testConstructor_EmptyCanonicalName ( ) { try { new org.apache.harmony.tests.java.nio.charset.CharsetTest.MockCharset ( "" , new java.lang.String [ 0 ] ) ; fail ( ) ; } catch ( java.nio.charset.IllegalCharsetNameException expected ) { } }
Source:
public java.nio.CharBuffer duplicate ( ) { java.nio.ByteBuffer bb = byteBuffer.duplicate ( ) . order ( byteBuffer.order ( ) ) ; java.nio.CharToByteBufferAdapter buf = new java.nio.CharToByteBufferAdapter ( bb ) ; buf.limit = limit ; buf.position = position ; buf.mark = mark ; return buf ; }

Target:
public java.nio.CharBuffer duplicate ( ) { java.nio.ByteBuffer bb = byteBuffer.duplicate ( ) . order ( byteBuffer.order ( ) ) ; java.nio.ByteBufferAsCharBuffer buf = new java.nio.ByteBufferAsCharBuffer ( bb ) ; buf.limit = limit ; buf.position = position ; buf.mark = mark ; return buf ; }
Source:
public void onCallRemoved ( com.android.server.telecom.Call call ) { if ( mCallsManager.getCalls ( ) . isEmpty ( ) ) { com.android.server.telecom.Log.i ( this , "All calls removed, resetting proximity sensor to default state" ) ; turnOff ( true ) ; } super . onCallRemoved ( call ) ; }

Target:
public void onCallRemoved ( com.android.server.telecom.Call call ) { if ( mCallsManager.getCalls ( ) . isEmpty ( ) ) { android.telecom.Log.i ( this , "All calls removed, resetting proximity sensor to default state" ) ; turnOff ( true ) ; } super . onCallRemoved ( call ) ; }
Source:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.JayceInternalReaderImpl in ) throws java.io.IOException { localId = in.readId ( ) ; }

Target:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0004.io.JayceInternalReaderImpl in ) throws java.io.IOException { localId = in.readId ( ) ; markers = in.readNodes ( com.android.jack.jayce.v0004.nodes.NMarker.class ) ; }
Source:
public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_SAMPLES ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newSample ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision minToolsRev ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_SAMPLES ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mMinToolsRev = minToolsRev ; return p ; }
Source:
protected void finalize ( ) { if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.util.Log.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "GSMPhone finalized" ) ; }

Target:
protected void finalize ( ) { if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "GSMPhone finalized" ) ; }
Source:
private static native long nativeGetUidStat ( int uid , int type ) ;

Target:
private static native long nativeGetUidStat ( int uid , int type , boolean useBpfStats ) ;
Source:
public android.net.IpSecTransform.Builder setIpv4Encapsulation ( android.net.IpSecManager.UdpEncapsulationSocket localSocket , int remotePort ) { mConfig.encapType = android.net.IpSecTransform.ENCAP_ESPINUDP ; mConfig.encapLocalPort = localSocket.getPort ( ) ; mConfig.encapRemotePort = remotePort ; return this ; }

Target:
public android.net.IpSecTransform.Builder setNattKeepalive ( int intervalSeconds ) { mConfig.setNattKeepaliveInterval ( intervalSeconds ) ; return this ; }
Source:
public static native int RSA_private_decrypt ( int flen , byte [ ] from , byte [ ] to , int pkey , int padding ) throws java.security.SignatureException , javax.crypto.BadPaddingException ;

Target:
public static native int RSA_public_encrypt ( int flen , byte [ ] from , byte [ ] to , long pkey , int padding ) ;
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > sameInstance ( T object ) { return org.hamcrest.core.IsSame.sameInstance ( object ) ; }

Target:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > isA ( java.lang.Class < T > type ) { return org.hamcrest.core.Is.isA ( type ) ; }
Source:
public void connectionServiceFocusLost ( ) { if ( ( mConnSvrFocusListener ) != null ) { mConnSvrFocusListener.onConnectionServiceReleased ( this ) ; } }

Target:
public void onSuccess ( ) { try { mServiceInterface.connectionServiceFocusLost ( android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException ignored ) { android.telecom.Log.d ( this , "failed to inform the focus lost event" ) ; } }
Source:
public android.database.Cursor loadInBackground ( ) { android.database.Cursor cursor = super . loadInBackground ( ) ; com.android.dialer.searchfragment.cp2.ContactFilterCursor contactFilterCursor = new com.android.dialer.searchfragment.cp2.ContactFilterCursor ( cursor , query , getContext ( ) ) ; return com.android.dialer.searchfragment.cp2.SearchContactsCursor.newInstance ( getContext ( ) , contactFilterCursor ) ; }

Target:
private android.database.Cursor regularSearchLoadInBackground ( ) { return com.android.dialer.searchfragment.cp2.SearchContactsCursorLoader.RegularSearchCursor.newInstance ( getContext ( ) , super . loadInBackground ( ) ) ; }
Source:
public native long normalize ( boolean ignoreDst ) ;

Target:
public long normalize ( boolean ignoreDst ) { calculator.copyFieldsFromTime ( this ) ; long timeInMillis = calculator.toMillis ( ignoreDst ) ; calculator.copyFieldsToTime ( this ) ; return timeInMillis ; }
Source:
public int download ( android.telephony.mbms.DownloadRequest downloadRequest , android.telephony.mbms.IDownloadProgressListener listener ) throws android.os.RemoteException { return 0 ; }

Target:
public int download ( android.telephony.mbms.DownloadRequest downloadRequest , android.telephony.mbms.DownloadProgressListener listener ) { return 0 ; }
Source:
public void installPackage ( @ com.android.annotations.NonNull java.io.File apkFile ) throws com.android.builder.testing.api.DeviceException { try { iDevice.installPackage ( apkFile.getAbsolutePath ( ) , true ) ; } catch ( java.lang.Exception e ) { throw new com.android.builder.testing.api.DeviceException ( e ) ; } }

Target:
public void installPackage ( @ com.android.annotations.NonNull java.io.File apkFile , int timeout ) throws com.android.builder.testing.api.DeviceException { try { iDevice.installPackage ( apkFile.getAbsolutePath ( ) , true ) ; } catch ( java.lang.Exception e ) { throw new com.android.builder.testing.api.DeviceException ( e ) ; } }
Source:
public void testSendMessageQueueRandomize ( ) throws java.lang.Exception { com.android.server.wifi.aware.WifiAwareNative.Capabilities cap = com.android.server.wifi.aware.WifiAwareStateManagerTest.getCapabilities ( ) ; testSendMessageQueue ( com.android.server.wifi.aware.WifiAwareStateManagerTest.SendMessageAnswer.OP_QUEUE_RANDOMIZE , cap , ( ( cap.maxQueuedTransmitMessages ) * 10 ) ) ; }

Target:
public void testSendMessageQueueAllQueueFail ( ) throws java.lang.Exception { com.android.server.wifi.aware.Capabilities cap = com.android.server.wifi.aware.WifiAwareStateManagerTest.getCapabilities ( ) ; testSendMessageQueue ( com.android.server.wifi.aware.WifiAwareStateManagerTest.SendMessageAnswer.OP_QUEUE_FAIL , cap , ( ( cap.maxQueuedTransmitMessages ) + 5 ) ) ; }