auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static boolean isSslCheckRelaxed ( ) { return ( "1" . equals ( android.os.SystemProperties.get ( "ro.debuggable" ) ) ) && ( "yes" . equals ( android.os.SystemProperties.get ( "socket.relaxsslcheck" ) ) ) ; }

Target:
private static boolean isSslCheckRelaxed ( ) { return ( com.android.internal.os.RoSystemProperties.DEBUGGABLE ) && ( android.os.SystemProperties.getBoolean ( "socket.relaxsslcheck" , false ) ) ; }
Source:
private java.io.File getTempFolder ( java.lang.String osBasePath ) { java.io.File baseTempFolder = new java.io.File ( osBasePath , "temp" ) ; return baseTempFolder ; }

Target:
private java.io.File getTempFolder ( java.lang.String osBasePath ) { java.io.File baseTempFolder = new java.io.File ( osBasePath , com.android.sdklib.repository.RepoConstants.FD_TEMP ) ; return baseTempFolder ; }
Source:
public void testRevocable ( ) { assertTrue ( com.android.tools.lint.checks.PermissionRequirement.isRevocablePermission ( "android.permission.ACCESS_FINE_LOCATION" ) ) ; assertTrue ( com.android.tools.lint.checks.PermissionRequirement.isRevocablePermission ( "android.permission.ACCESS_COARSE_LOCATION" ) ) ; assertFalse ( com.android.tools.lint.checks.PermissionRequirement.isRevocablePermission ( "android.permission.UNKNOWN_PERMISSION_NAME" ) ) ; }

Target:
public void testRevocable ( ) { assertTrue ( com.android.tools.lint.checks.PermissionRequirement.isRevocableSystemPermission ( "android.permission.ACCESS_FINE_LOCATION" ) ) ; assertTrue ( com.android.tools.lint.checks.PermissionRequirement.isRevocableSystemPermission ( "android.permission.ACCESS_COARSE_LOCATION" ) ) ; assertFalse ( com.android.tools.lint.checks.PermissionRequirement.isRevocableSystemPermission ( "android.permission.UNKNOWN_PERMISSION_NAME" ) ) ; }
Source:
public static boolean isGreaterThanN ( ) { return ( ( Build.VERSION.SDK_INT ) > 24 ) || ( Build.VERSION.CODENAME.equals ( "NMR1" ) ) ; }

Target:
public static java.lang.String getPackageName ( ) { if ( ( org.chromium.base.ContextUtils.getApplicationContext ( ) ) == null ) { return "" ; } return org.chromium.base.ContextUtils.getApplicationContext ( ) . getPackageName ( ) ; }
Source:
public com.android.sdklib.ISystemImage getSystemImage ( java.lang.String abiType ) { return null ; }

Target:
public com.android.sdklib.ISystemImage getSystemImage ( com.android.sdklib.repository.descriptors.IdDisplay tag , java.lang.String abiType ) { return null ; }
Source:
synchronized void nScriptSetVarI ( long id , int slot , int val ) { validate ( ) ; rsnScriptSetVarI ( mContext , id , slot , val ) ; }

Target:
synchronized long nIncContextCreate ( long dev , int ver , int sdkVer , int contextType ) { return rsnIncContextCreate ( dev , ver , sdkVer , contextType ) ; }
Source:
public int hashCode ( ) { return icuColl.hashCode ( ) ; }

Target:
public int hashCode ( ) { return icuColl.getRules ( ) . hashCode ( ) ; }
Source:
public void waitForEvent ( int count ) { for ( int i = 0 ; i < count ; i ++ ) { try { synchronized ( this ) { wait ( 500 ) ; } } catch ( java.lang.InterruptedException ignored ) { } } }

Target:
public void childRemoved ( java.util.prefs.NodeChangeEvent e ) { if ( libcore.java.util.prefs.OldPreferencesTest.ENCOURAGE_RACES ) try { java.lang.Thread.sleep ( 1000 ) ; } catch ( java.lang.InterruptedException ignored ) { } synchronized ( this ) { ++ ( eventCount ) ; ++ ( removed ) ; notifyAll ( ) ; } }
Source:
public com.android.internal.telephony.IccCard getIccCard ( ) { return com.android.internal.telephony.uicc.UiccController.getInstance ( ) . getUiccProfileForPhone ( mPhoneId ) ; }

Target:
public com.android.internal.telephony.IccCard getIccCard ( ) { com.android.internal.telephony.IccCard iccCard = getUiccProfile ( ) ; return iccCard != null ? iccCard : new com.android.internal.telephony.IccCard ( ) ; }
Source:
protected void onResume ( ) { super . onResume ( ) ; int mask = 0 ; mask |= android.hardware.SensorManager.SENSOR_ACCELEROMETER ; mSensorManager.registerListener ( mListener , mask , SensorManager.SENSOR_DELAY_FASTEST ) ; }

Target:
protected void onResume ( ) { super . onResume ( ) ; mSensorManager.registerListener ( mListener , mSensor , SensorManager.SENSOR_DELAY_FASTEST ) ; if ( android.util.Config.LOGD ) android.util.Log.d ( TAG , ( "resume " + ( mSensorManager ) ) ) ; }
Source:
private static int sign64 ( long x ) { return java.lang.Long.signum ( x ) ; }

Target:
private static int signLong ( long x ) { return java.lang.Long.signum ( x ) ; }
Source:
public void testVFE5 ( ) { try { new dot.junit.opcodes.invoke_interface.d.T_invoke_interface_5 ( new dot.junit.opcodes.invoke_interface.ITestImpl ( ) ) ; fail ( "expected VerifyError" ) ; } catch ( java.lang.VerifyError t ) { } }

Target:
public void testVFE5 ( ) { load ( "dot.junit.opcodes.invoke_interface.d.T_invoke_interface_5" , java.lang.VerifyError.class ) ; }
Source:
java.util.List < com.google.currysrc.api.transform.TransformRule > getTransformRules ( java.io.File file ) ;

Target:
java.util.List < com.google.currysrc.api.process.Rule > getRuleList ( java.io.File file ) ;
Source:
public void testWrongNegativeColumnIndex ( ) { try { android.support.test.espresso.matcher.CursorMatchers.withRowInt ( ( - 1 ) , android.support.test.espresso.matcher.CursorMatchersTest.INTEGER_VALUE_MATCHER ) . matches ( cursor ) ; fail ( "Expected IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException iae ) { } }

Target:
public void wrongNegativeColumnIndex ( ) { expectedException.expect ( java.lang.IllegalArgumentException.class ) ; android.support.test.espresso.matcher.CursorMatchers.withRowInt ( ( - 1 ) , android.support.test.espresso.matcher.CursorMatchersTest.INTEGER_VALUE_MATCHER ) . matches ( cursor ) ; }
Source:
public void testBackFromTheDead ( ) throws java.lang.Exception { try { new libcore.java.lang.ref.FinalizeTest.ConstructionFails ( ) ; } catch ( java.lang.AssertionError expected ) { } libcore.java.lang.ref.FinalizationTester.induceFinalization ( ) ; assertTrue ( "object whose constructor threw was not finalized" , libcore.java.lang.ref.FinalizeTest.ConstructionFails.finalized ) ; }

Target:
public void testBackFromTheDead ( ) throws java.lang.Exception { exceptionInConstructor ( ) ; libcore.java.lang.ref.FinalizationTester.induceFinalization ( ) ; assertTrue ( "object whose constructor threw was not finalized" , libcore.java.lang.ref.FinalizeTest.ConstructionFails.finalized ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; pdq = new com.android.ide.common.resources.configuration.PixelDensityQualifier ( ) ; config = new com.android.ide.common.resources.configuration.FolderConfiguration ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; pdq = new com.android.ide.common.resources.configuration.DensityQualifier ( ) ; config = new com.android.ide.common.resources.configuration.FolderConfiguration ( ) ; }
Source:
private long getLowStorageThreshold ( ) { @ java.lang.SuppressWarnings ( value = "deprecation" ) final long lowThreshold = android.os.storage.StorageManager.from ( this ) . getStorageLowBytes ( mDataDir ) ; if ( lowThreshold == 0 ) { android.util.Log.e ( com.android.server.pm.BackgroundDexOptService.TAG , "Invalid low storage threshold" ) ; } return lowThreshold ; }

Target:
private long getLowStorageThreshold ( android.content.Context context ) { @ java.lang.SuppressWarnings ( value = "deprecation" ) final long lowThreshold = android.os.storage.StorageManager.from ( context ) . getStorageLowBytes ( mDataDir ) ; if ( lowThreshold == 0 ) { android.util.Log.e ( com.android.server.pm.BackgroundDexOptService.TAG , "Invalid low storage threshold" ) ; } return lowThreshold ; }
Source:
java.util.Collection < ? extends com.android.sched.vfs.BaseVElement > list ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir dir ) { java.util.Collection < ? extends com.android.sched.vfs.BaseVElement > elements = vfs.list ( dir ) ; for ( com.android.sched.vfs.BaseVElement element : elements ) { element.changeVFS ( this ) ; } return elements ; }

Target:
com.android.sched.vfs.DeflateFS.DeflateVFile createVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.DeflateFS.DeflateVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotCreateFileException { return new com.android.sched.vfs.DeflateFS.DeflateVFile ( this , vfs.createVFile ( parent.getWrappedDir ( ) , name ) ) ; }
Source:
public boolean onPrepareOptionsMenu ( com.android.stk.Menu menu ) { super . onPrepareOptionsMenu ( menu ) ; menu.findItem ( StkApp.MENU_ID_END_SESSION ) . setVisible ( true ) ; menu.findItem ( StkApp.MENU_ID_HELP ) . setVisible ( mStkInput.helpAvailable ) ; return true ; }

Target:
private void prepareOptionsMenuInternal ( android.view.Menu menu ) { menu.findItem ( StkApp.MENU_ID_END_SESSION ) . setVisible ( true ) ; menu.findItem ( StkApp.MENU_ID_HELP ) . setVisible ( mStkInput.helpAvailable ) ; }
Source:
public void onCallAdded ( com.android.server.telecom.Call call ) { updateHeadsetWithCallState ( false ) ; }

Target:
public void onCallAdded ( com.android.server.telecom.Call call ) { if ( call.isExternalCall ( ) ) { return ; } updateHeadsetWithCallState ( false ) ; }
Source:
public byte [ ] getEncoded ( org.bouncycastle.crypto.params.AsymmetricKeyParameter keyParameter ) { return ( ( org.bouncycastle.crypto.params.ECPublicKeyParameters ) ( keyParameter ) ) . getQ ( ) . getEncoded ( ) ; }

Target:
public byte [ ] getEncoded ( org.bouncycastle.crypto.params.AsymmetricKeyParameter keyParameter ) { return ( ( org.bouncycastle.crypto.params.ECPublicKeyParameters ) ( keyParameter ) ) . getQ ( ) . getEncoded ( usePointCompression ) ; }
Source:
public void applyTransportModeTransform ( java.net.Socket socket , android.net.IpSecTransform transform ) throws java.io.IOException { try ( android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.fromSocket ( socket ) ) { applyTransportModeTransform ( pfd , transform ) ; } }

Target:
private void applyTransportModeTransform ( android.os.ParcelFileDescriptor pfd , int direction , android.net.IpSecTransform transform ) throws java.io.IOException { try { mService.applyTransportModeTransform ( pfd , direction , transform.getResourceId ( ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
void setUp ( ) { status = READY ; com.android.cts.verifier.notifications.MockListener.MockListener.setHints ( mContext , MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ; delay ( ) ; }

Target:
void setUp ( ) { status = READY ; com.android.cts.verifier.notifications.MockListener.MockListener.getInstance ( ) . requestInterruptionFilter ( MockListener.HINT_HOST_DISABLE_CALL_EFFECTS ) ; }
Source:
public void getCallForwardingOption ( int commandInterfaceCFReason , android.os.Message onComplete ) { android.util.Log.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "getCallForwardingOption: not possible in CDMA" ) ; }

Target:
public void setCallForwardingOption ( int commandInterfaceCFAction , int commandInterfaceCFReason , java.lang.String dialingNumber , int timerSeconds , android.os.Message onComplete ) { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , "setCallForwardingOption: not possible in CDMA" ) ; }
Source:
public void testExtractDecodeEditEncodeMuxAudio ( ) throws java.lang.Throwable { setSize ( 1280 , 720 ) ; setSource ( R.raw.video_480x360_mp4_h264_500kbps_30fps_aac_stereo_128kbps_44100hz ) ; setCopyAudio ( ) ; setVerifyAudioFormat ( ) ; android.media.cts.ExtractDecodeEditEncodeMuxTest.TestWrapper.runTest ( this ) ; }

Target:
public void testExtractDecodeEditEncodeMuxAudioVideo ( ) throws java.lang.Throwable { if ( ! ( setSize ( 1280 , 720 ) ) ) return ; setSource ( R.raw.video_480x360_mp4_h264_500kbps_30fps_aac_stereo_128kbps_44100hz ) ; setCopyAudio ( ) ; setCopyVideo ( ) ; setVerifyAudioFormat ( ) ; android.media.cts.ExtractDecodeEditEncodeMuxTest.TestWrapper.runTest ( this ) ; }
Source:
private static int transportToLegacyType ( int transport ) { switch ( transport ) { case TRANSPORT_ETHERNET : return android.net.ConnectivityManager.TYPE_ETHERNET ; case TRANSPORT_WIFI : return android.net.ConnectivityManager.TYPE_WIFI ; case TRANSPORT_CELLULAR : return android.net.ConnectivityManager.TYPE_MOBILE ; default : return android.net.ConnectivityManager.TYPE_NONE ; } }

Target:
private static int transportToLegacyType ( int transport ) { switch ( transport ) { case TRANSPORT_ETHERNET : return android.net.ConnectivityManager.TYPE_ETHERNET ; case TRANSPORT_WIFI : return android.net.ConnectivityManager.TYPE_WIFI ; case TRANSPORT_CELLULAR : return android.net.ConnectivityManager.TYPE_MOBILE ; default : throw new java.lang.IllegalStateException ( ( "Unknown transport " + transport ) ) ; } }
Source:
public void testThatMethodWithOutAnnotationIsNotReportedAsBeingAnnotated ( ) throws java.lang.Exception { assertFalse ( hasExampleAnnotation ( android.test.suitebuilder.annotation.HasAnnotationTest.ClassWithoutAnnotation.class , "testWithoutAnnotation" ) ) ; }

Target:
public void testThatMethodWithOutAnnotationIsNotReportedAsBeingAnnotated ( ) throws java.lang.Exception { assertFalse ( hasExampleAnnotation ( android.test.suitebuilder.TestPredicatesTest.ClassWithoutAnnotation.class , "testWithoutAnnotation" ) ) ; }
Source:
public void terminate ( int reason ) { }

Target:
public void reject ( int reason ) { this . reject ( reason ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( "arttest" ) ; JniTest.testFindClassOnAttachedNativeThread ( ) ; JniTest.testCallStaticVoidMethodOnSubClass ( ) ; JniTest.testGetMirandaMethod ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { java.lang.System.loadLibrary ( "arttest" ) ; JniTest.testFindClassOnAttachedNativeThread ( ) ; JniTest.testFindFieldOnAttachedNativeThread ( ) ; JniTest.testCallStaticVoidMethodOnSubClass ( ) ; JniTest.testGetMirandaMethod ( ) ; }
Source:
public int queryCLIR ( ) throws android.os.RemoteException { return - 1 ; }

Target:
public int updateClip ( boolean enable ) { return - 1 ; }
Source:
public static void computeHypot ( android.renderscript.cts.TestHypot.ArgumentsFloatFloatFloat args ) { args.ulf = 4 ; args.ulfRelaxed = 4 ; args.out = ( ( float ) ( java.lang.StrictMath.hypot ( args.inX , args.inY ) ) ) ; }

Target:
public static void computeLgamma ( android.renderscript.cts.TestLgamma.ArgumentsFloatIntFloat args ) { android.renderscript.cts.CoreMathVerifier.LgammaResult result = android.renderscript.cts.CoreMathVerifier.lgamma2 ( args.inX ) ; args.out = new android.renderscript.cts.Floaty ( result.lgamma ) ; args.outY = result.gammaSign ; }
Source:
public java.util.Collection < com.android.jack.ir.ast.JAnnotationType > getAnnotationTypes ( ) { loader.ensureAnnotations ( this ) ; return annotations.getAnnotationTypes ( ) ; }

Target:
public java.util.Collection < com.android.jack.ir.ast.JAnnotationType > getAnnotationTypes ( ) { loader.ensureAnnotations ( this ) ; return com.android.jack.Jack.getUnmodifiableCollections ( ) . getUnmodifiableCollection ( com.android.jack.util.AnnotationUtils.getAnnotationTypes ( annotations ) ) ; }
Source:
public static boolean isInternalArrayInterfaceName ( java.lang.String internalClassName ) { return ( ( ClassConstants.INTERNAL_NAME_JAVA_LANG_OBJECT.equals ( internalClassName ) ) || ( ClassConstants.INTERNAL_NAME_JAVA_LANG_CLONEABLE.equals ( internalClassName ) ) ) || ( ClassConstants.INTERNAL_NAME_JAVA_IO_SERIALIZABLE.equals ( internalClassName ) ) ; }

Target:
public static boolean isInternalArrayInterfaceName ( java.lang.String internalClassName ) { return ( ( ClassConstants.NAME_JAVA_LANG_OBJECT.equals ( internalClassName ) ) || ( ClassConstants.NAME_JAVA_LANG_CLONEABLE.equals ( internalClassName ) ) ) || ( ClassConstants.NAME_JAVA_IO_SERIALIZABLE.equals ( internalClassName ) ) ; }
Source:
public boolean await ( ) throws java.lang.InterruptedException { android.util.Log.i ( mTag , ( "Number of GPS Navigation Message received = " + ( getEvents ( ) . size ( ) ) ) ) ; return android.location.cts.TestUtils.waitFor ( mCountDownLatch ) ; }

Target:
public boolean await ( ) throws java.lang.InterruptedException { android.util.Log.i ( mTag , ( "Number of GPS Navigation Message received = " + ( getEvents ( ) . size ( ) ) ) ) ; return android.location.cts.TestUtils.waitFor ( mCountDownLatch , android.location.cts.TestGnssNavigationMessageListener.TIMEOUT_IN_SEC ) ; }
Source:
public static java.lang.invoke.VarHandle byteBufferViewVarHandle ( java.lang.Class < ? > viewArrayClass , java.nio.ByteOrder byteOrder ) throws java.lang.IllegalArgumentException { java.lang.invoke.MethodHandles.unsupported ( "MethodHandles.byteBufferViewVarHandle()" ) ; return null ; }

Target:
public static java.lang.invoke.VarHandle byteBufferViewVarHandle ( 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.ByteBufferViewVarHandle.create ( viewArrayClass , byteOrder ) ; }
Source:
public void inputChanged ( org.eclipse.jface.viewers.Viewer viewer , java.lang.Object oldInput , java.lang.Object newInput ) { if ( newInput instanceof com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository ) { mResources = ( ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository ) ( newInput ) ) ; } }

Target:
public void inputChanged ( org.eclipse.jface.viewers.Viewer viewer , java.lang.Object oldInput , java.lang.Object newInput ) { if ( newInput instanceof com.android.ide.common.resources.ResourceRepository ) { mResources = ( ( com.android.ide.common.resources.ResourceRepository ) ( newInput ) ) ; } }
Source:
public static void assertFalse ( boolean condition ) { if ( condition ) throw new java.lang.RuntimeException ( "AssertionFailedError: condition was true" ) ; }

Target:
public static void assertFalse ( boolean condition ) { if ( condition ) throw new dot.junit.AssertionFailedException ( "condition was true" ) ; }
Source:
protected void finalize ( ) throws java.lang.Throwable { try { mFile.close ( ) ; } catch ( java.io.IOException e ) { } finally { super . finalize ( ) ; } }

Target:
public void close ( ) { try { mFile.close ( ) ; } catch ( java.io.IOException ignored ) { } }
Source:
public void setScale ( double scale ) { org.eclipse.swt.graphics.Image thumbnail = mThumbnail ; mThumbnail = null ; if ( thumbnail != null ) { thumbnail.dispose ( ) ; } mScale = scale ; }

Target:
int getArea ( ) { return ( mWidth ) * ( mHeight ) ; }
Source:
public java.util.List < com.android.jack.ir.ast.cfg.JBasicBlock > getInternalBlocksUnordered ( ) { return com.google.common.collect.Lists.newArrayList ( getInternalBasicBlocks ( ) ) ; }

Target:
public java.util.List < com.android.jack.ir.ast.cfg.JBasicBlock > getAllBlocksUnordered ( ) { return com.google.common.collect.Lists.newArrayList ( getInternalBasicBlocks ( false ) ) ; }
Source:
public com.google.common.collect.ImmutableSortedMap < K , V > build ( ) { com.google.common.collect.ImmutableSortedMap.sortEntries ( entries , comparator ) ; com.google.common.collect.ImmutableSortedMap.validateEntries ( entries , comparator ) ; return com.google.common.collect.ImmutableSortedMap.fromSortedEntries ( comparator , entries ) ; }

Target:
public com.google.common.collect.ImmutableSortedMap < K , V > build ( ) { return com.google.common.collect.ImmutableSortedMap.fromEntries ( comparator , false , size , entries ) ; }
Source:
private static native void bindFunctionsForClass ( java.lang.Class < ? > target ) ;

Target:
private static void DisableReporting ( ) { if ( ( Main.doDisableReporting ) == null ) { return ; } try { Main.doDisableReporting.invoke ( null ) ; } catch ( java.lang.Exception e ) { throw new java.lang.Error ( "Unable to disable reporting!" ) ; } }
Source:
public com.google.common.collect.ImmutableList < com.android.dialer.precall.PreCallAction > getActions ( ) { return com.google.common.collect.ImmutableList.of ( ) ; }

Target:
public com.google.common.collect.ImmutableList < com.android.dialer.precall.PreCallAction > getActions ( ) { return com.google.common.collect.ImmutableList.of ( new com.android.dialer.precall.impl.CallingAccountSelector ( ) , new com.android.dialer.precall.impl.AssistedDialAction ( ) ) ; }
Source:
int size ( ) { return ( data.length ) * ( java.lang.Long.SIZE ) ; }

Target:
long bitSize ( ) { return ( ( long ) ( data.length ) ) * ( java.lang.Long.SIZE ) ; }
Source:
private static native void closeDexFile ( int cookie ) ;

Target:
private static native java.lang.String [ ] getClassNameList ( long cookie ) ;
Source:
public static boolean $noinline$equalsConstString0 ( java.lang.String s ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return s.equals ( "" ) ; }

Target:
public static boolean $noinline$equalsConstString3 ( java.lang.String s ) { return s.equals ( "012" ) ; }
Source:
public void TestContext ( ) { com.ibm.icu.text.Transliterator.Position pos = new com.ibm.icu.text.Transliterator.Position ( 0 , 2 , 0 , 1 ) ; expect ( "de > x; {d}e > y;" , "de" , "ye" , pos ) ; expect ( "ab{c} > z;" , "xadabdabcy" , "xadabdabzy" ) ; }

Target:
public void TestContext ( ) { com.ibm.icu.text.Transliterator.Position pos = new com.ibm.icu.text.Transliterator.Position ( 0 , 2 , 0 , 1 ) ; com.ibm.icu.dev.test.translit.TransliteratorTest.expect ( "de > x; {d}e > y;" , "de" , "ye" , pos ) ; com.ibm.icu.dev.test.translit.TransliteratorTest.expect ( "ab{c} > z;" , "xadabdabcy" , "xadabdabzy" ) ; }
Source:
public com.android.ims.internal.IImsCallSession createCallSessionInterface ( android.telephony.ims.ImsCallProfile profile ) throws android.os.RemoteException { return mCompatFeature.createCallSession ( mSessionId , profile ) ; }

Target:
public com.android.ims.internal.IImsUt getUtInterface ( ) throws android.os.RemoteException { return mCompatFeature.getUtInterface ( ) ; }
Source:
public android.telephony.ims.ImsCallProfile createCallProfile ( int callSessionType , int callType ) { try { return mCompatFeature.createCallProfile ( mSessionId , callSessionType , callType ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e.getMessage ( ) ) ; } }

Target:
public com.android.ims.internal.IImsCallSession createCallSessionInterface ( android.telephony.ims.ImsCallProfile profile ) throws android.os.RemoteException { return mCompatFeature.createCallSession ( mSessionId , profile ) ; }
Source:
static com.android.manifmerger.ManifestModel.NodeTypes fromXmlSimpleName ( java.lang.String xmlSimpleName ) { java.lang.String constantName = com.android.utils.XmlUtils.xmlNameToConstantName ( xmlSimpleName ) ; return com.android.manifmerger.ManifestModel.NodeTypes.valueOf ( constantName ) ; }

Target:
static com.android.manifmerger.ManifestModel.NodeTypes fromXmlSimpleName ( java.lang.String xmlSimpleName ) { java.lang.String constantName = com.android.utils.SdkUtils.xmlNameToConstantName ( xmlSimpleName ) ; return com.android.manifmerger.ManifestModel.NodeTypes.valueOf ( constantName ) ; }
Source:
public java.util.Collection < com.android.jack.ir.ast.JAnnotationType > getAnnotationTypes ( ) { return annotations.getAnnotationTypes ( ) ; }

Target:
public java.util.Collection < com.android.jack.ir.ast.JAnnotation > getAnnotations ( ) { return com.android.jack.Jack.getUnmodifiableCollections ( ) . getUnmodifiableCollection ( annotations ) ; }
Source:
public void err ( @ com.android.annotations.Nullable java.lang.String line ) { if ( line != null ) { mLogger.error ( null , line ) ; } }

Target:
public void err ( @ com.android.annotations.Nullable java.lang.String line ) { if ( line != null ) { mLogger.error ( null , line ) ; mFoundError = true ; } }
Source:
protected com.android.build.gradle.internal.variant.ApkVariantOutputData doCreateOutput ( com.android.build.OutputFile.OutputType outputType , java.util.Collection < com.android.build.FilterData > filters ) { return new com.android.build.gradle.internal.variant.ApkVariantOutputData ( outputType , filters , this ) ; }

Target:
protected com.android.build.gradle.internal.variant.ApkVariantOutputData doCreateOutput ( com.android.build.OutputFile.OutputType outputType , java.util.Collection < com.android.build.FilterData > filters ) { return new com.android.build.gradle.internal.variant.ApkVariantOutputData ( outputType , filters , this , taskManager ) ; }
Source:
public java.util.List < com.android.ide.eclipse.adt.internal.resources.manager.ResourceItem > getResourceItemsOfType ( com.android.resources.ResourceType type ) { return mPublicResourceMap.get ( type ) ; }

Target:
public java.util.List < com.android.ide.common.resources.ResourceItem > getResourceItemsOfType ( com.android.resources.ResourceType type ) { return mPublicResourceMap.get ( type ) ; }
Source:
public java.util.Iterator < com.android.jack.ir.ast.JMethodId > iterator ( ) { return virtualMethods.iterator ( ) ; }

Target:
public boolean hasNext ( ) { return iterator.hasNext ( ) ; }
Source:
private boolean isBluetoothPersistedStateOnBluetooth ( ) { return ( Settings.Global.getInt ( mContentResolver , Settings.Global.BLUETOOTH_ON , com.android.server.BluetoothManagerService.BLUETOOTH_ON_BLUETOOTH ) ) == ( com.android.server.BluetoothManagerService.BLUETOOTH_ON_BLUETOOTH ) ; }

Target:
private boolean isBluetoothPersistedStateOnBluetooth ( ) { if ( ! ( supportBluetoothPersistedState ( ) ) ) { return false ; } return ( Settings.Global.getInt ( mContentResolver , Settings.Global.BLUETOOTH_ON , com.android.server.BluetoothManagerService.BLUETOOTH_ON_BLUETOOTH ) ) == ( com.android.server.BluetoothManagerService.BLUETOOTH_ON_BLUETOOTH ) ; }
Source:
private libcore.util.ZoneInfo createZoneInfo ( int [ ] [ ] transitionTimes , int [ ] [ ] transitionTypes ) throws java.lang.Exception { return createZoneInfo ( getName ( ) , transitionTimes , transitionTypes , java.lang.System.currentTimeMillis ( ) ) ; }

Target:
private libcore.util.ZoneInfo createZoneInfo ( int [ ] [ ] transitions , int [ ] [ ] types ) throws java.lang.Exception { return createZoneInfo ( getName ( ) , transitions , types , java.lang.System.currentTimeMillis ( ) ) ; }
Source:
public void visitMethodInsn ( final int opcode , final java.lang.String owner , final java.lang.String name , final java.lang.String desc ) { check ( owner , ( name + desc ) ) ; }

Target:
public void visitMethodInsn ( final int opcode , final java.lang.String owner , final java.lang.String name , final java.lang.String desc , final boolean itf ) { check ( owner , ( name + desc ) ) ; }
Source:
public boolean onMenuItemClick ( android.view.MenuItem item ) { phone.getPdpContextList ( null ) ; return true ; }

Target:
public boolean onMenuItemClick ( android.view.MenuItem item ) { phone.getDataCallList ( null ) ; return true ; }
Source:
public void onMessageWaitingIndicatorChanged ( boolean visible ) { if ( com.android.phone.CallNotifier.VDBG ) log ( ( ( ( "onMessageWaitingIndicatorChanged(): " + ( this . mSubId ) ) + " " ) + visible ) ) ; mApplication.notificationMgr.updateMwi ( this . mSubId , visible ) ; }

Target:
public void onMessageWaitingIndicatorChanged ( boolean visible ) { if ( com.android.phone.CallNotifier.VDBG ) log ( ( ( ( "onMessageWaitingIndicatorChanged(): " + ( this . mSubId ) ) + " " ) + visible ) ) ; mMWIStatus.put ( this . mSubId , visible ) ; updatePhoneStateListeners ( false ) ; }
Source:
public void dispose ( ) { clearPostDialListeners ( ) ; releaseAllWakeLocks ( ) ; }

Target:
public void dispose ( ) { clearPostDialListeners ( ) ; if ( ( mParent ) != null ) { mParent.detach ( this ) ; } releaseAllWakeLocks ( ) ; }
Source:
public static float $noinline$floatSubAddSimplifyRight ( float x , float y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } float sub = x - y ; return y + sub ; }

Target:
public static float $noinline$floatSubAddSimplifyLeft ( float x , float y ) { float sub = x - y ; return sub + y ; }
Source:
public com.android.sched.vfs.InputVFile getBinary ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath , @ javax.annotation.Nonnull com.android.jack.library.BinaryKind binaryKind ) throws com.android.jack.library.BinaryDoesNotExistException ;

Target:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) ;
Source:
public java.lang.String getNamespace ( ) { if ( ( mNamespace ) == null ) { mNamespace = com.android.ide.common.layout.LayoutConstants.ANDROID_URI ; if ( ! ( layout.getFqcn ( ) . equals ( com.android.ide.common.layout.LayoutConstants.FQCN_GRID_LAYOUT ) ) ) { mNamespace = mRulesEngine.getAppNameSpace ( ) ; } } return mNamespace ; }

Target:
public java.lang.String getNamespace ( ) { if ( ( mNamespace ) == null ) { mNamespace = com.android.util.XmlUtils.ANDROID_URI ; if ( ! ( layout.getFqcn ( ) . equals ( com.android.ide.common.layout.LayoutConstants.FQCN_GRID_LAYOUT ) ) ) { mNamespace = mRulesEngine.getAppNameSpace ( ) ; } } return mNamespace ; }
Source:
protected int getFirstItemPosition ( ) { if ( ( ( mSeriesRecording ) != null ) && ( ( mSeriesRecording.getState ( ) ) == ( com.android.tv.dvr.SeriesRecording.STATE_SERIES_STOPPED ) ) ) { return 0 ; } return super . getFirstItemPosition ( ) ; }

Target:
protected int getFirstItemPosition ( ) { if ( ( ( mSeriesRecording ) != null ) && ( ( mSeriesRecording.getState ( ) ) == ( com.android.tv.dvr.data.SeriesRecording.STATE_SERIES_STOPPED ) ) ) { return 0 ; } return super . getFirstItemPosition ( ) ; }
Source:
private void printLines ( final java.util.ArrayList < java.lang.String > lines ) { for ( java.lang.String line : lines ) { android.util.Log.d ( android.media.cts.WifiStatus.TAG , line ) ; } }

Target:
private void printLines ( final java.util.ArrayList < java.lang.String > lines ) { for ( java.lang.String line : lines ) { android.util.Log.d ( android.media.cts.ConnectionStatus.TAG , line ) ; } }
Source:
public void setHs20 ( boolean hs20 ) { if ( hs20 ) { doBooleanCommand ( "SET HS20 1" ) ; } else { doBooleanCommand ( "SET HS20 0" ) ; } }

Target:
public boolean p2pServiceFlush ( ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.serviceFlush ( ) ; } else { return doBooleanCommand ( "P2P_SERVICE_FLUSH" ) ; } }
Source:
private boolean satisfiedByNetCapabilities ( android.net.NetworkCapabilities nc , boolean onlyImmutable ) { long networkCapabilities = this . mNetworkCapabilities ; if ( onlyImmutable ) { networkCapabilities = networkCapabilities & ( ~ ( android.net.NetworkCapabilities.MUTABLE_CAPABILITIES ) ) ; } return ( ( nc.mNetworkCapabilities ) & networkCapabilities ) == networkCapabilities ; }

Target:
private void combineNetCapabilities ( android.net.NetworkCapabilities nc ) { this . mNetworkCapabilities |= nc.mNetworkCapabilities ; this . mUnwantedNetworkCapabilities |= nc.mUnwantedNetworkCapabilities ; }
Source:
public void visitRuntimeInvisibleParameterAnnotationsAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.Method method , proguard.classfile.attribute.visitor.RuntimeInvisibleParameterAnnotationsAttribute runtimeInvisibleParameterAnnotationsAttribute ) { if ( ( runtimeInvisibleParameterAnnotationsAttribute.u2parametersCount ) > 0 ) { runtimeInvisibleParameterAnnotationsAttribute.accept ( clazz , method , attributeVisitor ) ; } }

Target:
public void visitRuntimeVisibleParameterAnnotationsAttribute ( proguard.classfile.attribute.visitor.Clazz clazz , proguard.classfile.attribute.visitor.Method method , proguard.classfile.attribute.visitor.RuntimeVisibleParameterAnnotationsAttribute runtimeVisibleParameterAnnotationsAttribute ) { if ( ( runtimeVisibleParameterAnnotationsAttribute.u1parametersCount ) > 0 ) { attributeVisitor.visitRuntimeVisibleParameterAnnotationsAttribute ( clazz , method , runtimeVisibleParameterAnnotationsAttribute ) ; } }
Source:
public void notifyPackageInstalled ( android.content.pm.PackageInfo info , int userId ) { cachePackageCodeLocation ( info , userId ) ; }

Target:
public void notifyPackageInstalled ( android.content.pm.PackageInfo pi , int userId ) { if ( userId == ( android.os.UserHandle.USER_ALL ) ) { throw new java.lang.IllegalArgumentException ( "notifyPackageInstalled called with USER_ALL" ) ; } cachePackageCodeLocation ( pi.packageName , pi.applicationInfo.sourceDir , pi.applicationInfo.splitSourceDirs , pi.applicationInfo.dataDir , userId ) ; }
Source:
public boolean isEnabled ( com.intellij.openapi.actionSystem.AnActionEvent e ) { return ( ( selectedConfiguration ) != null ) && ( selectedConfiguration.isEditable ( ) ) ; }

Target:
public void actionPerformed ( com.intellij.openapi.actionSystem.AnActionEvent e ) { com.google.gct.testing.CloudConfigurationImpl newConfiguration = ( ( selectedConfiguration ) != null ) ? selectedConfiguration.copy ( "Copy of " ) : new com.google.gct.testing.CloudConfigurationImpl ( facet , configurationKind ) ; addNewConfiguration ( newConfiguration ) ; }
Source:
public void onCallForwardingIndicatorChanged ( boolean visible ) { if ( com.android.phone.CallNotifier.VDBG ) log ( ( ( ( "onCallForwardingIndicatorChanged(): " + ( this . mSubId ) ) + " " ) + visible ) ) ; mApplication.notificationMgr.updateCfi ( this . mSubId , visible ) ; }

Target:
public void onMessageWaitingIndicatorChanged ( boolean visible ) { if ( com.android.phone.CallNotifier.VDBG ) log ( ( ( ( "onMessageWaitingIndicatorChanged(): " + ( this . mSubId ) ) + " " ) + visible ) ) ; mMWIStatus.put ( this . mSubId , visible ) ; updatePhoneStateListeners ( false ) ; }
Source:
public static com.android.dialer.spam.status.SimpleSpamStatus create ( boolean isSpam , @ android.support.annotation.Nullable java.lang.Long timestampMillis ) { return new com.android.dialer.spam.status.AutoValue_SimpleSpamStatus ( isSpam , com.google.common.base.Optional.fromNullable ( timestampMillis ) ) ; }

Target:
public com.android.dialer.spam.status.SimpleSpamStatus.Builder setTimestampMillis ( @ android.support.annotation.Nullable java.lang.Long timestampMillis ) { return setTimestampMillis ( com.google.common.base.Optional.fromNullable ( timestampMillis ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; defaultHandler = java.net.CookieHandler.getDefault ( ) ; cookieManager = new java.net.CookieManager ( createCookieStore ( ) , null ) ; cookieStore = cookieManager.getCookieStore ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; server = new com.google.mockwebserver.MockWebServer ( ) ; defaultHandler = java.net.CookieHandler.getDefault ( ) ; cookieManager = new java.net.CookieManager ( createCookieStore ( ) , null ) ; cookieStore = cookieManager.getCookieStore ( ) ; }
Source:
public static void computeRound ( android.renderscript.cts.TestRound.ArgumentsFloatFloat args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = java.lang.StrictMath.round ( args.in ) ; }

Target:
public static void computeExpm1 ( android.renderscript.cts.TestExpm1.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.expm1 ( args.in ) , 3 , 16 ) ; }
Source:
public boolean pageUp ( boolean top ) { checkThread ( ) ; if ( DebugFlags.TRACE_API ) android.util.Log.d ( android.webkit.WebView.LOGTAG , "pageUp" ) ; return mProvider.pageUp ( top ) ; }

Target:
public boolean pageUp ( boolean top ) { checkThread ( ) ; if ( android.webkit.WebView.TRACE ) android.util.Log.d ( android.webkit.WebView.LOGTAG , "pageUp" ) ; return mProvider.pageUp ( top ) ; }
Source:
public java.util.List < com.android.jack.server.PackageLevel > getLevels ( ) { return java.util.Arrays.asList ( new com.android.jack.server.PackageLevel ( "" , java.util.logging.Level.WARNING ) , new com.android.jack.server.PackageLevel ( "com.android.jack" , java.util.logging.Level.FINE ) , new com.android.jack.server.PackageLevel ( "com.android.sched" , java.util.logging.Level.WARNING ) ) ; }

Target:
public java.util.List < com.android.sched.util.log.LoggerConfiguration.PackageLevel > getLevels ( ) { return java.util.Arrays.asList ( new com.android.sched.util.log.LoggerConfiguration.PackageLevel ( "" , java.util.logging.Level.WARNING ) , new com.android.sched.util.log.LoggerConfiguration.PackageLevel ( "com.android.jack" , java.util.logging.Level.FINE ) , new com.android.sched.util.log.LoggerConfiguration.PackageLevel ( "com.android.sched" , java.util.logging.Level.WARNING ) ) ; }
Source:
public java.util.Set < K > keySet ( ) { return multimap ( ) . keySet ( ) ; }

Target:
public java.util.Set < K > keySet ( ) { return multimap.keySet ( ) ; }
Source:
private static void addZipEntry ( java.util.zip.ZipOutputStream zipOutputStream , java.lang.String name ) throws java.io.IOException { libcore.tzdata.update2.TimeZoneDistroTest.addZipEntry ( zipOutputStream , name , "a" . getBytes ( java.nio.charset.StandardCharsets.US_ASCII ) ) ; }

Target:
private static void addZipEntry ( java.util.zip.ZipOutputStream zipOutputStream , java.lang.String name ) throws java.io.IOException { libcore.tzdata.shared2.TimeZoneDistroTest.addZipEntry ( zipOutputStream , name , "a" . getBytes ( java.nio.charset.StandardCharsets.US_ASCII ) ) ; }
Source:
public java.io.OutputStream getOutputStream ( ) throws java.io.IOException { checkOpenAndConnected ( ) ; if ( isOutputShutdown ( ) ) { throw new java.net.SocketException ( "Socket output is shutdown" ) ; } return new java.nio.SocketChannelImpl.SocketChannelOutputStream ( channel ) ; }

Target:
public java.io.OutputStream getOutputStream ( ) throws java.io.IOException { return new java.nio.SocketChannelImpl.BlockingCheckOutputStream ( super . getOutputStream ( ) , channel ) ; }
Source:
private static void _put ( long a , byte b ) { java.nio.Bits.unsafe.putByte$ ( a , b ) ; }

Target:
private static void _put ( long a , byte b ) { java.nio.Bits.unsafe.putByte ( a , b ) ; }
Source:
public static < K , V > org.hamcrest.Matcher < java.util.Map < K , V > > hasKey ( K key ) { return org.hamcrest.collection.IsMapContaining.hasKey ( org.hamcrest.collection.IsMapContaining.equalTo ( key ) ) ; }

Target:
public static < K > org.hamcrest.Matcher < java.util.Map < ? extends K , ? > > hasKey ( K key ) { return new org.hamcrest.collection.IsMapContaining < K , java.lang.Object > ( org.hamcrest.collection.IsMapContaining.equalTo ( key ) , org.hamcrest.collection.IsMapContaining.anything ( ) ) ; }
Source:
void setAddress ( java.lang.String callId , android.net.Uri address , int presentation ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.setAddress ( callId , address , presentation ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
void setAddress ( java.lang.String callId , android.net.Uri address , int presentation ) { for ( com.android.internal.telecom.IConnectionServiceAdapter adapter : mAdapters ) { try { adapter.setAddress ( callId , address , presentation , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
private void initialization ( ) { buffer = java.nio.CharBuffer.allocate ( 1024 ) ; buffer.limit ( 0 ) ; matcher = delimiter.matcher ( buffer ) ; }

Target:
private void setInput ( java.lang.Readable input ) { this . input = input ; buffer.limit ( 0 ) ; matcher = delimiter.matcher ( buffer ) ; }
Source:
public void sendMessageWithSessionInfo ( int message ) { sendMessage ( message , 0 , 0 , com.android.server.telecom.Log.createSubsession ( ) ) ; }

Target:
public void sendMessageWithSessionInfo ( int message ) { sendMessage ( message , 0 , 0 , android.telecom.Log.createSubsession ( ) ) ; }
Source:
private void addCallWaiting ( java.lang.String number ) { if ( ( getCall ( BluetoothHeadsetClientCall.CALL_STATE_WAITING ) ) == null ) { addCall ( BluetoothHeadsetClientCall.CALL_STATE_WAITING , number ) ; } }

Target:
private void updateClip ( java.lang.String number ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "updateClip " + number ) ) ; } sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.QUERY_CURRENT_CALLS ) ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setBranch ( java.lang.String value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 2 ; branch_ = value ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setSuiteNameBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 2048 ; suiteName_ = value ; onChanged ( ) ; return this ; }
Source:
public void reset ( ) { mResult = null ; mMessage = null ; mStackTrace = null ; mReport = null ; mBugReport = null ; mLog = null ; mScreenshot = null ; }

Target:
public void reset ( ) { mResult = null ; mMessage = null ; mStackTrace = null ; mReport = null ; mBugReport = null ; mLog = null ; mScreenshot = null ; mIsRetry = false ; }
Source:
public void setUp ( ) { TEST_2008_6_30_11_30_59_000000500 = java.time.OffsetDateTime.of ( 2008 , 6 , 30 , 11 , 30 , 59 , 500 , tck.java.time.TCKOffsetDateTime.OFFSET_PONE ) ; }

Target:
public static void setUp ( ) { tck.java.time.TCKOffsetDateTime.TEST_2008_6_30_11_30_59_000000500 = java.time.OffsetDateTime.of ( 2008 , 6 , 30 , 11 , 30 , 59 , 500 , tck.java.time.TCKOffsetDateTime.OFFSET_PONE ) ; }
Source:
public void test_plus_longTemporalUnit_null ( ) { TEST_12_30_40_987654321.plus ( 1 , ( ( java.time.temporal.TemporalUnit ) ( null ) ) ) ; }

Target:
public void test_truncatedTo_null ( ) { tck.java.time.TCKLocalTime.TEST_12_30_40_987654321.truncatedTo ( null ) ; }
Source:
public android.database.Cursor loadInBackground ( ) { return com.android.dialer.searchfragment.nearbyplaces.NearbyPlacesCursor.newInstnace ( getContext ( ) , super . loadInBackground ( ) ) ; }

Target:
public android.database.Cursor loadInBackground ( ) { if ( ( directoryId ) == ( com.android.dialer.searchfragment.nearbyplaces.NearbyPlacesCursorLoader.INVALID_DIRECTORY_ID ) ) { com.android.dialer.common.LogUtil.i ( "NearbyPlacesCursorLoader.loadInBackground" , "directory id not set." ) ; return null ; } return com.android.dialer.searchfragment.nearbyplaces.NearbyPlacesCursor.newInstance ( getContext ( ) , super . loadInBackground ( ) , directoryId ) ; }
Source:
public void testMissingBackupInTarget23 ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( ManifestDetector.ALLOW_BACKUP ) ; assertEquals ( ( "" + ( ( ( "AndroidManifest.xml:5: Warning: Should explicitly set android:fullBackupContent to true or false to opt-in to or out of full app data back-up and restore, or alternatively to an @xml resource which specifies which files to backup [AllowBackup]\n" + " <application\n" ) + " ^\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( xml ( "AndroidManifest.xml" , ( "" + ( ( ( ( ( ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " package=\"com.example.helloworld\" >\n" ) + " <uses-sdk android:targetSdkVersion=\"23\" />" ) + "\n" ) + " <application\n" ) + " android:label=\"@string/app_name\"\n" ) + " android:theme=\"@style/AppTheme\" >\n" ) + " </application>\n" ) + "\n" ) + "</manifest>\n" ) ) ) ) ) ; }

Target:
public void testMissingBackupInTarget23 ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( ManifestDetector.ALLOW_BACKUP ) ; assertEquals ( ( "" + ( ( ( ( ( ( ( "AndroidManifest.xml:5: Warning: On SDK version 23 and up, your app data will " + "be automatically backed up and restored on app install. Consider " ) + "adding the attribute android:fullBackupContent to specify an @xml " ) + "resource which configures which files to backup. More info: " ) + "https://developer.android.com/preview/backup/index.html [AllowBackup]\n" ) + " <application\n" ) + " ^\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( xml ( "AndroidManifest.xml" , ( "" + ( ( ( ( ( ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " package=\"com.example.helloworld\" >\n" ) + " <uses-sdk android:targetSdkVersion=\"23\" />" ) + "\n" ) + " <application\n" ) + " android:label=\"@string/app_name\"\n" ) + " android:theme=\"@style/AppTheme\" >\n" ) + " </application>\n" ) + "\n" ) + "</manifest>\n" ) ) ) ) ) ; }
Source:
public long getDisconnectedTimeMilli ( ) { if ( ( ( getCurrentState ( ) ) == ( mDisconnectedState ) ) && ( ( mDisconnectedTimeStamp ) != 0 ) ) { long now_ms = java.lang.System.currentTimeMillis ( ) ; return now_ms - ( mDisconnectedTimeStamp ) ; } return 0 ; }

Target:
public long getDisconnectedTimeMilli ( ) { if ( ( ( getCurrentState ( ) ) == ( mDisconnectedState ) ) && ( ( mDisconnectedTimeStamp ) != 0 ) ) { long now_ms = mClock.getWallClockMillis ( ) ; return now_ms - ( mDisconnectedTimeStamp ) ; } return 0 ; }
Source:
public void testInstallWithMissingBundleVersionFile ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundleBuilder ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , "001" ) . clearVersionForTests ( ) . buildUnvalidated ( ) ; assertFalse ( installer.install ( bundle.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testInstall_withMissingBundleVersionFile ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundleBuilder ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , "001" ) . clearVersionForTests ( ) . buildUnvalidated ( ) ; assertFalse ( installer.install ( bundle.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }
Source:
public < T > void registerWatcher ( @ javax.annotation.Nonnull java.lang.Class < T > objectClass , @ javax.annotation.Nonnull java.lang.Class < ? extends com.android.sched.util.log.tracer.watcher.ObjectWatcher < ? extends T > > watcherClass ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public void registerObject ( @ javax.annotation.Nonnull java.lang.Object object , @ javax.annotation.Nonnegative long size , int count ) { assert ( config ) == ( com.android.sched.util.config.ThreadConfig.getConfig ( ) ) ; throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public static int getFontWidth ( org.eclipse.swt.widgets.Control c ) { org.eclipse.swt.graphics.GC gc = new org.eclipse.swt.graphics.GC ( c ) ; int avgCharWidth = gc.getFontMetrics ( ) . getAverageCharWidth ( ) ; gc.dispose ( ) ; return avgCharWidth ; }

Target:
public static int getApproximateFontWidth ( org.eclipse.swt.widgets.Control c ) { org.eclipse.swt.graphics.GC gc = new org.eclipse.swt.graphics.GC ( c ) ; int avgCharWidth = gc.getFontMetrics ( ) . getAverageCharWidth ( ) ; gc.dispose ( ) ; return java.lang.Math.max ( avgCharWidth , com.android.ide.eclipse.gltrace.SwtUtils.MIN_CHAR_WIDTH ) ; }
Source:
void startAppProblemLocked ( com.android.server.am.ProcessRecord app ) { app.errorReportReceiver = getErrorReportReceiver ( app ) ; skipCurrentReceiverLocked ( app ) ; }

Target:
void startAppProblemLocked ( com.android.server.am.ProcessRecord app ) { app.errorReportReceiver = android.app.ApplicationErrorReport.getErrorReportReceiver ( mContext , app.info.packageName , app.info.flags ) ; skipCurrentReceiverLocked ( app ) ; }
Source:
public java.lang.String getNetworkOperatorName ( ) { return getNetworkOperatorName ( android.telephony.TelephonyManager.getDefaultSubscription ( ) ) ; }

Target:
public java.lang.String getNetworkOperator ( ) { return getNetworkOperatorForPhone ( getPhoneId ( ) ) ; }
Source:
void addPlaceHolderInstance ( com.android.ahat.heapdump.AhatInstance placeholder ) { for ( com.android.ahat.heapdump.Site site = this ; site != null ; site = site.mParent ) { site.mObjects.add ( placeholder ) ; } }

Target:
com.android.ahat.heapdump.Site getSite ( com.android.tools.perflib.heap.StackFrame [ ] frames ) { return frames == null ? this : com.android.ahat.heapdump.Site.getSite ( this , frames ) ; }
Source:
public int writeSize ( ) { return com.android.jack.dx.dex.SizeOf.HEADER_ITEM ; }

Target:
public int writeSize ( ) { return com.android.jack.dx.dex.SizeOf.getHeaderSize ( apiLevel ) ; }