auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private synchronized void initMediaPlayersInfoList ( ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , "initMediaPlayersInfoList" ) ; mMediaPlayerInfoList.clear ( ) ; for ( com.android.bluetooth.avrcp.MediaController mediaController : getActiveControllersList ( ) ) { initMediaPlayer ( com.android.bluetooth.avrcp.MediaController.wrap ( mediaController ) ) ; } }

Target:
public void onConnectionFailed ( ) { android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "BrowsablePlayerListBuilder: " + ( mCurrentPlayer.packageName ) ) + " FAIL" ) ) ; connectNextPlayer ( ) ; }
Source:
public void testKeyStore_Load_PasswordSupplied_Failure ( ) throws java.lang.Exception { try { mKeyStore.load ( null , "password" . toCharArray ( ) ) ; fail ( "Should throw IllegalArgumentException when password is supplied" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testKeyStore_Load_PasswordSupplied_Encrypted_Failure ( ) throws java.lang.Exception { try { mKeyStore.load ( null , "password" . toCharArray ( ) ) ; fail ( "Should throw IllegalArgumentException when password is supplied" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }
Source:
public void setSuppServiceNotifications ( boolean enable , android.os.Message result ) { resultSuccess ( result , null ) ; if ( enable && ( mSsnNotifyOn ) ) { android.util.Log.w ( com.android.internal.telephony.test.SimulatedCommands.LOG_TAG , "Supp Service Notifications already enabled!" ) ; } mSsnNotifyOn = enable ; }

Target:
public void setSuppServiceNotifications ( boolean enable , android.os.Message result ) { resultSuccess ( result , null ) ; if ( enable && ( mSsnNotifyOn ) ) { android.telephony.Rlog.w ( com.android.internal.telephony.test.SimulatedCommands.LOG_TAG , "Supp Service Notifications already enabled!" ) ; } mSsnNotifyOn = enable ; }
Source:
public void testOkClasses ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( "bytecode/AndroidManifestWrongRegs.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "bytecode/OnClickActivity.java.txt=>src/test/pkg/OnClickActivity.java" , "bytecode/OnClickActivity.class.data=>bin/classes/test/pkg/OnClickActivity.class" , "bytecode/TestService.java.txt=>src/test/pkg/TestService.java" , "bytecode/TestService.class.data=>bin/classes/test/pkg/TestService.class" , "bytecode/TestProvider.java.txt=>src/test/pkg/TestProvider.java" , "bytecode/TestProvider.class.data=>bin/classes/test/pkg/TestProvider.class" , "bytecode/TestProvider2.java.txt=>src/test/pkg/TestProvider2.java" , "bytecode/TestProvider2.class.data=>bin/classes/test/pkg/TestProvider2.class" , "bytecode/TestReceiver.java.txt=>src/test/pkg/TestReceiver.java" , "bytecode/TestReceiver.class.data=>bin/classes/test/pkg/TestReceiver.class" ) ) ; }

Target:
public void testOkClasses ( ) throws java.lang.Exception { mScopes = null ; assertEquals ( "No warnings." , lintProject ( "bytecode/AndroidManifestWrongRegs.xml=>AndroidManifest.xml" , "bytecode/.classpath=>.classpath" , "bytecode/OnClickActivity.java.txt=>src/test/pkg/OnClickActivity.java" , "bytecode/OnClickActivity.class.data=>bin/classes/test/pkg/OnClickActivity.class" , "bytecode/TestService.java.txt=>src/test/pkg/TestService.java" , "bytecode/TestService.class.data=>bin/classes/test/pkg/TestService.class" , "bytecode/TestProvider.java.txt=>src/test/pkg/TestProvider.java" , "bytecode/TestProvider.class.data=>bin/classes/test/pkg/TestProvider.class" , "bytecode/TestProvider2.java.txt=>src/test/pkg/TestProvider2.java" , "bytecode/TestProvider2.class.data=>bin/classes/test/pkg/TestProvider2.class" , "bytecode/TestReceiver.java.txt=>src/test/pkg/TestReceiver.java" , "bytecode/TestReceiver.class.data=>bin/classes/test/pkg/TestReceiver.class" ) ) ; }
Source:
public static int $noinline$intAddSubSimplifyArg1 ( int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int sum = x + y ; return sum - x ; }

Target:
public static float $noinline$floatAddSubSimplifyArg1 ( float x , float y ) { float sum = x + y ; return sum - x ; }
Source:
public java.lang.String getPath ( ) { return com.android.sdklib.AndroidTargetHash.getPlatformHashString ( getAndroidVersion ( ) ) ; }

Target:
public boolean isUpdateFor ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { return isGenericUpdateFor ( existingDesc ) ; }
Source:
public android.content.Intent getIntent ( android.content.Context context ) { android.content.Intent intent = new android.content.Intent ( "com.google.android.apps.tachyon.action.INVITE" ) . setPackage ( DuoConstants.PACKAGE_NAME ) . setData ( android.net.Uri.fromParts ( PhoneAccount.SCHEME_TEL , number , null ) ) ; return intent ; }

Target:
public android.content.Intent getIntent ( android.content.Context context ) { android.content.Intent intent = new android.content.Intent ( com.android.dialer.duo.DuoConstants.DUO_INVITE_ACTION ) . setPackage ( DuoConstants.PACKAGE_NAME ) . setData ( android.net.Uri.fromParts ( PhoneAccount.SCHEME_TEL , number , null ) ) ; return intent ; }
Source:
public static long OrIntLong ( ) { int lhs = Main.$inline$int ( 10 ) ; long rhs = Main.$inline$long ( 3L ) ; return lhs | rhs ; }

Target:
public static long OrLongInt ( ) { long lhs = 10 ; int rhs = 3 ; return lhs | rhs ; }
Source:
private void freeBitmap ( ) { junit.framework.Assert.assertTrue ( ( ( mBitmap ) != null ) ) ; onFreeBitmap ( mBitmap ) ; mBitmap = null ; }

Target:
private void freeBitmap ( ) { com.android.gallery3d.common.Utils.assertTrue ( ( ( mBitmap ) != null ) ) ; onFreeBitmap ( mBitmap ) ; mBitmap = null ; }
Source:
public void addRegistrationListener ( com.android.ims.internal.IImsRegistrationListener listener ) { }

Target:
public void removeRegistrationListener ( com.android.ims.internal.IImsRegistrationListener listener ) { }
Source:
public static void main ( java.lang.String [ ] args ) { new Main ( ) . run ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( args [ 0 ] ) ; new Main ( ) . run ( ) ; }
Source:
public com.ibm.icu.impl.LocaleDisplayNamesImpl.DataTable get ( com.ibm.icu.util.ULocale locale ) { return new com.ibm.icu.impl.LocaleDisplayNamesImpl.ICUDataTable ( path , locale ) ; }

Target:
public com.ibm.icu.impl.LocaleDisplayNamesImpl.DataTable get ( com.ibm.icu.util.ULocale locale , boolean nullIfNotFound ) { return new com.ibm.icu.impl.LocaleDisplayNamesImpl.ICUDataTable ( path , locale , nullIfNotFound ) ; }
Source:
public void appendElement ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JBasicBlockElement element ) { elements.add ( element ) ; }

Target:
public void appendElement ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JBasicBlockElement element ) { elements.add ( element ) ; element.updateParents ( this ) ; }
Source:
public static void setMasterSyncAutomatically ( boolean sync ) { try { android.content.ContentResolver.getContentService ( ) . setMasterSyncAutomatically ( sync ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public static void cancelSyncAsUser ( android.accounts.Account account , java.lang.String authority , int userId ) { try { android.content.ContentResolver.getContentService ( ) . cancelSyncAsUser ( account , authority , null , userId ) ; } catch ( android.os.RemoteException e ) { } }
Source:
java.io.OutputStream openWrite ( @ javax.annotation.Nonnull final com.android.sched.vfs.MessageDigestFS.MessageDigestVFile file ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void close ( ) throws java.io.IOException { super . close ( ) ; synchronized ( this ) { digests.put ( file.getPath ( ) , getDigestString ( getMessageDigest ( ) . digest ( ) ) ) ; digest = null ; } }
Source:
public void acquireMulticastLock ( android.os.IBinder binder , java.lang.String tag ) { enforceMulticastChangePermission ( ) ; mWifiMulticastLockManager.acquireLock ( binder , tag ) ; }

Target:
public void acquireMulticastLock ( android.os.IBinder binder , java.lang.String tag ) { enforceMulticastChangePermission ( ) ; mLog.trace ( "acquireMulticastLock uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; mWifiMulticastLockManager.acquireLock ( binder , tag ) ; }
Source:
public float getDipScale ( ) { return ( com.android.sdklib.resources.Density.DEFAULT_DENSITY ) / ( ( float ) ( mConfigComposite.getDensity ( ) . getDpiValue ( ) ) ) ; }

Target:
public float getDipScale ( ) { return ( com.android.resources.Density.DEFAULT_DENSITY ) / ( ( float ) ( mConfigComposite.getDensity ( ) . getDpiValue ( ) ) ) ; }
Source:
static void setLevel ( com.android.ddmlib.Log.LogLevel logLevel ) { com.android.ddmlib.Log.mLevel = logLevel ; }

Target:
static void setLevel ( com.android.ddmlib.Log.LogLevel logLevel ) { com.android.ddmlib.Log.sLevel = logLevel ; }
Source:
public void extractTo ( java.io.File targetDir ) throws java.io.IOException { libcore.tzdata.update2.TimeZoneDistro.extractZipSafely ( new java.io.ByteArrayInputStream ( bytes ) , targetDir , true ) ; }

Target:
public void extractTo ( java.io.File targetDir ) throws java.io.IOException { libcore.tzdata.shared2.TimeZoneDistro.extractZipSafely ( new java.io.ByteArrayInputStream ( bytes ) , targetDir , true ) ; }
Source:
public com.android.dx.io.ClassDef next ( ) { if ( ! ( hasNext ( ) ) ) { throw new java.util.NoSuchElementException ( ) ; } ( count ) ++ ; return in.readClassDef ( ) ; }

Target:
public com.android.dex.ClassDef next ( ) { if ( ! ( hasNext ( ) ) ) { throw new java.util.NoSuchElementException ( ) ; } ( count ) ++ ; return in.readClassDef ( ) ; }
Source:
public E next ( ) { if ( ! ( hasNext ( ) ) ) throw new java.util.NoSuchElementException ( ) ; return ( ( E ) ( snapshot [ ( ( cursor ) ++ ) ] ) ) ; }

Target:
public E previous ( ) { if ( ( index ) > ( from ) ) { return ( ( E ) ( snapshot [ ( -- ( index ) ) ] ) ) ; } else { throw new java.util.NoSuchElementException ( ) ; } }
Source:
public final void init ( java.security.Key key , java.security.SecureRandom random ) throws java.security.InvalidKeyException { spiImpl.engineInit ( key , random ) ; }

Target:
public final void init ( java.security.Key key , java.security.SecureRandom random ) throws java.security.InvalidKeyException { getSpi ( key ) . engineInit ( key , random ) ; }
Source:
public boolean supports64Bits ( ) { java.lang.String targetString = getNdkExtension ( ) . getCompileSdkVersion ( ) . replace ( "android-" , "" ) ; try { return ( java.lang.Integer.parseInt ( targetString ) ) >= 20 ; } catch ( java.lang.NumberFormatException ignored ) { return true ; } }

Target:
public boolean supports64Bits ( ) { java.lang.String targetString = getNdkConfig ( ) . getCompileSdkVersion ( ) . replace ( "android-" , "" ) ; try { return ( java.lang.Integer.parseInt ( targetString ) ) >= 20 ; } catch ( java.lang.NumberFormatException ignored ) { return true ; } }
Source:
public void testVFE7 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.aput_wide.d.T_aput_wide_10" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testE3 ( ) { loadAndRun ( "dot.junit.opcodes.aput_wide.d.T_aput_wide_1" , java.lang.ArrayIndexOutOfBoundsException.class , new long [ 2 ] , ( - 1 ) , 100000000000L ) ; }
Source:
public void testWarningComparator ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/StringFormatActivity.java:21: Error: Wrong argument type for formatting argument \'#1\' in score: conversion is \'d\', received boolean (argument #2 in method call) [StringFormatMatches]\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " String output4 = String.format(score, true); // wrong\n" + " ~~~~\n" ) + " res/values-es/formatstrings.xml:6: Conflicting argument declaration here\n" ) + "src/test/pkg/StringFormatActivity.java:21: Error: Wrong argument type for formatting argument \'#1\' in score: conversion is \'d\', received boolean (argument #2 in method call) [StringFormatMatches]\n" ) + " String output4 = String.format(score, true); // wrong\n" ) + " ~~~~\n" ) + " res/values/formatstrings.xml:6: Conflicting argument declaration here\n" ) + "src/test/pkg/StringFormatActivity.java:22: Error: Wrong argument type for formatting argument \'#1\' in score: conversion is \'d\', received boolean (argument #2 in method call) [StringFormatMatches]\n" ) + " String output4 = String.format(score, won); // wrong\n" ) + " ~~~\n" ) + " res/values-es/formatstrings.xml:6: Conflicting argument declaration here\n" ) + "src/test/pkg/StringFormatActivity.java:22: Error: Wrong argument type for formatting argument \'#1\' in score: conversion is \'d\', received boolean (argument #2 in method call) [StringFormatMatches]\n" ) + " String output4 = String.format(score, won); // wrong\n" ) + " ~~~\n" ) + " res/values/formatstrings.xml:6: Conflicting argument declaration here\n" ) + "res/values-es/formatstrings.xml:5: Warning: Formatting string \'missing\' is not referencing numbered arguments [1, 2] [StringFormatCount]\n" ) + " <string name=\"missing\">Hello %3$s World</string>\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/values/formatstrings.xml:5: Warning: Formatting string \'missing\' is not referencing numbered arguments [1, 2] [StringFormatCount]\n" ) + " <string name=\"missing\">Hello %3$s World</string>\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "4 errors, 2 warnings\n" ) ) , lintProject ( "res/values/formatstrings.xml" , "res/values/formatstrings.xml=>res/values-es/formatstrings.xml" , "src/test/pkg/StringFormatActivity.java.txt=>src/test/pkg/StringFormatActivity.java" ) ) ; }

Target:
public void testNotStringFormatIncrementally ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProjectIncrementally ( "src/test/pkg/SharedPrefsTest6.java" , "res/values/formatstrings3.xml" , "res/values/shared_prefs_keys.xml" , "src/test/pkg/SharedPrefsTest6.java.txt=>src/test/pkg/SharedPrefsTest6.java" ) ) ; }
Source:
public void onReject ( ) { com.android.dialer.common.LogUtil.enterBlock ( "SimulatorConnection.onReject" ) ; setDisconnected ( new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.REJECTED ) ) ; }

Target:
public void onReject ( ) { com.android.dialer.common.LogUtil.enterBlock ( "SimulatorConnection.onReject" ) ; onEvent ( new com.android.dialer.simulator.Simulator.Event ( com.android.dialer.simulator.Simulator.Event.REJECT ) ) ; }
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > allOf ( org.hamcrest.org.hamcrest.Matcher ... matchers ) { return org.hamcrest.core.AllOf.< org.hamcrest.T > allOf ( matchers ) ; }

Target:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > allOf ( org.hamcrest.org.hamcrest.Matcher ... matchers ) { return org.hamcrest.core.AllOf.allOf ( matchers ) ; }
Source:
private com.android.server.pm.PackageManagerService.InstallArgs createInstallArgs ( com.android.server.pm.PackageManagerService.InstallParams params ) { if ( com.android.server.pm.PackageManagerService.installOnSd ( params.flags ) ) { return new com.android.server.pm.PackageManagerService.SdInstallArgs ( params ) ; } else { return new com.android.server.pm.PackageManagerService.FileInstallArgs ( params ) ; } }

Target:
private com.android.server.pm.PackageManagerService.InstallArgs createInstallArgs ( com.android.server.pm.PackageManagerService.InstallParams params ) { if ( ( com.android.server.pm.PackageManagerService.installOnSd ( params.flags ) ) || ( params.isForwardLocked ( ) ) ) { return new com.android.server.pm.PackageManagerService.AsecInstallArgs ( params ) ; } else { return new com.android.server.pm.PackageManagerService.FileInstallArgs ( params ) ; } }
Source:
public com.android.tradefed.util.CommandStatus waitForProcess ( long timeoutMsecs ) throws com.android.tradefed.util.RunInterruptedException { com.android.tradefed.util.CommandStatus currentStatus = nextStatus.removeFirst ( ) ; if ( currentStatus == null ) { throw new com.android.tradefed.util.RunInterruptedException ( ) ; } return currentStatus ; }

Target:
protected void updateVtsRunnerTestConfig ( org.json.JSONObject jsonObject ) { return ; }
Source:
public void enter ( ) { super . enter ( ) ; setSpeakerphoneOn ( false ) ; setBluetoothOn ( false ) ; android.telecom.CallAudioState newState = new android.telecom.CallAudioState ( mIsMuted , com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_EARPIECE , mAvailableRoutes ) ; setSystemAudioState ( newState , true ) ; updateInternalCallAudioState ( ) ; }

Target:
public void enter ( ) { super . enter ( ) ; setSpeakerphoneOn ( false ) ; setBluetoothOff ( ) ; android.telecom.CallAudioState newState = new android.telecom.CallAudioState ( mIsMuted , com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_EARPIECE , mAvailableRoutes ) ; setSystemAudioState ( newState , true ) ; updateInternalCallAudioState ( ) ; }
Source:
synchronized void reportConnectionFailure ( ) { mPacketFatesForLastFailure = fetchPacketFates ( ) ; }

Target:
synchronized void reportConnectionEvent ( byte event ) { switch ( event ) { case CONNECTION_EVENT_FAILED : mPacketFatesForLastFailure = fetchPacketFates ( ) ; break ; } }
Source:
public void configureEvent ( int typeFrom , int typeTo , int stream , javax.swing.Icon icon , java.awt.Color color , java.awt.Color progress ) { mEvents.put ( typeFrom , new com.android.tools.chartlib.TimelineComponent.Event ( typeFrom , typeTo , stream , icon , color , progress ) ) ; }

Target:
public void configureEvent ( int type , int stream , javax.swing.Icon icon , java.awt.Color color , java.awt.Color progress ) { mEventsInfo.put ( type , new com.android.tools.chartlib.TimelineComponent.EventInfo ( type , stream , icon , color , progress ) ) ; }
Source:
public boolean perform ( ) { java.lang.Thread.currentThread ( ) . getStackTrace ( ) ; return true ; }

Target:
public boolean perform ( ) { try { java.lang.Thread.currentThread ( ) . getStackTrace ( ) ; } catch ( java.lang.OutOfMemoryError e ) { } return true ; }
Source:
public com.android.internal.telephony.IccCardConstants.State getIccCardState ( ) ;

Target:
public boolean isApplicationOnIcc ( com.android.internal.telephony.uicc.IccCardApplicationStatus.AppType type ) ;
Source:
public void err ( java.lang.String message ) { mVerboseStream.println ( message ) ; }

Target:
public void out ( java.lang.String message ) { verboseStream.println ( message ) ; }
Source:
public void testCommitChainedCalls ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk4.xml=>AndroidManifest.xml" , "project.properties19=>project.properties" , "src/test/pkg/TransactionTest.java.txt=>src/test/pkg/TransactionTest.java" , "appcompat/Fragment.java.txt=>src/android/support/v4/app/Fragment.java" , "appcompat/DialogFragment.java.txt=>src/android/support/v4/app/DialogFragment.java" , "appcompat/FragmentTransaction.java.txt=>src/android/support/v4/app/FragmentTransaction.java" , "appcompat/FragmentManager.java.txt=>src/android/support/v4/app/FragmentManager.java" ) ) ; }

Target:
public void testCommitChainedCalls ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "src/test/pkg/TransactionTest.java:8: Warning: This transaction should be completed with a commit() call [CommitTransaction]\n" + " android.app.FragmentTransaction transaction2 = getFragmentManager().beginTransaction();\n" ) + " ~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk4.xml=>AndroidManifest.xml" , "project.properties19=>project.properties" , "src/test/pkg/TransactionTest.java.txt=>src/test/pkg/TransactionTest.java" , "appcompat/Fragment.java.txt=>src/android/support/v4/app/Fragment.java" , "appcompat/DialogFragment.java.txt=>src/android/support/v4/app/DialogFragment.java" , "appcompat/FragmentTransaction.java.txt=>src/android/support/v4/app/FragmentTransaction.java" , "appcompat/FragmentManager.java.txt=>src/android/support/v4/app/FragmentManager.java" ) ) ; }
Source:
public void setShowExtras ( boolean show ) { showExtras = show ; }

Target:
public void setShowExtras ( boolean show ) { showExtras = show ; doRedraw ( ) ; }
Source:
public static void computeRadians ( android.renderscript.cts.TestRadians.ArgumentsFloatFloat args ) { args.ulf = 3 ; args.ulfRelaxed = 3 ; args.out = ( ( float ) ( ( ( double ) ( args.inValue ) ) * ( ( java.lang.StrictMath.PI ) / 180.0 ) ) ) ; }

Target:
public static void computeConvert ( android.renderscript.cts.TestConvert.ArgumentsUcharInt args ) { args.out = android.renderscript.cts.CoreMathVerifier.convertUcharToInt ( args.inV ) ; }
Source:
public boolean initializeSupplicantHal ( ) { return true ; }

Target:
public boolean initializeSupplicantHal ( ) { if ( ! ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) ) { return true ; } return mSupplicantStaIfaceHal.initialize ( ) ; }
Source:
public void testKeyStore_Store_LoadStoreParam_Failure ( ) throws java.lang.Exception { mKeyStore.load ( null , null ) ; try { mKeyStore.store ( null ) ; fail ( "Should throw UnsupportedOperationException when trying to store" ) ; } catch ( java.lang.UnsupportedOperationException success ) { } }

Target:
public void testKeyStore_Store_LoadStoreParam_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; try { mKeyStore.store ( null ) ; fail ( "Should throw UnsupportedOperationException when trying to store" ) ; } catch ( java.lang.UnsupportedOperationException success ) { } }
Source:
com.android.sched.vfs.BaseVFile createVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotCreateFileException { return changeVFS ( vfs.createVFile ( parent , name ) ) ; }

Target:
com.android.sched.util.location.Location getVDirLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.DeflateFS.DeflateVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { return vfs.getVDirLocation ( parent.getWrappedDir ( ) , name ) ; }
Source:
public com.google.common.collect.ImmutableList < com.android.build.gradle.api.ApkOutput > getOutputFiles ( ) { return getVariantOutputData ( ) . getOutputFiles ( ) ; }

Target:
public com.android.build.MainOutputFile getMainOutputFile ( ) { return getVariantOutputData ( ) . getMainOutputFile ( ) ; }
Source:
public static int IntSubtraction ( ) { int a ; int b ; int c ; a = Main.$inline$int ( 6 ) ; b = Main.$inline$int ( 2 ) ; c = a - b ; return c ; }

Target:
public static int IntMultiplication ( ) { int a ; int b ; int c ; a = 7 ; b = 3 ; c = a * b ; return c ; }
Source:
private native int _initialize ( java.lang.Object weak_this ) ;

Target:
private native void _setListeners ( int uniqueId , java.lang.Object weak_this ) ;
Source:
public android.net.wifi.hotspot2.PasspointConfiguration createFromParcel ( android.os.Parcel in ) { android.net.wifi.hotspot2.PasspointConfiguration config = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; config.homeSp = in.readParcelable ( null ) ; config.credential = in.readParcelable ( null ) ; return config ; }

Target:
public android.net.wifi.hotspot2.PasspointConfiguration createFromParcel ( android.os.Parcel in ) { android.net.wifi.hotspot2.PasspointConfiguration config = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; config.homeSp = in.readParcelable ( null ) ; config.credential = in.readParcelable ( null ) ; config.policy = in.readParcelable ( null ) ; return config ; }
Source:
native void rsnScriptSetVarObj ( int con , int id , int slot , int val ) ;

Target:
native void rsnScriptSetVarI ( long con , long id , int slot , int val ) ;
Source:
private static boolean areArraysEqual ( java.lang.Object o1 , java.lang.Object o2 ) { return ( org.hamcrest.core.IsEqual.areArrayLengthsEqual ( o1 , o2 ) ) && ( org.hamcrest.core.IsEqual.areArrayElementsEqual ( o1 , o2 ) ) ; }

Target:
private static boolean areArraysEqual ( java.lang.Object actualArray , java.lang.Object expectedArray ) { return ( org.hamcrest.core.IsEqual.areArrayLengthsEqual ( actualArray , expectedArray ) ) && ( org.hamcrest.core.IsEqual.areArrayElementsEqual ( actualArray , expectedArray ) ) ; }
Source:
private static int ipSupportOf ( android.net.metrics.DefaultNetworkEvent in ) { if ( ( in.prevIPv4 ) && ( in.prevIPv6 ) ) { return android.net.metrics.DefaultNetworkEvent.DUAL ; } if ( in.prevIPv6 ) { return android.net.metrics.DefaultNetworkEvent.IPV6 ; } if ( in.prevIPv4 ) { return android.net.metrics.DefaultNetworkEvent.IPV4 ; } return android.net.metrics.DefaultNetworkEvent.NONE ; }

Target:
private static int ipSupportOf ( android.net.metrics.DefaultNetworkEvent in ) { if ( ( in.ipv4 ) && ( in.ipv6 ) ) { return android.net.metrics.DefaultNetworkEvent.DUAL ; } if ( in.ipv6 ) { return android.net.metrics.DefaultNetworkEvent.IPV6 ; } if ( in.ipv4 ) { return android.net.metrics.DefaultNetworkEvent.IPV4 ; } return android.net.metrics.DefaultNetworkEvent.NONE ; }
Source:
public void test_ConstructorJ ( ) { assertTrue ( "Used to test" , true ) ; }

Target:
public void test_getTimezoneOffset ( ) { assertTrue ( "Used to test" , true ) ; }
Source:
public void assertNoProgramUpdate ( ) { assertFalse ( mGotApfProgram.block ( android.net.apf.ApfTest.TIMEOUT_MS ) ) ; }

Target:
public byte [ ] getApfProgram ( ) { org.junit.Assert.assertTrue ( mGotApfProgram.block ( android.net.apf.ApfTest.TIMEOUT_MS ) ) ; return mLastApfProgram ; }
Source:
private static native void closeBreakIteratorImpl ( int address ) ;

Target:
private static native int lastImpl ( int address , java.lang.String text ) ;
Source:
java.io.FileDescriptor acquireFD ( ) { synchronized ( fdLock ) { return fd ; } }

Target:
java.io.FileDescriptor acquireFD ( ) { synchronized ( fdLock ) { ( fdUseCount ) ++ ; return fd ; } }
Source:
public java.util.Collection < com.android.manifmerger.AttributeOperationType > getAttributeOperations ( ) { return mAttributesOperationTypes.values ( ) ; }

Target:
public java.util.Collection < java.util.Map.Entry < com.android.manifmerger.NodeName , com.android.manifmerger.AttributeOperationType > > getAttributeOperations ( ) { return mAttributesOperationTypes.entrySet ( ) ; }
Source:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , int timeoutMs , int legacyType ) { sendRequestForNetwork ( request.networkCapabilities , networkCallback , timeoutMs , android.net.ConnectivityManager.REQUEST , legacyType ) ; }

Target:
public void registerDefaultNetworkCallback ( android.net.ConnectivityManager.NetworkCallback networkCallback , android.os.Handler handler ) { android.net.ConnectivityManager.CallbackHandler cbHandler = new android.net.ConnectivityManager.CallbackHandler ( handler ) ; sendRequestForNetwork ( null , networkCallback , 0 , android.net.ConnectivityManager.REQUEST , android.net.ConnectivityManager.TYPE_NONE , cbHandler ) ; }
Source:
public int startSession ( android.app.PendingIntent incomingCallIntent , com.android.ims.internal.IImsRegistrationListener listener ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . startSession ( mSlotId , mSupportedFeature , incomingCallIntent , listener ) ; } }

Target:
public com.android.ims.internal.IImsMultiEndpoint getMultiEndpointInterface ( ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . getMultiEndpointInterface ( mSlotId , mSupportedFeature ) ; } }
Source:
public void test_plus_longTemporalUnit_timeNotAllowed ( ) { TEST_2007_07_15.plus ( 7 , java.time.temporal.ChronoUnit.HOURS ) ; }

Target:
public void test_with_TemporalField_long_invalidField ( ) { tck.java.time.TCKLocalDate.TEST_2007_07_15.with ( MockFieldNoValue.INSTANCE , 1 ) ; }
Source:
public void setUpstreamLinkProperties ( android.net.LinkProperties lp ) { if ( ! ( started ( ) ) ) return ; mUpstreamLinkProperties = lp ; }

Target:
public void setUpstreamLinkProperties ( android.net.LinkProperties lp ) { if ( ! ( started ( ) ) ) return ; mUpstreamLinkProperties = ( lp != null ) ? new android.net.LinkProperties ( lp ) : null ; pushUpstreamParameters ( ) ; }
Source:
static short $opt$IntToShort ( int a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( short ) ( a ) ) ; }

Target:
static short $opt$noinline$IntToShort ( int a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( short ) ( a ) ) ; }
Source:
public void copy1DRangeFrom ( int off , int count , byte [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFrom" ) ; validateIsInt8 ( ) ; copy1DRangeFromUnchecked ( off , count , d ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , byte [ ] d ) { validateIsInt8 ( ) ; copy1DRangeFromUnchecked ( off , count , d , Element.DataType.SIGNED_8 , d.length ) ; }
Source:
public static native long EC_GROUP_dup ( long groupRef ) ;

Target:
public static native java.lang.String EC_GROUP_get_curve_name ( org.conscrypt.NativeRef.EC_GROUP groupRef ) ;
Source:
private static com.android.internal.os.ZygoteConnection acceptCommandPeer ( ) { try { return new com.android.internal.os.ZygoteConnection ( com.android.internal.os.ZygoteInit.sServerSocket.accept ( ) ) ; } catch ( java.io.IOException ex ) { throw new java.lang.RuntimeException ( "IOException during accept()" , ex ) ; } }

Target:
private static com.android.internal.os.ZygoteConnection acceptCommandPeer ( java.lang.String abiList ) { try { return new com.android.internal.os.ZygoteConnection ( com.android.internal.os.ZygoteInit.sServerSocket.accept ( ) , abiList ) ; } catch ( java.io.IOException ex ) { throw new java.lang.RuntimeException ( "IOException during accept()" , ex ) ; } }
Source:
public void onPause ( ) { super . onPause ( ) ; unregisterReceiver ( mBatteryInfoReceiver ) ; unregisterReceiver ( mConnectivityReceiver ) ; mHandler.removeMessages ( com.android.settings.deviceinfo.Status.EVENT_UPDATE_STATS ) ; }

Target:
public void onResume ( ) { super . onResume ( ) ; getContext ( ) . registerReceiver ( mConnectivityReceiver , mConnectivityIntentFilter , android.Manifest.permission.CHANGE_NETWORK_STATE , null ) ; getContext ( ) . registerReceiver ( mBatteryInfoReceiver , new android.content.IntentFilter ( android.content.Intent.ACTION_BATTERY_CHANGED ) ) ; mHandler.sendEmptyMessage ( com.android.settings.deviceinfo.Status.EVENT_UPDATE_STATS ) ; }
Source:
public int onAbort ( final javax.obex.HeaderSet request , javax.obex.HeaderSet reply ) { if ( com.android.bluetooth.mapclient.MnsObexServer.VDBG ) android.util.Log.v ( com.android.bluetooth.mapclient.MnsObexServer.TAG , "onAbort" ) ; return javax.obex.ResponseCodes.OBEX_HTTP_NOT_IMPLEMENTED ; }

Target:
public int onAbort ( final javax.obex.HeaderSet request , javax.obex.HeaderSet reply ) { if ( VDBG ) android.util.Log.v ( com.android.bluetooth.mapclient.MnsObexServer.TAG , "onAbort" ) ; return javax.obex.ResponseCodes.OBEX_HTTP_NOT_IMPLEMENTED ; }
Source:
public boolean getSampleEnabled ( ) { return getSecureBoolean ( android.provider.Settings.Secure.NETSTATS_SAMPLE_ENABLED , true ) ; }

Target:
public long getDevPersistBytes ( long def ) { return getGlobalLong ( android.provider.Settings.Global.NETSTATS_DEV_PERSIST_BYTES , def ) ; }
Source:
protected com.android.jack.ir.ast.JArrayType getArrayType ( @ javax.annotation.Nonnull java.lang.String typeName ) { try { return super . getArrayType ( typeName ) ; } catch ( com.android.jack.ir.ast.JTypeLookupException e ) { throw new java.lang.AssertionError ( e ) ; } }

Target:
protected com.android.jack.ir.ast.JArrayType findArrayType ( @ javax.annotation.Nonnull java.lang.String typeName ) { try { return super . findArrayType ( typeName ) ; } catch ( com.android.jack.ir.ast.JTypeLookupException e ) { throw new java.lang.AssertionError ( e ) ; } }
Source:
public void startDrag ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement [ ] elements , java.lang.Object sourceCanvas ) { mCurrentElements = elements ; mSourceCanvas = sourceCanvas ; }

Target:
public void startDrag ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.SimpleElement [ ] elements , com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection [ ] selection , java.lang.Object sourceCanvas ) { mCurrentElements = elements ; mCurrentSelection = selection ; mSourceCanvas = sourceCanvas ; }
Source:
public java.lang.String getPackage ( ) { if ( ( mPackage ) == null ) { java.lang.String packageName = mProject.getDefaultConfig ( ) . getProductFlavor ( ) . getPackageName ( ) ; if ( packageName != null ) { return packageName ; } } return mPackage ; }

Target:
public java.lang.String getPackage ( ) { if ( ( mPackage ) == null ) { java.lang.String packageName = mProject.getDefaultConfig ( ) . getProductFlavor ( ) . getApplicationId ( ) ; if ( packageName != null ) { return packageName ; } } return mPackage ; }
Source:
public V get ( @ javax.annotation.Nullable java.lang.Object key ) { return singleKey.equals ( key ) ? singleValue : null ; }

Target:
public boolean containsKey ( @ javax.annotation.Nullable java.lang.Object key ) { return singleKey.equals ( key ) ; }
Source:
protected void notifyPreciseCallStateChangedP ( ) { android.os.AsyncResult ar = new android.os.AsyncResult ( null , this , null ) ; mPreciseCallStateRegistrants.notifyRegistrants ( ar ) ; }

Target:
protected void notifyPreciseCallStateChangedP ( ) { android.os.AsyncResult ar = new android.os.AsyncResult ( null , this , null ) ; mPreciseCallStateRegistrants.notifyRegistrants ( ar ) ; mNotifier.notifyPreciseCallState ( this ) ; }
Source:
public com.android.build.gradle.internal.scope.AndroidTask getJacocoIntrumentTask ( ) { return jacocoIntrumentTask ; }

Target:
public java.io.File getProguardComponentsJarFile ( ) { return new java.io.File ( globalScope.getIntermediatesDir ( ) , ( ( "multi-dex/" + ( getVariantConfiguration ( ) . getDirName ( ) ) ) + "/componentClasses.jar" ) ) ; }
Source:
public void testUrlWithSpaceInHostViaHttpProxy ( ) throws java.lang.Exception { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) ) ; server.play ( ) ; java.net.URLConnection urlConnection = new java.net.URL ( "http://and roid.com/" ) . openConnection ( server.toProxyAddress ( ) ) ; try { urlConnection.getInputStream ( ) ; fail ( ) ; } catch ( java.net.UnknownHostException expected ) { } }

Target:
public void testUrlWithSpaceInHost ( ) throws java.lang.Exception { java.net.URLConnection urlConnection = new java.net.URL ( "http://and roid.com/" ) . openConnection ( ) ; try { urlConnection.getInputStream ( ) ; org.junit.Assert.fail ( ) ; } catch ( java.net.UnknownHostException expected ) { } }
Source:
public void onRttMessageReceived ( com.android.ims.ImsCall imsCall , java.lang.String message ) { com.android.internal.telephony.imsphone.ImsPhoneConnection conn = findConnection ( imsCall ) ; if ( conn != null ) { conn.onRttMessageReceived ( message ) ; } }

Target:
public void onCallStartFailed ( com.android.ims.ImsCall imsCall , android.telephony.ims.ImsReasonInfo reasonInfo ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "mImsUssdListener onCallStartFailed reasonCode=" + ( reasonInfo.getCode ( ) ) ) ) ; onCallTerminated ( imsCall , reasonInfo ) ; }
Source:
public void setCertificate ( android.net.http.SslCertificate certificate ) { checkThread ( ) ; if ( DebugFlags.TRACE_API ) android.util.Log.d ( android.webkit.WebView.LOGTAG , ( "setCertificate=" + certificate ) ) ; mProvider.setCertificate ( certificate ) ; }

Target:
public void setCertificate ( android.net.http.SslCertificate certificate ) { checkThread ( ) ; if ( android.webkit.WebView.TRACE ) android.util.Log.d ( android.webkit.WebView.LOGTAG , ( "setCertificate=" + certificate ) ) ; mProvider.setCertificate ( certificate ) ; }
Source:
private java.util.List < com.android.ddmuilib.logcat.LogCatFilter > getCurrentLiveFilters ( ) { return com.android.ddmuilib.logcat.LogCatFilter.fromString ( mLiveFilterText.getText ( ) , com.android.ddmlib.Log.LogLevel.getByString ( mLiveFilterLevelCombo.getText ( ) ) ) ; }

Target:
private java.util.List < com.android.ddmlib.logcat.LogCatFilter > getCurrentLiveFilters ( ) { return com.android.ddmlib.logcat.LogCatFilter.fromString ( mLiveFilterText.getText ( ) , com.android.ddmlib.Log.LogLevel.getByString ( mLiveFilterLevelCombo.getText ( ) ) ) ; }
Source:
public void setConfiguration ( android.net.IpConfiguration config ) { try { mService.setConfiguration ( config ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void setConfiguration ( java.lang.String iface , android.net.IpConfiguration config ) { try { mService.setConfiguration ( iface , config ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void testUserPrefOffUserE ( ) { int userSetting = com.android.internal.content.PackageHelper.APP_INSTALL_EXTERNAL ; int iloc = PackageInfo.INSTALL_LOCATION_UNSPECIFIED ; setUserX ( false , userSetting , iloc ) ; }

Target:
public void testExistingEUserE ( ) { if ( android.os.Environment.isExternalStorageEmulated ( ) ) { return ; } int userSetting = com.android.internal.content.PackageHelper.APP_INSTALL_EXTERNAL ; int iFlags = android.content.pm.PackageManager.INSTALL_EXTERNAL ; setExistingXUserX ( userSetting , iFlags , PackageInfo.INSTALL_LOCATION_PREFER_EXTERNAL ) ; }
Source:
public static com.android.tools.perflib.heap.ClassObj findClass ( com.android.tools.perflib.heap.State state , java.lang.String name ) { return state.findClass ( name ) ; }

Target:
public static com.android.tools.perflib.heap.ClassObj findClass ( com.android.tools.perflib.heap.Snapshot snapshot , java.lang.String name ) { return snapshot.findClass ( name ) ; }
Source:
public boolean dispatchPopulateAccessibilityEvent ( android.view.accessibility.AccessibilityEvent event ) { return false ; }

Target:
public void sendAccessibilityEventUnchecked ( android.view.accessibility.AccessibilityEvent event ) { if ( ( mAccessibilityDelegate ) != null ) { mAccessibilityDelegate.sendAccessibilityEventUnchecked ( this , event ) ; } else { sendAccessibilityEventUncheckedInternal ( event ) ; } }
Source:
public int getInputMethodWindowVisibleHeight ( ) { synchronized ( mH ) { try { return mService.getInputMethodWindowVisibleHeight ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.view.inputmethod.InputMethodManager.TAG , ( "IME died: " + ( mCurId ) ) , e ) ; return 0 ; } } }

Target:
public int getInputMethodWindowVisibleHeight ( ) { synchronized ( mH ) { try { return mService.getInputMethodWindowVisibleHeight ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } }
Source:
public void checkValidity ( ) { if ( ! ( ( parent ) instanceof com.android.jack.ir.ast.JMethod ) ) { throw new com.android.jack.ir.JNodeInternalError ( this , "Invalid parent" ) ; } }

Target:
public void checkValidity ( ) { if ( ! ( ( parent ) instanceof com.android.jack.ir.ast.JMethod ) ) { throw new com.android.jack.ir.JNodeInternalError ( this , "Invalid parent" ) ; } if ( ( parent ) != ( enclosingMethod ) ) { throw new com.android.jack.ir.JNodeInternalError ( this , "Invalid parent or enclosing method" ) ; } }
Source:
public void dispatchCallStateChanged ( int newState ) { for ( com.android.incallui.videotech.VideoTech videoTech : videoTechs ) { videoTech.onCallStateChanged ( context , newState ) ; } }

Target:
public void dispatchCallStateChanged ( int newState , android.telecom.PhoneAccountHandle phoneAccountHandle ) { for ( com.android.incallui.videotech.VideoTech videoTech : videoTechs ) { videoTech.onCallStateChanged ( context , newState , phoneAccountHandle ) ; } }
Source:
public void testVFE3 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.iget_boolean.d.T_iget_boolean_13" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testVFE3 ( ) { try { new dot.junit.opcodes.iget_boolean.d.T_iget_boolean_13 ( ) . run ( ) ; fail ( "expected a NoSuchFieldError exception" ) ; } catch ( java.lang.NoSuchFieldError e ) { } }
Source:
private void replaceAvd ( com.android.sdklib.internal.avd.AvdManager.AvdInfo oldAvd , com.android.sdklib.internal.avd.AvdManager.AvdInfo newAvd ) { synchronized ( mAllAvdList ) { mAllAvdList.remove ( oldAvd ) ; mAllAvdList.add ( newAvd ) ; mValidAvdList = mBrokenAvdList = null ; } }

Target:
public boolean removeAvd ( com.android.sdklib.internal.avd.AvdInfo avdInfo ) { synchronized ( mAllAvdList ) { if ( mAllAvdList.remove ( avdInfo ) ) { mValidAvdList = mBrokenAvdList = null ; return true ; } } return false ; }
Source:
public boolean print ( @ javax.annotation.Nonnull java.io.PrintStream printer , @ javax.annotation.Nonnull java.lang.Object object ) { return this . < java.lang.String > getFormatter ( DataType.STRING ) . print ( printer , ( ( "<missing formatter for '" + ( object.getClass ( ) . getCanonicalName ( ) ) ) + "'>" ) ) ; }

Target:
public boolean print ( @ javax.annotation.Nonnull java.io.PrintWriter printer , @ javax.annotation.Nonnull java.lang.Object object ) { return this . < java.lang.String > getFormatter ( DataType.STRING ) . print ( printer , ( ( "<missing formatter for '" + ( object.getClass ( ) . getCanonicalName ( ) ) ) + "'>" ) ) ; }
Source:
public org.gradle.api.tasks.compile.JavaCompile getJavaCompile ( ) { return getVariantData ( ) . javaCompileTask ; }

Target:
public org.gradle.api.tasks.compile.AbstractCompile getJavaCompiler ( ) { return getVariantData ( ) . javaCompileTask ; }
Source:
public native int getIntVolatile ( java.lang.Object obj , long offset ) ;

Target:
public native double getDouble ( java.lang.Object obj , long offset ) ;
Source:
public void run ( ) { assertTrue ( mTextView.moveCursorToVisibleOffset ( ) ) ; }

Target:
public void run ( ) { mTextView = findTextView ( R.id.textview_text ) ; mTextView.setText ( spannableText , BufferType.SPANNABLE ) ; }
Source:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newSample ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision minToolsRev ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_SAMPLES ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mMinToolsRev = minToolsRev ; return p ; }

Target:
public static com.android.sdklib.repository.descriptors.PkgDesc.Builder newSample ( @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version , @ com.android.annotations.NonNull com.android.sdklib.repository.MajorRevision revision , @ com.android.annotations.NonNull com.android.sdklib.repository.FullRevision minToolsRev ) { com.android.sdklib.repository.descriptors.PkgDesc.Builder p = new com.android.sdklib.repository.descriptors.PkgDesc.Builder ( PkgType.PKG_SAMPLE ) ; p.mAndroidVersion = version ; p.mMajorRevision = revision ; p.mMinToolsRev = minToolsRev ; return p ; }
Source:
public double [ ] getLimits ( ) { return choiceLimits ; }

Target:
public double [ ] getLimits ( ) { double [ ] newLimits = java.util.Arrays.copyOf ( choiceLimits , choiceLimits.length ) ; return newLimits ; }
Source:
private void sendConnectTimeoutMessage ( ) { if ( com.android.bluetooth.map.BluetoothMapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.map.BluetoothMapService.TAG , "sendConnectTimeoutMessage()" ) ; if ( ( mSessionStatusHandler ) != null ) { android.os.Message msg = mSessionStatusHandler.obtainMessage ( com.android.bluetooth.map.BluetoothMapService.USER_TIMEOUT ) ; msg.sendToTarget ( ) ; } }

Target:
private void sendConnectCancelMessage ( ) { if ( ( mSessionStatusHandler ) != null ) { android.os.Message msg = mSessionStatusHandler.obtainMessage ( com.android.bluetooth.map.BluetoothMapService.MSG_MAS_CONNECT_CANCEL ) ; msg.sendToTarget ( ) ; } }
Source:
protected void writeList ( @ javax.annotation.Nonnull java.io.PrintStream ps , @ javax.annotation.Nonnull java.util.List < java.lang.String > list ) { ps.print ( com.google.common.base.Joiner.on ( com.android.jack.analysis.dependency.Dependency.LIST_VALUE_SEPARATOR ) . useForNull ( "" ) . join ( list.iterator ( ) ) ) ; }

Target:
protected void writeList ( @ javax.annotation.Nonnull java.io.PrintStream ps , @ javax.annotation.Nonnull java.util.List < java.lang.String > list ) { ps.print ( com.android.jack.analysis.dependency.Dependency.listValueJoiner.join ( list.iterator ( ) ) ) ; }
Source:
public static native long SSL_do_handshake_bio ( long sslNativePointer , long sourceBioRef , long sinkBioRef , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks shc , boolean client_mode , byte [ ] alpnProtocols ) throws java.net.SocketTimeoutException , java.security.cert.CertificateException , javax.net.ssl.SSLException ;

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:
void plug ( long batteryUptime , long batteryRealtime ) ;

Target:
void plug ( long elapsedRealtime , long batteryUptime , long batteryRealtime ) ;
Source:
public int compareTo ( com.android.settings.fuelgauge.BatterySipper other ) { return ( ( int ) ( ( other.getSortValue ( ) ) - ( getSortValue ( ) ) ) ) ; }

Target:
public int compareTo ( com.android.settings.fuelgauge.BatterySipper other ) { return java.lang.Double.compare ( other.getSortValue ( ) , getSortValue ( ) ) ; }
Source:
public static synchronized java.util.concurrent.ExecutorService getExecutor ( ) { com.android.ide.common.internal.ExecutorSingleton.checkExecutor ( ) ; return com.android.ide.common.internal.ExecutorSingleton.sExecutorService ; }

Target:
public static synchronized java.util.concurrent.ExecutorService getExecutor ( ) { if ( ( com.android.ide.common.internal.ExecutorSingleton.sExecutorService ) == null ) { com.android.ide.common.internal.ExecutorSingleton.sExecutorService = java.util.concurrent.Executors.newFixedThreadPool ( java.lang.Runtime.getRuntime ( ) . availableProcessors ( ) ) ; } return com.android.ide.common.internal.ExecutorSingleton.sExecutorService ; }
Source:
public void run ( ) { org.eclipse.swt.widgets.Shell shell = getDisplay ( ) . getActiveShell ( ) ; boolean ok = org.eclipse.jface.dialogs.MessageDialog.openQuestion ( shell , "Delete Device Definition" , java.lang.String.format ( "Please confirm that you want to delete the device definition named '%s'. This operation cannot be reverted." , name ) ) ; result.set ( ok ) ; }

Target:
public void widgetDefaultSelected ( org.eclipse.swt.events.SelectionEvent event ) { onEditDevice ( ) ; }
Source:
protected void logd ( java.lang.String msg ) { android.util.Log.d ( com.android.internal.telephony.UsimFileHandler.LOG_TAG , msg ) ; }

Target:
protected void logd ( java.lang.String msg ) { android.telephony.Rlog.d ( com.android.internal.telephony.UsimFileHandler.LOG_TAG , msg ) ; }
Source:
public void run ( ) { setLayerType ( layerType , paint ) ; }

Target:
public java.lang.Integer call ( ) { return computeHorizontalScrollRange ( ) ; }
Source:
private boolean hasMaximumDialingCalls ( ) { return ( com.android.server.telecom.CallsManager.MAXIMUM_DIALING_CALLS ) <= ( getNumCallsWithState ( CallState.DIALING ) ) ; }

Target:
private boolean hasMaximumDialingCalls ( ) { return ( com.android.server.telecom.CallsManager.MAXIMUM_DIALING_CALLS ) <= ( getNumCallsWithState ( CallState.DIALING , CallState.PULLING ) ) ; }
Source:
public boolean matches ( java.lang.Object object ) { android.content.Intent intent = ( ( android.content.Intent ) ( object ) ) ; return ( NetworkScoreManager.ACTION_RECOMMEND_NETWORKS.equals ( intent.getAction ( ) ) ) && ( packageName.equals ( intent.getPackage ( ) ) ) ; }

Target:
public boolean matchesObject ( java.lang.Object object ) { android.content.Intent intent = ( ( android.content.Intent ) ( object ) ) ; return ( NetworkScoreManager.ACTION_RECOMMEND_NETWORKS.equals ( intent.getAction ( ) ) ) && ( packageName.equals ( intent.getPackage ( ) ) ) ; }