auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean containsValue ( @ javax.annotation.Nullable java.lang.Object value ) { return ( value != null ) && ( com.google.common.collect.Maps.containsValueImpl ( this , value ) ) ; }

Target:
public boolean containsValue ( @ javax.annotation.Nullable java.lang.Object value ) { return values ( ) . contains ( value ) ; }
Source:
public void acknowledgeSmsReport ( int token , int messageRef , @ android.telephony.ims.internal.SmsImplBase.StatusReportResult int result ) { }

Target:
public void acknowledgeSmsReport ( int token , int messageRef , @ android.telephony.ims.internal.SmsImplBase.StatusReportResult int result ) { android.util.Log.e ( android.telephony.ims.internal.SmsImplBase.LOG_TAG , "acknowledgeSmsReport() not implemented." ) ; }
Source:
public void onServiceConnected ( android.content.ComponentName name , android.os.IBinder service ) { mWapPushMan = IWapPushManager.Stub.asInterface ( service ) ; if ( false ) android.util.Log.v ( com.android.internal.telephony.WapPushOverSms.LOG_TAG , ( "wappush manager connected to " + ( mOwner.hashCode ( ) ) ) ) ; }

Target:
public void onServiceConnected ( android.content.ComponentName name , android.os.IBinder service ) { mWapPushMan = IWapPushManager.Stub.asInterface ( service ) ; if ( false ) android.telephony.Rlog.v ( com.android.internal.telephony.WapPushOverSms.LOG_TAG , ( "wappush manager connected to " + ( mOwner.hashCode ( ) ) ) ) ; }
Source:
public java.lang.String getSigAlgName ( ) { java.lang.String oid = getSigAlgOID ( ) ; java.lang.String algName = org.apache.harmony.security.utils.AlgNameMapper.map2AlgName ( oid ) ; if ( algName != null ) { return algName ; } return oid ; }

Target:
public java.lang.String getSigAlgName ( ) { java.lang.String oid = getSigAlgOID ( ) ; java.lang.String algName = org.conscrypt.Platform.oidToAlgorithmName ( oid ) ; if ( algName != null ) { return algName ; } return oid ; }
Source:
protected void setUp ( ) throws java.lang.Exception { mLog = new com.android.sdklib.StdSdkLog ( ) ; super . setUp ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { mLog = new com.android.utils.StdLogger ( StdLogger.Level.VERBOSE ) ; super . setUp ( ) ; }
Source:
public void setCustomBackgroundColor ( int color ) { mCustomBackgroundEnabled = true ; mCustomBackgroundColor = color ; }

Target:
public void setOverrideBgColor ( int color ) { mCustomBackgroundEnabled = true ; mCustomBackgroundColor = color ; }
Source:
public static void throwExceptionDuringDeopt ( int i ) { if ( i == 0 ) { DeoptimizationController.startDeoptomization ( ) ; throw new java.lang.RuntimeException ( "Test exception" ) ; } else { DeoptimizationController.stopDeoptomization ( ) ; } }

Target:
public static void throwExceptionDuringDeopt ( int i ) { if ( i == 0 ) { DeoptimizationController.startDeoptimization ( ) ; throw new java.lang.RuntimeException ( "Test exception" ) ; } else { DeoptimizationController.stopDeoptimization ( ) ; } }
Source:
public static double abs ( double a ) { return a <= 0.0 ? 0.0 - a : a ; }

Target:
public static double abs ( double a ) { return java.lang.Double.longBitsToDouble ( ( 9223372036854775807L & ( java.lang.Double.doubleToRawLongBits ( a ) ) ) ) ; }
Source:
public void executeShellCommand ( java.lang.String command , com.android.ddmlib.IShellOutputReceiver receiver ) throws java.io.IOException { com.android.ddmlib.AdbHelper.executeRemoteCommand ( AndroidDebugBridge.sSocketAddr , command , this , receiver ) ; }

Target:
public void executeShellCommand ( java.lang.String command , com.android.ddmlib.IShellOutputReceiver receiver ) throws java.io.IOException { com.android.ddmlib.AdbHelper.executeRemoteCommand ( com.android.ddmlib.AndroidDebugBridge.getSocketAddress ( ) , command , this , receiver ) ; }
Source:
public void applyTransportModeTransform ( java.net.DatagramSocket socket , android.net.IpSecTransform transform ) throws java.io.IOException { applyTransportModeTransform ( android.os.ParcelFileDescriptor.fromDatagramSocket ( socket ) , transform ) ; }

Target:
public void applyTransportModeTransform ( java.net.Socket socket , android.net.IpSecTransform transform ) throws java.io.IOException { try ( android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.fromSocket ( socket ) ) { applyTransportModeTransform ( pfd , transform ) ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { com.android.bluetooth.btservice.AdapterService inst = mock ( com.android.bluetooth.btservice.AdapterService.class ) ; assertTrue ( ( inst != null ) ) ; mAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mTargetContext = android.support.test.InstrumentationRegistry.getTargetContext ( ) ; com.android.bluetooth.btservice.AdapterService inst = mock ( com.android.bluetooth.btservice.AdapterService.class ) ; org.junit.Assert.assertTrue ( ( inst != null ) ) ; mAdapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; }
Source:
public void onConfigurationChanged ( android.content.res.Configuration newConfig ) { super . onConfigurationChanged ( newConfig ) ; dumpFontSize ( ) ; }

Target:
public void onConfigurationChanged ( android.content.res.Configuration newConfig ) { super . onConfigurationChanged ( newConfig ) ; dumpActivityDpi ( ) ; dumpFontSize ( ) ; }
Source:
private boolean isTestActivity ( int position ) { java.util.Map < java.lang.String , ? > item = getItem ( position ) ; return ( item.get ( com.android.cts.verifier.TestListActivity.TestListAdapter.INTENT ) ) != null ; }

Target:
private void handleClearItemSelected ( ) { android.content.ContentResolver resolver = getContentResolver ( ) ; resolver.delete ( TestResultsProvider.CONTENT_URI , "1" , null ) ; android.widget.Toast.makeText ( this , R.string.test_results_cleared , Toast.LENGTH_SHORT ) . show ( ) ; }
Source:
public void onStop ( ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "onStop" ) ; }

Target:
public void onStop ( ) { android.util.Log.d ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.TAG , "onStop" ) ; mAvrcpCommandQueue.obtainMessage ( com.android.bluetooth.a2dpsink.mbs.A2dpMediaBrowserService.MSG_AVRCP_PASSTHRU , AvrcpControllerService.PASS_THRU_CMD_ID_STOP ) . sendToTarget ( ) ; }
Source:
public boolean install ( com.android.sdklib.internal.repository.ArchiveReplacement archiveInfo , java.lang.String osSdkRoot , boolean forceHttp , com.android.sdklib.SdkManager sdkManager , com.android.sdklib.internal.repository.ITaskMonitor monitor ) { mInstalled.add ( archiveInfo ) ; return true ; }

Target:
public boolean install ( com.android.sdklib.internal.repository.ArchiveReplacement archiveInfo , java.lang.String osSdkRoot , boolean forceHttp , com.android.sdklib.SdkManager sdkManager , com.android.sdklib.internal.repository.DownloadCache cache , com.android.sdklib.internal.repository.ITaskMonitor monitor ) { mInstalled.add ( archiveInfo ) ; return true ; }
Source:
void setDisconnectCause ( com.android.internal.telephony.sip.DisconnectCause cause ) { mCause = cause ; }

Target:
void setDisconnectCause ( com.android.internal.telephony.sip.DisconnectCause cause ) { if ( com.android.internal.telephony.sip.SipConnectionBase.DBG ) log ( ( ( ( "setDisconnectCause: prev=" + ( mCause ) ) + " new=" ) + cause ) ) ; mCause = cause ; }
Source:
protected void stdout ( java.lang.String format , java.lang.Object ... args ) { mLog.printf ( ( format + '\n' ) , args ) ; }

Target:
protected void stdout ( java.lang.String format , java.lang.Object ... args ) { java.lang.String output = java.lang.String.format ( format , args ) ; output = reflowLine ( output ) ; mLog.printf ( "%s\n" , output ) ; }
Source:
private static javax.crypto.SecretKey getSecretKey ( ) { if ( ( libcore.java.security.KeyStoreTest.SECRET_KEY ) == null ) { libcore.java.security.KeyStoreTest.SECRET_KEY = libcore.java.security.KeyStoreTest.generateSecretKey ( ) ; } return libcore.java.security.KeyStoreTest.SECRET_KEY ; }

Target:
private static javax.crypto.SecretKey getSecretKey2 ( ) { if ( ( libcore.java.security.KeyStoreTest.sSecretKey2 ) == null ) { libcore.java.security.KeyStoreTest.sSecretKey2 = libcore.java.security.KeyStoreTest.generateSecretKey ( ) ; } return libcore.java.security.KeyStoreTest.sSecretKey2 ; }
Source:
public void stop ( ) { if ( com.google.gct.login.GoogleLoginPrefs.getLogoutOnExitPref ( ) ) { logOut ( false ) ; } }

Target:
private void logOutAllUsers ( ) { for ( com.google.gct.login.CredentialedUser aUser : users.getAllUsers ( ) . values ( ) ) { aUser.getGoogleLoginState ( ) . logOut ( false ) ; } users.removeAllUsers ( ) ; }
Source:
void setupTests ( ) { mTestSpinner.setAdapter ( new android.widget.ArrayAdapter < com.android.rs.imagejb.ImageProcessingActivityJB.TestName > ( this , R.layout.spinner_layout , com.android.rs.imagejb.ImageProcessingActivityJB.TestName.values ( ) ) ) ; }

Target:
void setupTests ( ) { mTestSpinner.setAdapter ( new android.widget.ArrayAdapter < com.android.rs.imagejb.IPTestListJB.TestName > ( this , R.layout.spinner_layout , IPTestListJB.TestName.values ( ) ) ) ; }
Source:
public static < T > org.hamcrest.Matcher < java.lang.Iterable < ? super T > > hasItem ( org.hamcrest.Matcher < ? super T > elementMatcher ) { return org.hamcrest.CoreMatchers.< T > hasItem ( elementMatcher ) ; }

Target:
public static < T > org.hamcrest.Matcher < java.lang.Iterable < T > > hasItem ( org.hamcrest.Matcher < ? extends T > elementMatcher ) { return org.junit.internal.matchers.IsCollectionContaining.hasItem ( elementMatcher ) ; }
Source:
public void testSubscribeConfigBuilderBadMatchStyle ( ) { new android.net.wifi.nan.SubscribeConfig.Builder ( ) . setMatchStyle ( 10 ) ; }

Target:
public void testSubscribeConfigBuilderBadMatchStyle ( ) { new android.net.wifi.aware.SubscribeConfig.Builder ( ) . setMatchStyle ( 10 ) ; }
Source:
protected void finalize ( ) { android.util.Log.d ( com.android.internal.telephony.cdma.CdmaCallTracker.LOG_TAG , "CdmaCallTracker finalized" ) ; }

Target:
protected void finalize ( ) { android.telephony.Rlog.d ( com.android.internal.telephony.cdma.CdmaCallTracker.LOG_TAG , "CdmaCallTracker finalized" ) ; }
Source:
protected void engineUpdate ( byte arg0 ) throws java.security.SignatureException { spiImpl.engineUpdate ( arg0 ) ; }

Target:
protected void engineUpdate ( byte arg0 ) throws java.security.SignatureException { getSpi ( ) . engineUpdate ( arg0 ) ; }
Source:
public static android.app.DialogFragment newInstance ( com.android.dialer.blocking.BlockedNumbersMigrator blockedNumbersMigrator , com.android.dialer.blocking.BlockedNumbersMigrator.Listener migrationListener ) { com.android.dialer.blocking.MigrateBlockedNumbersDialogFragment fragment = new com.android.dialer.blocking.MigrateBlockedNumbersDialogFragment ( ) ; fragment.mBlockedNumbersMigrator = java.util.Objects.requireNonNull ( blockedNumbersMigrator ) ; fragment.mMigrationListener = java.util.Objects.requireNonNull ( migrationListener ) ; return fragment ; }

Target:
public static android.app.DialogFragment newInstance ( com.android.dialer.blocking.BlockedNumbersMigrator blockedNumbersMigrator , com.android.dialer.blocking.BlockedNumbersMigrator.Listener migrationListener ) { com.android.dialer.blocking.MigrateBlockedNumbersDialogFragment fragment = new com.android.dialer.blocking.MigrateBlockedNumbersDialogFragment ( ) ; fragment.blockedNumbersMigrator = java.util.Objects.requireNonNull ( blockedNumbersMigrator ) ; fragment.migrationListener = java.util.Objects.requireNonNull ( migrationListener ) ; return fragment ; }
Source:
public boolean keystorePassword ( java.lang.String password ) { android.util.Log.d ( com.android.keychain.tests.support.KeyChainServiceTestSupport.TAG , "keystorePassword" ) ; return mKeyStore.password ( password ) ; }

Target:
public boolean keystoreSetPassword ( java.lang.String password ) { android.util.Log.d ( com.android.keychain.tests.support.KeyChainServiceTestSupport.TAG , "keystoreSetPassword" ) ; return mKeyStore.onUserPasswordChanged ( password ) ; }
Source:
public void testRSAllocationSetElementAt ( ) { assertTrue ( testSetElementAt ( ) ) ; }

Target:
public void testRSAllocationCopy ( ) { assertTrue ( test1DCopy ( this . getContext ( ) . getCacheDir ( ) . toString ( ) ) ) ; }
Source:
private static java.lang.String getAbiDisplayNameInternal ( java.lang.String abi ) { return abi.replace ( "armeabi" , "ARM EABI" ) . replace ( "x86" , "Intel x86 Atom" ) . replace ( "mips" , "Mips" ) . replace ( "-" , " " ) ; }

Target:
private static java.lang.String getAbiDisplayNameInternal ( java.lang.String abi ) { return abi.replace ( "armeabi" , "ARM EABI" ) . replace ( "x86" , "Intel x86 Atom" ) . replace ( "mips" , "MIPS" ) . replace ( "-" , " " ) ; }
Source:
public void actionPerformed ( com.intellij.openapi.actionSystem.AnActionEvent e ) { com.google.gct.testing.CloudTestConfigurationImpl newConfiguration = ( ( selectedConfiguration ) != null ) ? selectedConfiguration.copy ( "Copy of " ) : new com.google.gct.testing.CloudTestConfigurationImpl ( facet ) ; addNewConfiguration ( newConfiguration ) ; }

Target:
public boolean isEnabled ( com.intellij.openapi.actionSystem.AnActionEvent e ) { return ( ( selectedConfiguration ) != null ) && ( selectedConfiguration.isEditable ( ) ) ; }
Source:
public com.google.common.base.Objects.ToStringHelper addValue ( double value ) { addHolder ( ) . builder.append ( value ) ; return this ; }

Target:
public com.google.common.base.Objects.ToStringHelper addValue ( double value ) { return addHolder ( java.lang.String.valueOf ( value ) ) ; }
Source:
public native java.lang.Object getDefaultValue ( ) ;

Target:
public java.lang.Object getDefaultValue ( ) { return libcore.reflect.AnnotationAccess.getDefaultValue ( this ) ; }
Source:
private boolean checkDistroDataFilesExist ( java.io.File unpackedContentDir ) throws java.io.IOException { android.util.Slog.i ( logTag , "Verifying distro contents" ) ; return libcore.tzdata.shared2.FileUtils.filesExist ( unpackedContentDir , TimeZoneDistro.TZDATA_FILE_NAME , TimeZoneDistro.ICU_DATA_FILE_NAME ) ; }

Target:
private boolean checkDistroDataFilesExist ( java.io.File unpackedContentDir ) throws java.io.IOException { android.util.Slog.i ( logTag , "Verifying distro contents" ) ; return com.android.timezone.distro.FileUtils.filesExist ( unpackedContentDir , TimeZoneDistro.TZDATA_FILE_NAME , TimeZoneDistro.ICU_DATA_FILE_NAME ) ; }
Source:
public com.android.layoutlib.api.SceneResult animate ( java.lang.Object targetObject , java.lang.String animationName , boolean isFrameworkAnimation , com.android.layoutlib.api.LayoutScene.IAnimationListener listener ) { return SceneStatus.NOT_IMPLEMENTED.createResult ( ) ; }

Target:
public com.android.ide.common.rendering.api.Result animate ( java.lang.Object targetObject , java.lang.String animationName , boolean isFrameworkAnimation , com.android.ide.common.rendering.api.IAnimationListener listener ) { return Status.NOT_IMPLEMENTED.createResult ( ) ; }
Source:
public int accept ( java.lang.reflect.Method method ) { return method.isBridge ( ) ? 1 : 0 ; }

Target:
public int accept ( java.lang.reflect.Method method , java.util.List < java.lang.reflect.Method > allMethods ) { return method.isBridge ( ) ? 1 : 0 ; }
Source:
public void requestIsimAuthentication ( java.lang.String nonce , android.os.Message result ) { android.util.Log.e ( com.android.internal.telephony.PhoneBase.LOG_TAG , "requestIsimAuthentication() is only supported on LTE devices" ) ; }

Target:
public void requestIsimAuthentication ( java.lang.String nonce , android.os.Message result ) { android.telephony.Rlog.e ( com.android.internal.telephony.PhoneBase.LOG_TAG , "requestIsimAuthentication() is only supported on LTE devices" ) ; }
Source:
public static com.google.common.primitives.UnsignedLong asUnsigned ( long value ) { return new com.google.common.primitives.UnsignedLong ( value ) ; }

Target:
public static com.google.common.primitives.UnsignedLong valueOf ( long value ) { com.google.common.base.Preconditions.checkArgument ( ( value >= 0 ) , "value (%s) is outside the range for an unsigned long value" , value ) ; return com.google.common.primitives.UnsignedLong.fromLongBits ( value ) ; }
Source:
public static void computeAtanpi ( android.renderscript.cts.TestAtanpi.ArgumentsFloatFloat args ) { args.ulf = 5 ; args.ulfRelaxed = 128 ; args.out = ( ( float ) ( ( java.lang.StrictMath.atan ( args.in ) ) / ( java.lang.StrictMath.PI ) ) ) ; }

Target:
public static void computeConvert ( android.renderscript.cts.TestConvert.ArgumentsFloatUshort args ) { args.out = android.renderscript.cts.CoreMathVerifier.convertFloatToUshort ( args.inV ) ; }
Source:
public boolean accept ( java.io.File dir , java.lang.String name ) { return ( ! ( name.endsWith ( "~" ) ) ) && ( ! ( name.startsWith ( "." ) ) ) ; }

Target:
public static java.util.Collection < java.io.File > defaultExpectations ( ) { return java.util.Collections.singletonList ( new java.io.File ( "libcore/expectations/knownfailures.txt" ) ) ; }
Source:
public void stopDtmfTone ( com.android.server.telecom.Call call ) { if ( ! ( mCalls.contains ( call ) ) ) { com.android.server.telecom.Log.i ( this , "Request to stop DTMF in a non-existent call %s" , call ) ; } else { call.stopDtmfTone ( ) ; mDtmfLocalTonePlayer.stopTone ( call ) ; } }

Target:
public void stopDtmfTone ( com.android.server.telecom.Call call ) { if ( ! ( mCalls.contains ( call ) ) ) { android.telecom.Log.i ( this , "Request to stop DTMF in a non-existent call %s" , call ) ; } else { call.stopDtmfTone ( ) ; mDtmfLocalTonePlayer.stopTone ( call ) ; } }
Source:
private static NativeRef.EVP_PKEY_CTX getPkeyCtxForEncrypt ( ) throws java.lang.Exception { return new org.conscrypt.NativeRef.EVP_PKEY_CTX ( org.conscrypt.NativeCrypto.EVP_PKEY_encrypt_init ( org.conscrypt.NativeCryptoTest.getRsaPkey ( org.conscrypt.NativeCryptoTest.generateRsaKey ( ) ) ) ) ; }

Target:
private static long getRawPkeyCtxForEncrypt ( ) throws java.lang.Exception { return org.conscrypt.NativeCrypto.EVP_PKEY_encrypt_init ( org.conscrypt.NativeCryptoTest.getRsaPkey ( org.conscrypt.NativeCryptoTest.generateRsaKey ( ) ) ) ; }
Source:
public void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Severity severity , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message , @ com.android.annotations.Nullable java.lang.Object data ) { }

Target:
public void report ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Severity severity , @ com.android.annotations.Nullable com.android.tools.lint.detector.api.Location location , @ com.android.annotations.NonNull java.lang.String message , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.TextFormat format ) { }
Source:
public void onForegroundActivitiesChanged ( int pid , int uid , boolean fg ) { if ( isScreenIdle ( ) ) { android.os.Message message = mServiceHandler.obtainMessage ( ) ; message.arg1 = com.android.stk.StkAppService.OP_IDLE_SCREEN ; mServiceHandler.sendMessage ( message ) ; unregisterProcessObserver ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( Intent.ACTION_USER_PRESENT.equals ( intent.getAction ( ) ) ) { for ( int slot = 0 ; slot < ( mSimCount ) ; slot ++ ) { cancelNotificationOnKeyguard ( slot ) ; } } }
Source:
public android.telephony.ims.feature.RcsFeature onCreateRcsFeature ( int slotId ) { return null ; }

Target:
public android.telephony.ims.stub.ImsConfigImplBase getConfig ( int slotId ) { return new android.telephony.ims.stub.ImsConfigImplBase ( ) ; }
Source:
public android.net.IpSecManager.SecurityParameterIndex allocateSecurityParameterIndex ( int direction , java.net.InetAddress remoteAddress ) throws android.net.IpSecManager.ResourceUnavailableException { try { return new android.net.IpSecManager.SecurityParameterIndex ( mService , direction , remoteAddress , android.net.IpSecManager.INVALID_SECURITY_PARAMETER_INDEX ) ; } catch ( android.net.IpSecManager.SpiUnavailableException unlikely ) { throw new android.net.IpSecManager.ResourceUnavailableException ( "No SPIs available" ) ; } }

Target:
public android.net.IpSecManager.SecurityParameterIndex allocateSecurityParameterIndex ( java.net.InetAddress destinationAddress ) throws android.net.IpSecManager.ResourceUnavailableException { try { return new android.net.IpSecManager.SecurityParameterIndex ( mService , destinationAddress , android.net.IpSecManager.INVALID_SECURITY_PARAMETER_INDEX ) ; } catch ( android.net.IpSecManager.SpiUnavailableException unlikely ) { throw new android.net.IpSecManager.ResourceUnavailableException ( "No SPIs available" ) ; } }
Source:
public void setup ( ) { put ( "Cipher.FOO/FOO/FOO" , MockCipherSpi.AllKeyTypes.class . getName ( ) ) ; put ( "Cipher.FOO/FOO/FOO SupportedKeyClasses" , "none" ) ; }

Target:
public void setup ( ) { put ( "Cipher.FOO" , MockCipherSpi.AllKeyTypes.class . getName ( ) ) ; put ( "Cipher.FOO SupportedKeyClasses" , "none" ) ; }
Source:
void updateConnectivity ( ) { setWimaxStatus ( ) ; setWifiStatus ( ) ; setBtStatus ( ) ; setIpAddressStatus ( ) ; }

Target:
void updateConnectivity ( ) { setWimaxStatus ( ) ; setWifiStatus ( ) ; setBtStatus ( ) ; setIpAddressStatus ( ) ; setImsRegistrationStatus ( ) ; }
Source:
private static boolean validTimeZoneId ( java.lang.String timeZoneId ) { com.ibm.icu.util.TimeZone zone = com.ibm.icu.util.TimeZone.getTimeZone ( timeZoneId ) ; return ! ( zone.getID ( ) . equals ( TimeZone.UNKNOWN_ZONE_ID ) ) ; }

Target:
private static boolean invalidTimeZoneId ( java.lang.String timeZoneId ) { com.ibm.icu.util.TimeZone zone = com.ibm.icu.util.TimeZone.getTimeZone ( timeZoneId ) ; return ( ! ( zone instanceof com.ibm.icu.util.BasicTimeZone ) ) || ( zone.getID ( ) . equals ( TimeZone.UNKNOWN_ZONE_ID ) ) ; }
Source:
public void testComplexPermission3 ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "src/test/pkg/PermissionTest.java:7: Error: Missing permissions required by LocationManager.myMethod: com.android.voicemail.permission.ADD_VOICEMAIL xor android.permission.AUTHENTICATE_ACCOUNTS [MissingPermission]\n" + " LocationManager.Location location = locationManager.myMethod(provider);\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( getManifestWithPermissions ( 14 , "android.permission.ACCESS_FINE_LOCATION" , "com.android.voicemail.permission.ADD_VOICEMAIL" , "android.permission.AUTHENTICATE_ACCOUNTS" ) , mPermissionTest , mComplexLocationManagerStub , mRequirePermissionAnnotation ) ) ; }

Target:
public void testComplexPermission2 ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( getManifestWithPermissions ( 14 , "android.permission.ACCESS_FINE_LOCATION" , "android.permission.BLUETOOTH" ) , mPermissionTest , mComplexLocationManagerStub , mRequirePermissionAnnotation ) ) ; }
Source:
public void addFailure ( java.lang.String message , java.lang.String stackTrace ) { classResults.failed ( this ) ; failures.add ( new org.gradle.api.internal.tasks.testing.junit.report.TestFailure ( message , stackTrace ) ) ; }

Target:
public void addFailure ( java.lang.String message , java.lang.String stackTrace , java.lang.String deviceName , java.lang.String projectName , java.lang.String flavorName ) { classResults.failed ( this , deviceName , projectName , flavorName ) ; failures.add ( new org.gradle.api.internal.tasks.testing.junit.report.TestFailure ( message , stackTrace ) ) ; }
Source:
protected com.android.tools.lint.checks.TestLintClient createClient ( ) { return new com.android.tools.lint.checks.TestLintClient ( ) { @ com.android.annotations.NonNull @ java.lang.Override 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 new com.android.tools.lint.checks.ManifestDetectorTest.MyProject ( this , dir , referenceDir ) ; } } ; }

Target:
public boolean isGradleProject ( ) { return true ; }
Source:
public void testIssue33845 ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "res/values/strings.xml:5: Error: \"dateTimeFormat\" is not translated in de [MissingTranslation]\n" + " <string name=\"dateTimeFormat\">MM/dd/yyyy - HH:mm</string>\n" ) + " ~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "locale33845/.classpath=>.classpath" , "locale33845/AndroidManifest.xml=>AndroidManifest.xml" , "locale33845/project.properties=>project.properties" , "locale33845/res/values/strings.xml=>res/values/strings.xml" , "locale33845/res/values-de/strings.xml=>res/values-de/strings.xml" , "locale33845/res/values-en-rGB/strings.xml=>res/values-en-rGB/strings.xml" ) ) ; }

Target:
public void testIssue33845 ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "res/values/strings.xml:5: Error: \"dateTimeFormat\" is not translated in \"de\" (German) [MissingTranslation]\n" + " <string name=\"dateTimeFormat\">MM/dd/yyyy - HH:mm</string>\n" ) + " ~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "locale33845/.classpath=>.classpath" , "locale33845/AndroidManifest.xml=>AndroidManifest.xml" , "locale33845/project.properties=>project.properties" , "locale33845/res/values/strings.xml=>res/values/strings.xml" , "locale33845/res/values-de/strings.xml=>res/values-de/strings.xml" , "locale33845/res/values-en-rGB/strings.xml=>res/values-en-rGB/strings.xml" ) ) ; }
Source:
private static long getLongValue ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.Expression argument ) { java.lang.Object value = com.android.tools.lint.detector.api.ConstantEvaluator.evaluate ( context , argument ) ; if ( value instanceof java.lang.Number ) { return ( ( java.lang.Number ) ( value ) ) . longValue ( ) ; } return java.lang.Long.MAX_VALUE ; }

Target:
private static long getLongValue ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.intellij.psi.PsiExpression argument ) { java.lang.Object value = com.android.tools.lint.detector.api.ConstantEvaluator.evaluate ( context , argument ) ; if ( value instanceof java.lang.Number ) { return ( ( java.lang.Number ) ( value ) ) . longValue ( ) ; } return java.lang.Long.MAX_VALUE ; }
Source:
public void requestFocus ( com.android.server.telecom.ConnectionServiceFocusManager.CallFocus focus , com.android.server.telecom.ConnectionServiceFocusManager.RequestFocusCallback callback ) { mEventHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_REQUEST_FOCUS , new com.android.server.telecom.ConnectionServiceFocusManager.FocusRequest ( focus , callback ) ) . sendToTarget ( ) ; }

Target:
public void requestFocus ( com.android.server.telecom.ConnectionServiceFocusManager.CallFocus focus , com.android.server.telecom.ConnectionServiceFocusManager.RequestFocusCallback callback ) { mEventHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_REQUEST_FOCUS , new com.android.server.telecom.ConnectionServiceFocusManager.MessageArgs ( android.telecom.Log.createSubsession ( ) , "CSFM.rF" , new com.android.server.telecom.ConnectionServiceFocusManager.FocusRequest ( focus , callback ) ) ) . sendToTarget ( ) ; }
Source:
private static boolean isAbiSplit ( java.lang.String splitName ) { return splitName.startsWith ( "abi_" ) ; }

Target:
public static void setLibraryLoaderForTesting ( org.chromium.base.library_loader.LibraryLoader loader ) { org.chromium.base.library_loader.LibraryLoader.sInstance = loader ; }
Source:
public long getNextValueAsReferenceTypeID ( ) { return this . getNextValueAsObjectID ( ) ; }

Target:
public long getNextValueAsArrayTypeID ( ) { return this . getNextValueAsReferenceTypeID ( ) ; }
Source:
private com.android.dialer.lightbringer.Lightbringer getLightbringer ( ) { return com.android.dialer.lightbringer.LightbringerComponent.get ( mContext ) . getLightbringer ( ) ; }

Target:
private com.android.dialer.duo.Duo getDuo ( ) { return com.android.dialer.duo.DuoComponent.get ( mContext ) . getDuo ( ) ; }
Source:
public void copyTo ( int [ ] d ) { validateIsInt32 ( ) ; mRS.validate ( ) ; mRS.nAllocationRead ( getID ( mRS ) , d ) ; }

Target:
public void copy1DRangeTo ( int off , int count , int [ ] d ) { validateIsInt32 ( ) ; copy1DRangeToUnchecked ( off , count , d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public void test_withDayOfMonth_normal ( ) { java.time.LocalDate t = TEST_2007_07_15.withDayOfMonth ( 1 ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2007 , 7 , 1 ) ) ; }

Target:
public void test_withDayOfMonth_normal ( ) { java.time.LocalDate t = tck.java.time.TCKLocalDate.TEST_2007_07_15.withDayOfMonth ( 1 ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2007 , 7 , 1 ) ) ; }
Source:
public void testVFE8 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.aget_char.d.T_aget_char_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_char.d.T_aget_char_1" , java.lang.ArrayIndexOutOfBoundsException.class , new char [ 2 ] , 2 ) ; }
Source:
public void testAlternateFormatsContainsData ( ) throws java.lang.Exception { com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata germanyAlternateFormats = com.google.i18n.phonenumbers.MetadataManager.getAlternateFormatsForCountry ( 49 ) ; assertNotNull ( germanyAlternateFormats ) ; assertTrue ( ( ( germanyAlternateFormats.numberFormat.length ) > 0 ) ) ; }

Target:
public void testAlternateFormatsContainsData ( ) throws java.lang.Exception { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata germanyAlternateFormats = com.google.i18n.phonenumbers.MetadataManager.getAlternateFormatsForCountry ( 49 ) ; assertNotNull ( germanyAlternateFormats ) ; assertTrue ( ( ( germanyAlternateFormats.numberFormats ( ) . size ( ) ) > 0 ) ) ; }
Source:
java.io.File getMappingFile ( ) ;

Target:
org.gradle.api.Task getTask ( ) ;
Source:
public void testNormaliseStripNonDiallableCharacters ( ) { java.lang.String inputNumber = "03*4-56&+a#234" ; java.lang.String expectedOutput = "03*456+234" ; assertEquals ( "Conversion did not correctly remove non-diallable characters" , expectedOutput , com.google.i18n.phonenumbers.PhoneNumberUtil.normalizeDiallableCharsOnly ( inputNumber ) ) ; }

Target:
public void testNormaliseStripNonDiallableCharacters ( ) { java.lang.String inputNumber = "03*4-56&+1a#234" ; java.lang.String expectedOutput = "03*456+1#234" ; assertEquals ( "Conversion did not correctly remove non-diallable characters" , expectedOutput , com.google.i18n.phonenumbers.PhoneNumberUtil.normalizeDiallableCharsOnly ( inputNumber ) ) ; }
Source:
public void reloadFromDatabase ( com.android.server.telecom.TelecomSystem.SyncRoot lock , com.android.server.telecom.CallsManager callsManager , com.android.server.telecom.ContactsAsyncHelper contactsAsyncHelper , com.android.server.telecom.CallerInfoAsyncQueryFactory callerInfoAsyncQueryFactory , android.os.UserHandle userHandle ) { }

Target:
public void reloadAfterBootComplete ( com.android.server.telecom.CallerInfoLookupHelper callerInfoLookupHelper , com.android.server.telecom.tests.CallInfoFactory callInfoFactory ) { }
Source:
public void copy ( proguard.evaluation.TracedStack other ) { super . copy ( other ) ; producerStack.copy ( other.producerStack ) ; }

Target:
public void copy ( proguard.evaluation.TracedStack other ) { super . copy ( other ) ; producerStack.copy ( other.producerStack ) ; actualProducerStack.copy ( other.actualProducerStack ) ; }
Source:
public void addAdapterBinding ( com.android.ide.common.rendering.api.ResourceReference reference , com.android.ide.common.rendering.api.SessionParams.AdapterBinding data ) { if ( ( mAdapterBindingMap ) == null ) { mAdapterBindingMap = new java.util.HashMap < com.android.ide.common.rendering.api.ResourceReference , com.android.ide.common.rendering.api.SessionParams.AdapterBinding > ( ) ; } mAdapterBindingMap.put ( reference , data ) ; }

Target:
public void addAdapterBinding ( com.android.ide.common.rendering.api.ResourceReference reference , com.android.ide.common.rendering.api.AdapterBinding data ) { if ( ( mAdapterBindingMap ) == null ) { mAdapterBindingMap = new java.util.HashMap < com.android.ide.common.rendering.api.ResourceReference , com.android.ide.common.rendering.api.AdapterBinding > ( ) ; } mAdapterBindingMap.put ( reference , data ) ; }
Source:
public java.lang.invoke.MethodType type ( ) { return type ; }

Target:
public java.lang.invoke.MethodType type ( ) { if ( ( nominalType ) != null ) { return nominalType ; } return type ; }
Source:
public java.lang.String describeReferenceTo ( long id ) { return "No reference to 0x" + ( java.lang.Long.toHexString ( id ) ) ; }

Target:
public java.util.ArrayList < com.android.tools.perflib.heap.Instance > getReferences ( ) { if ( ( mReferences ) == null ) { mReferences = new java.util.ArrayList < com.android.tools.perflib.heap.Instance > ( ) ; } return mReferences ; }
Source:
public void registerContentObservers ( android.content.Context appContext , com.android.dialer.phonelookup.blockednumber.ContentObserverCallbacks contentObserverCallbacks ) { appContext.getContentResolver ( ) . registerContentObserver ( FilteredNumber.CONTENT_URI , true , new com.android.dialer.phonelookup.blockednumber.MarkDirtyObserver ( appContext , contentObserverCallbacks ) ) ; }

Target:
public void registerContentObservers ( android.content.Context appContext ) { appContext.getContentResolver ( ) . registerContentObserver ( FilteredNumber.CONTENT_URI , true , markDirtyObserver ) ; }
Source:
public void onUnhold ( ) { com.android.dialer.common.LogUtil.enterBlock ( "SimulatorConnection.onUnhold" ) ; setActive ( ) ; }

Target:
public void onUnhold ( ) { com.android.dialer.common.LogUtil.enterBlock ( "SimulatorConnection.onUnhold" ) ; onEvent ( new com.android.dialer.simulator.Simulator.Event ( com.android.dialer.simulator.Simulator.Event.UNHOLD ) ) ; }
Source:
public void test_F32_2_SCALE20_20_inRectangle ( ) { testReszie ( inX , inY , Element.DataType.FLOAT_32 , 2 , 2.0F , 2.0F ) ; }

Target:
public void test_F32_2_SCALE20_20_inRectangle ( ) { testResize ( inX , inY , Element.DataType.FLOAT_32 , 2 , 2.0F , 2.0F ) ; }
Source:
public void onStreamInfoChanged ( com.android.tv.data.StreamInfo info ) { mTvViewUiManager.updatePipView ( ) ; mHandler.removeCallbacks ( mRestoreMainViewRunnable ) ; restoreMainTvView ( ) ; }

Target:
private void setMediaSessionActiveAndPlaybackState ( boolean isPlaying ) { if ( isPlaying ) { mMediaSession.setActive ( true ) ; mMediaSession.setPlaybackState ( com.android.tv.MainActivity.MEDIA_SESSION_STATE_PLAYING ) ; } else { mMediaSession.setPlaybackState ( com.android.tv.MainActivity.MEDIA_SESSION_STATE_STOPPED ) ; mMediaSession.setActive ( false ) ; } }
Source:
public void testMissingVersion ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( ManifestOrderDetector.SET_VERSION ) ; assertEquals ( ( "" + ( ( ( ( ( ( "AndroidManifest.xml:2: Warning: Should set android:versionCode to specify the application version [MissingVersion]\n" + "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + "^\n" ) + "AndroidManifest.xml:2: Warning: Should set android:versionName to specify the application version [MissingVersion]\n" ) + "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + "^\n" ) + "0 errors, 2 warnings\n" ) ) , lintProject ( "no_version.xml=>AndroidManifest.xml" ) ) ; }

Target:
public void testMissingVersion ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( ManifestDetector.SET_VERSION ) ; assertEquals ( ( "" + ( ( ( ( ( ( "AndroidManifest.xml:2: Warning: Should set android:versionCode to specify the application version [MissingVersion]\n" + "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + "^\n" ) + "AndroidManifest.xml:2: Warning: Should set android:versionName to specify the application version [MissingVersion]\n" ) + "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + "^\n" ) + "0 errors, 2 warnings\n" ) ) , lintProject ( "no_version.xml=>AndroidManifest.xml" ) ) ; }
Source:
public void invokeVirtual ( final org.objectweb.asm.Type owner , final org.objectweb.asm.commons.Method method ) { invokeInsn ( Opcodes.INVOKEVIRTUAL , owner , method ) ; }

Target:
public void invokeInterface ( final org.objectweb.asm.Type owner , final org.objectweb.asm.commons.Method method ) { invokeInsn ( Opcodes.INVOKEINTERFACE , owner , method , true ) ; }
Source:
public void disconnectClientAfterStartingWifi ( ) throws java.lang.Exception { mWifiScanningServiceImpl.startService ( ) ; com.android.internal.util.test.BidirectionalAsyncChannel controlChannel = connectChannel ( mock ( android.os.Handler.class ) ) ; mLooper.dispatchAll ( ) ; setupAndLoadDriver ( ) ; controlChannel.disconnect ( ) ; mLooper.dispatchAll ( ) ; }

Target:
public void disconnectClientAfterStartingWifi ( ) throws java.lang.Exception { mWifiScanningServiceImpl.startService ( ) ; com.android.internal.util.test.BidirectionalAsyncChannel controlChannel = connectChannel ( mock ( android.os.Handler.class ) ) ; mLooper.dispatchAll ( ) ; setupAndLoadDriver ( com.android.server.wifi.scanner.WifiScanningServiceTest.TEST_MAX_SCAN_BUCKETS_IN_CAPABILITIES ) ; controlChannel.disconnect ( ) ; mLooper.dispatchAll ( ) ; }
Source:
public static void showMessage ( java.lang.String title , java.lang.Throwable t ) { java.io.StringWriter message = new java.io.StringWriter ( ) ; message.append ( "Internal error. Please report to http://" ) ; boolean studio = "AndroidStudio" . equalsIgnoreCase ( java.lang.System.getProperty ( com.intellij.idea.Main.PLATFORM_PREFIX_PROPERTY ) ) ; message.append ( ( studio ? "code.google.com/p/android/issues" : "youtrack.jetbrains.com" ) ) ; message.append ( "\n\n" ) ; t.printStackTrace ( new java.io.PrintWriter ( message ) ) ; com.intellij.idea.Main.showMessage ( title , message.toString ( ) , true ) ; }

Target:
public static void showMessage ( java.lang.String title , java.lang.Throwable t ) { java.io.StringWriter message = new java.io.StringWriter ( ) ; message.append ( "Internal error. Please report to https://" ) ; boolean studio = "AndroidStudio" . equalsIgnoreCase ( java.lang.System.getProperty ( com.intellij.idea.Main.PLATFORM_PREFIX_PROPERTY ) ) ; message.append ( ( studio ? "code.google.com/p/android/issues" : "youtrack.jetbrains.com" ) ) ; message.append ( "\n\n" ) ; t.printStackTrace ( new java.io.PrintWriter ( message ) ) ; com.intellij.idea.Main.showMessage ( title , message.toString ( ) , true ) ; }
Source:
public java.lang.String getBuildType ( ) { return null ; }

Target:
public java.lang.String getBuildType ( ) { return "" ; }
Source:
private synchronized void addMediaPlayerBrowsable ( java.lang.String packageName ) { com.android.bluetooth.avrcp.MediaPlayerInfo info = new com.android.bluetooth.avrcp.MediaPlayerInfo ( null , AvrcpConstants.PLAYER_TYPE_AUDIO , AvrcpConstants.PLAYER_SUBTYPE_NONE , getPlayStateBytes ( null ) , getFeatureBitMask ( packageName ) , packageName , getAppLabel ( packageName ) ) ; addMediaPlayerInfo ( info ) ; }

Target:
private synchronized boolean addMediaPlayerPackage ( java.lang.String packageName ) { com.android.bluetooth.avrcp.MediaPlayerInfo info = new com.android.bluetooth.avrcp.MediaPlayerInfo ( null , AvrcpConstants.PLAYER_TYPE_AUDIO , AvrcpConstants.PLAYER_SUBTYPE_NONE , getPlayStateBytes ( null ) , getFeatureBitMask ( packageName ) , packageName , getAppLabel ( packageName ) ) ; return addMediaPlayerInfo ( info ) ; }
Source:
java.util.List < com.android.bluetooth.avrcp.Metadata > getCurrentQueue ( ) { return com.android.bluetooth.avrcp.Util.toMetadataList ( getQueue ( ) ) ; }

Target:
java.util.List < com.android.bluetooth.avrcp.Metadata > getCurrentQueue ( ) { return mCurrentData.queue ; }
Source:
public < T extends java.lang.annotation.Annotation > T getAnnotation ( java.lang.Class < T > annotationClass ) { return super . getAnnotation ( annotationClass ) ; }

Target:
private native < T extends java.lang.annotation.Annotation > T getAnnotationNative ( java.lang.Class < T > annotationClass ) ;
Source:
private static void test_init ( dalvik.system.DexClassLoaderTest.Configuration config ) { dalvik.system.DexClassLoaderTest.createInstance ( config ) ; int expectedFiles = config.expectedFiles ; int actualFiles = dalvik.system.DexClassLoaderTest.OPTIMIZED_DIR.listFiles ( ) . length ; assertEquals ( expectedFiles , actualFiles ) ; }

Target:
private static void test_init ( dalvik.system.DexClassLoaderTest.Configuration config ) { dalvik.system.DexClassLoaderTest.createInstance ( config ) ; int expectedFiles = config.expectedFiles ; int actualFiles = config.optimizedDir.listFiles ( ) . length ; assertEquals ( expectedFiles , actualFiles ) ; }
Source:
native void rsnAllocationData3D ( long con , long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , int [ ] d , int sizeBytes ) ;

Target:
native void rsnScriptForEachClipped ( long con , long incCon , long id , int slot , long ain , long aout , int xstart , int xend , int ystart , int yend , int zstart , int zend , boolean mUseInc ) ;
Source:
public static void computeRadians ( android.renderscript.cts.TestRadians.ArgumentsFloatFloat args ) { args.ulf = 3 ; args.ulfRelaxed = 3 ; args.out = ( ( float ) ( ( ( double ) ( args.inValue ) ) * ( ( java.lang.StrictMath.PI ) / 180.0 ) ) ) ; }

Target:
public static void computeDegrees ( android.renderscript.cts.TestDegrees.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( ( ( args.inValue ) * ( ( float ) ( 180.0 / ( java.lang.Math.PI ) ) ) ) , 3 , 3 ) ; }
Source:
public boolean getDataEnabled ( ) { return getDataEnabled ( getSubId ( ) ) ; }

Target:
public void setDataEnabled ( boolean enable ) { setDataEnabled ( getSubId ( android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ) , enable ) ; }
Source:
private void startStateMachineUpdaters ( ) { try { mNwService.registerObserver ( mNetlinkTracker ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( mTag , ( "Couldn't register NetlinkTracker: " + ( e.toString ( ) ) ) ) ; } mMultinetworkPolicyTracker.start ( ) ; }

Target:
private void startStateMachineUpdaters ( ) { try { mNwService.registerObserver ( mNetlinkTracker ) ; } catch ( android.os.RemoteException e ) { logError ( "Couldn't register NetlinkTracker: %s" , e ) ; } mMultinetworkPolicyTracker.start ( ) ; }
Source:
public java.lang.annotation.Annotation [ ] getDeclaredAnnotations ( ) { return java.lang.Package.NO_ANNOTATIONS ; }

Target:
public java.lang.annotation.Annotation [ ] getAnnotations ( ) { try { java.lang.Class < ? > c = java.lang.Class.forName ( ( ( getName ( ) ) + ".package-info" ) ) ; return c.getAnnotations ( ) ; } catch ( java.lang.Exception ex ) { return java.lang.Package.NO_ANNOTATIONS ; } }
Source:
public final com.google.common.hash.Hasher putString ( java.lang.CharSequence charSequence ) { for ( int i = 0 ; i < ( charSequence.length ( ) ) ; i ++ ) { putChar ( charSequence.charAt ( i ) ) ; } return this ; }

Target:
public final com.google.common.hash.Hasher putUnencodedChars ( java.lang.CharSequence charSequence ) { for ( int i = 0 ; i < ( charSequence.length ( ) ) ; i ++ ) { putChar ( charSequence.charAt ( i ) ) ; } return this ; }
Source:
protected void close ( ) { saveSize ( ) ; getShell ( ) . close ( ) ; }

Target:
protected void close ( ) { if ( ( mShell ) != null ) { saveSize ( ) ; getShell ( ) . close ( ) ; } mQuitRequested = true ; }
Source:
private static java.lang.CharSequence buildSecondaryVoicemailText ( com.android.dialer.voicemail.model.VoicemailEntry voicemailEntry ) { return voicemailEntry.geocodedLocation ( ) ; }

Target:
private static java.lang.CharSequence buildSecondaryVoicemailText ( com.android.dialer.voicemail.model.VoicemailEntry voicemailEntry ) { return voicemailEntry.getGeocodedLocation ( ) ; }
Source:
public boolean containsKey ( java.lang.Object key ) { return multimap ( ) . containsKey ( key ) ; }

Target:
public boolean containsKey ( java.lang.Object key ) { return multimap.containsKey ( key ) ; }
Source:
public abstract void loadSettings ( java.util.Properties in_settings ) ;

Target:
public abstract void loadSettings ( java.util.Properties inSettings ) ;
Source:
public int hashCode ( ) { return mBuildConfigLines.hashCode ( ) ; }

Target:
public int hashCode ( ) { int result = mBuildConfigLines.hashCode ( ) ; result = ( 31 * result ) + ( mProguardFiles.hashCode ( ) ) ; return result ; }
Source:
public static void computeSqrt ( android.renderscript.cts.TestSqrt.ArgumentsFloatFloat args ) { args.ulf = 3 ; args.ulfRelaxed = 3 ; args.out = ( ( float ) ( java.lang.StrictMath.sqrt ( args.in ) ) ) ; }

Target:
public static void computeErfc ( android.renderscript.cts.TestErfc.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.erfc ( args.in ) , 16 , 128 ) ; }
Source:
protected void logv ( java.lang.String s ) { android.util.Log.v ( com.android.internal.telephony.gsm.SIMRecords.LOG_TAG , ( "[SIMRecords] " + s ) ) ; }

Target:
protected void logv ( java.lang.String s ) { android.telephony.Rlog.v ( com.android.internal.telephony.gsm.SIMRecords.LOG_TAG , ( "[SIMRecords] " + s ) ) ; }
Source:
private static java.lang.String getMessageTag ( java.lang.String tag ) { java.util.Calendar c = java.util.Calendar.getInstance ( ) ; if ( tag == null ) { return java.lang.String.format ( "[%1$tF %1$tT]" , c ) ; } return java.lang.String.format ( "[%1$tF %1$tT - %2$s]" , c , tag ) ; }

Target:
private static java.lang.String getMessageTag ( java.lang.String tag ) { java.util.Calendar c = java.util.Calendar.getInstance ( ) ; if ( tag == null ) { return java.lang.String.format ( Messages.DdmsPlugin_Message_Tag_Mask_1 , c ) ; } return java.lang.String.format ( Messages.DdmsPlugin_Message_Tag_Mask_2 , c , tag ) ; }
Source:
protected void onFinishInflate ( ) { super . onFinishInflate ( ) ; image = findViewById ( R.id.bottom_nav_item_image ) ; text = findViewById ( R.id.bottom_nav_item_text ) ; }

Target:
protected void onFinishInflate ( ) { super . onFinishInflate ( ) ; image = findViewById ( R.id.bottom_nav_item_image ) ; text = findViewById ( R.id.bottom_nav_item_text ) ; notificationBadge = findViewById ( R.id.notification_badge ) ; }
Source:
protected void unwanted ( ) { if ( ( this ) != ( mNetworkAgent ) ) return ; if ( com.android.server.wifi.WifiStateMachine.DBG ) log ( ( "WifiNetworkAgent -> Wifi unwanted score " + ( java.lang.Integer.toString ( mWifiInfo.score ) ) ) ) ; unwantedNetwork ( com.android.server.wifi.WifiStateMachine.network_status_unwanted_disconnect ) ; }

Target:
protected void preventAutomaticReconnect ( ) { if ( ( this ) != ( mNetworkAgent ) ) return ; unwantedNetwork ( com.android.server.wifi.WifiStateMachine.NETWORK_STATUS_UNWANTED_DISABLE_AUTOJOIN ) ; }
Source:
void enableScreenAfterBoot ( ) { android.util.EventLog.writeEvent ( com.android.server.am.ActivityManagerService.LOG_BOOT_PROGRESS_ENABLE_SCREEN , android.os.SystemClock.uptimeMillis ( ) ) ; mWindowManager.enableScreenAfterBoot ( ) ; }

Target:
void enableScreenAfterBoot ( ) { android.util.EventLog.writeEvent ( EventLogTags.BOOT_PROGRESS_ENABLE_SCREEN , android.os.SystemClock.uptimeMillis ( ) ) ; mWindowManager.enableScreenAfterBoot ( ) ; }
Source:
public static native int EVP_MD_block_size ( int evp_md ) ;

Target:
public static native long EVP_DigestInit ( long evp_md ) ;
Source:
protected void attachBaseContext ( android.content.Context base ) { super . attachBaseContext ( base ) ; org.chromium.base.multidex.ChromiumMultiDexInstaller.install ( this ) ; }

Target:
protected void attachBaseContext ( android.content.Context base ) { super . attachBaseContext ( base ) ; assert ( getBaseContext ( ) ) != null ; checkAppBeingReplaced ( ) ; org.chromium.base.multidex.ChromiumMultiDexInstaller.install ( this ) ; }