auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static float FloatMultiplication ( ) { float a ; float b ; float c ; a = 7.0F ; b = 3.0F ; c = a * b ; return c ; }

Target:
public static float FloatMultiplication ( ) { float a ; float b ; float c ; a = Main.$inline$float ( 7.0F ) ; b = Main.$inline$float ( 3.0F ) ; c = a * b ; return c ; }
Source:
public static com.google.devtools.common.options.OptionsParser newOptionsParser ( java.lang.Iterable < ? extends java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > optionsClasses ) { return new com.google.devtools.common.options.OptionsParser ( com.google.devtools.common.options.OptionsParser.getOptionsData ( com.google.common.collect.ImmutableList.< java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > copyOf ( optionsClasses ) ) ) ; }

Target:
public static com.google.devtools.common.options.OptionsParser newOptionsParser ( java.lang.Iterable < ? extends java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > optionsClasses ) { return com.google.devtools.common.options.OptionsParser.newOptionsParser ( com.google.devtools.common.options.OptionsParser.getOptionsDataInternal ( com.google.common.collect.ImmutableList.< java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > copyOf ( optionsClasses ) ) ) ; }
Source:
public java.lang.String getHostExecutionFlags ( ) { return java.lang.String.format ( "-Xnorelocate -Ximage:%s/framework/core.art" , androidHostOut ) ; }

Target:
public java.lang.String getHostExecutionFlags ( ) { return java.lang.String.format ( "-Xnorelocate -Ximage:%s" , getHostCoreImagePath ( ) ) ; }
Source:
public java.util.List < com.android.builder.core.DefaultProductFlavor > getProductFlavors ( ) { return getVariantData ( ) . getVariantConfiguration ( ) . getFlavorConfigs ( ) ; }

Target:
public java.util.List < com.android.build.gradle.api.GroupableProductFlavor > getProductFlavors ( ) { return new com.android.build.gradle.internal.api.ImmutableFlavorList ( getVariantData ( ) . getVariantConfiguration ( ) . getProductFlavors ( ) , readOnlyObjectProvider ) ; }
Source:
void setConnectionState ( int mConnectionState ) { this . mConnectionState = mConnectionState ; }

Target:
void setConnectionState ( int connectionState ) { mConnectionState = connectionState ; }
Source:
public void schedule ( java.util.TimerTask task , long delay ) { if ( delay < 0 ) { throw new java.lang.IllegalArgumentException ( ( "delay < 0: " + delay ) ) ; } scheduleImpl ( task , delay , ( - 1 ) , false ) ; }

Target:
private void validateScheduling ( java.util.TimerTask task , long delay , long period ) { validateScheduling ( task , new java.util.Date ( 1 ) , delay , period ) ; }
Source:
private native void gattSetScanParametersNative ( int scan_interval , int scan_window ) ;

Target:
private native void gattSetScanParametersNative ( int client_if , int scan_interval , int scan_window ) ;
Source:
public java.lang.Object [ ] toArray ( ) { return com.google.common.collect.ObjectArrays.EMPTY_ARRAY ; }

Target:
public com.google.common.collect.UnmodifiableIterator < E > descendingIterator ( ) { return com.google.common.collect.Iterators.emptyIterator ( ) ; }
Source:
public boolean isAnnotationPresent ( java.lang.Class < ? extends java.lang.annotation.Annotation > annotationType ) { if ( annotationType == null ) { throw new java.lang.NullPointerException ( "annotationType == null" ) ; } return isAnnotationPresentNative ( annotationType ) ; }

Target:
public java.lang.annotation.Annotation [ ] getDeclaredAnnotations ( ) { return super . getDeclaredAnnotations ( ) ; }
Source:
public boolean addToBlacklist ( java.lang.String bssid ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) return false ; return doBooleanCommand ( ( "BLACKLIST " + bssid ) ) ; }

Target:
public boolean setP2pSsidPostfix ( java.lang.String postfix ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.setSsidPostfix ( postfix ) ; } else { return doBooleanCommand ( ( "SET p2p_ssid_postfix " + postfix ) ) ; } }
Source:
public void testApi4 ( ) throws java.lang.Exception { assertEquals ( ( "deprecation.xml:16: Warning: android:autoText is deprecated: Use inputType instead\n" + ( ( ( ( ( ( "deprecation.xml:17: Warning: android:capitalize is deprecated: Use inputType instead\n" + "deprecation.xml:18: Warning: android:editable is deprecated: Use an <EditText> to make it editable\n" ) + "deprecation.xml:20: Warning: android:inputMethod is deprecated: Use inputType instead\n" ) + "deprecation.xml:21: Warning: android:numeric is deprecated: Use inputType instead\n" ) + "deprecation.xml:22: Warning: android:password is deprecated: Use inputType instead\n" ) + "deprecation.xml:23: Warning: android:phoneNumber is deprecated: Use inputType instead\n" ) + "deprecation.xml:2: Warning: AbsoluteLayout is deprecated" ) ) , lintProject ( "apicheck/minsdk4.xml=>AndroidManifest.xml" , "res/layout/deprecation.xml" ) ) ; }

Target:
public void testApi4 ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/deprecation.xml:2: Warning: AbsoluteLayout is deprecated [Deprecated]\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "<AbsoluteLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" + "^\n" ) + "res/layout/deprecation.xml:16: Warning: android:autoText is deprecated: Use inputType instead [Deprecated]\n" ) + " android:autoText=\"true\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/deprecation.xml:17: Warning: android:capitalize is deprecated: Use inputType instead [Deprecated]\n" ) + " android:capitalize=\"true\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/deprecation.xml:18: Warning: android:editable is deprecated: Use an <EditText> to make it editable [Deprecated]\n" ) + " android:editable=\"true\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/deprecation.xml:20: Warning: android:inputMethod is deprecated: Use inputType instead [Deprecated]\n" ) + " android:inputMethod=\"@+id/foo\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/deprecation.xml:21: Warning: android:numeric is deprecated: Use inputType instead [Deprecated]\n" ) + " android:numeric=\"true\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/deprecation.xml:22: Warning: android:password is deprecated: Use inputType instead [Deprecated]\n" ) + " android:password=\"true\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/deprecation.xml:23: Warning: android:phoneNumber is deprecated: Use inputType instead [Deprecated]\n" ) + " android:phoneNumber=\"true\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 8 warnings\n" ) + "" ) ) , lintProject ( "apicheck/minsdk4.xml=>AndroidManifest.xml" , "res/layout/deprecation.xml" ) ) ; }
Source:
protected com.android.sdklib.internal.repository.DownloadCache getDownloadCache ( ) { if ( ( mDownloadCache ) == null ) { mDownloadCache = new com.android.sdklib.internal.repository.DownloadCache ( ( getSettingsController ( ) . getSettings ( ) . getUseDownloadCache ( ) ? DownloadCache.Strategy.FRESH_CACHE : DownloadCache.Strategy.DIRECT ) ) ; } return mDownloadCache ; }

Target:
protected com.android.sdklib.internal.repository.DownloadCache getDownloadCache ( ) { if ( ( mDownloadCache ) == null ) { mDownloadCache = new com.android.sdklib.internal.repository.DownloadCache ( ( mSettingsController.getSettings ( ) . getUseDownloadCache ( ) ? DownloadCache.Strategy.FRESH_CACHE : DownloadCache.Strategy.DIRECT ) ) ; } return mDownloadCache ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setSuitePlan ( java.lang.String value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 32 ; suitePlan_ = value ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setBuildIdBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 32 ; buildId_ = value ; onChanged ( ) ; return this ; }
Source:
public void testRefactor1_noreferences ( ) throws java.lang.Exception { renamePackage ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT , false , false , "my.pkg.name" , ( "CHANGES:\n" + ( "-------\n" + "* Rename package 'com.example.refactoringtest' to 'my.pkg.name'" ) ) , false ) ; }

Target:
public void testRefactor1_noreferences ( ) throws java.lang.Exception { renamePackage ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT , false , false , "my.pkg.name" , ( "CHANGES:\n" + ( "-------\n" + "[x] Rename package 'com.example.refactoringtest' to 'my.pkg.name'" ) ) , false ) ; }
Source:
public boolean chainIsNotPinned ( java.lang.String hostname , java.util.List < java.security.cert.X509Certificate > chain ) throws org.conscrypt.PinManagerException { org.conscrypt.PinListEntry entry = lookup ( hostname ) ; if ( entry != null ) { return entry.chainIsNotPinned ( chain ) ; } return false ; }

Target:
public boolean isChainValid ( java.lang.String hostname , java.util.List < java.security.cert.X509Certificate > chain ) throws org.conscrypt.PinManagerException { final org.conscrypt.PinListEntry entry = lookup ( hostname ) ; if ( entry == null ) { return true ; } return entry.isChainValid ( chain ) ; }
Source:
public void dispatchMediaKeyEvent ( android.view.KeyEvent keyEvent ) { android.media.session.MediaSessionLegacyHelper helper = android.media.session.MediaSessionLegacyHelper.getHelper ( mApplicationContext ) ; helper.sendMediaButtonEvent ( keyEvent , false ) ; }

Target:
public void dispatchMediaKeyEvent ( android.view.KeyEvent keyEvent ) { android.media.session.MediaSessionLegacyHelper helper = android.media.session.MediaSessionLegacyHelper.getHelper ( getContext ( ) ) ; helper.sendMediaButtonEvent ( keyEvent , false ) ; }
Source:
public void set ( int n , com.android.jack.dx.rop.cst.CstType exceptionType , int handler ) { set0 ( n , new com.android.jack.dx.dex.code.CatchHandlerList.Entry ( exceptionType , handler ) ) ; }

Target:
public void set ( int n , com.android.jack.dx.rop.type.Type exceptionType , int handler ) { set0 ( n , new com.android.jack.dx.dex.code.CatchHandlerList.Entry ( exceptionType , handler ) ) ; }
Source:
private int getDefaultInstallLoc ( ) { int origDefaultLoc = PackageInfo.INSTALL_LOCATION_AUTO ; try { origDefaultLoc = Settings.System.getInt ( mContext.getContentResolver ( ) , Settings.Secure.DEFAULT_INSTALL_LOCATION ) ; } catch ( android.provider.Settings.SettingNotFoundException e1 ) { } return origDefaultLoc ; }

Target:
private int getDefaultInstallLoc ( ) { int origDefaultLoc = android.content.pm.PackageInfo.INSTALL_LOCATION_AUTO ; try { origDefaultLoc = Settings.System.getInt ( mContext.getContentResolver ( ) , Settings.Secure.DEFAULT_INSTALL_LOCATION ) ; } catch ( android.provider.Settings.SettingNotFoundException e1 ) { } return origDefaultLoc ; }
Source:
private void showInputMethodPickerLocked ( ) { try { mService.showInputMethodPickerFromClient ( mClient , android.view.inputmethod.InputMethodManager.SHOW_IM_PICKER_MODE_AUTO ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.view.inputmethod.InputMethodManager.TAG , ( "IME died: " + ( mCurId ) ) , e ) ; } }

Target:
public void showInputMethodAndSubtypeEnabler ( java.lang.String imiId ) { synchronized ( mH ) { try { mService.showInputMethodAndSubtypeEnablerFromClient ( mClient , imiId ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }
Source:
public static java.lang.String getStandardName ( java.lang.String algName ) { return org.apache.harmony.security.utils.AlgNameMapper.algAliasesMap.get ( algName.toUpperCase ( java.util.Locale.US ) ) ; }

Target:
public static java.lang.String getStandardName ( java.lang.String algName ) { return org.apache.harmony.security.utils.AlgNameMapper.algAliasesMap.get ( algName.toUpperCase ( java.util.Locale.ROOT ) ) ; }
Source:
public void testDeserializeWasExternalizableClass ( ) throws java.lang.Exception { final java.lang.String s = "aced0005737200336c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6" + "e546573742457617345787465726e616c697a61626c6500000000000000000c0000787078" ; assertFalse ( libcore.java.io.SerializationTest.wasExternalizableInitializedFlag ) ; try { libcore.util.SerializationTester.deserializeHex ( s ) ; fail ( ) ; } catch ( java.io.InvalidClassException expected ) { } assertTrue ( libcore.java.io.SerializationTest.wasExternalizableInitializedFlag ) ; }

Target:
public void testDeserializeWasExternalizableClass ( ) throws java.lang.Exception { final java.lang.String s = "aced0005737200336c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6" + "e546573742457617345787465726e616c697a61626c6500000000000000000c0000787078" ; assertFalse ( libcore.java.io.SerializationTest.wasExternalizableInitializedFlag ) ; try { libcore.libcore.util.SerializationTester.deserializeHex ( s ) ; fail ( ) ; } catch ( java.io.InvalidClassException expected ) { } assertTrue ( libcore.java.io.SerializationTest.wasExternalizableInitializedFlag ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { return ( obj instanceof com.android.jack.plugin.PluginLocation ) && ( plugin.getName ( ) . equals ( ( ( com.android.jack.plugin.PluginLocation ) ( obj ) ) . plugin.getName ( ) ) ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { return ( obj instanceof com.android.jack.plugin.PluginLocation ) && ( plugin.getCanonicalName ( ) . equals ( ( ( com.android.jack.plugin.PluginLocation ) ( obj ) ) . plugin.getCanonicalName ( ) ) ) ; }
Source:
public void testConstructor_01 ( ) throws java.lang.Exception { javax.net.ssl.SSLSocket ssl = getSSLSocket ( ) ; assertNotNull ( ssl ) ; ssl.close ( ) ; }

Target:
public void testConstructor ( ) throws java.lang.Exception { javax.net.ssl.SSLSocket ssl = getSSLSocket ( ) ; assertNotNull ( ssl ) ; ssl.close ( ) ; }
Source:
private void notifyHostEmuData ( byte [ ] data ) { mListener.onHostCardEmulationData ( data ) ; }

Target:
private void notifyHostEmuData ( int technology , byte [ ] data ) { mListener.onHostCardEmulationData ( technology , data ) ; }
Source:
private static void printUsage ( ) { java.lang.System.err.println ( ( "Usage:\n" + ( ( "create <old_version_description> <new_version_description> <old_version_folder> <new_version_folder>" + " <patch_file_name> <log_directory> [ignored=file1;file2;...] [critical=file1;file2;...] [optional=file1;file2;...]\n" ) + "install [--exit0] <destination_folder> [log_directory]\n" ) ) ) ; }

Target:
private static void printUsage ( ) { java.lang.System.err.println ( ( "Usage:\n" + ( ( "create <old_version_description> <new_version_description> <old_version_folder> <new_version_folder>" + " <patch_file_name> [ignored=file1;file2;...] [critical=file1;file2;...] [optional=file1;file2;...]\n" ) + "install [--exit0] <destination_folder> [log_directory]\n" ) ) ) ; }
Source:
public native void putDouble$ ( long address , double x ) ;

Target:
public native void putDouble ( long address , double x ) ;
Source:
public static native void SSL_enable_tls_channel_id ( int ssl ) throws javax.net.ssl.SSLException ;

Target:
public static native long [ ] X509_CRL_get_REVOKED ( long x509CrlCtx ) ;
Source:
public static int skip ( java.util.Iterator < ? > iterator , int numberToSkip ) { return com.google.common.collect.Iterators.advance ( iterator , numberToSkip ) ; }

Target:
public static < T > T get ( java.util.Iterator < ? extends T > iterator , int position , @ javax.annotation.Nullable T defaultValue ) { com.google.common.collect.Iterators.checkNonnegative ( position ) ; com.google.common.collect.Iterators.advance ( iterator , position ) ; return com.google.common.collect.Iterators.getNext ( iterator , defaultValue ) ; }
Source:
public static java.util.Properties getProperties ( ) { if ( ( java.lang.System.systemProperties ) == null ) { java.lang.System.initSystemProperties ( ) ; } return java.lang.System.systemProperties ; }

Target:
private static java.util.Properties createSystemProperties ( ) { java.util.Properties p = new java.lang.System.PropertiesWithNonOverrideableDefaults ( java.lang.System.unchangeableSystemProperties ) ; p.put ( "java.io.tmpdir" , "/tmp" ) ; return p ; }
Source:
public static com.android.jack.dx.rop.code.LocalItem make ( com.android.jack.dx.rop.cst.CstString name , com.android.jack.dx.rop.cst.CstType type , com.android.jack.dx.rop.cst.CstString signature ) { if ( ( name == null ) && ( type == null ) ) { return null ; } return new com.android.jack.dx.rop.code.LocalItem ( name , type , signature ) ; }

Target:
public static com.android.jack.dx.rop.code.LocalItem make ( com.android.jack.dx.rop.cst.CstString name , com.android.jack.dx.rop.type.Type type , com.android.jack.dx.rop.cst.CstString signature ) { if ( ( name == null ) && ( type == null ) ) { return null ; } return new com.android.jack.dx.rop.code.LocalItem ( name , type , signature ) ; }
Source:
public android.graphics.Bitmap call ( ) { return getFavicon ( ) ; }

Target:
public java.lang.String call ( ) { return getTitle ( ) ; }
Source:
private native void initializeNative ( int max_hf_clients , boolean inband_ring_enable ) ;

Target:
private native void initializeNative ( int maxHfClients , boolean inbandRingEnable ) ;
Source:
private java.awt.Color getFillColor ( com.android.tools.perflib.vmtrace.Call c ) { com.android.tools.perflib.vmtrace.MethodInfo info = mTraceData.getMethod ( c.getMethodId ( ) ) ; int percent = quantize ( info.getInclusiveThreadPercent ( ) ) ; return getFill ( percent ) ; }

Target:
private java.awt.Color getFillColor ( com.android.tools.perflib.vmtrace.Call c ) { int percent = quantize ( getDurationPercentage ( c , EXCLUSIVE_TIME_SELECTOR ) ) ; return getFill ( percent ) ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setModulesTotal ( int value ) { bitField0_ |= 131072 ; modulesTotal_ = value ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setModulesDone ( int value ) { bitField0_ |= 131072 ; modulesDone_ = value ; onChanged ( ) ; return this ; }
Source:
public void testRemoveTransportModeTransform ( ) throws java.lang.Exception { android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.fromSocket ( new java.net.Socket ( ) ) ; mIpSecService.removeTransportModeTransform ( pfd , 1 ) ; org.mockito.Mockito.verify ( mMockNetd ) . ipSecRemoveTransportModeTransform ( pfd.getFileDescriptor ( ) ) ; }

Target:
public void testRemoveTransportModeTransform ( ) throws java.lang.Exception { android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.fromSocket ( new java.net.Socket ( ) ) ; mIpSecService.removeTransportModeTransforms ( pfd ) ; org.mockito.Mockito.verify ( mMockNetd ) . ipSecRemoveTransportModeTransform ( pfd.getFileDescriptor ( ) ) ; }
Source:
public java.lang.String getName ( ) { return "RecommendedNetworkEvaluator" ; }

Target:
public java.lang.String getName ( ) { return com.android.server.wifi.RecommendedNetworkEvaluator.TAG ; }
Source:
public static void w ( java.lang.String prefix , java.lang.String format , java.lang.Object ... args ) { if ( com.android.services.telephony.Log.WARN ) { android.util.Log.w ( com.android.services.telephony.Log.TAG , com.android.services.telephony.Log.buildMessage ( prefix , format , args ) ) ; } }

Target:
public static void w ( java.lang.Object objectPrefix , java.lang.String format , java.lang.Object ... args ) { android.telecom.Log.w ( objectPrefix , format , args ) ; }
Source:
public java.io.File getPreDexOutputDir ( ) { return new java.io.File ( ( ( ( ( ( globalScope.getBuildDir ( ) ) + "/" ) + ( com.android.builder.model.AndroidProject.FD_INTERMEDIATES ) ) + "/pre-dexed/" ) + ( getVariantConfiguration ( ) . getDirName ( ) ) ) ) ; }

Target:
public java.io.File getSymbolLocation ( ) { return new java.io.File ( ( ( ( globalScope.getIntermediatesDir ( ) ) + "/symbols/" ) + ( variantData.getVariantConfiguration ( ) . getDirName ( ) ) ) ) ; }
Source:
public void onContentBlocked ( ) { updateMediaSession ( ) ; }

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:
void onSaveInstanceState ( android.os.Bundle outState ) { mTabControl.saveState ( outState ) ; if ( ! ( outState.isEmpty ( ) ) ) { outState.putSerializable ( "lastActiveDate" , java.util.Calendar.getInstance ( ) ) ; } }

Target:
android.os.Bundle createSaveState ( ) { android.os.Bundle saveState = new android.os.Bundle ( ) ; mTabControl.saveState ( saveState ) ; if ( ! ( saveState.isEmpty ( ) ) ) { saveState.putSerializable ( "lastActiveDate" , java.util.Calendar.getInstance ( ) ) ; } return saveState ; }
Source:
boolean isLeadingZeroPossible ( int countryCallingCode ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata mainMetadataForCallingCode = getMetadataForRegionOrCallingCode ( countryCallingCode , getRegionCodeForCountryCode ( countryCallingCode ) ) ; if ( mainMetadataForCallingCode == null ) { return false ; } return mainMetadataForCallingCode.isLeadingZeroPossible ( ) ; }

Target:
private java.lang.String formatNsn ( java.lang.String number , com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat numberFormat ) { return formatNsn ( number , metadata , numberFormat , null ) ; }
Source:
public void testCanEncodeSurrogate() { assertFalse(org.apache.harmony.tests.java.nio.charset.ASCIICharsetEncoderTest.encoder.canEncode('\ud800')); assertFalse(org.apache.harmony.tests.java.nio.charset.ASCIICharsetEncoderTest.encoder.canEncode("\udc00")); }

Target:
public void testCanEncodeSurrogate() { assertFalse(encoder.canEncode('\ud800')); assertFalse(encoder.canEncode("\udc00")); }
Source:
public android.net.IpSecTransform.Builder setIpv4Encapsulation ( android.net.IpSecManager.UdpEncapsulationSocket localSocket , int remotePort ) { mConfig.encapType = android.net.IpSecTransform.ENCAP_ESPINUDP ; mConfig.encapLocalPortResourceId = localSocket.getResourceId ( ) ; mConfig.encapRemotePort = remotePort ; return this ; }

Target:
public android.net.IpSecTransform buildTunnelModeTransform ( java.net.InetAddress localAddress , java.net.InetAddress remoteAddress ) { mConfig.setLocalAddress ( localAddress.getHostAddress ( ) ) ; mConfig.setRemoteAddress ( remoteAddress.getHostAddress ( ) ) ; mConfig.setMode ( android.net.IpSecTransform.MODE_TUNNEL ) ; return new android.net.IpSecTransform ( mContext , mConfig ) ; }
Source:
public void setTimeAndTimeZoneFromNitz ( com.android.internal.telephony.NitzData newNitzData , long nitzReceiveTime ) { setTimeZoneFromNitz ( newNitzData , nitzReceiveTime ) ; com.android.internal.telephony.util.TimeStampedValue < com.android.internal.telephony.NitzData > nitzSignal = new com.android.internal.telephony.util.TimeStampedValue ( newNitzData , nitzReceiveTime ) ; setTimeFromNitz ( nitzSignal ) ; }

Target:
public void handleNetworkAvailable ( ) { if ( com.android.internal.telephony.NitzStateMachine.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.NitzStateMachine.LOG_TAG , ( ( "handleNetworkAvailable: mNitzTimeZoneDetectionSuccessful=" + ( mNitzTimeZoneDetectionSuccessful ) ) + ", Setting mNitzTimeZoneDetectionSuccessful=false" ) ) ; } mNitzTimeZoneDetectionSuccessful = false ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( "ConfigurationResult{" + "configurationInstance='" ) + ( configurationInstance.getDisplayString ( ) ) ) + '\'' ) + ", result=" ) + ( result ) ) + ", isComplete=" ) + ( isComplete ) ) + '}' ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( "ConfigurationResult{" + "configurationInstance='" ) + ( configurationInstance.getResultsViewerDisplayString ( ) ) ) + '\'' ) + ", result=" ) + ( result ) ) + ", isComplete=" ) + ( isComplete ) ) + '}' ; }
Source:
void addItems ( java.util.Collection < I > items ) { for ( I item : items ) { mItems.put ( item.getKey ( ) , item ) ; item.setSource ( this ) ; } }

Target:
public void removeItems ( @ com.android.annotations.NonNull java.util.Collection < I > items ) { for ( I item : items ) { mItems.remove ( item.getKey ( ) ) ; item.setSource ( null ) ; } }
Source:
public void visitLeave ( com.android.tools.perflib.heap.Instance instance ) ;

Target:
public void visitLater ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Instance instance ) ;
Source:
public static com.google.common.io.InputSupplier < java.io.ByteArrayInputStream > newInputStreamSupplier ( byte [ ] b ) { return com.google.common.io.ByteStreams.newInputStreamSupplier ( b , 0 , b.length ) ; }

Target:
void writeTo ( byte [ ] b , int off ) { java.lang.System.arraycopy ( buf , 0 , b , off , count ) ; }
Source:
public void broadcastP2pDeviceLost ( java.lang.String iface , android.net.wifi.p2p.WifiP2pDevice device ) { if ( device != null ) { sendMessage ( iface , com.android.server.wifi.WifiMonitor.P2P_DEVICE_LOST_EVENT , device ) ; } }

Target:
public void broadcastPnoScanResultEvent ( java.lang.String iface ) { sendMessage ( iface , com.android.server.wifi.WifiMonitor.PNO_SCAN_RESULTS_EVENT ) ; }
Source:
public int getWifiEnabledState ( ) { enforceAccessPermission ( ) ; return mWifiStateMachine.syncGetWifiState ( ) ; }

Target:
public int getWifiEnabledState ( ) { enforceAccessPermission ( ) ; mLog.trace ( "getWifiEnabledState uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; return mWifiStateMachine.syncGetWifiState ( ) ; }
Source:
public boolean isConnected ( int callSessionType , int callType ) { return false ; }

Target:
private void acknowledgeSms ( int messageRef , @ android.telephony.ims.internal.SmsImplBase.DeliverStatusResult int result ) { getSmsImplementation ( ) . acknowledgeSms ( messageRef , result ) ; }
Source:
public static native java.lang.String EC_GROUP_get_curve_name ( long groupRef ) ;

Target:
public static native byte [ ] [ ] EC_GROUP_get_curve ( org.conscrypt.NativeRef.EC_GROUP groupRef ) ;
Source:
private static void resetWifiNanNative ( ) throws java.lang.Exception { java.lang.reflect.Field field = com.android.server.wifi.nan.WifiNanNative.class . getDeclaredField ( "sWifiNanNativeSingleton" ) ; field.setAccessible ( true ) ; field.set ( null , null ) ; }

Target:
private static void resetWifiAwareNative ( ) throws java.lang.Exception { java.lang.reflect.Field field = com.android.server.wifi.aware.WifiAwareNative.class . getDeclaredField ( "sWifiAwareNativeSingleton" ) ; field.setAccessible ( true ) ; field.set ( null , null ) ; }
Source:
public java.lang.String dump ( ) { return doDump ( ) ; }

Target:
public void dump ( java.io.FileDescriptor fd ) { doDump ( fd ) ; }
Source:
public void test3rdPartyTests ( ) throws java.lang.Exception { runGradleTasks ( sdkDir , BasePlugin.GRADLE_MIN_VERSION , new java.io.File ( testDir , "3rdPartyTests" ) , "clean" , "deviceCheck" ) ; }

Target:
public void test3rdPartyTests ( ) throws java.lang.Exception { runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_MIN_VERSION , new java.io.File ( testDir , "3rdPartyTests" ) , "clean" , "deviceCheck" ) ; }
Source:
static synchronized com.android.incallui.VideoPauseController getInstance ( ) { if ( ( com.android.incallui.VideoPauseController.sVideoPauseController ) == null ) { com.android.incallui.VideoPauseController.sVideoPauseController = new com.android.incallui.VideoPauseController ( ) ; } return com.android.incallui.VideoPauseController.sVideoPauseController ; }

Target:
static synchronized com.android.incallui.VideoPauseController getInstance ( ) { if ( ( com.android.incallui.VideoPauseController.videoPauseController ) == null ) { com.android.incallui.VideoPauseController.videoPauseController = new com.android.incallui.VideoPauseController ( ) ; } return com.android.incallui.VideoPauseController.videoPauseController ; }
Source:
public java.lang.String getInstrumentationRunner ( ) { com.android.builder.core.VariantConfiguration config = this ; if ( ( mType ) == ( com.android.builder.core.VariantConfiguration.Type.TEST ) ) { config = getTestedConfig ( ) ; } java.lang.String runner = config.mMergedFlavor.getTestInstrumentationRunner ( ) ; return runner != null ? runner : com.android.builder.core.VariantConfiguration.DEFAULT_TEST_RUNNER ; }

Target:
public java.lang.String getPrefix ( ) { return prefix ; }
Source:
private int getPreciseDisconnectCauseFromReasonInfo ( com.android.ims.ImsReasonInfo reasonInfo ) { return com.android.internal.telephony.imsphone.ImsPhoneCallTracker.PRECISE_CAUSE_MAP.get ( maybeRemapReasonCode ( reasonInfo ) , PreciseDisconnectCause.ERROR_UNSPECIFIED ) ; }

Target:
private int getPreciseDisconnectCauseFromReasonInfo ( android.telephony.ims.ImsReasonInfo reasonInfo ) { return com.android.internal.telephony.imsphone.ImsPhoneCallTracker.PRECISE_CAUSE_MAP.get ( maybeRemapReasonCode ( reasonInfo ) , PreciseDisconnectCause.ERROR_UNSPECIFIED ) ; }
Source:
public android.os.PersistableBundle getCarrierConfig ( ) { android.telephony.CarrierConfigManager carrierConfigManager = mContext.getSystemService ( android.telephony.CarrierConfigManager.class ) ; return carrierConfigManager.getConfigForSubId ( mSubId ) ; }

Target:
public android.os.PersistableBundle getCarrierConfig ( ) { android.telephony.CarrierConfigManager carrierConfigManager = mContext.getSystemService ( android.telephony.CarrierConfigManager.class ) ; return carrierConfigManager.getConfigForSubId ( getSubId ( ) ) ; }
Source:
synchronized int nScriptKernelIDCreate ( int sid , int slot , int sig ) { validate ( ) ; return rsnScriptKernelIDCreate ( mContext , sid , slot , sig ) ; }

Target:
synchronized void nScriptSetVarD ( long id , int slot , double val ) { validate ( ) ; rsnScriptSetVarD ( mContext , id , slot , val ) ; }
Source:
public static com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator create ( boolean allowXmlExtension , java.util.Set < java.lang.String > existing ) { return new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator ( allowXmlExtension , existing ) ; }

Target:
public static com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator create ( boolean allowXmlExtension , com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType type ) { boolean isFileType = type != ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType.VALUES ) ; return new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator ( allowXmlExtension , null , isFileType ) ; }
Source:
public boolean isClosure ( ) { return ( basicType ) == ( com.android.jack.dx.rop.type.Type.BT_CLOSURE ) ; }

Target:
public int getWordCount ( ) { if ( isCategory2 ( ) ) { return 2 ; } return 1 ; }
Source:
public void onSdkChange ( boolean init ) { if ( init == false ) { com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . reparseSdk ( ) ; } }

Target:
public void onSdkReload ( ) { com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . reparseSdk ( ) ; }
Source:
public void callSessionConferenceStateUpdated ( com.android.ims.internal.ImsCallSession session , com.android.ims.ImsConferenceState state ) { logi ( ( "callSessionConferenceStateUpdated :: state=" + state ) ) ; conferenceStateUpdated ( state ) ; }

Target:
public void callSessionConferenceStateUpdated ( android.telephony.ims.ImsCallSession session , android.telephony.ims.ImsConferenceState state ) { logi ( ( "callSessionConferenceStateUpdated :: state=" + state ) ) ; conferenceStateUpdated ( state ) ; }
Source:
public void onChange ( boolean selfChange ) { notifyEnabled ( isNsdEnabled ( ) ) ; }

Target:
public void onChange ( boolean selfChange ) { if ( isNsdEnabled ( ) ) { mNsdStateMachine.sendMessage ( NsdManager.ENABLE ) ; } else { mNsdStateMachine.sendMessage ( NsdManager.DISABLE ) ; } }
Source:
public java.lang.String [ ] getDelegateClassNatives ( ) { return new java.lang.String [ 0 ] ; }

Target:
public java.lang.String [ ] getDelegateClassNatives ( ) { return com.android.tools.layoutlib.create.AsmGeneratorTest.EMPTY_STRING_ARRAY ; }
Source:
void onProgressRefresh ( float scale , boolean fromUser ) { super . onProgressRefresh ( scale , fromUser ) ; android.graphics.drawable.Drawable thumb = mThumb ; if ( thumb != null ) { setThumbPos ( getWidth ( ) , thumb , scale , java.lang.Integer.MIN_VALUE ) ; invalidate ( ) ; } }

Target:
void onProgressRefresh ( float scale , boolean fromUser ) { super . onProgressRefresh ( scale , fromUser ) ; if ( ! ( isAnimationRunning ( ) ) ) { setThumbPos ( scale ) ; } }
Source:
public static synchronized java.io.PrintStream getOutPrintStream ( org.eclipse.core.resources.IProject project , java.lang.String prefix ) { if ( ( com.android.ide.eclipse.adt.AdtPlugin.sPlugin ) != null ) { return new com.android.ide.eclipse.adt.AdtPlugin.AndroidPrintStream ( project , prefix , com.android.ide.eclipse.adt.AdtPlugin.sPlugin.mAndroidConsoleStream ) ; } return null ; }

Target:
public static synchronized java.io.OutputStream getOutStream ( ) { return com.android.ide.eclipse.adt.AdtPlugin.sPlugin.mAndroidConsoleStream ; }
Source:
protected void onResume ( ) { super . onResume ( ) ; getPreferenceScreen ( ) . setEnabled ( true ) ; mPhone.queryTTYModeEnabled ( android.os.Message.obtain ( mQueryTTYComplete , com.android.phone.CallFeaturesSetting.EVENT_TTY_EXECUTED ) ) ; }

Target:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.phone.CallFeaturesSetting.EVENT_ENHANCED_VP_EXECUTED : handleQueryVPModeMessage ( ( ( android.os.AsyncResult ) ( msg.obj ) ) ) ; break ; default : } }
Source:
public void propertyChange ( org.eclipse.jface.util.PropertyChangeEvent event ) { if ( PrefPage.PREFS_DEVTREE_DIR.equals ( event.getProperty ( ) ) ) { com.android.ide.eclipse.ddms.DdmsPlugin.setAdb ( com.android.ide.eclipse.pdt.PdtPlugin.getAdbLocation ( ) , true ) ; } }

Target:
public void propertyChange ( org.eclipse.jface.util.PropertyChangeEvent event ) { if ( PrefPage.PREFS_DEVTREE_DIR.equals ( event.getProperty ( ) ) ) { com.android.ide.eclipse.ddms.DdmsPlugin.setToolsLocation ( com.android.ide.eclipse.pdt.PdtPlugin.getAdbLocation ( ) , true , com.android.ide.eclipse.pdt.PdtPlugin.getHprofConvLocation ( ) , com.android.ide.eclipse.pdt.PdtPlugin.getTraceViewLocation ( ) ) ; } }
Source:
public void onChange ( boolean selfChange , android.net.Uri uri ) { com.android.dialer.common.Assert.isMainThread ( ) ; com.android.dialer.common.LogUtil.enterBlock ( "SystemBlockedNumberPhoneLookup.FilteredNumberObserver.onChange" ) ; refreshAnnotatedCallLogNotifier.markDirtyAndNotify ( ) ; }

Target:
public void onChange ( boolean selfChange , android.net.Uri uri ) { com.android.dialer.common.Assert.isMainThread ( ) ; com.android.dialer.common.LogUtil.i ( "MarkDirtyObserver.onChange" , "Uri:%s, SelfChange:%b" , java.lang.String.valueOf ( uri ) , selfChange ) ; refreshAnnotatedCallLogNotifier.markDirtyAndNotify ( ) ; }
Source:
void setBits ( com.google.common.base.CharMatcher.LookupTable table ) { char c = startInclusive ; while ( true ) { table.set ( c ) ; if ( ( c ++ ) == endInclusive ) { break ; } } }

Target:
void setBits ( java.util.BitSet table ) { table.set ( startInclusive , ( endInclusive + 1 ) ) ; }
Source:
private void testExplicitSizeBottomRightGravity ( ) { doLayoutParamTest ( ( android.view.WindowManager.LayoutParams params ) -> { params.width = 200 ; params.height = 200 ; params.gravity = ( android.view.Gravity.BOTTOM ) | ( android.view.Gravity.RIGHT ) ; } ) ; }

Target:
private void testExplicitSize ( ) { doLayoutParamTest ( ( android.view.WindowManager.LayoutParams params ) -> { params.width = ( 200 - ( mOutsets.left ) ) - ( mOutsets.right ) ; params.height = ( 200 - ( mOutsets.bottom ) ) - ( mOutsets.top ) ; } ) ; }
Source:
protected java.io.File getResultFile ( java.io.File reportDir ) throws java.io.IOException { return new java.io.File ( reportDir , ( ( "TEST-" + ( mDeviceName ) ) + ".xml" ) ) ; }

Target:
protected java.io.File getResultFile ( java.io.File reportDir ) throws java.io.IOException { return new java.io.File ( reportDir , ( ( ( ( ( ( "TEST-" + ( mDeviceName ) ) + "-" ) + ( mProjectName ) ) + "-" ) + ( mFlavorName ) ) + ".xml" ) ) ; }
Source:
public int checkPermission ( java.lang.String permission , int pid , int uid ) { if ( permission == null ) { return android.content.pm.PackageManager.PERMISSION_DENIED ; } return checkComponentPermission ( permission , pid , android.os.UserId.getAppId ( uid ) , ( - 1 ) , true ) ; }

Target:
public int checkPermission ( java.lang.String permission , int pid , int uid ) { if ( permission == null ) { return android.content.pm.PackageManager.PERMISSION_DENIED ; } return checkComponentPermission ( permission , pid , android.os.UserHandle.getAppId ( uid ) , ( - 1 ) , true ) ; }
Source:
public static void computeTan ( android.renderscript.cts.TestTan.ArgumentsFloatFloat args ) { args.ulf = 5 ; args.ulfRelaxed = 128 ; args.out = ( ( float ) ( java.lang.StrictMath.tan ( args.in ) ) ) ; }

Target:
public static void computeConvert ( android.renderscript.cts.TestConvert.ArgumentsIntInt args ) { args.out = android.renderscript.cts.CoreMathVerifier.convertIntToInt ( args.inV ) ; }
Source:
public void doesNotContainClass ( java.lang.String className ) throws com.android.ide.common.process.ProcessException , java.io.IOException { java.io.File apk = getSubject ( ) ; if ( com.android.build.gradle.integration.common.utils.ApkHelper.checkForClass ( apk , className ) ) { failWithRawMessage ( "'%s' unexpectedly contain '%s'" , apk.getName ( ) , className ) ; } }

Target:
public void doesNotContainClass ( java.lang.String className ) throws com.android.ide.common.process.ProcessException , java.io.IOException { if ( checkForClass ( className ) ) { failWithRawMessage ( "'%s' unexpectedly contain '%s'" , getDisplaySubject ( ) , className ) ; } }
Source:
public boolean responderReportNfcHandover ( java.lang.String requestMessage ) { return doBooleanCommand ( ( ( "NFC_REPORT_HANDOVER RESP P2P " + requestMessage ) + " 00" ) ) ; }

Target:
public boolean responderReportNfcHandover ( java.lang.String requestMessage ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.responderReportNfcHandover ( requestMessage ) ; } else { return doBooleanCommand ( ( ( "NFC_REPORT_HANDOVER RESP P2P " + requestMessage ) + " 00" ) ) ; } }
Source:
public int hashCode ( ) { return bits.hashCode ( ) ; }

Target:
public int hashCode ( ) { return com.google.common.base.Objects.hashCode ( numHashFunctions , funnel , strategy , bits ) ; }
Source:
public java.util.List < com.google.gct.testing.GoogleCloudTestingDimension > getDimensions ( ) { return com.google.common.collect.ImmutableList.of ( deviceDimension , apiDimension , languageDimension , orientationDimension ) ; }

Target:
public java.util.List < com.google.gct.testing.CloudConfigurationDimension > getDimensions ( ) { return com.google.common.collect.ImmutableList.of ( deviceDimension , apiDimension , languageDimension , orientationDimension ) ; }
Source:
public static final int toCodePoint ( char high , char low ) { return android.icu.impl.UCharacterProperty.getRawSupplementary ( high , low ) ; }

Target:
public static final int toCodePoint ( char high , char low ) { return java.lang.Character.toCodePoint ( high , low ) ; }
Source:
public void onBootPhase ( int phase ) { if ( phase == ( PHASE_THIRD_PARTY_APPS_CAN_START ) ) { mImpl.setSafeMode ( isSafeMode ( ) ) ; } }

Target:
public void onBootPhase ( int phase ) { if ( phase == ( PHASE_ACTIVITY_MANAGER_READY ) ) { mImpl.setSafeMode ( isSafeMode ( ) ) ; } }
Source:
private void applyLidSwitchState ( ) { if ( ( ( mLidState ) == ( android.view.WindowManagerPolicy.WindowManagerFuncs.LID_CLOSED ) ) && ( mLidControlsSleep ) ) { mPowerManager.goToSleep ( android.os.SystemClock.uptimeMillis ( ) ) ; } }

Target:
private void applyLidSwitchState ( ) { if ( ( ( mLidState ) == ( android.view.WindowManagerPolicy.WindowManagerFuncs.LID_CLOSED ) ) && ( mLidControlsSleep ) ) { mPowerManager.goToSleep ( android.os.SystemClock.uptimeMillis ( ) , PowerManager.GO_TO_SLEEP_REASON_LID_SWITCH , PowerManager.GO_TO_SLEEP_FLAG_NO_DOZE ) ; } synchronized ( mLock ) { updateWakeGestureListenerLp ( ) ; } }
Source:
public void setToEmpty ( ) { bytes = null ; offset = length = 0 ; s = null ; }

Target:
public android.icu.impl.UResource.Key setToEmpty ( ) { bytes = null ; offset = length = 0 ; s = "" ; return this ; }
Source:
public void generateBuildConfig ( @ com.android.annotations.NonNull java.lang.String packageName , boolean debuggable , @ com.android.annotations.NonNull java.util.List < java.lang.String > javaLines , @ com.android.annotations.NonNull java.lang.String sourceOutputDir ) throws java.io.IOException { com.android.builder.internal.BuildConfigGenerator generator = new com.android.builder.internal.BuildConfigGenerator ( sourceOutputDir , packageName , debuggable ) ; generator.generate ( javaLines ) ; }

Target:
public static com.android.builder.model.ClassField createClassField ( @ com.android.annotations.NonNull java.lang.String type , @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull java.lang.String value ) { return new com.android.builder.internal.ClassFieldImpl ( type , name , value ) ; }
Source:
public com.android.jack.tools.merger.JackMerger getNewJackMerger ( int firstTypeIndex ) { return new com.android.jack.tools.merger.JackMerger ( createDexFile ( ) , com.android.sched.util.config.ThreadConfig.get ( Options.BEST_MERGING_ACCURACY ) . booleanValue ( ) ) ; }

Target:
protected com.android.jack.tools.merger.JackMerger getNewJackMerger ( int firstTypeIndex ) { return new com.android.jack.tools.merger.JackMerger ( createDexFile ( ) , com.android.jack.tools.merger.ConstantManager.getDefaultInstance ( com.android.sched.util.config.ThreadConfig.get ( Options.BEST_MERGING_ACCURACY ) . booleanValue ( ) ) ) ; }
Source:
public void check ( org.xmlpull.v1.XmlPullParser parser ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { android.os.PersistableBundle b = com.android.carrierconfig.DefaultCarrierConfigService.readConfigFromXml ( parser , new android.service.carrier.CarrierIdentifier ( "001" , "001" , "Test" , "" , "" , "" ) ) ; assertNotNull ( "got null bundle" , b ) ; }

Target:
public void check ( org.xmlpull.v1.XmlPullParser parser ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { android.os.PersistableBundle b = com.android.carrierconfig.DefaultCarrierConfigService.readConfigFromXml ( parser , new android.service.carrier.CarrierIdentifier ( "001" , "001" , "Test" , "001001123456789" , "" , "" ) ) ; assertNotNull ( "got null bundle" , b ) ; }
Source:
synchronized java.lang.String [ ] [ ] internalZoneStrings ( ) { if ( ( zoneStrings ) == null ) { zoneStrings = libcore.icu.TimeZones.getZoneStrings ( locale ) ; } return zoneStrings ; }

Target:
synchronized java.lang.String [ ] [ ] internalZoneStrings ( ) { if ( ( zoneStrings ) == null ) { zoneStrings = libcore.icu.TimeZoneNames.getZoneStrings ( locale ) ; } return zoneStrings ; }
Source:
public void core ( ) throws java.lang.Exception { java.io.File coreDex = com.android.jack.TestTools.createTempFile ( "core" , ".dex" ) ; com.android.jack.TestTools.compileJackToDex ( new com.android.jack.Options ( ) , com.android.jack.ToolchainTest.corePath , coreDex , false ) ; }

Target:
public void core ( ) throws java.lang.Exception { java.io.File coreOutFolder = com.android.jack.TestTools.createTempDir ( "core" , "dex" ) ; com.android.jack.TestTools.compileJackToDex ( new com.android.jack.Options ( ) , com.android.jack.ToolchainTest.corePath , coreOutFolder , false ) ; }
Source:
void addElapsedTime ( long elapsedTime ) { mElapsedTime += elapsedTime ; }

Target:
public void testRunStopped ( long elapsedTime ) { mElapsedTime += elapsedTime ; mIsRunComplete = true ; }
Source:
public long getDevPersistBytes ( long def ) { return getSecureLong ( android.provider.Settings.Secure.NETSTATS_DEV_PERSIST_BYTES , def ) ; }

Target:
private long getGlobalLong ( java.lang.String name , long def ) { return Settings.Global.getLong ( mResolver , name , def ) ; }
Source:
public void onResume ( ) { super . onResume ( ) ; if ( ! ( mUnavailable ) ) { initPreferences ( ) ; } }

Target:
public void onStop ( ) { super . onStop ( ) ; if ( ! ( mUnavailable ) ) { getActivity ( ) . unregisterReceiver ( mReceiver ) ; } }
Source:
void createNewUserLILPw ( int userHandle ) { if ( ( mInstaller ) != null ) { mInstaller.createUserConfig ( userHandle ) ; mSettings.createNewUserLILPw ( this , mInstaller , userHandle ) ; applyFactoryDefaultBrowserLPw ( userHandle ) ; primeDomainVerificationsLPw ( userHandle ) ; } }

Target:
public void onShellCommand ( java.io.FileDescriptor in , java.io.FileDescriptor out , java.io.FileDescriptor err , java.lang.String [ ] args , android.os.ResultReceiver resultReceiver ) { new com.android.server.pm.PackageManagerShellCommand ( this ) . exec ( this , in , out , err , args , resultReceiver ) ; }
Source:
public static int getCallbackAction ( java.lang.String number , int features , java.lang.String phoneAccountComponentName , android.content.Context context ) { return com.android.dialer.calllogutils.CallbackActionHelper.getCallbackAction ( number , features , com.android.dialer.calllogutils.CallbackActionHelper.isLightbringerCall ( phoneAccountComponentName , context ) ) ; }

Target:
public static int getCallbackAction ( java.lang.String number , int features , java.lang.String phoneAccountComponentName , android.content.Context context ) { return com.android.dialer.calllogutils.CallbackActionHelper.getCallbackAction ( number , features , com.android.dialer.calllogutils.CallbackActionHelper.isDuoCall ( phoneAccountComponentName , context ) ) ; }
Source:
private java.util.Map < java.lang.String , com.android.ide.eclipse.adt.internal.resources.DeclareStyleableInfo > collectManifestDefinitions ( com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser attrsXmlParser ) { return attrsXmlParser.getDeclareStyleableList ( ) ; }

Target:
private java.util.Map < java.lang.String , com.android.ide.common.resources.platform.DeclareStyleableInfo > collectManifestDefinitions ( com.android.ide.common.resources.platform.AttrsXmlParser attrsXmlParser ) { return attrsXmlParser.getDeclareStyleableList ( ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent arg0 ) { loadSkin ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent arg0 ) { onBrowseSdCard ( ) ; validatePage ( ) ; }
Source:
public void test_F32_3_SCALE20_05_inSqure ( ) { testReszie ( inX , inX , Element.DataType.FLOAT_32 , 3 , 2.0F , 0.5F ) ; }

Target:
public void test_F32_3_SCALE20_05_inSqure ( ) { testResize ( inX , inX , Element.DataType.FLOAT_32 , 3 , 2.0F , 0.5F ) ; }
Source:
public void testBasicTrace ( ) throws java.io.IOException { java.lang.String expected = " -> AsyncTask #1.: -> android/os/Debug.startMethodTracing: (Ljava/lang/String;)V -> android/os/Debug.startMethodTracing: (Ljava/lang/String;II)V -> dalvik/system/VMDebug.startMethodTracing: (Ljava/lang/String;II)V\n" + ( " -> com/test/android/traceview/Basic.foo: ()V -> com/test/android/traceview/Basic.bar: ()I\n" + " -> android/os/Debug.stopMethodTracing: ()V -> dalvik/system/VMDebug.stopMethodTracing: ()V" ) ; testTrace ( "/basic.trace" , "AsyncTask #1" , expected ) ; }

Target:
public void testBasicTrace ( ) throws java.io.IOException { java.lang.String expected = " -> AsyncTask #1.: -> android/os/Debug.startMethodTracing: (Ljava/lang/String;)V -> android/os/Debug.startMethodTracing: (Ljava/lang/String;II)V -> dalvik/system/VMDebug.startMethodTracing: (Ljava/lang/String;II)V\n" + ( " -> com/test/android/traceview/Basic.foo: ()V -> com/test/android/traceview/Basic.bar: ()I\n" + " -> android/os/Debug.stopMethodTracing: ()V -> dalvik/system/VMDebug.stopMethodTracing: ()V" ) ; testTrace ( "/basic.trace" , "AsyncTask #1" , expected ) ; testTrace ( "/basic-api10.trace" , "AsyncTask #1" , expected ) ; }
Source:
void notifyStatusChanged ( ) ;

Target:
void notifyStateChanged ( ) ;