auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onDestroy ( ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkAppService.LOG_TAG , "onDestroy()" ) ; unregisterProcessObserver ( ) ; com.android.stk.StkAppService.sInstance = null ; waitForLooper ( ) ; mServiceLooper.quit ( ) ; }

Target:
public void onDestroy ( ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkAppService.LOG_TAG , "onDestroy()" ) ; unregisterUserActivityReceiver ( ) ; unregisterProcessObserver ( ) ; com.android.stk.StkAppService.sInstance = null ; waitForLooper ( ) ; mServiceLooper.quit ( ) ; }
Source:
public void run ( ) { appNotResponding ( proc , activity , parent , aboveSystem , annotation ) ; }

Target:
public void run ( ) { mAppErrors.appNotResponding ( proc , activity , parent , aboveSystem , annotation ) ; }
Source:
public static void assertEqualPrincipals ( byte [ ] [ ] expected , byte [ ] [ ] actual ) { org.conscrypt.TestUtils.assertEqualByteArrays ( expected , actual ) ; }

Target:
public static void assertEqualPrincipals ( byte [ ] [ ] expected , byte [ ] [ ] actual ) { org.conscrypt.NativeCryptoTest.assertEqualByteArrays ( expected , actual ) ; }
Source:
public static void computeMin ( android.renderscript.cts.TestMin.ArgumentsUshortUshortUshort args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( short ) ( java.lang.StrictMath.min ( ( ( args.inV1 ) & 65535 ) , ( ( args.inV2 ) & 65535 ) ) ) ) ; }

Target:
public static void computeMin ( android.renderscript.cts.TestMin.ArgumentsUshortUshortUshort args ) { args.out = android.renderscript.cts.CoreMathVerifier.minU16 ( args.inV1 , args.inV2 ) ; }
Source:
public void addExtension ( java.lang.String oid , boolean critical , org.bouncycastle.asn1.ASN1Encodable value ) { this . addExtension ( new org.bouncycastle.asn1.DERObjectIdentifier ( oid ) , critical , value ) ; }

Target:
public void addExtension ( java.lang.String oid , boolean critical , org.bouncycastle.asn1.ASN1Encodable value ) { this . addExtension ( new org.bouncycastle.asn1.ASN1ObjectIdentifier ( oid ) , critical , value ) ; }
Source:
public void test_Constructor_Ljava_lang_String ( ) throws java.io.IOException { org.apache.harmony.tests.java.io.PrintStreamTest.MockPrintStream os = new org.apache.harmony.tests.java.io.PrintStreamTest.MockPrintStream ( testFilePath ) ; assertNotNull ( os ) ; os.close ( ) ; }

Target:
public void test_Constructor_Ljava_lang_String ( ) throws java.io.IOException { java.io.PrintStream os = new java.io.PrintStream ( testFilePath ) ; os.print ( org.apache.harmony.tests.java.io.PrintStreamTest.UNICODE_STRING ) ; os.close ( ) ; org.apache.harmony.tests.java.io.PrintStreamTest.assertFileContents ( org.apache.harmony.tests.java.io.PrintStreamTest.UNICODE_STRING.getBytes ( java.nio.charset.Charset.defaultCharset ( ) ) , testFile ) ; }
Source:
boolean runTests ( @ com.android.annotations.NonNull java.lang.String projectName , @ com.android.annotations.NonNull java.lang.String variantName , @ com.android.annotations.NonNull java.io.File testApk , @ com.android.annotations.NonNull java.lang.String testPackageName , @ com.android.annotations.NonNull java.lang.String testInstrumentationRunner , @ com.android.annotations.Nullable java.io.File testedApk , @ com.android.annotations.Nullable java.lang.String testedPackageName , @ com.android.annotations.NonNull java.util.List < ? extends com.android.builder.testing.api.DeviceConnector > deviceList , int timeout , @ com.android.annotations.NonNull java.io.File resultsDir , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) throws com.android.builder.testing.api.TestException ;

Target:
boolean runTests ( @ com.android.annotations.NonNull java.lang.String projectName , @ com.android.annotations.NonNull java.lang.String variantName , @ com.android.annotations.NonNull java.io.File testApk , @ com.android.annotations.Nullable java.io.File testedApk , @ com.android.annotations.NonNull com.android.builder.testing.TestData testData , @ com.android.annotations.NonNull java.util.List < ? extends com.android.builder.testing.api.DeviceConnector > deviceList , int timeout , @ com.android.annotations.NonNull java.io.File resultsDir , @ com.android.annotations.NonNull com.android.utils.ILogger logger ) throws com.android.builder.testing.api.TestException ;
Source:
static void sgetAndInvokeStatic ( java.lang.Iterable < ? > it ) { Main.$opt$inline$ignoreInt ( Main.ClassWithClinit8.value ) ; Main.ClassWithClinit8.$noinline$someStaticMethod ( it ) ; }

Target:
static void sgetAndInvokeStatic ( java.lang.Iterable < ? > it ) { Main.$opt$inline$ignoreInt ( Main.ClassWithClinit8.value ) ; Main.ClassWithClinit8.someStaticMethod ( it ) ; }
Source:
public boolean hasResources ( com.android.ide.eclipse.adt.internal.resources.ResourceType type ) { return com.android.ide.eclipse.adt.internal.resources.manager.FolderTypeRelationship.match ( type , getFolder ( ) . getType ( ) ) ; }

Target:
public boolean hasResources ( com.android.resources.ResourceType type ) { return com.android.ide.eclipse.adt.internal.resources.manager.FolderTypeRelationship.match ( type , getFolder ( ) . getType ( ) ) ; }
Source:
public boolean connect ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_ADMIN_PERM ) ; return false ; }

Target:
int getConnectionState ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; return mState ; }
Source:
public void onInitializeAccessibilityEvent ( android.view.accessibility.AccessibilityEvent event ) { super . onInitializeAccessibilityEvent ( event ) ; mDelegate.onInitializeAccessibilityEvent ( event ) ; }

Target:
public java.lang.CharSequence getAccessibilityClassName ( ) { return android.widget.DatePicker.class . getName ( ) ; }
Source:
static int periodicReturned ( int n ) { int k = 0 ; for ( int i = 0 ; i < n ; i ++ ) { k = 1 - k ; } return k ; }

Target:
static int periodicReturnedN ( int n ) { int k = 0 ; for ( int i = 0 ; i < n ; i ++ ) { k = 1 - k ; } return k ; }
Source:
public void testSniper3d ( ) throws java.io.IOException , java.lang.InterruptedException { startApp ( com.google.android.gfx.benchmark.test.GraphicsBenchmarkTest.App.SNIPER_3D ) ; }

Target:
public void run ( ) throws java.io.IOException , java.lang.InterruptedException { startApp ( apk ) ; }
Source:
public void addPages ( ) { mChooseAssetPage = new com.android.ide.eclipse.adt.internal.assetstudio.ChooseAssetTypePage ( ) ; mChooseAssetPage.setProject ( mInitialProject ) ; mConfigureAssetPage = new com.android.ide.eclipse.adt.internal.assetstudio.ConfigureAssetSetPage ( ) ; addPage ( mChooseAssetPage ) ; addPage ( mConfigureAssetPage ) ; }

Target:
public void addPages ( ) { mValues.project = mInitialProject ; mChooseAssetPage = new com.android.ide.eclipse.adt.internal.assetstudio.ChooseAssetTypePage ( mValues ) ; mConfigureAssetPage = new com.android.ide.eclipse.adt.internal.assetstudio.ConfigureAssetSetPage ( mValues ) ; addPage ( mChooseAssetPage ) ; addPage ( mConfigureAssetPage ) ; }
Source:
private void updateEditTextWithNumber ( ) { android.content.Intent intent = getIntent ( ) ; if ( intent != null ) { mNumberView.setText ( intent.getDataString ( ) ) ; } }

Target:
private void updateMutableUi ( ) { android.content.Intent intent = getIntent ( ) ; if ( intent != null ) { mNumberView.setText ( intent.getDataString ( ) ) ; mRttCheckbox.setChecked ( intent.getBooleanExtra ( TelecomManager.EXTRA_START_CALL_WITH_RTT , false ) ) ; } }
Source:
native void rsnScriptSetVarI ( long con , long id , int slot , int val ) ;

Target:
native void rsnScriptForEachClipped ( long con , long incCon , long id , int slot , long ain , long aout , byte [ ] params , int xstart , int xend , int ystart , int yend , int zstart , int zend , boolean mUseInc ) ;
Source:
public static java.lang.String toString ( java.net.URL url , java.nio.charset.Charset charset ) throws java.io.IOException { return com.google.common.io.CharStreams.toString ( com.google.common.io.Resources.newReaderSupplier ( url , charset ) ) ; }

Target:
public static com.google.common.io.CharSource asCharSource ( java.net.URL url , java.nio.charset.Charset charset ) { return com.google.common.io.Resources.asByteSource ( url ) . asCharSource ( charset ) ; }
Source:
boolean isExpansion ( ) { com.google.devtools.common.options.Option option = field.getAnnotation ( com.google.devtools.common.options.Option.class ) ; return ( ( option.expansion ( ) . length ) > 0 ) || ( com.google.devtools.common.options.OptionsData.usesExpansionFunction ( option ) ) ; }

Target:
boolean isExpansion ( ) { return com.google.devtools.common.options.OptionsData.isExpansionOption ( field.getAnnotation ( com.google.devtools.common.options.Option.class ) ) ; }
Source:
static void shr64 ( ) { for ( int i = 0 ; i < 128 ; i ++ ) Main.a [ i ] >>>= 64 ; }

Target:
static void shr65 ( ) { for ( int i = 0 ; i < 128 ; i ++ ) Main.a [ i ] >>>= Main.$opt$inline$IntConstant65 ( ) ; }
Source:
public void reset ( ) { free ( ) ; }

Target:
public int doFinal ( byte [ ] out , int outOff ) { try { return delegate.digest ( out , outOff , out.length ) ; } catch ( java.security.DigestException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
protected void fillRtTestInfos ( ) { }

Target:
protected void fillRtTestInfos ( ) { rtTestInfos.add ( TEST007 ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { validatePage ( ) ; }

Target:
public void modifyText ( org.eclipse.swt.events.ModifyEvent e ) { validatePage ( ) ; }
Source:
public void run ( ) { synchronized ( this ) { loadImage ( ) ; crosshairLocation = model.getCrosshairLocation ( ) ; zoom = model.getZoom ( ) ; } }

Target:
public void run ( ) { redraw ( ) ; }
Source:
public boolean needSequentialWriting ( ) ;

Target:
public boolean needsSequentialWriting ( ) ;
Source:
protected void initSdk ( ) { setSdkManager ( new com.android.sdklib.internal.repository.MockEmptySdkManager ( com.android.sdkuilib.internal.repository.MockUpdaterData.SDK_PATH ) ) ; }

Target:
protected void initSdk ( ) { setSdkManager ( new com.android.sdklib.internal.repository.MockEmptySdkManager ( com.android.sdkuilib.internal.repository.MockSwtUpdaterData.SDK_PATH ) ) ; }
Source:
public void test_dropSourceSpecific_sourceKeysAreIndependent_IPv6 ( ) throws java.lang.Exception { test_dropSourceSpecific_sourceKeysAreIndependent ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv6 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv6_1 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv6_2 ) ; }

Target:
public void test_dropSourceSpecific_sourceKeysAreIndependent_IPv6 ( ) throws java.lang.Exception { for ( java.net.NetworkInterface networkInterface : ipv6networkInterfaces ) { test_dropSourceSpecific_sourceKeysAreIndependent ( networkInterface , libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv6 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv6_1 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv6_2 ) ; } }
Source:
public void testLamba019 ( ) throws java.lang.Exception { run ( LAMBDA019 ) ; }

Target:
public void testLamba038 ( ) throws java.lang.Exception { run ( LAMBDA038 ) ; }
Source:
private void checkPendingIntent ( android.app.PendingIntent intent ) { if ( intent == null ) { throw new java.lang.IllegalArgumentException ( "PendingIntent cannot be null." ) ; } }

Target:
private static void checkPendingIntentNotNull ( android.app.PendingIntent intent ) { com.android.internal.util.Preconditions.checkNotNull ( intent , "PendingIntent cannot be null." ) ; }
Source:
public static void setDefaultUserDirectory ( java.io.File root ) { org.conscrypt.TrustedCertificateStore.defaultCaCertsAddedDir = new java.io.File ( root , "cacerts-added" ) ; org.conscrypt.TrustedCertificateStore.defaultCaCertsDeletedDir = new java.io.File ( root , "cacerts-removed" ) ; }

Target:
public static void setDefaultUserDirectory ( java.io.File root ) { org.conscrypt.TrustedCertificateStore.PreloadHolder.defaultCaCertsAddedDir = new java.io.File ( root , "cacerts-added" ) ; org.conscrypt.TrustedCertificateStore.PreloadHolder.defaultCaCertsDeletedDir = new java.io.File ( root , "cacerts-removed" ) ; }
Source:
public int syncAddPasspointManagementObject ( com.android.internal.util.AsyncChannel channel , java.lang.String managementObject ) { android.os.Message resultMsg = channel.sendMessageSynchronously ( com.android.server.wifi.WifiStateMachine.CMD_ADD_PASSPOINT_MO , managementObject ) ; int result = resultMsg.arg1 ; resultMsg.recycle ( ) ; return result ; }

Target:
public boolean getIpReachabilityDisconnectEnabled ( ) { return mIpReachabilityDisconnectEnabled ; }
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 testE1 ( ) { loadAndRun ( "dot.junit.opcodes.aget_char.d.T_aget_char_1" , java.lang.ArrayIndexOutOfBoundsException.class , new char [ 2 ] , 2 ) ; }
Source:
public void testConsumerProguardRules ( ) { try { final com.android.tests.basic.Main a = getActivity ( ) ; a.getObfuscatedMethod ( ) ; fail ( "Excepted NoSuchMethodError" ) ; } catch ( java.lang.NoSuchMethodException e ) { } }

Target:
public void testNonObfuscatedMethod1 ( ) { mainActivity.setUpTextView1 ( ) ; java.lang.String className = "com.android.tests.basic.StringGetter" ; java.lang.String methodName = "getString" ; searchMethod ( className , methodName , true ) ; }
Source:
public java.io.File getOutputDir ( ) { return out ; }

Target:
public void setInputSources ( @ javax.annotation.Nonnull java.util.List < java.io.File > inputSources ) { this . inputSources = inputSources ; }
Source:
private static boolean isDuoCall ( java.lang.String phoneAccountComponentName ) { return DuoConstants.PHONE_ACCOUNT_COMPONENT_NAME.flattenToString ( ) . equals ( phoneAccountComponentName ) ; }

Target:
private static boolean isDuoCall ( android.content.Context context , java.lang.String phoneAccountComponentName ) { return com.android.dialer.duo.DuoComponent.get ( context ) . getDuo ( ) . isDuoAccount ( phoneAccountComponentName ) ; }
Source:
public void getCapabilities ( ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_TYPE_COMMAND ) ; msg.arg1 = com.android.server.wifi.nan.WifiNanStateManager.COMMAND_TYPE_GET_CAPABILITIES ; mSm.sendMessage ( msg ) ; }

Target:
public void queryCapabilities ( ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_TYPE_COMMAND ) ; msg.arg1 = com.android.server.wifi.nan.WifiNanStateManager.COMMAND_TYPE_GET_CAPABILITIES ; mSm.sendMessage ( msg ) ; }
Source:
public void test_plus_TemporalAmount_dateNotAllowed ( ) { java.time.temporal.TemporalAmount period = tck.java.time.MockSimplePeriod.of ( 7 , java.time.temporal.ChronoUnit.MONTHS ) ; TEST_12_30_40_987654321.plus ( period ) ; }

Target:
public void test_plus_TemporalAmount_dateNotAllowed ( ) { java.time.temporal.TemporalAmount period = tck.java.time.MockSimplePeriod.of ( 7 , java.time.temporal.ChronoUnit.MONTHS ) ; tck.java.time.TCKLocalTime.TEST_12_30_40_987654321.plus ( period ) ; }
Source:
public java.lang.String telephonyGetServiceStateForSubscription ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "subId" ) java.lang.Integer subId ) { return null ; }

Target:
public java.lang.String telephonyGetServiceStateForSubscription ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "subId" ) java.lang.Integer subId ) { android.telephony.ServiceState ss = mTelephonyManager.getServiceStateForSubscriber ( subId ) ; return android.telephony.ServiceState.rilServiceStateToString ( ss.getState ( ) ) ; }
Source:
public java.util.List < ? extends com.android.jack.library.InputLibrary > getImportedLibrary ( ) ;

Target:
public java.util.List < ? extends com.android.jack.library.InputLibrary > getImportedLibraries ( ) ;
Source:
protected com.android.tools.lint.detector.api.Project createProject ( @ com.android.annotations.NonNull java.io.File dir , @ com.android.annotations.NonNull java.io.File referenceDir ) { return com.android.tools.lint.detector.api.Project.create ( this , dir , referenceDir ) ; }

Target:
protected com.android.tools.lint.detector.api.Project createProject ( @ com.android.annotations.NonNull java.io.File dir , @ com.android.annotations.NonNull java.io.File referenceDir ) { if ( mProjectDirs.contains ( dir ) ) { throw new com.android.tools.lint.client.api.CircularDependencyException ( "Circular library dependencies; check your project.properties files carefully" ) ; } mProjectDirs.add ( dir ) ; return com.android.tools.lint.detector.api.Project.create ( this , dir , referenceDir ) ; }
Source:
private static int rotateRight32 ( int x , int y ) { return java.lang.Integer.rotateRight ( x , y ) ; }

Target:
private static int rotateRightInt ( int value , int distance ) { return java.lang.Integer.rotateRight ( value , distance ) ; }
Source:
public void unSetOnUnsolOemHookRaw ( android.os.Handler h ) { }

Target:
public void registerForModemReset ( android.os.Handler h , int what , java.lang.Object obj ) { }
Source:
private static com.android.build.gradle.internal.EvaluationMode computeModelQueryMode ( @ com.android.annotations.NonNull org.gradle.api.Project project ) { if ( com.android.build.gradle.internal.ExtraModelInfo.isPropertyTrue ( project , com.android.builder.model.AndroidProject.PROPERTY_BUILD_MODEL_ONLY_ADVANCED ) ) { return EvaluationMode.IDE ; } if ( com.android.build.gradle.internal.ExtraModelInfo.isPropertyTrue ( project , com.android.builder.model.AndroidProject.PROPERTY_BUILD_MODEL_ONLY ) ) { return EvaluationMode.IDE_LEGACY ; } return EvaluationMode.STANDARD ; }

Target:
private static com.android.build.gradle.internal.EvaluationMode computeModelQueryMode ( @ com.android.annotations.NonNull org.gradle.api.Project project ) { if ( com.android.build.gradle.AndroidGradleOptions.buildModelOnlyAdvanced ( project ) ) { return EvaluationMode.IDE ; } if ( com.android.build.gradle.AndroidGradleOptions.buildModelOnly ( project ) ) { return EvaluationMode.IDE_LEGACY ; } return EvaluationMode.STANDARD ; }
Source:
public void getEnhancedVoicePrivacy ( android.os.Message onComplete ) { this . mCM.getPreferredVoicePrivacy ( onComplete ) ; }

Target:
public void enableEnhancedVoicePrivacy ( boolean enable , android.os.Message onComplete ) { mCi.setPreferredVoicePrivacy ( enable , onComplete ) ; }
Source:
public com.android.ide.common.rendering.api.RenderSession createSession ( com.android.ide.common.rendering.api.RenderParams params ) { if ( ( mBridge ) != null ) { return mBridge.createSession ( params ) ; } else if ( ( mLegacyBridge ) != null ) { return createLegacySession ( params ) ; } return null ; }

Target:
public com.android.ide.common.rendering.api.RenderSession createSession ( com.android.ide.common.rendering.api.SessionParams params ) { if ( ( mBridge ) != null ) { return mBridge.createSession ( params ) ; } else if ( ( mLegacyBridge ) != null ) { return createLegacySession ( params ) ; } return null ; }
Source:
synchronized void nScriptSetVarD ( long id , int slot , double val ) { validate ( ) ; rsnScriptSetVarD ( mContext , id , slot , val ) ; }

Target:
synchronized long nScriptFieldIDCreate ( long sid , int slot , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } return rsnScriptFieldIDCreate ( curCon , sid , slot , mUseInc ) ; }
Source:
private void onNetworkInitiatedUssd ( com.android.internal.telephony.MmiCode mmi ) { mMmiCompleteRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , mmi , null ) ) ; }

Target:
private void onNetworkInitiatedUssd ( com.android.internal.telephony.MmiCode mmi ) { android.telephony.Rlog.v ( com.android.internal.telephony.GsmCdmaPhone.LOG_TAG , ( "onNetworkInitiatedUssd: mmi=" + mmi ) ) ; mMmiCompleteRegistrants.notifyRegistrants ( new android.os.AsyncResult ( null , mmi , null ) ) ; }
Source:
boolean isLeadingZeroPossible ( int countryCallingCode ) { com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata mainMetadataForCallingCode = getMetadataForRegionOrCallingCode ( countryCallingCode , getRegionCodeForCountryCode ( countryCallingCode ) ) ; if ( mainMetadataForCallingCode == null ) { return false ; } return mainMetadataForCallingCode.leadingZeroPossible ; }

Target:
boolean isLeadingZeroPossible ( int countryCallingCode ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata mainMetadataForCallingCode = getMetadataForRegionOrCallingCode ( countryCallingCode , getRegionCodeForCountryCode ( countryCallingCode ) ) ; if ( mainMetadataForCallingCode == null ) { return false ; } return mainMetadataForCallingCode.isLeadingZeroPossible ( ) ; }
Source:
public void onConflictStateChange ( boolean conflict , com.android.tv.dvr.ScheduledRecording ... schedules ) { if ( ( mRowsAdapter ) != null ) { for ( com.android.tv.dvr.ScheduledRecording recording : schedules ) { mRowsAdapter.onScheduledRecordingUpdated ( recording , true ) ; } } }

Target:
public void onConflictStateChange ( boolean conflict , com.android.tv.dvr.data.ScheduledRecording ... schedules ) { if ( ( mRowsAdapter ) != null ) { for ( com.android.tv.dvr.data.ScheduledRecording recording : schedules ) { mRowsAdapter.onScheduledRecordingUpdated ( recording , true ) ; } } }
Source:
public void printReport ( @ javax.annotation.Nonnull com.android.sched.util.table.Report report ) ;

Target:
public boolean print ( @ javax.annotation.Nonnull java.io.PrintStream printer , @ javax.annotation.Nonnull T value ) ;
Source:
protected com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem createResourceItem ( java.lang.String name ) { return new com.android.ide.eclipse.adt.internal.resources.manager.FrameworkResourceItem ( name ) ; }

Target:
protected com.android.ide.common.resources.ResourceItem createResourceItem ( java.lang.String name ) { return new com.android.ide.common.resources.FrameworkResourceItem ( name ) ; }
Source:
final void performAppGcsIfAppropriateLocked ( ) { if ( canGcNow ( ) ) { performAppGcsLocked ( ) ; return ; } scheduleAppGcsLocked ( ) ; }

Target:
final void performAppGcsIfAppropriateLocked ( ) { if ( canGcNowLocked ( ) ) { performAppGcsLocked ( ) ; return ; } scheduleAppGcsLocked ( ) ; }
Source:
public static void sendRunOrClosePipeMessage ( org.chromium.mojo.system.Core core , org.chromium.mojo.bindings.MessageReceiverWithResponder receiver , org.chromium.mojo.bindings.interfacecontrol.RunOrClosePipeMessageParams params ) { org.chromium.mojo.bindings.Message message = params.serializeWithHeader ( core , new org.chromium.mojo.bindings.MessageHeader ( org.chromium.mojo.bindings.interfacecontrol.InterfaceControlMessagesConstants.RUN_OR_CLOSE_PIPE_MESSAGE_ID ) ) ; receiver.accept ( message ) ; }

Target:
public static void sendRunOrClosePipeMessage ( org.chromium.mojo.system.Core core , org.chromium.mojo.bindings.MessageReceiverWithResponder receiver , org.chromium.mojo.bindings.RunOrClosePipeMessageParams params ) { org.chromium.mojo.bindings.Message message = params.serializeWithHeader ( core , new org.chromium.mojo.bindings.MessageHeader ( InterfaceControlMessagesConstants.RUN_OR_CLOSE_PIPE_MESSAGE_ID ) ) ; receiver.accept ( message ) ; }
Source:
public void testCheckSignaturesSharedSomeMatch1 ( ) { int apk1 = SHARED1_CERT1_CERT2 ; int apk2 = SHARED2_CERT1 ; boolean fail = true ; int retCode = PackageManager.INSTALL_FAILED_SHARED_USER_INCOMPATIBLE ; int expMatchResult = - 1 ; checkSharedSignatures ( apk1 , apk2 , true , fail , retCode , expMatchResult ) ; }

Target:
public void testCheckSignaturesSharedSomeMatch1 ( ) { int apk1 = SHARED1_CERT1_CERT2 ; int apk2 = SHARED2_CERT1 ; boolean fail = true ; int retCode = android.content.pm.PackageManager.INSTALL_FAILED_SHARED_USER_INCOMPATIBLE ; int expMatchResult = - 1 ; checkSharedSignatures ( apk1 , apk2 , true , fail , retCode , expMatchResult ) ; }
Source:
public java.lang.String getName ( ) { return variantData.getName ( ) ; }

Target:
protected com.android.build.gradle.internal.variant.BaseVariantData getVariantData ( ) { return variantData ; }
Source:
public static void computeAsin ( android.renderscript.cts.TestAsin.ArgumentsFloatFloat args ) { args.ulf = 4 ; args.ulfRelaxed = 128 ; args.out = ( ( float ) ( java.lang.StrictMath.asin ( args.in ) ) ) ; }

Target:
public static void computeAsin ( android.renderscript.cts.TestAsin.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.asin ( args.inV ) , 4 , 128 ) ; }
Source:
public static synchronized org.apache.harmony.luni.util.DeleteOnExit getInstance ( ) { if ( ( org.apache.harmony.luni.util.DeleteOnExit.instance ) == null ) { org.apache.harmony.luni.util.DeleteOnExit.instance = new org.apache.harmony.luni.util.DeleteOnExit ( ) ; java.lang.Runtime.getRuntime ( ) . addShutdownHook ( org.apache.harmony.luni.util.DeleteOnExit.instance ) ; } return org.apache.harmony.luni.util.DeleteOnExit.instance ; }

Target:
public static synchronized libcore.io.DeleteOnExit getInstance ( ) { if ( ( libcore.io.DeleteOnExit.instance ) == null ) { libcore.io.DeleteOnExit.instance = new libcore.io.DeleteOnExit ( ) ; java.lang.Runtime.getRuntime ( ) . addShutdownHook ( libcore.io.DeleteOnExit.instance ) ; } return libcore.io.DeleteOnExit.instance ; }
Source:
public void onSessionConfigFail ( int reason ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "reason" , reason ) ; mEventFacade.postEvent ( "WifiNanSessionOnSessionConfigFail" , mResults ) ; }

Target:
public void onSessionConfigFailed ( int reason ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "reason" , reason ) ; mEventFacade.postEvent ( "WifiNanSessionOnSessionConfigFailed" , mResults ) ; }
Source:
private static com.android.internal.telephony.cdma.SmsMessage createMessageFromParcel ( android.hardware.radio.V1_0.CdmaSmsMessage msg , byte [ ] bearerData ) { for ( byte b : bearerData ) { msg.bearerData.add ( b ) ; } com.android.internal.telephony.cdma.SmsMessage message = com.android.internal.telephony.cdma.SmsMessage.newFromRil ( msg ) ; return message ; }

Target:
private static com.android.internal.telephony.cdma.SmsMessage createMessageFromParcel ( android.hardware.radio.V1_0.CdmaSmsMessage msg , byte [ ] bearerData ) { for ( byte b : bearerData ) { msg.bearerData.add ( b ) ; } com.android.internal.telephony.cdma.SmsMessage message = com.android.internal.telephony.cdma.SmsMessageConverter.newCdmaSmsMessageFromRil ( msg ) ; return message ; }
Source:
public void save ( ) { this . updated = new java.util.Date ( ) ; com.googlecode.objectify.ObjectifyService.ofy ( ) . defer ( ) . save ( ) . entity ( this ) ; }

Target:
public void save ( ) { this . updated = new java.util.Date ( ) ; com.googlecode.objectify.ObjectifyService.ofy ( ) . save ( ) . entity ( this ) . now ( ) ; }
Source:
public void run ( ) { findAllAsync ( searchString ) ; }

Target:
public void run ( ) { findNext ( forwards ) ; }
Source:
boolean isDeviceProvisioned ( ) { return ( Settings.Secure.getInt ( mContext.getContentResolver ( ) , Settings.Secure.DEVICE_PROVISIONED , 0 ) ) != 0 ; }

Target:
boolean isDeviceProvisioned ( ) { return ( Settings.Global.getInt ( mContext.getContentResolver ( ) , Settings.Global.DEVICE_PROVISIONED , 0 ) ) != 0 ; }
Source:
void flushPendingBatchResults ( int clientIf , boolean isServer ) { if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( ( "flushPendingBatchResults - clientIf=" + clientIf ) + ", isServer=" ) + isServer ) ) ; mScanManager.flushBatchScanResults ( new com.android.bluetooth.gatt.ScanClient ( clientIf , isServer ) ) ; }

Target:
void unregisterScanner ( int scannerId ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "unregisterScanner() - scannerId=" + scannerId ) ) ; mScannerMap.remove ( scannerId ) ; mScanManager.unregisterScanner ( scannerId ) ; }
Source:
public void fatalError ( org.xml.sax.SAXParseException e ) { data_fatalError.append ( e ) ; data_fatalError.append ( tests.api.javax.xml.parsers.SAXParserTestSupport.SEPARATOR_ELEMENT ) ; }

Target:
public void fatalError ( org.xml.sax.SAXParseException e ) { data_fatalError.append ( e ) ; data_fatalError.append ( org.apache.harmony.tests.javax.xml.parsers.SAXParserTestSupport.SEPARATOR_ELEMENT ) ; }
Source:
com.android.sched.util.location.Location getVDirLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { return vfs.getVDirLocation ( parent , path ) ; }

Target:
com.android.sched.util.location.Location getVDirLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { return vfs.getVDirLocation ( parent , name ) ; }
Source:
public void shutdown ( boolean confirm , boolean wait ) { try { mService.shutdown ( confirm , wait ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public void shutdown ( boolean confirm , java.lang.String reason , boolean wait ) { try { mService.shutdown ( confirm , reason , wait ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public final java.security.Provider getProvider ( ) { return provider ; }

Target:
public final java.security.Provider getProvider ( ) { ensureProviderChosen ( ) ; return provider ; }
Source:
public void setSmsListener ( android.telephony.ims.aidl.IImsSmsListener listener ) throws com.android.ims.ImsException { try { mMmTelFeatureConnection.setSmsListener ( listener ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "setSmsListener()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }

Target:
public void setSmsListener ( android.telephony.ims.aidl.IImsSmsListener listener ) throws com.android.ims.ImsException { try { mMmTelFeatureConnection.setSmsListener ( listener ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "setSmsListener()" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }
Source:
public void callSessionMergeComplete ( com.android.ims.internal.ImsCallSession newSession ) throws android.os.RemoteException { mListener.callSessionMergeComplete ( ( newSession != null ? newSession.getSession ( ) : null ) ) ; }

Target:
public void callSessionConferenceExtended ( android.telephony.ims.stub.ImsCallSessionImplBase newSession , android.telephony.ims.ImsCallProfile profile ) { try { mListener.callSessionConferenceExtended ( ( newSession != null ? newSession.getServiceImpl ( ) : null ) , profile ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public void test_U8_1_SCALE20_20_inRectangle ( ) { testReszie ( inX , inY , Element.DataType.UNSIGNED_8 , 1 , 2.0F , 2.0F ) ; }

Target:
public void test_U8_1_SCALE20_20_inRectangle ( ) { testResize ( inX , inY , Element.DataType.UNSIGNED_8 , 1 , 2.0F , 2.0F ) ; }
Source:
private static < E > com.google.common.collect.ImmutableList < E > copyFromCollection ( java.util.Collection < ? extends E > collection ) { return com.google.common.collect.ImmutableList.asImmutableList ( collection.toArray ( ) ) ; }

Target:
static < E > com.google.common.collect.ImmutableList < E > asImmutableList ( java.lang.Object [ ] elements ) { return com.google.common.collect.ImmutableList.asImmutableList ( elements , elements.length ) ; }
Source:
public void testStopPnoScan ( ) throws java.lang.Exception { com.android.server.wifi.WificondControl wificondControl = org.mockito.Mockito.mock ( com.android.server.wifi.WificondControl.class ) ; mWifiNative.setWificondControl ( wificondControl ) ; mWifiNative.stopPnoScan ( ) ; org.mockito.Mockito.verify ( wificondControl ) . stopPnoScan ( ) ; }

Target:
public void testStopPnoScan ( ) throws java.lang.Exception { mWifiNative.stopPnoScan ( ) ; org.mockito.Mockito.verify ( mWificondControl ) . stopPnoScan ( ) ; }
Source:
public java.util.List < com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation > getAnnotations ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.JavaParser.ResolvedPackage pkg ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findPackage ( pkg ) ; if ( c == null ) { return null ; } return c.annotations ; }

Target:
public java.util.Collection < com.intellij.psi.PsiAnnotation > getAnnotations ( @ com.android.annotations.NonNull org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding cls ) { com.android.tools.lint.ExternalAnnotationRepository.ClassInfo c = findClass ( cls ) ; if ( c == null ) { return null ; } return c.psiAnnotations ; }
Source:
native long rsnScriptKernelIDCreate ( long con , long sid , int slot , int sig ) ;

Target:
native void rsnIncContextDestroy ( long con ) ;
Source:
private void forcePollAndWaitForIdle ( ) { mServiceContext.sendBroadcast ( new android.content.Intent ( com.android.server.net.NetworkStatsService.ACTION_NETWORK_STATS_POLL ) ) ; mHandler.sendMessage ( mHandler.obtainMessage ( ( - 1 ) ) ) ; mHandlerThread.waitForIdle ( com.android.server.net.NetworkStatsServiceTest.WAIT_TIMEOUT ) ; }

Target:
private void forcePollAndWaitForIdle ( ) { mServiceContext.sendBroadcast ( new android.content.Intent ( com.android.server.net.NetworkStatsService.ACTION_NETWORK_STATS_POLL ) ) ; mHandler.sendMessage ( mHandler.obtainMessage ( ( - 1 ) ) ) ; com.android.internal.util.TestUtils.waitForIdleHandler ( mHandler , com.android.server.net.NetworkStatsServiceTest.WAIT_TIMEOUT ) ; }
Source:
public void setQueryString ( java.lang.String queryString ) { formattedQueryString = android.telephony.PhoneNumberUtils.formatNumber ( android.telephony.PhoneNumberUtils.normalizeNumber ( queryString ) , countryIso ) ; super . setQueryString ( queryString ) ; }

Target:
public void setQueryString ( java.lang.String queryString ) { formattedQueryString = com.android.dialer.phonenumberutil.PhoneNumberHelper.formatNumber ( getContext ( ) , android.telephony.PhoneNumberUtils.normalizeNumber ( queryString ) , countryIso ) ; super . setQueryString ( queryString ) ; }
Source:
public void onConferenceParticipantsChanged ( java.util.List < android.telecom.ConferenceParticipant > participants ) { updateConferenceParticipants ( participants ) ; }

Target:
public void onRttModifyResponseReceived ( int status ) { if ( status == ( RttModifyStatus.SESSION_MODIFY_REQUEST_SUCCESS ) ) { sendRttInitiationSuccess ( ) ; } else { sendRttInitiationFailure ( status ) ; } }
Source:
public void sendSingleScanBandRequest ( ) throws java.lang.Exception { android.net.wifi.WifiScanner.ScanSettings requestSettings = createRequest ( WifiScanner.WIFI_BAND_BOTH , 0 , 0 , 20 , WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN ) ; doSuccessfulSingleScan ( requestSettings , computeSingleScanNativeSettings ( requestSettings ) , com.android.server.wifi.ScanResults.create ( 0 , 2400 , 5150 , 5175 ) ) ; }

Target:
public void sendSingleScanBandRequest ( ) throws java.lang.Exception { android.net.wifi.WifiScanner.ScanSettings requestSettings = createRequest ( WifiScanner.WIFI_BAND_BOTH_WITH_DFS , 0 , 0 , 20 , WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN ) ; doSuccessfulSingleScan ( requestSettings , computeSingleScanNativeSettings ( requestSettings ) , com.android.server.wifi.ScanResults.create ( 0 , true , 2400 , 5150 , 5175 ) ) ; }
Source:
public com.android.internal.telephony.gsm.UsimServiceTable getUsimServiceTable ( ) { com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; return r != null ? r.getUsimServiceTable ( ) : null ; }

Target:
public void setVoiceMessageWaiting ( int line , int countWaiting ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; if ( r != null ) { r.setVoiceMessageWaiting ( line , countWaiting ) ; } }
Source:
private com.android.dialer.multimedia.MultimediaData getSessionData ( ) { if ( ( primaryInfo ) == null ) { return null ; } if ( isVideoUpgradeRequest ( ) ) { return null ; } return primaryInfo.multimediaData ; }

Target:
private com.android.dialer.multimedia.MultimediaData getSessionData ( ) { if ( ( primaryInfo ) == null ) { return null ; } if ( isVideoUpgradeRequest ( ) ) { return null ; } return primaryInfo.multimediaData ( ) ; }
Source:
public boolean contains ( com.android.ide.eclipse.adt.editors.layout.gscripts.Point p ) { return ( p != null ) && ( contains ( p.x , p.y ) ) ; }

Target:
public boolean contains ( com.android.ide.common.api.Point p ) { return ( p != null ) && ( contains ( p.x , p.y ) ) ; }
Source:
public void testOk ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( "res/values/typos.xml=>res/values-de/strings.xml" ) ) ; }

Target:
public void testGerman ( ) throws java.lang.Exception { assertEquals ( ( "typos.xml:10: Warning: \"zurck gefoobaren\" is a common misspelling; did you mean \"zurckgefoobaren\" ?\n" + ( "typos.xml:6: Warning: \"befindet eine\" is a common misspelling; did you mean \"befindet sich eine\" ?\n" + "typos.xml:9: Warning: \"Authorisierungscode\" is a common misspelling; did you mean \"Autorisierungscode\" ?" ) ) , lintProject ( "res/values-de/typos.xml" ) ) ; }
Source:
public void setCurrentResource ( java.lang.String resource ) { mCurrentResource = resource ; if ( ( mShowValueText ) && ( ( mEditValueText ) != null ) ) { mEditValueText.setText ( resource ) ; } }

Target:
public com.android.ide.eclipse.adt.internal.ui.ResourceChooser setCurrentResource ( @ com.android.annotations.Nullable java.lang.String resource ) { mCurrentResource = resource ; if ( ( mShowValueText ) && ( ( mEditValueText ) != null ) ) { mEditValueText.setText ( resource ) ; } return this ; }
Source:
public static boolean getBoolean ( android.security.keymaster.KeyCharacteristics keyCharacteristics , int tag ) { if ( keyCharacteristics.hwEnforced.containsTag ( tag ) ) { return keyCharacteristics.hwEnforced.getBoolean ( tag , false ) ; } else { return keyCharacteristics.swEnforced.getBoolean ( tag , false ) ; } }

Target:
public static boolean isKeymasterBlockModeIndCpaCompatible ( int keymasterBlockMode ) { switch ( keymasterBlockMode ) { case android.security.keymaster.KeymasterDefs.KM_MODE_ECB : return false ; case android.security.keymaster.KeymasterDefs.KM_MODE_CBC : case android.security.keymaster.KeymasterDefs.KM_MODE_CTR : case android.security.keymaster.KeymasterDefs.KM_MODE_GCM : return true ; default : throw new java.lang.IllegalArgumentException ( ( "Unsupported block mode: " + keymasterBlockMode ) ) ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mContext = getContext ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mContext = getContext ( ) ; mContext.setTheme ( R.style.Test_Theme ) ; }
Source:
public int following ( int offset ) { validateOffset ( offset ) ; return wrapped.following ( offset ) ; }

Target:
public int following ( int offset ) { checkOffset ( offset ) ; return wrapped.following ( offset ) ; }
Source:
public com.android.assetstudiolib.vectordrawable.VdTree parse ( java.net.URL r ) throws java.lang.Exception { return parse ( r.openStream ( ) ) ; }

Target:
public com.android.assetstudiolib.vectordrawable.VdTree parse ( java.net.URL r , java.lang.StringBuilder vdErrorLog ) throws java.lang.Exception { return parse ( r.openStream ( ) , vdErrorLog ) ; }
Source:
protected void engineUpdate ( byte [ ] input , int offset , int len ) { org.conscrypt.NativeCrypto.EVP_DigestUpdate ( getCtx ( ) , input , offset , len ) ; }

Target:
protected void engineUpdate ( byte [ ] input , int offset , int len ) { org.conscrypt.NativeCrypto.EVP_DigestUpdate ( ctx , input , offset , len ) ; }
Source:
protected abstract java.util.List < org.eclipse.ltk.core.refactoring.Change > computeChanges ( ) ;

Target:
protected abstract java.util.List < org.eclipse.ltk.core.refactoring.Change > computeChanges ( org.eclipse.core.runtime.IProgressMonitor monitor ) ;
Source:
protected abstract boolean isModified ( java.io.File toFile ) throws java.io.IOException ;

Target:
protected boolean isModified ( java.io.File toFile ) throws java.io.IOException { return ( myChecksum ) != ( myPatch.digestFile ( toFile ) ) ; }
Source:
public void done ( ) { synchronized ( mLock ) { if ( mDone ) { return ; } mDone = true ; mDigest = mMessageDigest.digest ( ) ; } }

Target:
public void done ( ) { synchronized ( mLock ) { if ( mDone ) { return ; } mDone = true ; mDigest = getMessageDigest ( ) . digest ( ) ; mMessageDigest = null ; mDataSink = null ; } }
Source:
public void handleMessage ( android.os.Message msg ) { if ( ( msg.what ) != ( com.android.server.EntropyMixer.ENTROPY_WHAT ) ) { android.util.Slog.e ( com.android.server.EntropyMixer.TAG , "Will not process invalid message" ) ; return ; } writeEntropy ( ) ; scheduleEntropyWriter ( ) ; }

Target:
public void handleMessage ( android.os.Message msg ) { if ( ( msg.what ) != ( com.android.server.EntropyMixer.ENTROPY_WHAT ) ) { android.util.Slog.e ( com.android.server.EntropyMixer.TAG , "Will not process invalid message" ) ; return ; } addHwRandomEntropy ( ) ; writeEntropy ( ) ; scheduleEntropyWriter ( ) ; }
Source:
public static void wtf ( java.lang.String prefix , java.lang.String format , java.lang.Object ... args ) { java.lang.String msg = com.android.services.telephony.Log.buildMessage ( prefix , format , args ) ; android.util.Log.wtf ( com.android.services.telephony.Log.TAG , msg , new java.lang.IllegalStateException ( msg ) ) ; }

Target:
public static void v ( java.lang.String prefix , java.lang.String format , java.lang.Object ... args ) { android.telecom.Log.v ( prefix , format , args ) ; }
Source:
private void log ( java.lang.String msg ) { android.util.Log.d ( com.android.internal.telephony.cdma.CdmaConnection.LOG_TAG , ( "[CDMAConn] " + msg ) ) ; }

Target:
private void log ( java.lang.String msg ) { android.telephony.Rlog.d ( com.android.internal.telephony.cdma.CdmaConnection.LOG_TAG , ( "[CDMAConn] " + msg ) ) ; }
Source:
public static void addAllowAnyOrigin ( org.jetbrains.io.HttpResponse response ) { response.headers ( ) . add ( org.jetbrains.io.ACCESS_CONTROL_ALLOW_ORIGIN , "*" ) ; }

Target:
public static void addAllowAnyOrigin ( org.jetbrains.io.HttpResponse response ) { response.headers ( ) . add ( HttpHeaders.Names.ACCESS_CONTROL_ALLOW_ORIGIN , "*" ) ; }
Source:
public boolean matches ( java.lang.Object argument ) { android.os.Message message = ( ( android.os.Message ) ( argument ) ) ; return ( message.what ) == what ; }

Target:
public boolean matchesObject ( java.lang.Object argument ) { android.os.Message message = ( ( android.os.Message ) ( argument ) ) ; return ( message.what ) == what ; }
Source:
private boolean tryAddSingleRange ( int startId , int endId , boolean selected ) { startUpdate ( ) ; addRange ( startId , endId , selected ) ; return finishUpdate ( ) ; }

Target:
protected boolean tryAddRanges ( int startId , int endId , boolean selected ) { startUpdate ( ) ; populateAllRanges ( ) ; addRange ( startId , endId , selected ) ; return finishUpdate ( ) ; }
Source:
public void testSpecificDefaultValue ( ) { assertEquals ( 1.0 , org.apache.harmony.tests.java.nio.charset.ASCIICharsetEncoderTest.encoder.averageBytesPerChar ( ) , 0.0 ) ; assertEquals ( 1.0 , org.apache.harmony.tests.java.nio.charset.ASCIICharsetEncoderTest.encoder.maxBytesPerChar ( ) , 0.0 ) ; }

Target:
public void testSpecificDefaultValue ( ) { assertEquals ( 1.0 , encoder.averageBytesPerChar ( ) , 0.0 ) ; assertEquals ( 1.0 , encoder.maxBytesPerChar ( ) , 0.0 ) ; }
Source:
public com.android.layoutlib.api.SceneResult moveChild ( java.lang.Object parentView , com.android.layoutlib.api.IXmlPullParser layoutParamsXml , int index ) { return SceneStatus.NOT_IMPLEMENTED.getResult ( ) ; }

Target:
public com.android.layoutlib.api.SceneResult moveChild ( java.lang.Object parentView , java.lang.Object childView , java.lang.Object beforeSibling , com.android.layoutlib.api.LayoutScene.IAnimationListener listener ) { return SceneStatus.NOT_IMPLEMENTED.getResult ( ) ; }
Source:
static void clearAllCallNotifications ( android.content.Context context ) { com.android.dialer.common.LogUtil.e ( "StatusBarNotifier.clearAllCallNotifications" , "something terrible happened, clear all InCall notifications" ) ; com.android.dialer.notification.DialerNotificationManager.cancel ( context , com.android.incallui.StatusBarNotifier.NOTIFICATION_TAG , com.android.incallui.StatusBarNotifier.NOTIFICATION_ID ) ; }

Target:
static void clearAllCallNotifications ( ) { com.android.dialer.common.LogUtil.e ( "StatusBarNotifier.clearAllCallNotifications" , "something terrible happened, clear all InCall notifications" ) ; com.android.incallui.call.TelecomAdapter.getInstance ( ) . stopForegroundNotification ( ) ; }
Source:
public void sendCDMAFeatureCode ( java.lang.String FeatureCode , android.os.Message response ) { android.util.Log.w ( com.android.internal.telephony.test.SimulatedCommands.LOG_TAG , "CDMA not implemented in SimulatedCommands" ) ; unimplemented ( response ) ; }

Target:
public void sendCDMAFeatureCode ( java.lang.String FeatureCode , android.os.Message response ) { android.telephony.Rlog.w ( com.android.internal.telephony.test.SimulatedCommands.LOG_TAG , "CDMA not implemented in SimulatedCommands" ) ; unimplemented ( response ) ; }
Source:
public static com.google.common.io.InputSupplier < java.io.Reader > join ( com.google.common.io.InputSupplier < ? extends java.io.Reader > ... suppliers ) { return com.google.common.io.CharStreams.join ( java.util.Arrays.asList ( suppliers ) ) ; }

Target:
public void close ( ) throws java.io.IOException { if ( readable instanceof java.io.Closeable ) { ( ( java.io.Closeable ) ( readable ) ) . close ( ) ; } }
Source:
com.google.common.hash.Hasher putString ( java.lang.CharSequence charSequence ) ;

Target:
com.google.common.hash.Hasher putUnencodedChars ( java.lang.CharSequence charSequence ) ;
Source:
private java.lang.String dp ( int dp ) { return ( java.lang.Integer.toString ( dp ) ) + "px" ; }

Target:
private java.lang.String sp ( int sp ) { float dp = sp * ( mDpPerSp ) ; dp *= 1.3 ; return ( java.lang.Integer.toString ( ( ( int ) ( dp ) ) ) ) + "px" ; }
Source:
public android.net.IpSecTransform.Builder setAuthentication ( @ android.net.IpSecTransform.TransformDirection int direction , android.net.IpSecAlgorithm algo ) { mConfig.setAuthentication ( direction , algo ) ; return this ; }

Target:
public android.net.IpSecTransform.Builder setAuthentication ( @ android.annotation.NonNull android.net.IpSecAlgorithm algo ) { com.android.internal.util.Preconditions.checkNotNull ( algo ) ; mConfig.setAuthentication ( algo ) ; return this ; }
Source:
private void transformArray ( com.android.dx.io.EncodedValueReader reader ) { int size = reader.readArray ( ) ; com.android.dx.util.Leb128Utils.writeUnsignedLeb128 ( out , size ) ; for ( int i = 0 ; i < size ; i ++ ) { transform ( reader ) ; } }

Target:
private void transformArray ( com.android.dex.EncodedValueReader reader ) { int size = reader.readArray ( ) ; com.android.dex.Leb128.writeUnsignedLeb128 ( out , size ) ; for ( int i = 0 ; i < size ; i ++ ) { transform ( reader ) ; } }
Source:
public void testVFE8 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.aget_boolean.d.T_aget_boolean_8" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.aget_boolean.d.T_aget_boolean_1" , java.lang.ArrayIndexOutOfBoundsException.class , new boolean [ 2 ] , 2 ) ; }
Source:
public boolean isSystemVersionOlderThan ( android.app.timezone.DistroRulesVersion distroRulesVersion ) { return ( mSystemRulesVersion.compareTo ( distroRulesVersion.getRulesVersion ( ) ) ) < 0 ; }

Target:
public boolean isSystemVersionNewerThan ( android.app.timezone.DistroRulesVersion distroRulesVersion ) { return ( mSystemRulesVersion.compareTo ( distroRulesVersion.getRulesVersion ( ) ) ) > 0 ; }