auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testE1 ( ) { dot.junit.opcodes.aget_byte.d.T_aget_byte_1 t = new dot.junit.opcodes.aget_byte.d.T_aget_byte_1 ( ) ; byte [ ] arr = new byte [ 2 ] ; try { t.run ( arr , 2 ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.aget_byte.d.T_aget_byte_1" , java.lang.ArrayIndexOutOfBoundsException.class , new byte [ 2 ] , 2 ) ; }
Source:
public void testCallSuper ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "src/test/pkg/CallSuperTest.java:11: Warning: Overriding method should call super.test1 [MissingSuperCall]\n" + " protected void test1() { // ERROR\n" ) + " ~~~~~~~\n" ) + "src/test/pkg/CallSuperTest.java:14: Warning: Overriding method should call super.test2 [MissingSuperCall]\n" ) + " protected void test2() { // ERROR\n" ) + " ~~~~~~~\n" ) + "src/test/pkg/CallSuperTest.java:17: Warning: Overriding method should call super.test3 [MissingSuperCall]\n" ) + " protected void test3() { // ERROR\n" ) + " ~~~~~~~\n" ) + "src/test/pkg/CallSuperTest.java:20: Warning: Overriding method should call super.test4 [MissingSuperCall]\n" ) + " protected void test4(int arg) { // ERROR\n" ) + " ~~~~~~~~~~~~~~\n" ) + "src/test/pkg/CallSuperTest.java:26: Warning: Overriding method should call super.test5 [MissingSuperCall]\n" ) + " protected void test5(int arg1, boolean arg2, Map<List<String>,?> arg3, // ERROR\n" ) + " ^\n" ) + "src/test/pkg/CallSuperTest.java:30: Warning: Overriding method should call super.test5 [MissingSuperCall]\n" ) + " protected void test5() { // ERROR\n" ) + " ~~~~~~~\n" ) + "0 errors, 6 warnings\n" ) ) , lintProject ( "src/test/pkg/CallSuperTest.java.txt=>src/test/pkg/CallSuperTest.java" , "src/android/support/annotation/CallSuper.java.txt=>src/android/support/annotation/CallSuper.java" ) ) ; }

Target:
public void testCallSuper ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "src/test/pkg/CallSuperTest.java:11: Error: Overriding method should call super.test1 [MissingSuperCall]\n" + " protected void test1() { // ERROR\n" ) + " ~~~~~~~\n" ) + "src/test/pkg/CallSuperTest.java:14: Error: Overriding method should call super.test2 [MissingSuperCall]\n" ) + " protected void test2() { // ERROR\n" ) + " ~~~~~~~\n" ) + "src/test/pkg/CallSuperTest.java:17: Error: Overriding method should call super.test3 [MissingSuperCall]\n" ) + " protected void test3() { // ERROR\n" ) + " ~~~~~~~\n" ) + "src/test/pkg/CallSuperTest.java:20: Error: Overriding method should call super.test4 [MissingSuperCall]\n" ) + " protected void test4(int arg) { // ERROR\n" ) + " ~~~~~~~~~~~~~~\n" ) + "src/test/pkg/CallSuperTest.java:26: Error: Overriding method should call super.test5 [MissingSuperCall]\n" ) + " protected void test5(int arg1, boolean arg2, Map<List<String>,?> arg3, // ERROR\n" ) + " ^\n" ) + "src/test/pkg/CallSuperTest.java:30: Error: Overriding method should call super.test5 [MissingSuperCall]\n" ) + " protected void test5() { // ERROR\n" ) + " ~~~~~~~\n" ) + "6 errors, 0 warnings\n" ) ) , lintProject ( "src/test/pkg/CallSuperTest.java.txt=>src/test/pkg/CallSuperTest.java" , "src/android/support/annotation/CallSuper.java.txt=>src/android/support/annotation/CallSuper.java" ) ) ; }
Source:
public void callSessionHandoverFailed ( com.android.ims.internal.IImsCallSession i , int srcAccessTech , int targetAccessTech , android.telephony.ims.ImsReasonInfo reasonInfo ) throws android.os.RemoteException { mNewListener.callSessionHandoverFailed ( srcAccessTech , targetAccessTech , reasonInfo ) ; }

Target:
public void callSessionUpdated ( com.android.ims.internal.IImsCallSession i , android.telephony.ims.ImsCallProfile imsCallProfile ) throws android.os.RemoteException { mNewListener.callSessionUpdated ( imsCallProfile ) ; }
Source:
void plug ( long batteryUptime , long batteryRealtime ) ;

Target:
public void writeToParcel ( android.os.Parcel out , long batteryRealtime ) { super . writeToParcel ( out , batteryRealtime ) ; out.writeLong ( mLastAddedTime ) ; out.writeLong ( mLastAddedDuration ) ; }
Source:
public java.lang.String getLine1AlphaTag ( ) { return getLine1AlphaTagForSubscriber ( android.telephony.TelephonyManager.getDefaultSubscription ( ) ) ; }

Target:
public java.lang.String getLine1AlphaTag ( ) { return getLine1AlphaTag ( getSubId ( ) ) ; }
Source:
private native void native_drawBitmap ( int nativeCanvas , int bitmap , android.graphics.Rect src , android.graphics.RectF dst , int nativePaintOrZero , int screenDensity , int bitmapDensity ) ;

Target:
private native void native_drawBitmap ( long nativeCanvas , long nativeBitmap , android.graphics.Rect src , android.graphics.RectF dst , long nativePaintOrZero , int screenDensity , int bitmapDensity ) ;
Source:
public boolean isVoicemailVibrationEnabled ( android.telecom.PhoneAccountHandle accountHandle ) { final com.android.internal.telephony.Phone phone = com.android.phone.PhoneUtils.getPhoneForPhoneAccountHandle ( accountHandle ) ; if ( phone == null ) { return false ; } return com.android.phone.settings.VoicemailNotificationSettingsUtil.isVibrationEnabled ( phone ) ; }

Target:
public android.net.Uri getVoicemailRingtoneUri ( android.telecom.PhoneAccountHandle accountHandle ) { com.android.internal.telephony.Phone phone = com.android.phone.PhoneUtils.getPhoneForPhoneAccountHandle ( accountHandle ) ; if ( phone == null ) { phone = mPhone ; } return com.android.phone.settings.VoicemailNotificationSettingsUtil.getRingtoneUri ( phone ) ; }
Source:
public static void updateSendFailedNotification ( android.content.Context context ) { if ( ( com.android.mms.transaction.MessagingNotification.getUndeliveredMessageCount ( context , null ) ) < 1 ) { com.android.mms.transaction.MessagingNotification.cancelNotification ( context , com.android.mms.transaction.MessagingNotification.MESSAGE_FAILED_NOTIFICATION_ID ) ; } else { com.android.mms.transaction.MessagingNotification.notifySendFailed ( context ) ; } }

Target:
protected void onPostExecute ( java.lang.Integer result ) { if ( result < 1 ) { com.android.mms.transaction.MessagingNotification.cancelNotification ( context , com.android.mms.transaction.MessagingNotification.MESSAGE_FAILED_NOTIFICATION_ID ) ; } else { com.android.mms.transaction.MessagingNotification.notifySendFailed ( context ) ; } }
Source:
public java.lang.Object clone ( ) { try { return super . clone ( ) ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.AssertionError ( e ) ; } }

Target:
public java.lang.Object clone ( ) { try { return super . clone ( ) ; } catch ( java.lang.CloneNotSupportedException e ) { fail ( "Clone must be supported" ) ; return null ; } }
Source:
public void tearDown ( ) throws java.lang.Exception { com.android.server.telecom.Log.v ( this , "Restoring context classloaders" ) ; com.android.server.telecom.Log.v ( this , "Clearing property %s" , com.android.server.telecom.tests.MockitoHelper.DEXCACHE ) ; java.lang.System.clearProperty ( com.android.server.telecom.tests.MockitoHelper.DEXCACHE ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { android.telecom.Log.v ( this , "Restoring context classloaders" ) ; android.telecom.Log.v ( this , "Clearing property %s" , com.android.server.telecom.tests.MockitoHelper.DEXCACHE ) ; java.lang.System.clearProperty ( com.android.server.telecom.tests.MockitoHelper.DEXCACHE ) ; }
Source:
public static void waitForIdleHandler ( android.os.HandlerThread handlerThread , long timeoutMs ) { com.android.internal.util.TestUtils.waitForIdleLooper ( handlerThread.getLooper ( ) , timeoutMs ) ; }

Target:
public static void waitForIdleHandler ( android.os.HandlerThread handlerThread , long timeoutMs ) { com.android.internal.util.TestUtils.waitForIdleHandler ( handlerThread.getThreadHandler ( ) , timeoutMs ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { onDayChange ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { selectDevice ( device ) ; onDeviceChange ( true ) ; }
Source:
public static native java.lang.String getCurrencySymbol ( java.lang.String locale , java.lang.String currencyCode ) ;

Target:
public static java.lang.String getCurrencySymbol ( java.util.Locale locale , java.lang.String currencyCode ) { return libcore.icu.ICU.getCurrencySymbol ( locale.toLanguageTag ( ) , currencyCode ) ; }
Source:
public void captivePortalCheckComplete ( ) { try { mService.captivePortalCheckComplete ( ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public boolean startCustomizedScan ( android.net.wifi.ScanSettings requested ) { try { mService.startScan ( requested , null ) ; return true ; } catch ( android.os.RemoteException e ) { return false ; } }
Source:
public void float64 ( double v ) throws java.io.IOException { int64 ( java.lang.Double.doubleToLongBits ( v ) ) ; }

Target:
public void uint32 ( long v ) throws java.io.IOException { uintv ( v ) ; }
Source:
public void testE2 ( ) { try { dot.junit.opcodes.instance_of.d.T_instance_of_3 tt = new dot.junit.opcodes.instance_of.d.T_instance_of_3 ( ) ; tt.run ( ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.IllegalAccessError e ) { } catch ( java.lang.VerifyError e ) { } }

Target:
public void testE2 ( ) { try { dot.junit.opcodes.instance_of.d.T_instance_of_3 tt = new dot.junit.opcodes.instance_of.d.T_instance_of_3 ( ) ; tt.run ( ) ; fail ( "expected IllegalAccessError" ) ; } catch ( java.lang.IllegalAccessError e ) { } }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { mFrameSelectionSpinner.setEnabled ( false ) ; int selectedFrame = mFrameSelectionSpinner.getSelection ( ) ; mFrameSelectionScale.setSelection ( selectedFrame ) ; selectFrame ( selectedFrame ) ; mFrameSelectionSpinner.setEnabled ( true ) ; }

Target:
public void run ( ) { selectAll ( ) ; }
Source:
public void rejectWithMessage ( java.lang.String callId , java.lang.String message , android.telecom.Logging.Session.Info info ) throws android.os.RemoteException { }

Target:
public void rejectWithMessage ( java.lang.String callId , java.lang.String message , android.telecom.Logging.Session.Info info ) throws android.os.RemoteException { rejectedCallIds.add ( callId ) ; }
Source:
private com.google.i18n.phonenumbers.PhoneNumberUtil.MatchType isNumberMatch ( @ android.support.annotation.NonNull com.android.dialer.DialerInternalPhoneNumber firstNumberIn , @ android.support.annotation.NonNull com.android.dialer.DialerInternalPhoneNumber secondNumberIn ) { com.android.dialer.common.Assert.isWorkerThread ( ) ; return phoneNumberUtil.isNumberMatch ( com.android.dialer.phonenumberproto.Converter.protoToPojo ( com.android.dialer.common.Assert.isNotNull ( firstNumberIn ) ) , com.android.dialer.phonenumberproto.Converter.protoToPojo ( com.android.dialer.common.Assert.isNotNull ( secondNumberIn ) ) ) ; }

Target:
private boolean isServiceNumber ( @ android.support.annotation.NonNull java.lang.String rawNumber ) { return ( rawNumber.contains ( "#" ) ) || ( rawNumber.startsWith ( "*" ) ) ; }
Source:
public static boolean isEncodingSupported ( java.lang.String charsetName ) { return org.apache.james.mime4j.util.CharsetUtil.encodingSupported.contains ( charsetName.toLowerCase ( ) ) ; }

Target:
public static boolean isDecodingSupported ( java.lang.String charsetName ) { return org.apache.james.mime4j.util.CharsetUtil.decodingSupported.contains ( charsetName.toLowerCase ( java.util.Locale.US ) ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%14.9g (%8x) +- %14.9g ulf %d" , mValue , java.lang.Float.floatToRawIntBits ( mValue ) , mError , getUlf ( ) ) ; }

Target:
public java.lang.String toString ( ) { return java.lang.String.format ( "%24.9g (%16x) +- %24.9g ulf %d (%d bits)" , mValue , java.lang.Double.doubleToRawLongBits ( mValue ) , mError , getUlf ( ) , mNumberOfBits ) ; }
Source:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType.isCreate ( ) ) { node.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , "android:apiKey" , ( "Your API key: see " + "http://code.google.com/android/add-ons/google-apis/mapkey.html" ) ) ; } }

Target:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType.isCreate ( ) ) { node.setAttribute ( com.android.util.XmlUtils.ANDROID_URI , "android:apiKey" , ( "Your API key: see " + "http://code.google.com/android/add-ons/google-apis/mapkey.html" ) ) ; } }
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 testUserPrefOffUserE ( ) { if ( android.os.Environment.isExternalStorageEmulated ( ) ) { return ; } int userSetting = com.android.internal.content.PackageHelper.APP_INSTALL_EXTERNAL ; int iloc = android.content.pm.PackageInfo.INSTALL_LOCATION_UNSPECIFIED ; setUserX ( false , userSetting , iloc ) ; }
Source:
public synchronized java.lang.reflect.TypeVariable < java.lang.Class < T > > [ ] getTypeParameters ( ) { org.apache.harmony.luni.lang.reflect.GenericSignatureParser parser = new org.apache.harmony.luni.lang.reflect.GenericSignatureParser ( getClassLoader ( ) ) ; parser.parseForClass ( this , getSignatureAttribute ( ) ) ; return parser.formalTypeParameters.clone ( ) ; }

Target:
public synchronized java.lang.reflect.TypeVariable < java.lang.Class < T > > [ ] getTypeParameters ( ) { libcore.reflect.GenericSignatureParser parser = new libcore.reflect.GenericSignatureParser ( getClassLoader ( ) ) ; parser.parseForClass ( this , getSignatureAttribute ( ) ) ; return parser.formalTypeParameters.clone ( ) ; }
Source:
public void testVP8EncodeDecodeVideoFromBufferToBufferQVGA ( ) throws java.lang.Exception { setParameters ( 320 , 240 , 2000000 , android.media.cts.EncodeDecodeTest.MIME_TYPE_VP8 ) ; encodeDecodeVideoFromBuffer ( false ) ; }

Target:
public void testEncodeDecodeVideoFromBufferToBufferQVGA ( ) throws java.lang.Exception { setParameters ( 320 , 240 , 2000000 , android.media.cts.EncodeDecodeTest.MIME_TYPE_AVC , true , false ) ; encodeDecodeVideoFromBuffer ( false ) ; }
Source:
private void log ( java.lang.String string ) { android.util.Log.d ( com.android.internal.telephony.uicc.UiccController.LOG_TAG , string ) ; }

Target:
private void log ( java.lang.String string ) { android.telephony.Rlog.d ( com.android.internal.telephony.uicc.UiccController.LOG_TAG , string ) ; }
Source:
public void testMethodParametersAlignmentAfterMethodVisibilityChange ( ) { getCurrentCodeStyleSettings ( ) . ALIGN_MULTILINE_PARAMETERS = true ; getCurrentCodeStyleSettings ( ) . ALIGN_MULTILINE_PARAMETERS_IN_CALLS = true ; doTest ( PsiModifier.PROTECTED , null , null , new com.intellij.refactoring.SimpleParameterGen ( ) , new com.intellij.refactoring.SimpleExceptionsGen ( ) , false ) ; }

Target:
public void testMethodParametersAlignmentAfterMethodVisibilityChange ( ) { getJavaSettings ( ) . ALIGN_MULTILINE_PARAMETERS = true ; getJavaSettings ( ) . ALIGN_MULTILINE_PARAMETERS_IN_CALLS = true ; doTest ( PsiModifier.PROTECTED , null , null , new com.intellij.refactoring.SimpleParameterGen ( ) , new com.intellij.refactoring.SimpleExceptionsGen ( ) , false ) ; }
Source:
java.lang.Object getAdapterItemValue ( com.android.ide.common.rendering.api.ResourceReference adapterView , java.lang.Object adapterCookie , com.android.ide.common.rendering.api.ResourceReference itemRef , int fullPosition , int typePosition , com.android.ide.common.rendering.api.ResourceReference viewRef , com.android.ide.common.rendering.api.IProjectCallback.ViewAttribute viewAttribute , java.lang.Object defaultValue ) ;

Target:
java.lang.Object getAdapterItemValue ( com.android.ide.common.rendering.api.ResourceReference adapterView , java.lang.Object adapterCookie , com.android.ide.common.rendering.api.ResourceReference itemRef , int fullPosition , int typePosition , int fullChildPosition , int typeChildPosition , com.android.ide.common.rendering.api.ResourceReference viewRef , com.android.ide.common.rendering.api.IProjectCallback.ViewAttribute viewAttribute , java.lang.Object defaultValue ) ;
Source:
public boolean test ( int flag ) { return flag != ( com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.BB_ASSIGNS_A ) ; }

Target:
boolean isCondition4Violated ( @ javax.annotation.Nonnull java.util.List < com.android.jack.ir.ast.JStatement > startStmts ) { return traverse ( startStmts , com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.BB_ASSIGNS_A , com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.BB_ASSIGNS_OR_READS_B ) ; }
Source:
public void testAesCbcHmacSha384Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA384 , getAuthKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth ) ; }

Target:
private int calculateAesCbcEspPacketSizeWithAuth ( int payloadLen , int authTruncLen ) { return calculateEspPacketSize ( payloadLen , android.net.cts.IpSecManagerTest.AES_CBC_IV_LEN , android.net.cts.IpSecManagerTest.AES_CBC_BLK_SIZE , authTruncLen ) ; }
Source:
public java.util.Collection < com.android.jack.ir.ast.JAnnotation > getAnnotations ( ) { return annotations.getAnnotations ( ) ; }

Target:
public java.util.List < com.android.jack.ir.ast.JAnnotation > getAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationType annotationType ) { return com.android.jack.Jack.getUnmodifiableCollections ( ) . getUnmodifiableList ( com.android.jack.util.AnnotationUtils.getAnnotation ( annotations , annotationType ) ) ; }
Source:
public static java.lang.invoke.VarHandle byteArrayViewVarHandle ( java.lang.Class < ? > viewArrayClass , java.nio.ByteOrder byteOrder ) throws java.lang.IllegalArgumentException { java.lang.invoke.MethodHandles.checkClassIsArray ( viewArrayClass ) ; java.lang.invoke.MethodHandles.checkTypeIsViewable ( viewArrayClass.getComponentType ( ) ) ; return java.lang.invoke.ByteArrayVarHandle.create ( viewArrayClass , byteOrder ) ; }

Target:
public static java.lang.invoke.VarHandle byteArrayViewVarHandle ( java.lang.Class < ? > viewArrayClass , java.nio.ByteOrder byteOrder ) throws java.lang.IllegalArgumentException { java.lang.invoke.MethodHandles.checkClassIsArray ( viewArrayClass ) ; java.lang.invoke.MethodHandles.checkTypeIsViewable ( viewArrayClass.getComponentType ( ) ) ; return java.lang.invoke.ByteArrayViewVarHandle.create ( viewArrayClass , byteOrder ) ; }
Source:
public void respondToRttRequest ( int id , boolean accept ) { mInCallAdapter.respondToRttRequest ( id , accept ) ; }

Target:
public void respondToRttRequest ( int id , boolean accept ) { mInCallAdapter.respondToRttRequest ( mTelecomCallId , id , accept ) ; }
Source:
public void run ( ) { mAreAccountsInitialized = true ; }

Target:
public void loggedRun ( ) { mAreAccountsInitialized = true ; }
Source:
public void run ( ) { try { mDevice.executeShellCommand ( cmd , receiver ) ; } catch ( java.io.IOException e ) { com.android.cts.Log.e ( "" , e ) ; } }

Target:
public void run ( ) { try { mDevice.executeShellCommand ( cmd , receiver ) ; } catch ( java.io.IOException e ) { com.android.cts.Log.e ( java.lang.String.format ( "Failed to execute shell command %s on device %s" , cmd , mDevice.getSerialNumber ( ) ) , e ) ; } }
Source:
public void postForkChild ( int runtimeFlags , boolean isSystemServer , java.lang.String instructionSet ) { dalvik.system.ZygoteHooks.nativePostForkChild ( token , runtimeFlags , isSystemServer , instructionSet ) ; java.lang.Math.setRandomSeedInternal ( java.lang.System.currentTimeMillis ( ) ) ; }

Target:
public void postForkChild ( int runtimeFlags , boolean isSystemServer , boolean isZygote , java.lang.String instructionSet ) { dalvik.system.ZygoteHooks.nativePostForkChild ( token , runtimeFlags , isSystemServer , isZygote , instructionSet ) ; java.lang.Math.setRandomSeedInternal ( java.lang.System.currentTimeMillis ( ) ) ; }
Source:
final float getFloat ( int offset ) { return sun.nio.ch.NativeObject.unsafe.getFloat ( ( offset + ( address ) ) ) ; }

Target:
final float getFloat ( int offset ) { return sun.nio.ch.NativeObject.unsafe.getFloat$ ( ( offset + ( address ) ) ) ; }
Source:
public void testCanEncodeCharSequence() { assertTrue(encoder.canEncode("\uc2c0")); assertTrue(encoder.canEncode("\ud800")); assertTrue(encoder.canEncode("\ud800\udc00")); assertTrue(encoder.canEncode("\ud800\udb00")); }

Target:
public void test_canEncode_CharSequence_ICUBug() { assertTrue(encoder.canEncode("\ud800")); }
Source:
public int getDrawableId ( ) { return isBlocked ? R.drawable.bottomsheet_unblock : R.drawable.quantum_ic_block_vd_theme_24 ; }

Target:
public int getDrawableId ( ) { return isBlocked ? R.drawable.quantum_ic_unblock_vd_theme_24 : R.drawable.quantum_ic_block_vd_theme_24 ; }
Source:
private android.support.test.uiautomator.UiObject2 getLabel ( android.autofillservice.cts.UiBot uiBot , java.lang.String label ) { try { return uiBot.assertShownByContentDescription ( label ) ; } catch ( java.lang.Throwable t ) { return uiBot.assertShownByText ( label ) ; } }

Target:
private android.support.test.uiautomator.UiObject2 getLabel ( android.autofillservice.cts.UiBot uiBot , java.lang.String contentDescription ) { final android.support.test.uiautomator.UiObject2 label = uiBot.assertShownByContentDescription ( contentDescription ) ; return label ; }
Source:
private native java.lang.Class < ? > [ ] getExceptionTypesNative ( ) ;

Target:
private native boolean isAnnotationPresentNative ( java.lang.Class < ? extends java.lang.annotation.Annotation > annotationType ) ;
Source:
public java.lang.String getClassName ( ) { java.util.regex.Matcher matcher = methodStringMatcher ( ) ; return matcher.matches ( ) ? matcher.group ( 2 ) : toString ( ) ; }

Target:
public java.lang.String getClassName ( ) { return ( fTestClass ) != null ? fTestClass.getName ( ) : methodAndClassNamePatternGroupOrDefault ( 2 , toString ( ) ) ; }
Source:
public int following ( int offset ) { return libcore.icu.NativeBreakIterator.followingImpl ( this . address , offset ) ; }

Target:
public int following ( int offset ) { return libcore.icu.NativeBreakIterator.followingImpl ( this . address , this . string , offset ) ; }
Source:
public java.util.List < android.telephony.mbms.DownloadRequest > listPendingDownloads ( java.lang.String appName ) throws android.os.RemoteException { return null ; }

Target:
public java.util.List < android.telephony.mbms.DownloadRequest > listPendingDownloads ( java.lang.String appName , int subscriptionId ) throws android.os.RemoteException { return null ; }
Source:
public void onCreate ( ) { super . onCreate ( ) ; android.media.cts.StubMediaBrowserService.sSession = new android.media.session.MediaSession ( this , "MediaBrowserStubService" ) ; setSessionToken ( android.media.cts.StubMediaBrowserService.sSession.getSessionToken ( ) ) ; }

Target:
public void onCreate ( ) { super . onCreate ( ) ; android.media.cts.StubMediaBrowserService.sInstance = this ; android.media.cts.StubMediaBrowserService.sSession = new android.media.session.MediaSession ( this , "StubMediaBrowserService" ) ; setSessionToken ( android.media.cts.StubMediaBrowserService.sSession.getSessionToken ( ) ) ; }
Source:
protected static java.lang.String modeToString ( int mode ) { if ( ( mode < ( android.icu.text.Bidi.REORDER_DEFAULT ) ) || ( mode > ( android.icu.text.Bidi.REORDER_INVERSE_FOR_NUMBERS_SPECIAL ) ) ) { return "INVALID" ; } return android.icu.dev.test.bidi.BidiTest.modeDescriptions [ mode ] ; }

Target:
protected static java.lang.String modeToString ( int mode ) { if ( ( mode < ( android.icu.text.Bidi.REORDER_DEFAULT ) ) || ( mode > ( android.icu.text.Bidi.REORDER_INVERSE_FOR_NUMBERS_SPECIAL ) ) ) { return "INVALID" ; } return android.icu.dev.test.bidi.BidiFmwk.modeDescriptions [ mode ] ; }
Source:
private void assertVerified ( java.lang.String apkFilenameInResources , java.lang.Integer minSdkVersionOverride ) throws java.lang.Exception { com.android.apksig.ApkVerifierTest.assertVerified ( verify ( apkFilenameInResources , minSdkVersionOverride ) ) ; }

Target:
private ApkVerifier.Result verify ( java.lang.String apkFilenameInResources ) throws com.android.apksig.apk.ApkFormatException , java.io.IOException , java.security.NoSuchAlgorithmException { return verify ( apkFilenameInResources , null , null ) ; }
Source:
public java.lang.Object call ( ) throws java.lang.Exception { latch.countDown ( ) ; return result ; }

Target:
public java.lang.Object answer ( org.mockito.invocation.InvocationOnMock invocation ) throws java.lang.Exception { latch.countDown ( ) ; return result ; }
Source:
private void clear ( ) { inCallPresenter = null ; primaryCall = null ; prevCallState = com.android.incallui.call.DialerCall.State.INVALID ; wasVideoCall = false ; isInBackground = false ; }

Target:
private void clear ( ) { inCallPresenter = null ; primaryCall = null ; prevCallState = com.android.incallui.call.state.DialerCallState.INVALID ; wasVideoCall = false ; isInBackground = false ; }
Source:
public org.eclipse.swt.dnd.Clipboard getClipboard ( ) { return mClipboard ; }

Target:
org.eclipse.swt.dnd.DragSourceListener getDragSourceListener ( ) { return mDragSourceListener ; }
Source:
private void getActivityEnergyInfoFromController ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PRIVILEGED , "Need BLUETOOTH permission" ) ; if ( isActivityAndEnergyReportingSupported ( ) ) { readEnergyInfo ( ) ; } }

Target:
boolean isBondingInitiatedLocally ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; com.android.bluetooth.btservice.RemoteDevices.DeviceProperties deviceProp = mRemoteDevices.getDeviceProperties ( device ) ; if ( deviceProp == null ) { return false ; } return deviceProp.isBondingInitiatedLocally ( ) ; }
Source:
public final void scheduleNewIntent ( java.util.List < android.content.Intent > intents , android.os.IBinder token ) { android.app.ActivityThread.NewIntentData data = new android.app.ActivityThread.NewIntentData ( ) ; data.intents = intents ; data.token = token ; queueOrSendMessage ( android.app.ActivityThread.H.NEW_INTENT , data ) ; }

Target:
public final void scheduleNewIntent ( java.util.List < android.content.Intent > intents , android.os.IBinder token ) { android.app.ActivityThread.NewIntentData data = new android.app.ActivityThread.NewIntentData ( ) ; data.intents = intents ; data.token = token ; sendMessage ( android.app.ActivityThread.H.NEW_INTENT , data ) ; }
Source:
public void testAccessibility ( ) throws java.lang.Exception { assertEquals ( ( "SetJavaScriptEnabled.java:14: Warning: Using setJavaScriptEnabled " + ( "can introduce XSS vulnerabilities into you application, review " + "carefully." ) ) , lintProject ( "src/test/pkg/SetJavaScriptEnabled.java.txt=>src/test/pkg/SetJavaScriptEnabled.java" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/SetJavaScriptEnabled.java:14: Warning: Using setJavaScriptEnabled can introduce XSS vulnerabilities into you application, review carefully. [SetJavaScriptEnabled]\n" + ( ( ( " webView.getSettings().setJavaScriptEnabled(true); // bad\n" + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) + "" ) ) , lintProject ( "src/test/pkg/SetJavaScriptEnabled.java.txt=>src/test/pkg/SetJavaScriptEnabled.java" ) ) ; }
Source:
public static java.lang.String generateTempPhotoFileName ( ) { java.util.Date date = new java.util.Date ( java.lang.System.currentTimeMillis ( ) ) ; java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat ( com.android.contacts.util.ContactPhotoUtils.PHOTO_DATE_FORMAT ) ; return ( "ContactPhoto-" + ( dateFormat.format ( date ) ) ) + ".jpg" ; }

Target:
public static java.lang.String generateTempPhotoFileName ( ) { java.util.Date date = new java.util.Date ( java.lang.System.currentTimeMillis ( ) ) ; java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat ( com.android.contacts.util.ContactPhotoUtils.PHOTO_DATE_FORMAT , java.util.Locale.US ) ; return ( "ContactPhoto-" + ( dateFormat.format ( date ) ) ) + ".jpg" ; }
Source:
protected void addFiles ( com.android.build.gradle.internal.test.fixture.app.TestSourceFile ... files ) { BRANCH ( 228 ) ; com.android.build.gradle.internal.test.fixture.app.bb3 Merge ; }

Target:
protected void addFiles ( com.android.build.gradle.internal.test.fixture.app.TestSourceFile ... files ) { for ( com.android.build.gradle.internal.test.fixture.app.TestSourceFile file : files ) { sourceFiles.put ( file.getName ( ) , file ) ; } }
Source:
public void testE2 ( ) { dot.junit.opcodes.aput.d.T_aput_1 t = new dot.junit.opcodes.aput.d.T_aput_1 ( ) ; try { t.run ( null , 2 , 100000000 ) ; fail ( "expected NullPointerException" ) ; } catch ( java.lang.NullPointerException aie ) { } }

Target:
public void testVFE1 ( ) { load ( "dot.junit.opcodes.aput.d.T_aput_2" , java.lang.VerifyError.class ) ; }
Source:
public void onCallAdded ( com.android.server.telecom.Call call ) { if ( callShouldBeIgnored ( call ) ) { return ; } mEventHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_ADD_CALL , call ) . sendToTarget ( ) ; }

Target:
public void onCallAdded ( com.android.server.telecom.Call call ) { if ( callShouldBeIgnored ( call ) ) { return ; } mEventHandler.obtainMessage ( com.android.server.telecom.ConnectionServiceFocusManager.MSG_ADD_CALL , new com.android.server.telecom.ConnectionServiceFocusManager.MessageArgs ( android.telecom.Log.createSubsession ( ) , "CSFM.oCA" , call ) ) . sendToTarget ( ) ; }
Source:
private static org.eclipse.jdt.internal.compiler.IErrorHandlingPolicy getHandlingPolicy ( ) { return new org.eclipse.jdt.internal.compiler.IErrorHandlingPolicy ( ) { public boolean proceedOnErrors ( ) { return false ; } public boolean stopOnFirstError ( ) { return false ; } } ; }

Target:
public boolean ignoreAllErrors ( ) { return false ; }
Source:
synchronized int nAllocationGetType ( int id ) { validate ( ) ; return rsnAllocationGetType ( mContext , id ) ; }

Target:
synchronized void nAllocationRead ( long id , float [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }
Source:
public int hashCode ( ) { return ( java.util.Objects.hashCode ( key ) ) ^ ( java.util.Objects.hashCode ( value ) ) ; }

Target:
public int hashCode ( ) { return ( hash ) ^ ( java.util.Objects.hashCode ( value ) ) ; }
Source:
private java.lang.CharSequence getExistingUserDialerTos ( ) { if ( ! ( isVoicemailTranscriptionEnabled ( ) ) ) { return "" ; } java.lang.String learnMoreText = context.getString ( R.string.dialer_terms_and_conditions_learn_more ) ; return context.getString ( R.string.dialer_terms_and_conditions_existing_user , learnMoreText ) ; }

Target:
private java.lang.CharSequence getExistingUserDialerTos ( ) { if ( ! ( isVoicemailTranscriptionAvailable ( ) ) ) { return "" ; } java.lang.String learnMoreText = context.getString ( R.string.dialer_terms_and_conditions_learn_more ) ; return context.getString ( R.string.dialer_terms_and_conditions_existing_user , learnMoreText ) ; }
Source:
public com.android.internal.os.SomeArgs waitOnProgressUpdated ( long timeout ) { try { return mProgressUpdatedCalls.poll ( timeout , java.util.concurrent.TimeUnit.MILLISECONDS ) ; } catch ( java.lang.InterruptedException e ) { return null ; } }

Target:
public com.android.internal.os.SomeArgs waitOnStateUpdated ( long timeout ) { try { return mCalls.poll ( timeout , java.util.concurrent.TimeUnit.MILLISECONDS ) ; } catch ( java.lang.InterruptedException e ) { return null ; } }
Source:
public void onSelected ( boolean newState ) { recomputeLayout ( ) ; }

Target:
public void onSelected ( boolean newState ) { rescale ( ( + 1 ) ) ; }
Source:
public void onClick ( android.content.DialogInterface dialog , int which ) { launchChooseLockscreen ( ) ; }

Target:
public void onClick ( android.content.DialogInterface dialog , int which ) { onAddUserClicked ( ( which == 0 ? com.android.settings.users.UserSettings.USER_TYPE_USER : com.android.settings.users.UserSettings.USER_TYPE_RESTRICTED_PROFILE ) ) ; }
Source:
public com.google.common.primitives.UnsignedLong multiply ( com.google.common.primitives.UnsignedLong val ) { com.google.common.base.Preconditions.checkNotNull ( val ) ; return com.google.common.primitives.UnsignedLong.asUnsigned ( ( ( value ) * ( val.value ) ) ) ; }

Target:
public com.google.common.primitives.UnsignedLong minus ( com.google.common.primitives.UnsignedLong val ) { return com.google.common.primitives.UnsignedLong.fromLongBits ( ( ( this . value ) - ( com.google.common.base.Preconditions.checkNotNull ( val ) . value ) ) ) ; }
Source:
public static double longToIntToDouble ( long value ) { return ( ( double ) ( ( int ) ( value ) ) ) ; }

Target:
public static short $noinline$charToDoubleToShort ( char value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( short ) ( ( double ) ( value ) ) ) ; }
Source:
boolean isSpacer ( ) { java.lang.String fqcn = node.getFqcn ( ) ; return ( com.android.ide.common.layout.LayoutConstants.FQCN_SPACE.equals ( fqcn ) ) || ( com.android.ide.common.layout.LayoutConstants.FQCN_SPACE_V7.equals ( fqcn ) ) ; }

Target:
public static boolean isSpace ( java.lang.String fqcn ) { return ( com.android.ide.common.layout.LayoutConstants.FQCN_SPACE.equals ( fqcn ) ) || ( com.android.ide.common.layout.LayoutConstants.FQCN_SPACE_V7.equals ( fqcn ) ) ; }
Source:
public com.android.jack.generic.basic.jack.Generic < T > getT ( T arg ) { return new com.android.jack.generic.basic.jack.Generic < T > ( arg ) ; }

Target:
public com.android.jack.frontend.generic.basic.jack.Generic < T > getT ( T arg ) { return new com.android.jack.frontend.generic.basic.jack.Generic < T > ( arg ) ; }
Source:
static com.ibm.icu.text.PluralRules.StandardPluralCategories forString ( java.lang.String s ) { com.ibm.icu.text.PluralRules.StandardPluralCategories a ; try { a = com.ibm.icu.text.PluralRules.StandardPluralCategories.valueOf ( s ) ; } catch ( java.lang.Exception e ) { return null ; } return a ; }

Target:
public static final int getIndexOrOtherIndex ( java.lang.CharSequence keyword ) { com.ibm.icu.text.PluralRules.StandardPluralCategories cat = com.ibm.icu.text.PluralRules.StandardPluralCategories.getCategoryOrNull ( keyword ) ; return cat != null ? cat.ordinal ( ) : com.ibm.icu.text.PluralRules.StandardPluralCategories.other.ordinal ( ) ; }
Source:
public void testMockLocations ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( ManifestDetector.MOCK_LOCATION ) ; assertEquals ( ( "" + ( ( ( "AndroidManifest.xml:9: Error: Mock locations should only be requested in a debug-specific manifest file (typically src/debug/AndroidManifest.xml) [MockLocation]\n" + " <uses-permission android:name=\"android.permission.ACCESS_MOCK_LOCATION\" /> \n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "mock_location.xml=>AndroidManifest.xml" , "mock_location.xml=>debug/AndroidManifest.xml" , "mock_location.xml=>test/AndroidManifest.xml" , "multiproject/library.properties=>build.gradle" ) ) ; }

Target:
public void testMockLocations ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( ManifestDetector.MOCK_LOCATION ) ; assertEquals ( ( "" + ( ( ( "AndroidManifest.xml:9: Error: Mock locations should only be requested in a test or debug-specific manifest file (typically src/debug/AndroidManifest.xml) [MockLocation]\n" + " <uses-permission android:name=\"android.permission.ACCESS_MOCK_LOCATION\" /> \n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "mock_location.xml=>AndroidManifest.xml" , "mock_location.xml=>debug/AndroidManifest.xml" , "mock_location.xml=>test/AndroidManifest.xml" , "multiproject/library.properties=>build.gradle" ) ) ; }
Source:
public static float getMaxDiskRadius ( ) { return com.android.rs.test.BlurStack.MAX_DISC_RADIUS ; }

Target:
public static float getMaxDiskRadius ( ) { return com.android.rs.refocus.BlurStack.MAX_DISC_RADIUS ; }
Source:
native void setCharAt ( int index , char c ) ;

Target:
private native java.lang.String doReplace ( char oldChar , char newChar ) ;
Source:
public static native int EC_GROUP_get_generator ( int groupCtx ) ;

Target:
public static native byte [ ] EC_GROUP_get_cofactor ( long groupCtx ) ;
Source:
protected byte [ ] engineDoFinal ( ) { final byte [ ] output = org.conscrypt.NativeCrypto.EVP_DigestSignFinal ( ctx.getContext ( ) ) ; reset ( ) ; return output ; }

Target:
protected void engineReset ( ) { resetContext ( ) ; }
Source:
public boolean isPossibleShortNumberForRegion ( java.lang.String shortNumber , java.lang.String regionDialingFrom ) { com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionDialingFrom ) ; if ( phoneMetadata == null ) { return false ; } return matcherApi.matchesPossibleNumber ( shortNumber , phoneMetadata.generalDesc ) ; }

Target:
public boolean isPossibleShortNumberForRegion ( java.lang.String shortNumber , java.lang.String regionDialingFrom ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionDialingFrom ) ; if ( phoneMetadata == null ) { return false ; } return matcherApi.matchesPossibleNumber ( shortNumber , phoneMetadata.getGeneralDesc ( ) ) ; }
Source:
public static native void EVP_DigestUpdate ( int ctx , byte [ ] buffer , int offset , int length ) ;

Target:
public static native long EVP_DigestInit ( long evp_md ) ;
Source:
public final void putAll ( java.util.Map < ? extends K , ? extends V > map ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public final void clear ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public java.io.PrintWriter getLogPrintWriter ( ) { return new java.io.PrintWriter ( new android.icu.dev.test.TestLogWriter ( this , TestLog.LOG ) ) ; }

Target:
protected static java.lang.String invokeToString ( java.lang.String fullyQualifiedClassName , java.lang.Class < ? > [ ] constructorParamTypes , java.lang.Object [ ] constructorParams ) throws java.lang.Exception { return android.icu.dev.test.TestFmwk.invokeToString ( java.lang.Class.forName ( fullyQualifiedClassName ) , constructorParamTypes , constructorParams ) ; }
Source:
public void onUnbindMethod ( int sequence ) { mH.sendMessage ( mH.obtainMessage ( android.view.inputmethod.InputMethodManager.MSG_UNBIND , sequence , 0 ) ) ; }

Target:
public void onUnbindMethod ( int sequence , @ com.android.internal.view.InputMethodClient.UnbindReason int unbindReason ) { mH.sendMessage ( mH.obtainMessage ( android.view.inputmethod.InputMethodManager.MSG_UNBIND , sequence , unbindReason ) ) ; }
Source:
public void addContainer ( @ javax.annotation.Nonnull org.simpleframework.http.Path path , @ javax.annotation.Nonnull org.simpleframework.http.core.Container container ) { registry.put ( path.getPath ( ) , container ) ; }

Target:
public com.android.jack.server.JackSimpleServer.JackRouter addContainer ( @ javax.annotation.Nonnull java.lang.String fragment , @ javax.annotation.Nonnull org.simpleframework.http.core.Container container ) { registry.put ( fragment , container ) ; return this ; }
Source:
private static synchronized java.lang.invoke.MethodHandle setCachedMethodHandle ( java.lang.invoke.MethodHandle [ ] cache , int pos , java.lang.invoke.MethodHandle value ) { java.lang.invoke.MethodHandle prev = cache [ pos ] ; if ( prev != null ) return prev ; return cache [ pos ] = value ; }

Target:
public static int identity ( int val ) { return val ; }
Source:
public void testProguard ( ) throws java.lang.Exception { assertEquals ( "now_playing_after.xml:41: Warning: Avoid using \"px\" as units; use \"dp\" instead" , lintFiles ( "res/layout/now_playing_after.xml" ) ) ; }

Target:
public void testPx ( ) throws java.lang.Exception { assertEquals ( "now_playing_after.xml:41: Warning: Avoid using \"px\" as units; use \"dp\" instead" , lintFiles ( "res/layout/now_playing_after.xml" ) ) ; }
Source:
public static float FloatDivision ( ) { float a ; float b ; float c ; a = Main.$inline$float ( 8.0F ) ; b = Main.$inline$float ( 2.5F ) ; c = a / b ; return c ; }

Target:
public static long LongDivision ( ) { long a ; long b ; long c ; a = 8L ; b = 3L ; c = a / b ; return c ; }
Source:
public void test_U8_1_SCALE10_10_inRectangle ( ) { testReszie ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inY , Element.DataType.UNSIGNED_8 , 1 , 1.0F , 1.0F ) ; checkError ( ) ; }

Target:
public void test_U8_1_SCALE10_10_inRectangle ( ) { testResize ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inY , Element.DataType.UNSIGNED_8 , 1 , 1.0F , 1.0F ) ; checkError ( ) ; }
Source:
protected void enableService ( ) { android.autofillservice.cts.Helper.enableAutofillService ( android.autofillservice.cts.Helper.getContext ( ) , android.autofillservice.cts.InstrumentedAutoFillService.SERVICE_NAME ) ; android.autofillservice.cts.InstrumentedAutoFillService.setIgnoreUnexpectedRequests ( false ) ; }

Target:
public void reset ( ) { destroyAllSessions ( ) ; android.autofillservice.cts.AutoFillServiceTestCase.sReplier.reset ( ) ; android.autofillservice.cts.InstrumentedAutoFillService.resetStaticState ( ) ; android.autofillservice.cts.AuthenticationActivity.resetStaticState ( ) ; }
Source:
public void testStartStreamingFailure ( ) throws java.lang.Exception { mMiddlewareControl.forceErrorCode ( MbmsErrors.GeneralErrors.ERROR_MIDDLEWARE_TEMPORARILY_UNAVAILABLE ) ; mStreamingSession.startStreaming ( CtsStreamingService.STREAMING_SERVICE_INFO , mStreamingServiceCallback , mCallbackHandler ) ; assertEquals ( MbmsErrors.GeneralErrors.ERROR_MIDDLEWARE_TEMPORARILY_UNAVAILABLE , mCallback.waitOnError ( ) . arg1 ) ; }

Target:
public void testStartStreamingFailure ( ) throws java.lang.Exception { mMiddlewareControl.forceErrorCode ( MbmsErrors.GeneralErrors.ERROR_MIDDLEWARE_TEMPORARILY_UNAVAILABLE ) ; mStreamingSession.startStreaming ( CtsStreamingService.STREAMING_SERVICE_INFO , mCallbackExecutor , mStreamingServiceCallback ) ; assertEquals ( MbmsErrors.GeneralErrors.ERROR_MIDDLEWARE_TEMPORARILY_UNAVAILABLE , mCallback.waitOnError ( ) . arg1 ) ; }
Source:
com.android.sched.vfs.BaseVDir createVDir ( @ 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.createVDir ( parent , name ) ) ; }

Target:
boolean isEmpty ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVDir dir ) { return vfs.isEmpty ( dir.getWrappedDir ( ) ) ; }
Source:
private int getFinalModifier ( @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.lookup.LocalVariableBinding lvBinding ) { return lvBinding.isFinal ( ) ? com.android.jack.ir.ast.JModifier.FINAL : com.android.jack.ir.ast.JModifier.DEFAULT ; }

Target:
private int getModifier ( @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.lookup.LocalVariableBinding lvBinding ) { return lvBinding.isFinal ( ) ? com.android.jack.ir.ast.JModifier.FINAL : com.android.jack.ir.ast.JModifier.DEFAULT ; }
Source:
public boolean addToBlacklist ( java.lang.String bssid ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) return false ; return doBooleanCommand ( ( "BLACKLIST " + bssid ) ) ; }

Target:
public boolean setConfiguredNetworkBSSID ( java.lang.String bssid ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.setCurrentNetworkBssid ( bssid ) ; } else { return mWifiSupplicantControl.setConfiguredNetworkBSSID ( bssid ) ; } }
Source:
public static boolean isFinite ( double d ) { return ( java.lang.Math.abs ( d ) ) <= ( sun.misc.DoubleConsts.MAX_VALUE ) ; }

Target:
public static boolean isFinite ( double d ) { return java.lang.Double.isFinite ( d ) ; }
Source:
public void testBoundCommentsKeepsBlankLine ( ) throws java.lang.Exception { com.intellij.psi.codeStyle.CodeStyleSettingsManager.getInstance ( getProject ( ) ) . getCurrentSettings ( ) . BLANK_LINES_AFTER_CLASS_HEADER = 1 ; doTest ( ) ; }

Target:
public void testBoundCommentsKeepsBlankLine ( ) throws java.lang.Exception { com.intellij.psi.codeStyle.CommonCodeStyleSettings javaSettings = com.intellij.psi.codeStyle.CodeStyleSettingsManager.getInstance ( getProject ( ) ) . getCurrentSettings ( ) . getCommonSettings ( JavaLanguage.INSTANCE ) ; javaSettings.BLANK_LINES_AFTER_CLASS_HEADER = 1 ; doTest ( ) ; }
Source:
public void disconnect ( int timeout ) throws com.android.ddmlib.TimeoutException { }

Target:
public void disconnect ( int timeout , com.android.utils.ILogger logger ) throws com.android.ddmlib.TimeoutException { }
Source:
final void showAskCompatModeDialogLocked ( com.android.server.am.ActivityRecord r ) { android.os.Message msg = android.os.Message.obtain ( ) ; msg.what = com.android.server.am.ActivityManagerService.SHOW_COMPAT_MODE_DIALOG_MSG ; msg.obj = ( r.task.askedCompatMode ) ? null : r ; mUiHandler.sendMessage ( msg ) ; }

Target:
final void showAskCompatModeDialogLocked ( com.android.server.am.ActivityRecord r ) { android.os.Message msg = android.os.Message.obtain ( ) ; msg.what = com.android.server.am.ActivityManagerService.SHOW_COMPAT_MODE_DIALOG_UI_MSG ; msg.obj = ( r.task.askedCompatMode ) ? null : r ; mUiHandler.sendMessage ( msg ) ; }
Source:
public void testSingleAsArray ( ) { com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation.Value values = new com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation.Value ( "allOf" , "android.permission.ACCESS_FINE_LOCATION" ) ; com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation annotation = com.android.tools.lint.checks.PermissionRequirementTest.createAnnotation ( com.android.tools.lint.checks.SupportAnnotationDetector.PERMISSION_ANNOTATION , values ) ; assertTrue ( com.android.tools.lint.checks.PermissionRequirement.create ( null , annotation ) . isSingle ( ) ) ; }

Target:
public void testSingleAsArray ( ) { com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation.Value values = new com.android.tools.lint.client.api.JavaParser.ResolvedAnnotation.Value ( "allOf" , "android.permission.ACCESS_FINE_LOCATION" ) ; com.intellij.psi.PsiAnnotation annotation = com.android.tools.lint.checks.PermissionRequirementTest.createAnnotation ( com.android.tools.lint.checks.SupportAnnotationDetector.PERMISSION_ANNOTATION , values ) ; assertTrue ( com.android.tools.lint.checks.PermissionRequirement.create ( null , annotation ) . isSingle ( ) ) ; }
Source:
public static java.lang.String normalizeDiallableCharsOnly ( java.lang.String number ) { return com.google.i18n.phonenumbers.PhoneNumberUtil.normalizeHelper ( number , com.google.i18n.phonenumbers.PhoneNumberUtil.DIALLABLE_CHAR_MAPPINGS , true ) ; }

Target:
public static java.lang.String normalizeDiallableCharsOnly ( java.lang.CharSequence number ) { return com.google.i18n.phonenumbers.PhoneNumberUtil.normalizeHelper ( number , com.google.i18n.phonenumbers.PhoneNumberUtil.DIALLABLE_CHAR_MAPPINGS , true ) ; }
Source:
public void copyFrom ( com.android.ims.ImsStreamMediaProfile profile ) { mAudioQuality = profile.mAudioQuality ; mAudioDirection = profile.mAudioDirection ; mVideoQuality = profile.mVideoQuality ; mVideoDirection = profile.mVideoDirection ; mRttMode = profile.mRttMode ; }

Target:
public void copyFrom ( android.telephony.ims.ImsStreamMediaProfile profile ) { mAudioQuality = profile.mAudioQuality ; mAudioDirection = profile.mAudioDirection ; mVideoQuality = profile.mVideoQuality ; mVideoDirection = profile.mVideoDirection ; mRttMode = profile.mRttMode ; }