auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.common.base.CharMatcher and ( com.google.common.base.CharMatcher other ) { return other.matches ( match ) ? this : com.google.common.base.CharMatcher.NONE ; }

Target:
public com.google.common.base.CharMatcher or ( com.google.common.base.CharMatcher other ) { return other.matches ( match ) ? com.google.common.base.CharMatcher.ANY : this ; }
Source:
public static com.android.builder.profile.Recorder get ( ) { return com.android.builder.profile.ThreadRecorder.recorder.get ( ) ; }

Target:
public static com.android.builder.profile.Recorder get ( ) { return com.android.builder.profile.ProcessRecorderFactory.isEnabled ( ) ? com.android.builder.profile.ThreadRecorder.recorder : com.android.builder.profile.ThreadRecorder.dummyRecorder ; }
Source:
public void tearDown ( ) { mA2dpService.stop ( ) ; mA2dpService.cleanup ( ) ; mA2dpService = null ; mTargetContext.unregisterReceiver ( mConnectionStateChangedReceiver ) ; mConnectionStateChangedQueue.clear ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { stopService ( ) ; mTargetContext.unregisterReceiver ( mConnectionStateChangedReceiver ) ; mConnectionStateChangedQueue.clear ( ) ; }
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > not ( org.hamcrest.org.hamcrest.Matcher < T > matcher ) { return org.hamcrest.core.IsNot.not ( matcher ) ; }

Target:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > not ( org.hamcrest.org.hamcrest.Matcher < T > matcher ) { return org.hamcrest.core.IsNot.< org.hamcrest.T > not ( matcher ) ; }
Source:
private boolean satisfiedBySpecifier ( android.net.NetworkCapabilities nc ) { return ( ( android.text.TextUtils.isEmpty ( mNetworkSpecifier ) ) || ( mNetworkSpecifier.equals ( nc.mNetworkSpecifier ) ) ) || ( android.net.NetworkCapabilities.MATCH_ALL_REQUESTS_NETWORK_SPECIFIER.equals ( nc.mNetworkSpecifier ) ) ; }

Target:
private void combineSpecifiers ( android.net.NetworkCapabilities nc ) { if ( ( ( mNetworkSpecifier ) != null ) && ( ! ( mNetworkSpecifier.equals ( nc.mNetworkSpecifier ) ) ) ) { throw new java.lang.IllegalStateException ( "Can't combine two networkSpecifiers" ) ; } setNetworkSpecifier ( nc.mNetworkSpecifier ) ; }
Source:
boolean matches ( final java.lang.String name ) { return ( includesMatcher.matches ( name ) ) && ( ! ( excludesMatcher.matches ( name ) ) ) ; }

Target:
boolean matches ( final java.lang.String name ) { return ( includesMatcher.apply ( name ) ) && ( ! ( excludesMatcher.apply ( name ) ) ) ; }
Source:
public abstract void libToExe ( @ javax.annotation.Nonnull java.io.File in , @ javax.annotation.Nonnull java.io.File out , boolean zipFile ) throws java.lang.Exception ;

Target:
public abstract void srcToLib ( @ javax.annotation.Nonnull java.io.File out , boolean zipFiles , @ javax.annotation.Nonnull java.io.File ... sources ) throws java.lang.Exception ;
Source:
protected abstract void printFilteredProblem ( @ javax.annotation.Nonnull com.android.jack.reporting.Reportable.ProblemLevel problemLevel , @ javax.annotation.Nonnull java.lang.String message , @ javax.annotation.CheckForNull java.lang.String fileName , int startLine , int endLine , int startColumn , int endColumn ) ;

Target:
protected abstract void printFilteredProblem ( @ javax.annotation.Nonnull com.android.jack.reporting.Reportable.ProblemLevel problemLevel , @ javax.annotation.Nonnull java.lang.String message , @ javax.annotation.Nonnull com.android.jack.ir.sourceinfo.SourceInfo sourceInfo ) ;
Source:
public final int readInt ( ) { return android.os.Parcel.nativeReadInt ( mNativePtr ) ; }

Target:
public final java.io.FileDescriptor readRawFileDescriptor ( ) { return android.os.Parcel.nativeReadFileDescriptor ( mNativePtr ) ; }
Source:
public void testSwitchTimezone0 ( ) throws java.lang.Exception { final java.lang.String timeZone = "America/Los_Angeles" ; android.text.format.Time t = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; t.parse ( "20061005T120000" ) ; t.switchTimezone ( timeZone ) ; assertEquals ( timeZone , t.timezone ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { java.util.Locale.setDefault ( originalLocale ) ; super . tearDown ( ) ; }
Source:
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 ) ; }

Target:
java.lang.String formatNsnUsingPattern ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.nano.Phonemetadata.NumberFormat formattingPattern , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat numberFormat ) { return formatNsnUsingPattern ( nationalNumber , formattingPattern , numberFormat , null ) ; }
Source:
public void visitRuntimeInvisibleAnnotationsAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.Field field , proguard.classfile.attribute.visitor.RuntimeInvisibleAnnotationsAttribute runtimeInvisibleAnnotationsAttribute ) { if ( ( runtimeInvisibleAnnotationsAttribute.u2annotationsCount ) > 0 ) { runtimeInvisibleAnnotationsAttribute.accept ( clazz , field , attributeVisitor ) ; } }

Target:
public void visitRuntimeInvisibleAnnotationsAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.Method method , proguard.classfile.attribute.visitor.RuntimeInvisibleAnnotationsAttribute runtimeInvisibleAnnotationsAttribute ) { if ( ( runtimeInvisibleAnnotationsAttribute.u2annotationsCount ) > 0 ) { attributeVisitor.visitRuntimeInvisibleAnnotationsAttribute ( clazz , method , runtimeInvisibleAnnotationsAttribute ) ; } }
Source:
public void turnOnIms ( int sessionId ) throws android.os.RemoteException { synchronized ( mLock ) { checkBinderConnection ( ) ; getServiceInterface ( mBinder ) . turnOnIms ( mSlotId , mSupportedFeature , sessionId ) ; } }

Target:
public void turnOffIms ( ) throws android.os.RemoteException { synchronized ( mLock ) { checkBinderConnection ( ) ; getServiceInterface ( mBinder ) . turnOffIms ( mSlotId , mSupportedFeature ) ; } }
Source:
public void onSessionConfigSuccess ( ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mEventFacade.postEvent ( "WifiNanSessionOnSessionConfigSuccess" , mResults ) ; }

Target:
public void onSessionConfigUpdated ( ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mEventFacade.postEvent ( "WifiNanSessionOnSessionConfigUpdated" , mResults ) ; }
Source:
static short $opt$IntToShort ( int a ) { return ( ( short ) ( a ) ) ; }

Target:
static double $opt$LongToDouble ( long a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( double ) ( a ) ) ; }
Source:
private static java.lang.String getFormattedNumber ( java.lang.String number ) { return com.android.contacts.common.compat.PhoneNumberUtilsCompat.createTtsSpannable ( number ) . toString ( ) ; }

Target:
private static java.lang.String getFormattedNumber ( java.lang.String number , android.content.Context context ) { java.lang.String formattedNumber = android.telephony.PhoneNumberUtils.formatNumber ( number , com.android.dialer.location.GeoUtil.getCurrentCountryIso ( context ) ) ; return com.android.contacts.common.compat.PhoneNumberUtilsCompat.createTtsSpannable ( formattedNumber ) . toString ( ) ; }
Source:
public void testAssertNoEllipsizedText ( ) { try { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.isRoot ( ) ) . check ( android.support.test.espresso.assertion.LayoutAssertions.noEllipsizedText ( ) ) ; } catch ( junit.framework.AssertionFailedError expected ) { return ; } fail ( "Ellipsized text is not detected" ) ; }

Target:
public void assertNoEllipsizedText ( ) { expectedException.expect ( junit.framework.AssertionFailedError.class ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.isRoot ( ) ) . check ( android.support.test.espresso.assertion.LayoutAssertions.noEllipsizedText ( ) ) ; }
Source:
protected void handle ( long taskId , @ javax.annotation.Nonnull org.simpleframework.http.Request request , @ javax.annotation.Nonnull org.simpleframework.http.Response response ) { response.setStatus ( Status.NOT_IMPLEMENTED ) ; }

Target:
protected void handle ( long taskId , @ javax.annotation.Nonnull org.simpleframework.http.Request request , @ javax.annotation.Nonnull org.simpleframework.http.Response response ) { response.setContentLength ( 0 ) ; response.setStatus ( Status.NOT_IMPLEMENTED ) ; }
Source:
public static int getServiceIdentifierFromParcelUuid ( android.os.ParcelUuid parcelUuid ) { java.util.UUID uuid = parcelUuid.getUuid ( ) ; long value = ( ( uuid.getMostSignificantBits ( ) ) & 281470681743360L ) > > > 32 ; return ( ( int ) ( value ) ) ; }

Target:
public static int getServiceIdentifierFromParcelUuid ( android.os.ParcelUuid parcelUuid ) { java.util.UUID uuid = parcelUuid.getUuid ( ) ; long value = ( ( uuid.getMostSignificantBits ( ) ) & - 4294967296L ) > > > 32 ; return ( ( int ) ( value ) ) ; }
Source:
public static com.android.server.wifi.WifiConfigStoreNew.StoreFile createUserFile ( int userId ) { return com.android.server.wifi.WifiConfigStoreNew.createFile ( android.os.Environment.getDataMiscCeDirectory ( userId ) ) ; }

Target:
public static com.android.server.wifi.WifiConfigStore.StoreFile createUserFile ( int userId ) { return com.android.server.wifi.WifiConfigStore.createFile ( android.os.Environment.getDataMiscCeDirectory ( userId ) ) ; }
Source:
private static native long nativeSumNativeBinaries ( java.lang.String file , java.lang.String cpuAbi , java.lang.String cpuAbi2 ) ;

Target:
private static native long nativeSumNativeBinaries ( long handle , java.lang.String cpuAbi ) ;
Source:
public void test_withYear_int_normal ( ) { java.time.LocalDate t = TEST_2007_07_15.withYear ( 2008 ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2008 , 7 , 15 ) ) ; }

Target:
public void test_withYear_int_normal ( ) { java.time.LocalDate t = tck.java.time.TCKLocalDate.TEST_2007_07_15.withYear ( 2008 ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2008 , 7 , 15 ) ) ; }
Source:
static void hotMethod ( ) { for ( int i = 0 ; i < ( Foo.array.length ) ; ++ i ) { Foo.array [ i ] = Foo.array ; } }

Target:
static void $noinline$hotMethod ( ) { for ( int i = 0 ; i < ( Foo.array.length ) ; ++ i ) { Foo.array [ i ] = Foo.array ; } }
Source:
public void apply ( org.eclipse.jface.text.IDocument document ) { org.eclipse.swt.widgets.Shell shell = com.android.ide.eclipse.adt.AdtPlugin.getDisplay ( ) . getActiveShell ( ) ; com.android.ide.eclipse.adt.internal.build.ConvertSwitchDialog dialog = new com.android.ide.eclipse.adt.internal.build.ConvertSwitchDialog ( shell , mExpression ) ; dialog.open ( ) ; }

Target:
public void apply ( org.eclipse.jface.text.IDocument document ) { org.eclipse.swt.widgets.Shell shell = com.android.ide.eclipse.adt.AdtPlugin.getShell ( ) ; com.android.ide.eclipse.adt.internal.build.ConvertSwitchDialog dialog = new com.android.ide.eclipse.adt.internal.build.ConvertSwitchDialog ( shell , mExpression ) ; dialog.open ( ) ; }
Source:
private void writePath ( java.io.FileOutputStream fos , java.lang.String path ) throws java.io.IOException { byte [ ] pathBytes = path.getBytes ( com.google.common.base.Charsets.UTF_8 ) ; writeInt ( fos , pathBytes.length ) ; fos.write ( pathBytes ) ; }

Target:
private static void writePath ( @ com.android.annotations.NonNull java.io.FileOutputStream fos , java.lang.String path ) throws java.io.IOException { byte [ ] pathBytes = path.getBytes ( com.google.common.base.Charsets.UTF_8 ) ; com.android.builder.internal.incremental.DependencyDataStore.writeInt ( fos , pathBytes.length ) ; fos.write ( pathBytes ) ; }
Source:
public boolean matches ( java.net.InetAddress destination ) { if ( destination == null ) return false ; java.net.InetAddress dstNet = android.net.NetworkUtils.getNetworkPart ( destination , mDestination.getPrefixLength ( ) ) ; return mDestination.getAddress ( ) . equals ( dstNet ) ; }

Target:
public boolean matches ( java.net.InetAddress destination ) { return mDestination.contains ( destination ) ; }
Source:
public boolean ignoreItemInMerge ( com.android.ide.common.res2.ResourceItem item ) { return false ; }

Target:
public boolean ignoreItemInMerge ( com.android.ide.common.res2.ResourceItem item ) { return item.getIgnoredFromDiskMerge ( ) ; }
Source:
public void onValueChange ( android.widget.NumberPicker picker , int oldVal , int newVal ) { updateInputState ( ) ; picker.requestFocus ( ) ; mIsAm = ! ( mIsAm ) ; updateAmPmControl ( ) ; }

Target:
public void onValueChange ( android.widget.NumberPicker picker , int oldVal , int newVal ) { updateInputState ( ) ; picker.requestFocus ( ) ; mIsAm = ! ( mIsAm ) ; updateAmPmControl ( ) ; onTimeChanged ( ) ; }
Source:
public byte [ ] get ( java.lang.String key ) { return get ( android.security.KeyStore.getBytes ( key ) ) ; }

Target:
public byte [ ] get ( java.lang.String key ) { return get ( android.security.KeyStore.getKeyBytes ( key ) ) ; }
Source:
private java.lang.String getTemplate ( junitparams.naming.TestCaseName testCaseName ) { if ( testCaseName != null ) { return testCaseName.value ( ) ; } return junitparams.naming.MacroSubstitutionNamingStrategy.DEFAULT_TEMPLATE ; }

Target:
private java.lang.String getTemplate ( junitparams.naming.TestCaseName testCaseName ) { if ( testCaseName != null ) { throw new java.lang.IllegalStateException ( "@TestCaseName not currently supported as it breaks running tests in CTS" ) ; } return junitparams.naming.MacroSubstitutionNamingStrategy.DEFAULT_TEMPLATE ; }
Source:
public void testIsSharedCost ( ) { com.google.i18n.phonenumbers.Phonenumber.PhoneNumber gbNumber = new com.google.i18n.phonenumbers.Phonenumber.PhoneNumber ( ) ; gbNumber.setCountryCode ( 44 ) . setNationalNumber ( 8431231234L ) ; assertEquals ( PhoneNumberUtil.PhoneNumberType.SHARED_COST , phoneUtil.getNumberType ( gbNumber ) ) ; }

Target:
public void testIsSharedCost ( ) { com.google.i18n.phonenumbers.Phonenumber.PhoneNumber gbNumber = new com.google.i18n.phonenumbers.Phonenumber.PhoneNumber ( ) ; gbNumber.setCountryCode ( 44 ) . setNationalNumber ( 8431231234L ) ; assertEquals ( PhoneNumberType.SHARED_COST , phoneUtil.getNumberType ( gbNumber ) ) ; }
Source:
public void testMakeTimeZone_notFound ( ) throws java.lang.Exception { libcore.util.ZoneInfoDB.TzData data = ZoneInfoDB.TzData.loadTzData ( libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT ) ; assertNull ( data.makeTimeZone ( "THIS_TZ_DOES_NOT_EXIST" ) ) ; assertFalse ( data.hasTimeZone ( "THIS_TZ_DOES_NOT_EXIST" ) ) ; }

Target:
public void testMakeTimeZone_notFound ( ) throws java.lang.Exception { libcore.util.ZoneInfoDB.TzData data = ZoneInfoDB.TzData.loadTzData ( libcore.util.ZoneInfoDBTest.SYSTEM_TZDATA_FILE ) ; assertNull ( data.makeTimeZone ( "THIS_TZ_DOES_NOT_EXIST" ) ) ; assertFalse ( data.hasTimeZone ( "THIS_TZ_DOES_NOT_EXIST" ) ) ; }
Source:
public static native int SSL_write_BIO ( long sslNativePointer , byte [ ] source , int length , long sinkBioRef , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks shc ) throws java.io.IOException ;

Target:
public static native int ENGINE_SSL_read_heap ( long sslNativePointer , byte [ ] destJava , int destOffset , int destLength , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks shc ) throws java.io.IOException ;
Source:
public static native void EVP_DigestUpdate ( int ctx , byte [ ] buffer , int offset , int length ) ;

Target:
public static native void EVP_VerifyUpdate ( long ctx , byte [ ] buffer , int offset , int length ) ;
Source:
public int hashCode ( ) { return ( mName ) != null ? mName.hashCode ( ) : 0 ; }

Target:
public int hashCode ( ) { return com.google.common.base.Objects.hashCode ( mName , mProjectPath ) ; }
Source:
public int inverseTranslate ( int screenX ) { return ( ( int ) ( ( ( screenX - ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas.ScaleInfo.IMAGE_MARGIN ) ) + ( mTranslate ) ) / ( mScale ) ) ) ; }

Target:
public int translate ( int canvasX ) { return ( ( IMAGE_MARGIN ) - ( mTranslate ) ) + ( ( int ) ( ( mScale ) * canvasX ) ) ; }
Source:
protected void readResponse ( java.io.InputStream stream ) throws java.io.IOException { android.util.Log.v ( android.bluetooth.client.pbap.BluetoothPbapRequestPullVcardEntry.TAG , "readResponse" ) ; mResponse = new android.bluetooth.client.pbap.BluetoothPbapVcardList ( stream , mFormat ) ; }

Target:
protected void readResponse ( java.io.InputStream stream ) throws java.io.IOException { android.util.Log.v ( android.bluetooth.client.pbap.BluetoothPbapRequestPullVcardEntry.TAG , "readResponse" ) ; mResponse = new android.bluetooth.client.pbap.BluetoothPbapVcardList ( mAccount , stream , mFormat ) ; }
Source:
public abstract boolean exists ( @ com.android.annotations.NonNull java.io.File file ) ;

Target:
boolean isDirectory ( @ com.android.annotations.NonNull java.io.File file ) ;
Source:
public void test_F32_1_SCALE05_05_inRectangle ( ) { testReszie ( inX , inY , Element.DataType.FLOAT_32 , 1 , 0.5F , 0.5F ) ; }

Target:
public void test_F32_1_SCALE05_05_inRectangle ( ) { testResize ( inX , inY , Element.DataType.FLOAT_32 , 1 , 0.5F , 0.5F ) ; }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotation annotation ) { }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotation annotation ) { endVisit ( ( ( com.android.jack.ir.ast.JExpression ) ( annotation ) ) ) ; }
Source:
public void onSeriesRecordingChanged ( com.android.tv.dvr.SeriesRecording ... seriesRecordings ) { for ( com.android.tv.dvr.SeriesRecording seriesRecording : seriesRecordings ) { if ( ( seriesRecording.getId ( ) ) == ( mSeriesRecordingId ) ) { mSeriesRecording = seriesRecording ; updatePriorityGuidedAction ( true ) ; return ; } } }

Target:
public void onSeriesRecordingChanged ( com.android.tv.dvr.data.SeriesRecording ... seriesRecordings ) { for ( com.android.tv.dvr.data.SeriesRecording seriesRecording : seriesRecordings ) { if ( ( seriesRecording.getId ( ) ) == ( mSeriesRecordingId ) ) { mSeriesRecording = seriesRecording ; updatePriorityGuidedAction ( ) ; return ; } } }
Source:
public static void noteStackedIface ( java.lang.String stackedIface , java.lang.String baseIface ) { synchronized ( com.android.internal.net.NetworkStatsFactory.sStackedIfaces ) { if ( baseIface != null ) { com.android.internal.net.NetworkStatsFactory.sStackedIfaces.put ( stackedIface , baseIface ) ; } else { com.android.internal.net.NetworkStatsFactory.sStackedIfaces.remove ( stackedIface ) ; } } }

Target:
public static void clearStackedIfaces ( ) { com.android.internal.net.NetworkStatsFactory.sStackedIfaces.clear ( ) ; }
Source:
public void getAllTableItemsWithFallback ( java.lang.String path , com.ibm.icu.impl.ICUResource.TableSink sink ) throws java.util.MissingResourceException { getAllContainerItemsWithFallback ( path , null , sink ) ; }

Target:
public void getAllTableItemsWithFallback ( java.lang.String path , com.ibm.icu.impl.UResource.TableSink sink ) throws java.util.MissingResourceException { getAllContainerItemsWithFallback ( path , null , sink ) ; }
Source:
public static void computeCospi ( android.renderscript.cts.TestCospi.ArgumentsFloatFloat args ) { args.ulf = 5 ; args.ulfRelaxed = 128 ; args.out = ( ( float ) ( java.lang.StrictMath.cos ( ( ( args.in ) * ( ( float ) ( java.lang.StrictMath.PI ) ) ) ) ) ) ; }

Target:
public static void computeCospi ( android.renderscript.cts.TestCospi.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.cos ( ( ( args.in ) * ( ( float ) ( java.lang.Math.PI ) ) ) ) , 4 , 128 ) ; }
Source:
public java.lang.String getMagic ( ) { return com.android.dx.dex.DexFormat.apiToMagic ( targetApiLevel ) ; }

Target:
public java.lang.String getMagic ( ) { return com.android.dex.DexFormat.apiToMagic ( targetApiLevel ) ; }
Source:
native void rsnScriptForEachClipped ( long con , long id , int slot , long ain , long aout , int xstart , int xend , int ystart , int yend , int zstart , int zend ) ;

Target:
native void rsnScriptSetVarJ ( long con , long id , int slot , long val , boolean mUseInc ) ;
Source:
private com.android.internal.telephony.dataconnection.ApnContext addApnContext ( java.lang.String type ) { com.android.internal.telephony.dataconnection.ApnContext apnContext = new com.android.internal.telephony.dataconnection.ApnContext ( type , LOG_TAG ) ; apnContext.setDependencyMet ( false ) ; mApnContexts.put ( type , apnContext ) ; return apnContext ; }

Target:
private com.android.internal.telephony.dataconnection.ApnContext addApnContext ( java.lang.String type , android.net.NetworkConfig networkConfig ) { com.android.internal.telephony.dataconnection.ApnContext apnContext = new com.android.internal.telephony.dataconnection.ApnContext ( mPhone.getContext ( ) , type , LOG_TAG , networkConfig ) ; mApnContexts.put ( type , apnContext ) ; mPrioritySortedApnContexts.add ( apnContext ) ; return apnContext ; }
Source:
private static java.io.File [ ] listFilesNonNull ( @ com.android.annotations.NonNull java.io.File dir ) { if ( dir.isDirectory ( ) ) { java.io.File [ ] files = dir.listFiles ( ) ; if ( files != null ) { return files ; } } return com.android.sdklib.internal.repository.LocalSdkParser.EMPTY_FILE_LIST ; }

Target:
private static java.io.File [ ] listFilesNonNull ( @ com.android.annotations.NonNull java.io.File dir ) { if ( dir.isDirectory ( ) ) { java.io.File [ ] files = dir.listFiles ( ) ; if ( files != null ) { return files ; } } return com.android.sdklib.io.FileOp.EMPTY_FILE_ARRAY ; }
Source:
public java.io.File getManifestFile ( ) { return getManifest ( ) . getFile ( ) ; }

Target:
public java.io.File getManifestFile ( ) { return getManifest ( ) . getSrcFile ( ) ; }
Source:
public int hashCode ( ) { assert false : "hashCode not designed" ; return - 1 ; }

Target:
public int hashCode ( ) { return ( ( ( forwardsPartialTrie.hashCode ( ) ) * 39 ) + ( ( backwardsTrie.hashCode ( ) ) * 11 ) ) + ( delegate.hashCode ( ) ) ; }
Source:
public com.android.layoutlib.api.SceneResult render ( ) { return new com.android.layoutlib.api.SceneResult ( com.android.layoutlib.api.SceneResult.LayoutStatus.NOT_IMPLEMENTED ) ; }

Target:
public com.android.layoutlib.api.SceneResult render ( ) { return render ( SceneParams.DEFAULT_TIMEOUT ) ; }
Source:
public native byte getByte ( long address ) ;

Target:
public native float getFloat ( long address ) ;
Source:
public boolean isRecommended ( ) { return ( ( ( this ) != ( com.android.resources.Density.TV ) ) && ( ( this ) != ( com.android.resources.Density.DPI_400 ) ) ) && ( ( this ) != ( com.android.resources.Density.DPI_560 ) ) ; }

Target:
public boolean isRecommended ( ) { switch ( this ) { case TV : case DPI_280 : case DPI_400 : case DPI_560 : return false ; default : return true ; } }
Source:
public void setQuery ( java.lang.String query ) { this . query = query ; if ( searchCursorManager.setQuery ( query ) ) { notifyDataSetChanged ( ) ; } }

Target:
public void setQuery ( java.lang.String query , @ android.support.annotation.Nullable java.lang.String rawNumber ) { this . query = query ; this . rawNumber = rawNumber ; if ( searchCursorManager.setQuery ( query ) ) { notifyDataSetChanged ( ) ; } }
Source:
public long getInclusiveGlobalTime ( ) { return com.google.common.primitives.UnsignedInts.toLong ( ( ( mExitGlobalTime ) - ( mEntryGlobalTime ) ) ) ; }

Target:
public long getInclusiveTime ( com.android.tools.perflib.vmtrace.ClockType clockType ) { return clockType == ( ClockType.THREAD ) ? com.google.common.primitives.UnsignedInts.toLong ( ( ( mExitThreadTime ) - ( mEntryThreadTime ) ) ) : com.google.common.primitives.UnsignedInts.toLong ( ( ( mExitGlobalTime ) - ( mEntryGlobalTime ) ) ) ; }
Source:
public android.telephony.CellLocation getCellLocation ( ) { throw new java.lang.RuntimeException ( "not implemented" ) ; }

Target:
public android.telephony.CellLocation getCellLocation ( android.os.WorkSource workSource ) { throw new java.lang.RuntimeException ( "not implemented" ) ; }
Source:
private static int getSum ( int n ) { int k = 0 ; int sum = 0 ; for ( int i = 0 ; i < n ; i ++ ) { k ++ ; sum += k ; } return sum ; }

Target:
private static int getSumN ( int n ) { int k = 0 ; int sum = 0 ; for ( int i = 0 ; i < n ; i ++ ) { k ++ ; sum += k ; } return sum ; }
Source:
com.android.build.gradle.model.AndroidComponentModelSourceSet androidSources ( org.gradle.internal.service.ServiceRegistry serviceRegistry ) { com.android.build.gradle.model.def instantiator = serviceRegistry.get ( org.gradle.internal.reflect.Instantiator.class ) ; com.android.build.gradle.model.def sources = new com.android.build.gradle.model.AndroidComponentModelSourceSet ( instantiator ) ; return sources ; }

Target:
public com.android.build.gradle.model.AndroidComponentModelSourceSet androidSources ( org.gradle.internal.service.ServiceRegistry serviceRegistry ) { org.gradle.internal.reflect.Instantiator instantiator = serviceRegistry.get ( org.gradle.internal.reflect.Instantiator.class ) ; return new com.android.build.gradle.model.AndroidComponentModelSourceSet ( instantiator ) ; }
Source:
public void onClick ( android.view.View v ) { if ( ( v.getId ( ) ) == ( R.id.overflow ) ) { listener.onOverFlowMenuClicked ( speedDialUiItem ) ; } else { listener.onRowClicked ( speedDialUiItem.defaultChannel ( ) ) ; } }

Target:
public void onClick ( android.view.View v ) { if ( ( v.getId ( ) ) == ( R.id.overflow ) ) { listener.onOverFlowMenuClicked ( speedDialUiItem , getHeaderInfo ( ) ) ; } else { listener.onRowClicked ( speedDialUiItem.defaultChannel ( ) ) ; } }
Source:
public void run ( ) { throw new java.lang.ThreadDeath ( ) ; }

Target:
public void run ( ) { throw testException ; }
Source:
public java.lang.String [ ] getSkins ( ) { return null ; }

Target:
public java.io.File [ ] getSkins ( ) { return com.android.sdklib.io.FileOp.EMPTY_FILE_ARRAY ; }
Source:
public void testSplit ( ) throws java.lang.Exception { assertEquals ( ( "proguard.cfg:14: Warning: Local ProGuard configuration contains general " + ( ( ( "Android configuration: Inherit these settings instead? Modify " + "project.properties to define " ) + "proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard.cfg " ) + "and then keep only project-specific configuration here" ) ) , lintFiles ( "proguard.pro=>proguard.cfg" , "project.properties2=>project.properties" ) ) ; }

Target:
public void testSplit ( ) throws java.lang.Exception { assertEquals ( ( "proguard.cfg:14: Warning: Local ProGuard configuration contains general Android configuration: Inherit these settings instead? Modify project.properties to define proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard.cfg and then keep only project-specific configuration here [ProguardSplit]\n" + ( ( ( "-keep public class * extends android.app.Activity\n" + "^\n" ) + "0 errors, 1 warnings\n" ) + "" ) ) , lintFiles ( "proguard.pro=>proguard.cfg" , "project.properties2=>project.properties" ) ) ; }
Source:
public void test_oneJar_getResourceAsStream ( ) throws java.lang.Exception { dalvik.system.DexClassLoaderTest.test_getResourceAsStream ( dalvik.system.DexClassLoaderTest.Configuration.ONE_JAR ) ; }

Target:
public void test_twoJar_directGetResourceAsStream ( ) throws java.lang.Exception { java.lang.String result = createLoaderAndGetResource ( "test/Resource1.txt" , jar1 , jar2 ) ; assertEquals ( "Muffins are tasty!\n" , result ) ; }
Source:
public org.bouncycastle.pkcs.jcajce.JcePKCSPBEOutputEncryptorBuilder setProvider ( java.security.Provider provider ) { this . helper = new org.bouncycastle.jcajce.ProviderJcaJceHelper ( provider ) ; return this ; }

Target:
public org.bouncycastle.pkcs.jcajce.JcePKCSPBEOutputEncryptorBuilder setProvider ( java.security.Provider provider ) { this . helper = new org.bouncycastle.jcajce.util.ProviderJcaJceHelper ( provider ) ; return this ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; com.android.tools.lint.checks.BuiltinIssueRegistry.reset ( ) ; com.android.tools.lint.client.api.JavaVisitor.clearCrashCount ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; com.android.tools.lint.checks.BuiltinIssueRegistry.reset ( ) ; com.android.tools.lint.client.api.JavaVisitor.clearCrashCount ( ) ; com.android.tools.lint.client.api.JavaPsiVisitor.clearCrashCount ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; config = new com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration ( ) ; nmq = new com.android.ide.eclipse.adt.internal.resources.configurations.NavigationMethodQualifier ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; config = new com.android.ide.common.resources.configuration.FolderConfiguration ( ) ; nmq = new com.android.ide.common.resources.configuration.NavigationMethodQualifier ( ) ; }
Source:
public void setTag ( java.lang.Object tag ) { mTag = tag ; }

Target:
public com.android.volley.Request < ? > setTag ( java.lang.Object tag ) { mTag = tag ; return this ; }
Source:
public java.lang.annotation.Annotation [ ] getDeclaredAnnotations ( ) { return java.lang.Package.NO_ANNOTATIONS ; }

Target:
public java.lang.annotation.Annotation [ ] getDeclaredAnnotations ( ) { return getAnnotations ( ) ; }
Source:
public static double longToIntToDouble ( long value ) { return ( ( double ) ( ( int ) ( value ) ) ) ; }

Target:
public static double $noinline$longToIntToDouble ( long value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( double ) ( ( int ) ( value ) ) ) ; }
Source:
public com.android.builder.model.SigningConfig getSigningConfig ( ) { if ( ( mSigningConfigOverride ) != null ) { return mSigningConfigOverride ; } com.android.builder.model.SigningConfig signingConfig = mBuildType.getSigningConfig ( ) ; if ( signingConfig != null ) { return signingConfig ; } return mMergedFlavor.getSigningConfig ( ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.String > getManifestPlaceholders ( ) { java.util.Map < java.lang.String , java.lang.String > mergedFlavorsPlaceholders = mMergedFlavor.getManifestPlaceholders ( ) ; mergedFlavorsPlaceholders.putAll ( mBuildType.getManifestPlaceholders ( ) ) ; return mergedFlavorsPlaceholders ; }
Source:
public static void computeCross ( android.renderscript.cts.TestCross.ArgumentsFloatNFloatNFloatN args , android.renderscript.cts.Target t ) { t.setPrecision ( 1 , 4 , false ) ; android.renderscript.cts.CoreMathVerifier.cross ( args.inLhs , args.inRhs , args.out , t ) ; }

Target:
public static void computeCross ( android.renderscript.cts.TestCross.ArgumentsFloatNFloatNFloatN args , android.renderscript.cts.Target t ) { t.setPrecision ( 1 , 4 , false ) ; android.renderscript.cts.CoreMathVerifier.cross ( args.inLeftVector , args.inRightVector , args.out , t ) ; }
Source:
protected void enableStayAwakeSetting ( com.android.tradefed.device.ITestDevice device ) throws com.android.tradefed.device.DeviceNotAvailableException { java.lang.String shellCmd = java.lang.String.format ( "settings put global %s %d" , com.android.cts.tradefed.targetprep.HostPreconditionPreparer.STAY_ON_WHILE_PLUGGED_IN , com.android.cts.tradefed.targetprep.HostPreconditionPreparer.BATTERY_PLUGGED_USB ) ; device.executeShellCommand ( shellCmd ) ; }

Target:
protected void enableStayAwakeSetting ( com.android.tradefed.device.ITestDevice device ) throws com.android.tradefed.device.DeviceNotAvailableException { java.lang.String shellCmd = java.lang.String.format ( "settings put global %s %d" , com.android.cts.tradefed.targetprep.HostPreconditionPreparer.STAY_ON_WHILE_PLUGGED_IN , com.android.cts.tradefed.targetprep.HostPreconditionPreparer.BATTERY_PLUGGED_ANY ) ; device.executeShellCommand ( shellCmd ) ; }
Source:
public static com.google.common.collect.ImmutableList < com.android.dialer.precall.PreCallAction > provideActions ( ) { return com.google.common.collect.ImmutableList.of ( new com.android.dialer.precall.impl.PermissionCheckAction ( ) , new com.android.dialer.precall.impl.MalformedNumberRectifier ( com.google.common.collect.ImmutableList.of ( new com.android.dialer.precall.impl.UkRegionPrefixInInternationalFormatHandler ( ) ) ) , new com.android.dialer.precall.impl.CallingAccountSelector ( ) , new com.android.dialer.precall.impl.AssistedDialAction ( ) ) ; }

Target:
public static com.google.common.collect.ImmutableList < com.android.dialer.precall.PreCallAction > provideActions ( com.android.dialer.precall.impl.CallingAccountSelector callingAccountSelector ) { return com.google.common.collect.ImmutableList.of ( new com.android.dialer.precall.impl.PermissionCheckAction ( ) , new com.android.dialer.precall.impl.MalformedNumberRectifier ( com.google.common.collect.ImmutableList.of ( new com.android.dialer.precall.impl.UkRegionPrefixInInternationalFormatHandler ( ) ) ) , callingAccountSelector , new com.android.dialer.precall.impl.AssistedDialAction ( ) ) ; }
Source:
public void onInitiateDataPathResponseFail ( short transactionId , int reason ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_TYPE_RESPONSE ) ; msg.arg1 = com.android.server.wifi.nan.WifiNanStateManager.RESPONSE_TYPE_ON_INITIATE_DATA_PATH_FAIL ; msg.arg2 = transactionId ; msg.obj = reason ; mSm.sendMessage ( msg ) ; }

Target:
public void onInitiateDataPathResponseFail ( short transactionId , int reason ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_TYPE_RESPONSE ) ; msg.arg1 = com.android.server.wifi.aware.WifiAwareStateManager.RESPONSE_TYPE_ON_INITIATE_DATA_PATH_FAIL ; msg.arg2 = transactionId ; msg.obj = reason ; mSm.sendMessage ( msg ) ; }
Source:
public void setJarjarRulesFile ( @ javax.annotation.Nonnull java.io.File jarjarRulesFile ) { this . jarjarRulesFile = jarjarRulesFile ; }

Target:
public void setJarjarRulesFiles ( @ javax.annotation.Nonnull java.util.List < java.io.File > jarjarRulesFiles ) { this . jarjarRulesFiles = jarjarRulesFiles ; }
Source:
protected void accept ( java.net.SocketImpl s ) throws java.io.IOException { socketAccept ( s ) ; }

Target:
protected void accept ( java.net.SocketImpl s ) throws java.io.IOException { dalvik.system.BlockGuard.getThreadPolicy ( ) . onNetwork ( ) ; socketAccept ( s ) ; }
Source:
private boolean sendClipUpdate ( ) { return ( ( isHeadsetConnected ( ) ) && ( ( mHeadsetType ) == ( com.android.phone.BluetoothHandsfree.TYPE_HANDSFREE ) ) ) && ( mClip ) ; }

Target:
private boolean sendClipUpdate ( ) { return ( ( ( isHeadsetConnected ( ) ) && ( ( mHeadsetType ) == ( com.android.phone.BluetoothHandsfree.TYPE_HANDSFREE ) ) ) && ( mClip ) ) && ( mServiceConnectionEstablished ) ; }
Source:
android.telephony.CellLocation getCellLocation ( ) ;

Target:
android.telephony.CellLocation getCellLocation ( android.os.WorkSource workSource ) ;
Source:
public static long BoolCond_LongVarCst ( boolean cond , long x ) { return cond ? x : 1L ; }

Target:
public static long BoolCond_LongVarCst ( boolean cond , long x ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return cond ? x : 1L ; }
Source:
public void testStates ( ) throws java.lang.Exception { assertEquals ( ( "drawable/states.xml:3: Warning: This item is unreachable because a previous item (item #1) is a more general match than this one\n" + "=> drawable/states.xml:2: Earlier item which masks item" ) , lintProject ( "res/drawable/states.xml" ) ) ; }

Target:
public void testStates ( ) throws java.lang.Exception { assertEquals ( ( "res/drawable/states.xml:3: Warning: This item is unreachable because a previous item (item #1) is a more general match than this one [StateListReachable]\n" + ( ( ( ( " <item android:state_pressed=\"true\"\n" + " ^\n" ) + " res/drawable/states.xml:2: Earlier item which masks item\n" ) + "0 errors, 1 warnings\n" ) + "" ) ) , lintProject ( "res/drawable/states.xml" ) ) ; }
Source:
static void log ( java.lang.Throwable t ) { new java.lang.Exception ( "Error converting session" , t ) . printStackTrace ( ) ; }

Target:
static void log ( java.lang.Throwable t ) { java.lang.System.out.println ( ( "Error inflating SSL session: " + ( ( t.getMessage ( ) ) != null ? t.getMessage ( ) : t.getClass ( ) . getName ( ) ) ) ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { updateDeviceImage ( shell ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { updateDeviceImage ( shell ) ; for ( int i = 0 ; i < ( mRotateCount ) ; i ++ ) { mRawImage = mRawImage.getRotated ( ) ; } updateImageDisplay ( shell ) ; }
Source:
private static long curTime ( ) { return ( java.lang.System.currentTimeMillis ( ) ) / ( android.text.format.DateUtils.SECOND_IN_MILLIS ) ; }

Target:
private static long curTime ( ) { return ( android.os.SystemClock.elapsedRealtime ( ) ) / ( android.text.format.DateUtils.SECOND_IN_MILLIS ) ; }
Source:
public static void computeFmod ( android.renderscript.cts.TestFmod.ArgumentsFloatFloatFloat args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( float ) ( ( ( double ) ( args.inX ) ) % ( ( double ) ( args.inY ) ) ) ) ; }

Target:
public static void computeFmod ( android.renderscript.cts.TestFmod.ArgumentsFloatFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( ( ( args.inX ) % ( args.inY ) ) , 0 , 0 ) ; }
Source:
protected void handleNewUpstreamNetworkState ( android.net.NetworkState ns ) { mIPv6TetheringCoordinator.updateUpstreamNetworkState ( ns ) ; }

Target:
protected void handleNewUpstreamNetworkState ( android.net.NetworkState ns ) { mIPv6TetheringCoordinator.updateUpstreamNetworkState ( ns ) ; mOffloadController.setUpstreamLinkProperties ( ns.linkProperties ) ; }
Source:
void expectAvailableAndSuspendedCallbacks ( com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { expectAvailableCallbacks ( agent , true , com.android.server.ConnectivityServiceTest.TestNetworkCallback.TIMEOUT_MS ) ; }

Target:
void expectAvailableCallbacksValidated ( com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { expectAvailableCallbacks ( agent , false , true , com.android.server.ConnectivityServiceTest.TestNetworkCallback.TIMEOUT_MS ) ; }
Source:
public void testSuppressed ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( "src/test/pkg/LayoutInflationTest_ignored.java.txt=>src/test/pkg/LayoutInflationTest.java" , "res/layout/textsize.xml=>res/layout/your_layout.xml" , "res/layout/listseparator.xml=>res/layout-port/your_layout.xml" ) ) ; }

Target:
public void testNoLayoutParams ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( mLayoutInflationTest , copy ( "res/layout/listseparator.xml" , "res/layout/your_layout.xml" ) ) ) ; }
Source:
public void test_withYear_int_normal ( ) { java.time.LocalDate t = TEST_2007_07_15.withYear ( 2008 ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2008 , 7 , 15 ) ) ; }

Target:
public void test_with_TemporalField_long_normal ( ) { java.time.LocalDate t = tck.java.time.TCKLocalDate.TEST_2007_07_15.with ( java.time.temporal.ChronoField.YEAR , 2008 ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2008 , 7 , 15 ) ) ; }
Source:
private boolean equalsSpecifier ( android.net.NetworkCapabilities nc ) { if ( android.text.TextUtils.isEmpty ( mNetworkSpecifier ) ) { return android.text.TextUtils.isEmpty ( nc.mNetworkSpecifier ) ; } else { return mNetworkSpecifier.equals ( nc.mNetworkSpecifier ) ; } }

Target:
private boolean satisfiedBySpecifier ( android.net.NetworkCapabilities nc ) { return ( ( ( mNetworkSpecifier ) == null ) || ( mNetworkSpecifier.satisfiedBy ( nc.mNetworkSpecifier ) ) ) || ( ( nc.mNetworkSpecifier ) instanceof android.net.MatchAllNetworkSpecifier ) ; }
Source:
protected native void send ( java.net.DatagramPacket p ) throws java.io.IOException ;

Target:
protected synchronized void receive0 ( java.net.DatagramPacket p ) throws java.io.IOException { doRecv ( p , 0 ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; startTestActivity ( ) ; mContext = getInstrumentation ( ) . getTargetContext ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; startTestActivity ( ) ; mContext = getInstrumentation ( ) . getTargetContext ( ) ; mHasFeature = mContext.getPackageManager ( ) . hasSystemFeature ( android.voiceinteraction.cts.LocalVoiceInteractionTest.FEATURE_VOICE_RECOGNIZERS ) ; }
Source:
private void refreshPalette ( ) { com.android.sdklib.IAndroidTarget oldTarget = mCurrentTarget ; mCurrentTarget = null ; mCurrentTheme = null ; mCurrentDevice = null ; reloadPalette ( oldTarget ) ; }

Target:
private void refreshPalette ( ) { com.android.sdklib.IAndroidTarget oldTarget = mCurrentTarget ; mCurrentTarget = null ; mCurrentTargetData = null ; mCurrentTheme = null ; mCurrentDevice = null ; reloadPalette ( oldTarget ) ; }
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 e ( java.lang.String prefix , java.lang.Throwable tr , java.lang.String format , java.lang.Object ... args ) { android.telecom.Log.e ( prefix , tr , format , args ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { mDcControllerTestHandler.quitSafely ( ) ; super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { mDcControllerTestHandler.quit ( ) ; super . tearDown ( ) ; }
Source:
public void testCharset ( ) { try { encoder = new tests.api.java.nio.charset.CharsetEncoderTest.MockCharsetEncoder ( java.nio.charset.Charset.forName ( "gbk" ) , 1 , tests.api.java.nio.charset.CharsetEncoderTest.MAX_BYTES ) ; } catch ( java.nio.charset.UnsupportedCharsetException e ) { java.lang.System.err.println ( "Don't support GBK encoding, ignore current test" ) ; } }

Target:
public void testCharset ( ) { try { encoder = new org.apache.harmony.tests.java.nio.charset.CharsetEncoderTest.MockCharsetEncoder ( java.nio.charset.Charset.forName ( "gbk" ) , 1 , org.apache.harmony.tests.java.nio.charset.CharsetEncoderTest.MAX_BYTES ) ; } catch ( java.nio.charset.UnsupportedCharsetException e ) { java.lang.System.err.println ( "Don't support GBK encoding, ignore current test" ) ; } }
Source:
public static void setFactoryForTest ( com.android.dialer.common.concurrent.AsyncTaskExecutors.AsyncTaskExecutorFactory factory ) { synchronized ( com.android.dialer.common.concurrent.AsyncTaskExecutors.class ) { com.android.dialer.common.concurrent.AsyncTaskExecutors.mInjectedAsyncTaskExecutorFactory = factory ; } }

Target:
public static void setFactoryForTest ( com.android.dialer.common.concurrent.AsyncTaskExecutors.AsyncTaskExecutorFactory factory ) { synchronized ( com.android.dialer.common.concurrent.AsyncTaskExecutors.class ) { com.android.dialer.common.concurrent.AsyncTaskExecutors.injectedAsyncTaskExecutorFactory = factory ; } }
Source:
public UResource.TableSink getOrCreateTableSink ( com.ibm.icu.impl.UResource.Key key , int initialSize ) { unit = com.ibm.icu.util.MeasureUnit.internalGetInstance ( type , key.toString ( ) ) ; return patternSink ; }

Target:
public UResource.TableSink getOrCreateTableSink ( com.ibm.icu.impl.UResource.Key key , int initialSize ) { unit = com.ibm.icu.util.MeasureUnit.internalGetInstance ( type , key.toString ( ) ) ; patternSink.countToFormat = null ; return patternSink ; }
Source:
public com.android.jack.test.toolchain.JackApiToolchain build ( ) { return new com.android.jack.test.toolchain.JackApiToolchain ( ) ; }

Target:
public com.android.jack.test.toolchain.JackApiV01Toolchain build ( ) { return new com.android.jack.test.toolchain.JackApiV01Toolchain ( com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jack" ) ) ; }
Source:
public void createTabs ( org.eclipse.debug.ui.ILaunchConfigurationDialog dialog , java.lang.String mode ) { org.eclipse.debug.ui.ILaunchConfigurationTab [ ] tabs = new org.eclipse.debug.ui.ILaunchConfigurationTab [ ] { new com.android.ide.eclipse.adt.internal.launch.junit.AndroidJUnitLaunchConfigurationTab ( ) , new com.android.ide.eclipse.adt.internal.launch.EmulatorConfigTab ( false ) , new org.eclipse.debug.ui.CommonTab ( ) } ; setTabs ( tabs ) ; }

Target:
public void createTabs ( org.eclipse.debug.ui.ILaunchConfigurationDialog dialog , java.lang.String mode ) { org.eclipse.debug.ui.ILaunchConfigurationTab [ ] tabs = new org.eclipse.debug.ui.ILaunchConfigurationTab [ ] { new com.android.ide.eclipse.adt.internal.launch.junit.AndroidJUnitLaunchConfigurationTab ( ) , new com.android.ide.eclipse.adt.internal.launch.EmulatorConfigTab ( ILaunchManager.RUN_MODE.equals ( mode ) ) , new org.eclipse.debug.ui.CommonTab ( ) } ; setTabs ( tabs ) ; }
Source:
private int getDayGroupForCall ( long callId ) { java.lang.Integer result = mDayGroups.get ( callId ) ; if ( result != null ) { return result ; } return CallLogGroupBuilder.DAY_GROUP_NONE ; }

Target:
private int getDayGroup ( long callId ) { java.lang.Integer result = mDayGroups.get ( callId ) ; if ( result != null ) { return result ; } return CallLogGroupBuilder.DAY_GROUP_NONE ; }
Source:
public static int toKeymaster ( @ android.security.KeyStoreKeyConstraints.UserAuthenticatorEnum int userAuthenticator ) { switch ( userAuthenticator ) { case android.security.KeyStoreKeyConstraints.UserAuthenticator.LOCK_SCREEN : return android.security.KeyStoreKeyConstraints.UserAuthenticator.LOCK_SCREEN ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown user authenticator: " + userAuthenticator ) ) ; } }

Target:
public static int fromKeymaster ( int userAuthenticator ) { switch ( userAuthenticator ) { case android.security.keymaster.KeymasterDefs.HW_AUTH_PASSWORD : return android.security.KeyStoreKeyConstraints.UserAuthenticator.LOCK_SCREEN ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown user authenticator: " + userAuthenticator ) ) ; } }
Source:
public java.util.Map < ? , ? > getDefaultAttributes ( ) { return null ; }

Target:
protected java.lang.String getSampleImageSrc ( ) { return "@drawable/icon" ; }
Source:
public com.android.builder.ProductFlavor setMinSdkVersion ( int minSdkVersion ) { mMinSdkVersion = minSdkVersion ; return this ; }

Target:
public com.android.builder.model.ProductFlavor setMinSdkVersion ( int minSdkVersion ) { mMinSdkVersion = minSdkVersion ; return this ; }
Source:
public int hashCode ( ) { return org.conscrypt.NativeCrypto.get_X509_hashCode ( mContext ) ; }

Target:
public int hashCode ( ) { if ( ( mHashCode ) != null ) { return mHashCode ; } mHashCode = super . hashCode ( ) ; return mHashCode ; }
Source:
public native long getLastModifiedTime ( java.io.File f ) ;

Target:
private native long getLastModifiedTime0 ( java.io.File f ) ;
Source:
public void testTerminateSession ( ) { int sessionId = 1024 ; int clientId = doConnect ( ) ; mDut.terminateSession ( clientId , sessionId ) ; org.mockito.Mockito.verify ( mNanStateManagerMock ) . terminateSession ( clientId , sessionId ) ; }

Target:
public void testTerminateSession ( ) { int sessionId = 1024 ; int clientId = doConnect ( ) ; mDut.terminateSession ( clientId , sessionId ) ; org.mockito.Mockito.verify ( mAwareStateManagerMock ) . terminateSession ( clientId , sessionId ) ; }
Source:
public void copy3DRangeFrom ( int xoff , int yoff , int zoff , int w , int h , int d , int [ ] data ) { validateIsInt32 ( ) ; copy3DRangeFromUnchecked ( xoff , yoff , zoff , w , h , d , data ) ; }

Target:
public void copy1DRangeToUnchecked ( int off , int count , int [ ] d ) { copy1DRangeToUnchecked ( off , count , ( ( java.lang.Object ) ( d ) ) , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public < A extends java.lang.annotation.Annotation > A getAnnotation ( java.lang.Class < A > annotationType ) { if ( annotationType == null ) { throw new java.lang.NullPointerException ( "annotationType == null" ) ; } return libcore.reflect.AnnotationAccess.getDeclaredAnnotation ( this , annotationType ) ; }

Target:
public < A extends java.lang.annotation.Annotation > A getAnnotation ( java.lang.Class < A > annotationType ) { if ( annotationType == null ) { throw new java.lang.NullPointerException ( "annotationType == null" ) ; } return getAnnotationNative ( annotationType ) ; }