auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
synchronized void nScriptSetTimeZone ( long script , byte [ ] timeZone ) { validate ( ) ; rsnScriptSetTimeZone ( mContext , script , timeZone ) ; }

Target:
synchronized void nScriptBindAllocation ( long script , long alloc , int slot , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptBindAllocation ( curCon , script , alloc , slot , mUseInc ) ; }
Source:
public void testSerializationSelf ( ) throws java.lang.Exception { org.apache.harmony.testframework.serialization.SerializationTest.verifySelf ( getSerializationData ( ) ) ; }

Target:
public void testSerializationSelf ( ) throws java.lang.Exception { org.apache.harmony.testframework.serialization.SerializationTest.verifySelf ( getSerializationData ( ) , new org.apache.harmony.tests.javax.security.auth.callback.PasswordCallbackTest.PasswordCallbackAssert ( ) ) ; }
Source:
protected abstract boolean visitTagElement ( org.eclipse.jdt.core.dom.rewrite.ASTRewrite rewrite , org.eclipse.jdt.core.dom.TagElement tag ) ;

Target:
protected abstract boolean visitTagElement ( com.google.currysrc.api.process.Reporter reporter , org.eclipse.jdt.core.dom.rewrite.ASTRewrite rewrite , org.eclipse.jdt.core.dom.TagElement tag ) ;
Source:
public static org.hamcrest.org.hamcrest.Matcher < java.lang.String > endsWith ( java.lang.String substring ) { return org.hamcrest.text.StringEndsWith.endsWith ( substring ) ; }

Target:
public static org.hamcrest.org.hamcrest.Matcher < java.lang.String > stringContainsInOrder ( java.lang.String ... substrings ) { return org.hamcrest.text.StringContainsInOrder.stringContainsInOrder ( substrings ) ; }
Source:
public static int intConditionEqualZero ( int i ) { return ( i > 42 ) != ( Main.$inline$false ( ) ) ? 13 : 54 ; }

Target:
public static int $noinline$intConditionEqualZero ( int i ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( i > 42 ) != ( Main.$inline$false ( ) ) ? 13 : 54 ; }
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 testExtractDecodeEditEncodeMux720p ( ) throws java.lang.Throwable { if ( ! ( setSize ( 1280 , 720 ) ) ) return ; setSource ( R.raw.video_480x360_mp4_h264_500kbps_30fps_aac_stereo_128kbps_44100hz ) ; setCopyVideo ( ) ; android.media.cts.ExtractDecodeEditEncodeMuxTest.TestWrapper.runTest ( this ) ; }
Source:
public boolean getZipAlign ( ) { return getVariantConfiguration ( ) . getBuildType ( ) . isZipAlign ( ) ; }

Target:
public boolean getZipAlignEnabled ( ) { return getVariantConfiguration ( ) . getBuildType ( ) . isZipAlignEnabled ( ) ; }
Source:
public void fetchCalls ( ) { super . fetchCalls ( ) ; ( ( com.android.dialer.app.list.ListsFragment ) ( getParentFragment ( ) ) ) . updateTabUnreadCounts ( ) ; }

Target:
public void fetchCalls ( ) { super . fetchCalls ( ) ; com.android.dialer.common.FragmentUtils.getParentUnsafe ( this , com.android.dialer.app.calllog.CallLogFragmentListener.class ) . updateTabUnreadCounts ( ) ; }
Source:
private com.android.apksig.internal.asn1.ber.BerDataValueReader createReader ( java.lang.String hexEncodedInput ) { return createReader ( com.android.apksig.internal.test.HexEncoding.decode ( hexEncodedInput ) ) ; }

Target:
private com.android.apksig.internal.asn1.ber.BerDataValueReader createReader ( java.lang.String hexEncodedInput ) { return createReader ( com.android.apksig.internal.util.HexEncoding.decode ( hexEncodedInput ) ) ; }
Source:
static synchronized com.android.internal.telephony.gsm.stk.CommandParamsFactory getInstance ( com.android.internal.telephony.gsm.stk.RilMessageDecoder caller , com.android.internal.telephony.IccFileHandler fh ) { if ( ( com.android.internal.telephony.gsm.stk.CommandParamsFactory.sInstance ) != null ) { return com.android.internal.telephony.gsm.stk.CommandParamsFactory.sInstance ; } if ( fh != null ) { return new com.android.internal.telephony.gsm.stk.CommandParamsFactory ( caller , fh ) ; } return null ; }

Target:
static synchronized com.android.internal.telephony.cat.CommandParamsFactory getInstance ( com.android.internal.telephony.cat.RilMessageDecoder caller , com.android.internal.telephony.IccFileHandler fh ) { if ( ( com.android.internal.telephony.cat.CommandParamsFactory.sInstance ) != null ) { return com.android.internal.telephony.cat.CommandParamsFactory.sInstance ; } if ( fh != null ) { return new com.android.internal.telephony.cat.CommandParamsFactory ( caller , fh ) ; } return null ; }
Source:
public static int dayDistance ( java.util.TimeZone tz , long startTime , long endTime ) { return ( libcore.icu.DateIntervalFormat.julianDay ( tz , endTime ) ) - ( libcore.icu.DateIntervalFormat.julianDay ( tz , startTime ) ) ; }

Target:
static java.util.TimeZone icuTimeZone ( java.util.TimeZone tz ) { com.ibm.icu.impl.JavaTimeZone javaTimeZone = new com.ibm.icu.impl.JavaTimeZone ( tz , null ) ; javaTimeZone.freeze ( ) ; return javaTimeZone ; }
Source:
public static long ShlLongInt ( ) { long lhs = 3 ; int rhs = 2 ; return lhs << rhs ; }

Target:
public static long ShlLongInt ( ) { long lhs = Main.$inline$long ( 3L ) ; int rhs = Main.$inline$int ( 2 ) ; return lhs << rhs ; }
Source:
public void postInvalidateDelayed ( long delayMilliseconds ) { if ( ( mAttachInfo ) != null ) { android.os.Message msg = android.os.Message.obtain ( ) ; msg.what = android.view.View.AttachInfo.INVALIDATE_MSG ; msg.obj = this ; mAttachInfo.mHandler.sendMessageDelayed ( msg , delayMilliseconds ) ; } }

Target:
public void postInvalidateDelayed ( long delayMilliseconds ) { android.view.View.AttachInfo attachInfo = mAttachInfo ; if ( attachInfo != null ) { android.os.Message msg = android.os.Message.obtain ( ) ; msg.what = android.view.View.AttachInfo.INVALIDATE_MSG ; msg.obj = this ; attachInfo.mHandler.sendMessageDelayed ( msg , delayMilliseconds ) ; } }
Source:
public static org.jf.dexlib2.Opcodes forArtVersion ( int artVersion , boolean experimental ) { return new org.jf.dexlib2.Opcodes ( org.jf.dexlib2.VersionMap.mapArtVersionToApi ( artVersion ) , artVersion , experimental ) ; }

Target:
public static org.jf.dexlib2.Opcodes forArtVersion ( int artVersion , boolean experimental ) { return new org.jf.dexlib2.Opcodes ( org.jf.dexlib2.VersionMap.NO_VERSION , artVersion , experimental ) ; }
Source:
public void timeSort_arrayList ( int nreps ) { java.util.List < java.lang.Integer > input = benchmarks.regression.CollectionsBenchmark.buildList ( arrayListLength , true ) ; for ( int i = 0 ; i < nreps ; ++ i ) { java.util.Collections.sort ( input ) ; } }

Target:
public void timeSort_vector ( int nreps ) throws java.lang.Exception { java.util.List < java.lang.Integer > input = benchmarks.regression.CollectionsBenchmark.buildList ( arrayListLength , java.util.Vector.class ) ; for ( int i = 0 ; i < nreps ; ++ i ) { java.util.Collections.sort ( input ) ; } }
Source:
void expect ( android.icu.text.Transliterator t , java.lang.String source , java.lang.String expectedResult ) { expect ( t , source , expectedResult , ( ( android.icu.text.Transliterator.Position ) ( null ) ) ) ; }

Target:
static void expect ( android.icu.text.Transliterator t , java.lang.String source , java.lang.String expectedResult ) { android.icu.dev.test.translit.TransliteratorTest.expect ( t , source , expectedResult , ( ( android.icu.text.Transliterator.Position ) ( null ) ) ) ; }
Source:
public java.lang.String getAdditionalProposalInfo ( ) { com.android.tools.lint.detector.api.Issue issue = com.android.ide.eclipse.adt.internal.lint.EclipseLintClient.getRegistry ( ) . getIssue ( mId ) ; if ( issue != null ) { return issue.getExplanation ( ) . replace ( "\n" , "<br>" ) ; } return null ; }

Target:
public java.lang.String getAdditionalProposalInfo ( ) { com.android.tools.lint.detector.api.Issue issue = com.android.ide.eclipse.adt.internal.lint.EclipseLintClient.getRegistry ( ) . getIssue ( mId ) ; if ( issue != null ) { return issue.getExplanationAsHtml ( ) ; } return null ; }
Source:
private static com.google.common.net.MediaType createConstantUtf8 ( java.lang.String type , java.lang.String subtype ) { return new com.google.common.net.MediaType ( type , subtype , com.google.common.net.MediaType.UTF_8_CONSTANT_PARAMETERS ) ; }

Target:
private static com.google.common.net.MediaType createConstantUtf8 ( java.lang.String type , java.lang.String subtype ) { return com.google.common.net.MediaType.addKnownType ( new com.google.common.net.MediaType ( type , subtype , com.google.common.net.MediaType.UTF_8_CONSTANT_PARAMETERS ) ) ; }
Source:
public com.android.ide.common.rendering.api.Result render ( long timeout ) { return Status.NOT_IMPLEMENTED.createResult ( ) ; }

Target:
public com.android.ide.common.rendering.api.Result render ( long timeout , boolean forceMeasure ) { return Status.NOT_IMPLEMENTED.createResult ( ) ; }
Source:
public final void scheduleStopService ( android.os.IBinder token ) { queueOrSendMessage ( android.app.ActivityThread.H.STOP_SERVICE , token ) ; }

Target:
public final void scheduleStopService ( android.os.IBinder token ) { sendMessage ( android.app.ActivityThread.H.STOP_SERVICE , token ) ; }
Source:
public java.lang.String getEsn ( ) { return getEsn ( android.telephony.TelephonyManager.getDefaultSubscription ( ) ) ; }

Target:
public void setNetworkRoaming ( boolean isRoaming ) { int phoneId = getPhoneId ( ) ; setNetworkRoamingForPhone ( phoneId , isRoaming ) ; }
Source:
public org.ccil.cowan.tagsoup.ElementType getElementType ( java.lang.String name ) { return ( ( org.ccil.cowan.tagsoup.ElementType ) ( theElementTypes.get ( name.toLowerCase ( ) ) ) ) ; }

Target:
public org.ccil.cowan.tagsoup.ElementType getElementType ( java.lang.String name ) { return ( ( org.ccil.cowan.tagsoup.ElementType ) ( theElementTypes.get ( name.toLowerCase ( java.util.Locale.ROOT ) ) ) ) ; }
Source:
public void unregisterForCdmaOtaStatusChange ( android.os.Handler h ) { mCM.unregisterForCdmaOtaProvision ( h ) ; }

Target:
public void unregisterForCdmaOtaStatusChange ( android.os.Handler h ) { mCi.unregisterForCdmaOtaProvision ( h ) ; }
Source:
public int updateCallBarringForServiceClass ( int cbType , int action , java.lang.String [ ] barrList , int serviceClass ) throws android.os.RemoteException { return - 1 ; }

Target:
public int queryCallBarringForServiceClass ( int cbType , int serviceClass ) throws android.os.RemoteException { return this . queryCallBarringForServiceClass ( cbType , serviceClass ) ; }
Source:
public void testDebug ( ) { com.android.builder.BuildType type = new com.android.builder.BuildType ( "debug" ) ; assertTrue ( type.isDebuggable ( ) ) ; assertTrue ( type.isDebugJniBuild ( ) ) ; assertTrue ( type.isDebugSigningKey ( ) ) ; }

Target:
public void testDebug ( ) { com.android.builder.BuildType type = new com.android.builder.BuildType ( "debug" ) ; assertTrue ( type.isDebuggable ( ) ) ; assertTrue ( type.isDebugJniBuild ( ) ) ; assertTrue ( type.isDebugSigned ( ) ) ; }
Source:
private void assertDialogsEnabled ( ) { if ( ! ( com.android.dialer.spam.SpamComponent.get ( this ) . spam ( ) . isDialogEnabledForSpamNotification ( ) ) ) { throw new java.lang.IllegalStateException ( "Cannot start this activity with given action because dialogs are not enabled." ) ; } }

Target:
private void assertDialogsEnabled ( ) { if ( ! ( com.android.dialer.spam.SpamComponent.get ( this ) . spamSettings ( ) . isDialogEnabledForSpamNotification ( ) ) ) { throw new java.lang.IllegalStateException ( "Cannot start this activity with given action because dialogs are not enabled." ) ; } }
Source:
public long position ( ) throws java.io.IOException { checkOpen ( ) ; try { return Libcore.os.lseek ( fd , 0L , java.nio.SEEK_CUR ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }

Target:
public long position ( ) throws java.io.IOException { checkOpen ( ) ; try { return Libcore.os.lseek ( fd , 0L , java.nio.SEEK_CUR ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsIOException ( ) ; } }
Source:
public static dalvik.system.profiler.SamplingProfiler.ThreadSet newThreadGroupTheadSet ( java.lang.ThreadGroup threadGroup ) { return new dalvik.system.profiler.SamplingProfiler.ThreadGroupThreadSet ( threadGroup ) ; }

Target:
public static dalvik.system.profiler.SamplingProfiler.ThreadSet newThreadGroupThreadSet ( java.lang.ThreadGroup threadGroup ) { return new dalvik.system.profiler.SamplingProfiler.ThreadGroupThreadSet ( threadGroup ) ; }
Source:
protected java.awt.Color getDefaultTabColor ( ) { return java.awt.Color.WHITE ; }

Target:
protected java.awt.Color getDefaultTabColor ( ) { if ( ( myDefaultTabColor ) != null ) { return myDefaultTabColor ; } return java.awt.Color.WHITE ; }
Source:
public int getRadioAccessFamily ( int phoneId , java.lang.String callingPackage ) { if ( ! ( canReadPhoneState ( callingPackage , "getRadioAccessFamily" ) ) ) { return android.telephony.RadioAccessFamily.RAF_UNKNOWN ; } return com.android.internal.telephony.ProxyController.getInstance ( ) . getRadioAccessFamily ( phoneId ) ; }

Target:
public int getRadioAccessFamily ( int phoneId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getRadioAccessFamily" ) ) ) { return android.telephony.RadioAccessFamily.RAF_UNKNOWN ; } return com.android.internal.telephony.ProxyController.getInstance ( ) . getRadioAccessFamily ( phoneId ) ; }
Source:
public void call ( org.codehaus.groovy.control.SourceUnit source ) throws org.codehaus.groovy.control.CompilationFailedException { java.lang.String p = com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule.class . getPackage ( ) . getName ( ) ; source.getAST ( ) . addStarImport ( ( p + "." ) ) ; }

Target:
public void call ( org.codehaus.groovy.control.SourceUnit source ) throws org.codehaus.groovy.control.CompilationFailedException { java.lang.String p = com.android.ide.common.api.IViewRule.class . getPackage ( ) . getName ( ) ; source.getAST ( ) . addStarImport ( ( p + "." ) ) ; }
Source:
public void testConstructor_NullSerial_Failure ( ) throws java.lang.Exception { try { new android.security.KeyPairGeneratorSpec ( getContext ( ) , android.security.KeyPairGeneratorSpecTest.TEST_ALIAS_1 , android.security.KeyPairGeneratorSpecTest.TEST_DN_1 , null , android.security.KeyPairGeneratorSpecTest.NOW , android.security.KeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS , 0 ) ; fail ( "Should throw IllegalArgumentException when startDate is null" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testConstructor_NullStartDate_Failure ( ) throws java.lang.Exception { try { new android.security.KeyPairGeneratorSpec ( getContext ( ) , android.security.KeyPairGeneratorSpecTest.TEST_ALIAS_1 , "RSA" , 1024 , null , android.security.KeyPairGeneratorSpecTest.TEST_DN_1 , android.security.KeyPairGeneratorSpecTest.SERIAL_1 , null , android.security.KeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS , 0 ) ; fail ( "Should throw IllegalArgumentException when startDate is null" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }
Source:
public void sendOnPostDialWait ( java.lang.String id , java.lang.String remaining ) throws java.lang.Exception { for ( com.android.internal.telecom.IConnectionServiceAdapter a : mConnectionServiceAdapters ) { a.onPostDialWait ( id , remaining ) ; } }

Target:
public void sendOnPostDialChar ( java.lang.String id , char nextChar ) throws java.lang.Exception { for ( com.android.internal.telecom.IConnectionServiceAdapter a : mConnectionServiceAdapters ) { a.onPostDialChar ( id , nextChar , null ) ; } }
Source:
protected boolean engineVerify ( byte [ ] arg0 ) throws java.security.SignatureException { return spiImpl.engineVerify ( arg0 ) ; }

Target:
protected boolean engineVerify ( byte [ ] arg0 ) throws java.security.SignatureException { return getSpi ( ) . engineVerify ( arg0 ) ; }
Source:
public void enter ( ) { if ( com.android.bluetooth.mapclient.MceStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.mapclient.MceStateMachine.TAG , ( "Enter Disconnected: " + ( getCurrentMessage ( ) . what ) ) ) ; } onConnectionStateChanged ( mPreviousState , BluetoothProfile.STATE_DISCONNECTED ) ; mPreviousState = android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; }

Target:
public void enter ( ) { if ( com.android.bluetooth.mapclient.MceStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.mapclient.MceStateMachine.TAG , ( "Enter Disconnected: " + ( getCurrentMessage ( ) . what ) ) ) ; } onConnectionStateChanged ( mPreviousState , BluetoothProfile.STATE_DISCONNECTED ) ; mPreviousState = android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; quit ( ) ; }
Source:
public long getLastModified ( @ javax.annotation.Nonnull com.android.sched.vfs.CachedDirectFS.CachedParentVFile file ) { return getNativeFile ( file.getPath ( ) ) . lastModified ( ) ; }

Target:
public java.nio.file.attribute.FileTime getLastModified ( @ javax.annotation.Nonnull com.android.sched.vfs.CachedDirectFS.CachedParentVFile file ) throws com.android.sched.util.file.CannotGetModificationTimeException { try { return java.nio.file.Files.getLastModifiedTime ( getNativeFile ( file.getPath ( ) ) . toPath ( ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.file.CannotGetModificationTimeException ( this , e ) ; } }
Source:
public com.android.dx.ssa.Insn toRopInsn ( ) { return insn.withNewRegisters ( getResult ( ) , insn.getSources ( ) ) ; }

Target:
public com.android.dx.rop.code.Insn toRopInsn ( ) { return insn.withNewRegisters ( getResult ( ) , insn.getSources ( ) ) ; }
Source:
public void testVFE7 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.aget.d.T_aget_9" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testE3 ( ) { loadAndRun ( "dot.junit.opcodes.aget.d.T_aget_1" , java.lang.ArrayIndexOutOfBoundsException.class , new int [ 2 ] , ( - 1 ) ) ; }
Source:
public static com.android.hierarchyviewerlib.HierarchyViewerDirector createDirector ( ) { return director = new com.android.ide.eclipse.hierarchyviewer.HierarchyViewerPluginDirector ( ) ; }

Target:
public static com.android.hierarchyviewerlib.HierarchyViewerDirector createDirector ( ) { return sDirector = new com.android.ide.eclipse.hierarchyviewer.HierarchyViewerPluginDirector ( ) ; }
Source:
private void goToNextState ( android.view.View postTarget , java.lang.Runnable failCallback ) { if ( ( ( mTuneVerified ) && ( mOverlayViewVerified ) ) && ( mGlobalSearchVerified ) ) { postTarget.removeCallbacks ( failCallback ) ; setButtonEnabled ( mGoToEpgItem , true ) ; } }

Target:
private void goToNextState ( android.view.View postTarget , java.lang.Runnable failCallback ) { if ( ( ( ( mTuneVerified ) && ( mOverlayViewVerified ) ) && ( mGlobalSearchVerified ) ) && ( mOverlayViewSizeChangedVerified ) ) { postTarget.removeCallbacks ( failCallback ) ; setButtonEnabled ( mGoToEpgItem , true ) ; } }
Source:
public long suggestHighestPriority ( com.android.tv.dvr.ScheduledRecording schedule ) { if ( com.android.tv.common.SoftPreconditions.checkState ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) { return mScheduleManager.suggestHighestPriority ( schedule ) ; } return DvrScheduleManager.DEFAULT_PRIORITY ; }

Target:
public long suggestHighestPriority ( com.android.tv.dvr.data.ScheduledRecording schedule ) { if ( com.android.tv.common.SoftPreconditions.checkState ( mDataManager.isDvrScheduleLoadFinished ( ) ) ) { return mScheduleManager.suggestHighestPriority ( schedule ) ; } return DvrScheduleManager.DEFAULT_PRIORITY ; }
Source:
protected abstract void stopNetStatPoll ( ) ;

Target:
protected void stopNetStatPoll ( ) { mNetStatPollEnabled = false ; removeCallbacks ( mPollNetStat ) ; if ( com.android.internal.telephony.DataConnectionTracker.DBG ) log ( "stopNetStatPoll" ) ; }
Source:
public static boolean isValidSlotId ( int slotId ) { return ( slotId >= 0 ) && ( slotId < ( android.telephony.TelephonyManager.getDefault ( ) . getSimCount ( ) ) ) ; }

Target:
public static boolean isValidSlotIndex ( int slotIndex ) { return ( slotIndex >= 0 ) && ( slotIndex < ( android.telephony.TelephonyManager.getDefault ( ) . getSimCount ( ) ) ) ; }
Source:
public static native int EVP_CIPHER_CTX_block_size ( int ctx ) ;

Target:
public static native int EVP_CIPHER_iv_length ( long evpCipher ) ;
Source:
public byte [ ] getSelectResponse ( ) { return mSelectResponse ; }

Target:
public byte [ ] getSelectResponse ( ) { return mHasSelectedAid ? mSelectResponse : null ; }
Source:
public void authenticateServer ( java.lang.String callingPackage , java.lang.String matchingId , byte [ ] serverSigned1 , byte [ ] serverSignature1 , byte [ ] euiccCiPkIdToBeUsed , byte [ ] serverCertificate , com.android.internal.telephony.euicc.IAuthenticateServerCallback callback ) { checkCallingPackage ( callingPackage ) ; }

Target:
public void onException ( java.lang.Throwable e ) { try { callback.onComplete ( getResultCode ( e ) , null ) ; } catch ( android.os.RemoteException exception ) { throw exception.rethrowFromSystemServer ( ) ; } }
Source:
private void onIccSwap ( boolean isAdded ) { boolean isHotSwapSupported = mContext.getResources ( ) . getBoolean ( R.bool.config_hotswapCapable ) ; if ( isHotSwapSupported ) { log ( "onIccSwap: isHotSwapSupported is true, don't prompt for rebooting" ) ; return ; } log ( "onIccSwap: isHotSwapSupported is false, prompt for rebooting" ) ; promptForRestart ( isAdded ) ; }

Target:
public void registerForCarrierPrivilegeRulesLoaded ( android.os.Handler h , int what , java.lang.Object obj ) { synchronized ( mLock ) { if ( ( mUiccProfile ) != null ) { mUiccProfile.registerForCarrierPrivilegeRulesLoaded ( h , what , obj ) ; } else { loge ( "registerForCarrierPrivilegeRulesLoaded Failed!" ) ; } } }
Source:
public void setJarDependencies ( java.util.List < com.android.builder.JarDependency > jars ) { mJars = jars ; }

Target:
public void setJarDependencies ( java.util.List < com.android.builder.JarDependency > jars ) { mJars.addAll ( jars ) ; }
Source:
public void tearDown ( ) { mHidDeviceService.stop ( ) ; mHidDeviceService.cleanup ( ) ; mHidDeviceService = null ; }

Target:
public void tearDown ( ) { mHidDeviceService.stop ( ) ; mHidDeviceService.cleanup ( ) ; mHidDeviceService = null ; reset ( com.android.bluetooth.hid.HidDeviceTest.sHidDeviceNativeInterface ) ; }
Source:
private void reloadMissedCallsOfUser ( android.os.UserHandle userHandle ) { mMissedCallNotifier.reloadFromDatabase ( mLock , this , mContactsAsyncHelper , mCallerInfoAsyncQueryFactory , userHandle ) ; }

Target:
public void onBootCompleted ( ) { mMissedCallNotifier.reloadAfterBootComplete ( mCallerInfoLookupHelper , new com.android.server.telecom.MissedCallNotifier.CallInfoFactory ( ) ) ; }
Source:
static com.android.internal.telephony.dataconnection.DataCallResponse convertDataCallResult ( android.hardware.radio.V1_0.SetupDataCallResult dcResult ) { return new com.android.internal.telephony.dataconnection.DataCallResponse ( dcResult.status , dcResult.suggestedRetryTime , dcResult.cid , dcResult.active , dcResult.type , dcResult.ifname , dcResult.addresses , dcResult.dnses , dcResult.gateways , dcResult.pcscf , dcResult.mtu ) ; }

Target:
private static int convertToHalResetNvType ( int resetType ) { switch ( resetType ) { case 1 : return android.hardware.radio.V1_0.ResetNvType.RELOAD ; case 2 : return android.hardware.radio.V1_0.ResetNvType.ERASE ; case 3 : return android.hardware.radio.V1_0.ResetNvType.FACTORY_RESET ; } return - 1 ; }
Source:
public android.os.Bundle updateCredentials ( android.accounts.AccountAuthenticatorResponse r , android.accounts.Account account , java.lang.String s , android.os.Bundle bundle ) throws android.accounts.NetworkErrorException { android.util.Log.d ( com.google.android.car.pbapsink.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; return null ; }

Target:
public android.os.Bundle updateCredentials ( android.accounts.AccountAuthenticatorResponse r , android.accounts.Account account , java.lang.String s , android.os.Bundle bundle ) throws android.accounts.NetworkErrorException { android.util.Log.d ( com.android.bluetooth.pbapclient.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; return null ; }
Source:
public com.android.ims.internal.IImsEcbm getEcbmInterface ( int sessionId ) throws android.os.RemoteException { checkBinderConnection ( ) ; return getServiceInterface ( mBinder ) . getEcbmInterface ( sessionId ) ; }

Target:
public void removeRegistrationListener ( com.android.ims.internal.IImsRegistrationListener listener ) throws android.os.RemoteException { }
Source:
private static java.awt.image.BufferedImage createBufferedImage ( java.lang.String name ) throws java.io.IOException { java.io.InputStream is = com.android.monkeyrunner.ImageUtilsTest.class . getResourceAsStream ( name ) ; java.awt.image.BufferedImage img = javax.imageio.ImageIO.read ( is ) ; is.close ( ) ; return img ; }

Target:
private static java.awt.image.BufferedImage createBufferedImage ( java.lang.String name ) throws java.io.IOException { java.io.InputStream is = com.android.chimpchat.ImageUtilsTest.class . getResourceAsStream ( name ) ; java.awt.image.BufferedImage img = javax.imageio.ImageIO.read ( is ) ; is.close ( ) ; return img ; }
Source:
public void run ( ) { mTextView = findTextView ( R.id.textview_text ) ; mTextView.setText ( spannableText , BufferType.SPANNABLE ) ; }

Target:
public void run ( ) { assertTrue ( mTextView.moveCursorToVisibleOffset ( ) ) ; }
Source:
public com.google.common.collect.ImmutableSet < com.google.common.collect.Table.Cell < R , C , V > > cellSet ( ) { return com.google.common.collect.ImmutableSet.of ( com.google.common.collect.Tables.immutableCell ( singleRowKey , singleColumnKey , singleValue ) ) ; }

Target:
com.google.common.collect.ImmutableSet < com.google.common.collect.Table.Cell < R , C , V > > createCellSet ( ) { return com.google.common.collect.ImmutableSet.of ( com.google.common.collect.ImmutableTable.cellOf ( singleRowKey , singleColumnKey , singleValue ) ) ; }
Source:
public static int $noinline$intAddSubSimplifyArg2 ( int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int sum = x + y ; return sum - y ; }

Target:
public static int $noinline$intSubAddSimplifyLeft ( int x , int y ) { int sub = x - y ; return sub + y ; }
Source:
private native java.lang.reflect.Constructor < T > getDeclaredConstructorInternal ( java.lang.Class < ? > [ ] args ) ;

Target:
private native java.lang.String getInnerClassName ( ) ;
Source:
protected void tearDown ( ) throws java.lang.Exception { setBackupTransport ( oldTransport ) ; enableBackup ( wasBackupEnabled ) ; super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { if ( localTransportIsPresent ) { setBackupTransport ( oldTransport ) ; enableBackup ( wasBackupEnabled ) ; } super . tearDown ( ) ; }
Source:
public static com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator create ( boolean allowXmlExtension ) { return new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator ( allowXmlExtension , null ) ; }

Target:
public static com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator create ( boolean allowXmlExtension , com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType type ) { boolean isFileType = type != ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolderType.VALUES ) ; return new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator ( allowXmlExtension , null , isFileType ) ; }
Source:
public static java.text.DateFormat getDateFormat ( android.content.Context context ) { java.lang.String value = Settings.System.getString ( context.getContentResolver ( ) , Settings.System.DATE_FORMAT ) ; return android.text.format.DateFormat.getDateFormatForSetting ( context , value ) ; }

Target:
public static java.text.DateFormat getDateFormat ( android.content.Context context ) { return java.text.DateFormat.getDateInstance ( java.text.DateFormat.SHORT ) ; }
Source:
public void abort ( ) { closeSocket ( ) ; }

Target:
public void abort ( ) { closeSocket ( ) ; this . getLooper ( ) . getThread ( ) . interrupt ( ) ; }
Source:
public java.util.List < java.lang.String > getApplicableConstructorTypes ( ) { return null ; }

Target:
public java.util.List < java.lang.Class < ? extends com.intellij.psi.PsiElement > > getApplicablePsiTypes ( ) { return null ; }
Source:
public java.lang.Boolean getFunctionalTest ( ) { com.android.builder.core.VariantConfiguration config = this ; if ( ( mType ) == ( com.android.builder.core.VariantConfiguration.Type.TEST ) ) { config = getTestedConfig ( ) ; } java.lang.Boolean functionalTest = config.mMergedFlavor.getTestFunctionalTest ( ) ; return functionalTest != null ? functionalTest : com.android.builder.core.VariantConfiguration.DEFAULT_FUNCTIONAL_TEST ; }

Target:
public java.lang.String getSuffix ( ) { return suffix ; }
Source:
public static android.content.Intent getShowTabIntent ( android.content.Context context , @ com.android.dialer.main.impl.bottomnav.BottomNavBar.TabIndex int tabIndex ) { if ( com.android.dialer.configprovider.ConfigProviderComponent.get ( context ) . getConfigProvider ( ) . getBoolean ( "nui_peer_enabled" , false ) ) { return null ; } return com.android.dialer.main.impl.OldMainActivityPeer.getShowTabIntent ( context , tabIndex ) ; }

Target:
public static android.content.Intent getShowTabIntent ( android.content.Context context , @ com.android.dialer.main.impl.bottomnav.BottomNavBar.TabIndex int tabIndex ) { if ( com.android.dialer.configprovider.ConfigProviderBindings.get ( context ) . getBoolean ( "nui_peer_enabled" , false ) ) { return null ; } return com.android.dialer.main.impl.OldMainActivityPeer.getShowTabIntent ( context , tabIndex ) ; }
Source:
protected void engineReset ( ) { resetContext ( ) ; }

Target:
protected void engineReset ( ) { mDigestInitializedInContext = false ; }
Source:
public void run ( ) { onOverScrolled ( scrollX , scrollY , clampedX , clampedY ) ; }

Target:
public void run ( ) { onWindowVisibilityChanged ( visibility ) ; }
Source:
public void test_EC_KEY_get_public_key_null_key_Failure ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.EC_KEY_get_public_key ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void test_EC_KEY_get_public_key_null_key_Failure ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.EC_KEY_get_public_key ( null ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
public static void computeAbs ( android.renderscript.cts.TestAbs.ArgumentsCharUchar args ) { args.out = ( ( byte ) ( java.lang.Math.abs ( args.inValue ) ) ) ; }

Target:
public static void computeAbs ( android.renderscript.cts.TestAbs.ArgumentsCharUchar args ) { args.out = ( ( byte ) ( java.lang.Math.abs ( args.inN ) ) ) ; }
Source:
public com.android.ahat.heapdump.AhatInstance getAssociatedBitmapInstance ( ) { if ( isInstanceOfClass ( "android.graphics.Bitmap" ) ) { return this ; } return null ; }

Target:
public com.android.ahat.heapdump.AhatInstance getAssociatedBitmapInstance ( ) { return ( getBitmapInfo ( ) ) == null ? null : this ; }
Source:
public static com.google.gct.intellij.endpoints.util.PsiDirectory addOrReplaceDirectory ( com.google.gct.intellij.endpoints.util.PsiDirectory parent , java.lang.String dirName ) { com.google.gct.intellij.endpoints.util.PsiUtils.deleteIfExists ( parent , dirName ) ; return parent.createSubdirectory ( dirName ) ; }

Target:
public static com.google.gct.idea.appengine.util.PsiDirectory addOrReplaceDirectory ( com.google.gct.idea.appengine.util.PsiDirectory parent , java.lang.String dirName ) { com.google.gct.idea.appengine.util.PsiUtils.deleteIfExists ( parent , dirName ) ; return parent.createSubdirectory ( dirName ) ; }
Source:
public void dispose ( ) { if ( ( mThumbnail ) != null ) { mThumbnail.dispose ( ) ; mThumbnail = null ; } if ( ( mJob ) != null ) { mJob.cancel ( ) ; mJob = null ; } }

Target:
public void dispose ( ) { disposeThumbnail ( ) ; if ( ( mJob ) != null ) { mJob.cancel ( ) ; mJob = null ; } }
Source:
public void test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins_IPv4 ( ) throws java.lang.Exception { test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface_multiple_joins ( org.apache.harmony.tests.java.net.MulticastSocketTest.GOOD_IPv4 ) ; }

Target:
public void test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface_IPv4 ( ) throws java.lang.Exception { test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface ( ipv4NetworkInterface , org.apache.harmony.tests.java.net.MulticastSocketTest.GOOD_IPv4 , org.apache.harmony.tests.java.net.MulticastSocketTest.BAD_IPv4 ) ; }
Source:
public boolean hasNext ( ) { return entryIterator.hasNext ( ) ; }

Target:
public java.util.SortedSet < K > headSet ( K toElement ) { return new com.google.common.collect.Maps.SortedKeySet < K , V > ( map ( ) . headMap ( toElement ) ) ; }
Source:
public java.lang.String toString ( ) { return ( ( "UnixSocketAddress{" + "sun_path=" ) + ( java.util.Arrays.toString ( sun_path ) ) ) + '}' ; }

Target:
public java.lang.String toString ( ) { return ( ( "UnixSocketAddress[" + "sun_path=" ) + ( java.util.Arrays.toString ( sun_path ) ) ) + ']' ; }
Source:
public boolean hasAlternativeName ( @ javax.annotation.Nonnull java.lang.String oldName ) { return ( ! ( names.containsKey ( oldName ) ) ) && ( defaultNameProvider.hasAlternativeName ( oldName ) ) ; }

Target:
public boolean hasAlternativeName ( @ javax.annotation.Nonnull com.android.jack.shrob.obfuscation.key.Key key ) { return ( ! ( names.containsKey ( key ) ) ) && ( defaultNameProvider.hasAlternativeName ( key ) ) ; }
Source:
private void refreshUnlockIntructions ( ) { if ( ( mLockPatternUtils.isLockPatternEnabled ( ) ) || ( ( mUpdateMonitor.getSimState ( ) ) == ( SimCard.State.PIN_REQUIRED ) ) ) { mLockInstructions.setText ( R.string.lockscreen_instructions_when_pattern_enabled ) ; } else { mLockInstructions.setText ( R.string.lockscreen_instructions_when_pattern_disabled ) ; } }

Target:
private void refreshUnlockIntructions ( ) { if ( ( mLockPatternUtils.isLockPatternEnabled ( ) ) || ( ( mUpdateMonitor.getSimState ( ) ) == ( IccCard.State.PIN_REQUIRED ) ) ) { mLockInstructions.setText ( R.string.lockscreen_instructions_when_pattern_enabled ) ; } else { mLockInstructions.setText ( R.string.lockscreen_instructions_when_pattern_disabled ) ; } }
Source:
public void testInheritLocal ( ) throws java.lang.Exception { assertEquals ( "ApiCallTest3.java:10: Error: Call requires API level 11 (current min is 1): android.app.Activity#getActionBar" , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk1.xml=>AndroidManifest.xml" , "apicheck/Intermediate.java.txt=>src/test/pkg/Intermediate.java" , "apicheck/ApiCallTest3.java.txt=>src/test/pkg/ApiCallTest3.java" , "apicheck/ApiCallTest3.class.data=>bin/classes/test/pkg/ApiCallTest3.class" , "apicheck/Intermediate.class.data=>bin/classes/test/pkg/Intermediate.class" ) ) ; }

Target:
public void testInheritLocal ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/ApiCallTest3.java:10: Error: Call requires API level 11 (current min is 1): android.app.Activity#getActionBar [NewApi]\n" + ( ( ( " getActionBar(); // API 11\n" + " ~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk1.xml=>AndroidManifest.xml" , "apicheck/Intermediate.java.txt=>src/test/pkg/Intermediate.java" , "apicheck/ApiCallTest3.java.txt=>src/test/pkg/ApiCallTest3.java" , "apicheck/ApiCallTest3.class.data=>bin/classes/test/pkg/ApiCallTest3.class" , "apicheck/Intermediate.class.data=>bin/classes/test/pkg/Intermediate.class" ) ) ; }
Source:
private void handleDevicePickerResult ( int resultCode , android.content.Intent data , boolean secure ) { if ( resultCode == ( RESULT_OK ) ) { java.lang.String address = data.getStringExtra ( DevicePickerActivity.EXTRA_DEVICE_ADDRESS ) ; startClientActivity ( address , secure ) ; } }

Target:
private void handleLaunchTestResult ( int resultCode , android.content.Intent data ) { if ( resultCode == ( RESULT_OK ) ) { com.android.cts.verifier.TestResult testResult = com.android.cts.verifier.TestResult.fromActivityResult ( resultCode , data ) ; mAdapter.setTestResult ( testResult ) ; } }
Source:
public boolean disableCellBroadcast ( int messageIdentifier ) { android.util.Log.e ( com.android.internal.telephony.cdma.RuimSmsInterfaceManager.LOG_TAG , "Error! Not implemented for CDMA." ) ; return false ; }

Target:
public boolean disableCellBroadcast ( int messageIdentifier ) { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.RuimSmsInterfaceManager.LOG_TAG , "Error! Not implemented for CDMA." ) ; return false ; }
Source:
public void setInitialAttachApn ( com.android.internal.telephony.dataconnection.DataProfile dataProfile , boolean isRoaming , android.os.Message result ) { }

Target:
public void setInitialAttachApn ( android.telephony.data.DataProfile dataProfile , boolean isRoaming , android.os.Message result ) { }
Source:
com.android.sched.util.location.Location getVDirLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { return vfs.getVDirLocation ( parent , path ) ; }

Target:
com.android.sched.util.location.Location getVDirLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVDir dir ) { return vfs.getVDirLocation ( dir.getWrappedDir ( ) ) ; }
Source:
public void iccTransmitApduBasicChannel ( int cla , int instruction , int p1 , int p2 , int p3 , java.lang.String data , android.os.Message response ) { iccTransmitApduHelper ( 0 , cla , instruction , p1 , p2 , p3 , data , response ) ; }

Target:
private void riljLogv ( java.lang.String msg ) { android.telephony.Rlog.v ( com.android.internal.telephony.RIL.RILJ_LOG_TAG , ( msg + ( ( mInstanceId ) != null ? ( " [SUB" + ( mInstanceId ) ) + "]" : "" ) ) ) ; }
Source:
public void testSynchronized2 ( ) throws java.lang.Exception { com.intellij.psi.codeStyle.CodeStyleSettingsManager.getSettings ( getProject ( ) ) . SPACE_BEFORE_SYNCHRONIZED_PARENTHESES = false ; doTest ( false ) ; }

Target:
public void testSynchronized2 ( ) throws java.lang.Exception { com.intellij.psi.codeStyle.CodeStyleSettingsManager.getSettings ( getProject ( ) ) . getCommonSettings ( JavaLanguage.INSTANCE ) . SPACE_BEFORE_SYNCHRONIZED_PARENTHESES = false ; doTest ( false ) ; }
Source:
public static boolean isSessionAlive ( com.android.ims.internal.ImsCallSession session ) { return ( session != null ) && ( session.isAlive ( ) ) ; }

Target:
public static boolean isSessionAlive ( android.telephony.ims.ImsCallSession session ) { return ( session != null ) && ( session.isAlive ( ) ) ; }
Source:
public boolean isBluetoothScoAvailableOffCall ( ) { return getContext ( ) . getResources ( ) . getBoolean ( com.android.internal.R.bool.config_bluetooth_sco_off_call ) ; }

Target:
public boolean isBluetoothScoAvailableOffCall ( ) { return mApplicationContext.getResources ( ) . getBoolean ( com.android.internal.R.bool.config_bluetooth_sco_off_call ) ; }
Source:
private static native java.lang.Class defineClassNative ( java.lang.String name , java.lang.ClassLoader loader , java.lang.Object cookie ) throws java.lang.ClassNotFoundException , java.lang.NoClassDefFoundError ;

Target:
private static native java.lang.Class defineClassNative ( java.lang.String name , java.lang.ClassLoader loader , java.lang.Object cookie , dalvik.system.DexFile dexFile ) throws java.lang.ClassNotFoundException , java.lang.NoClassDefFoundError ;
Source:
public void run ( ) { try { vfs.close ( ) ; } catch ( java.io.IOException e ) { logger.log ( java.util.logging.Level.FINE , ( ( "Failed to close zip for '" + string ) + "'." ) , e ) ; } }

Target:
public java.lang.String getUsage ( ) { return ( "a path to an input directory or zip archive (" + ( getUsageDetails ( ) ) ) + ")" ; }
Source:
public int updateCOLP ( boolean enable ) throws android.os.RemoteException { return - 1 ; }

Target:
public int queryCallBarringForServiceClass ( int cbType , int serviceClass ) { return - 1 ; }
Source:
void addError ( java.lang.String msg ) { if ( ( level ) < ( com.android.libcore.timezone.tzlookup.Errors.LEVEL_ERROR ) ) { level = com.android.libcore.timezone.tzlookup.Errors.LEVEL_ERROR ; } add ( msg ) ; }

Target:
void addWarning ( java.lang.String msg ) { level = java.lang.Math.max ( level , com.android.libcore.timezone.tzlookup.Errors.LEVEL_WARNING ) ; add ( msg ) ; }
Source:
synchronized boolean connect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( "connect(): device=" + device ) ) ; } return connectNative ( com.android.bluetooth.Utils.getByteAddress ( device ) ) ; }

Target:
synchronized boolean connect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( "connect(): device=" + device ) ) ; } return mHidDeviceNativeInterface.connect ( device ) ; }
Source:
private void updateAmbientLux ( ) { long time = android.os.SystemClock.uptimeMillis ( ) ; mAmbientLightRingBuffer.prune ( ( time - ( com.android.server.display.AutomaticBrightnessController.AMBIENT_LIGHT_HORIZON ) ) ) ; updateAmbientLux ( time ) ; }

Target:
private void updateAmbientLux ( ) { long time = android.os.SystemClock.uptimeMillis ( ) ; mAmbientLightRingBuffer.prune ( ( time - ( mAmbientLightHorizon ) ) ) ; updateAmbientLux ( time ) ; }
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/encoding.xml:1: Warning: iso-latin-1: Not using UTF-8 as the file encoding. This can lead to subtle bugs with non-ascii characters [EnforceUTF8]\n" + ( ( ( "<?xml version=\"1.0\" encoding=\"iso-latin-1\"?>\n" + " ~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) + "" ) ) , lintProject ( "res/layout/encoding.xml" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/encoding.xml:1: Error: iso-latin-1: Not using UTF-8 as the file encoding. This can lead to subtle bugs with non-ascii characters [EnforceUTF8]\n" + ( ( "<?xml version=\"1.0\" encoding=\"iso-latin-1\"?>\n" + " ~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "res/layout/encoding.xml" ) ) ; }
Source:
static com.android.jack.shrob.spec.InheritanceSpecification createInheritance ( java.lang.String className , @ javax.annotation.CheckForNull com.android.jack.shrob.spec.AnnotationSpecification annotationType ) { com.android.jack.shrob.spec.NameSpecification nameSpec = com.android.jack.shrob.proguard.GrammarActions.name ( className ) ; return new com.android.jack.shrob.spec.InheritanceSpecification ( nameSpec , annotationType ) ; }

Target:
static com.android.jack.shrob.spec.InheritanceSpecification createInheritance ( java.lang.String className , boolean hasNameNegator , @ javax.annotation.CheckForNull com.android.jack.shrob.spec.AnnotationSpecification annotationType ) { com.android.jack.shrob.spec.NameSpecification nameSpec = com.android.jack.shrob.proguard.GrammarActions.name ( className ) ; nameSpec.setNegator ( hasNameNegator ) ; return new com.android.jack.shrob.spec.InheritanceSpecification ( nameSpec , annotationType ) ; }
Source:
public static float mag ( float a , float b ) { return ( ( float ) ( java.lang.Math.sqrt ( ( ( a * a ) + ( b * b ) ) ) ) ) ; }

Target:
public static float mag ( float a , float b ) { return ( ( float ) ( java.lang.Math.hypot ( a , b ) ) ) ; }
Source:
public void end ( com.android.monkeyrunner.adb.LinearInterpolator.Point input ) { points.add ( input ) ; }

Target:
public void end ( com.android.chimpchat.adb.LinearInterpolator.Point input ) { points.add ( input ) ; }
Source:
public java.io.Reader getInput ( ) throws java.io.IOException { return new com.google.common.io.MultiReader ( suppliers.iterator ( ) ) ; }

Target:
public int read ( java.nio.CharBuffer target ) throws java.io.IOException { return readable.read ( target ) ; }
Source:
public static final java.io.File getAndroidRootDir ( ) { return new java.io.File ( com.android.jack.test.TestsProperties.getProperty ( "android.home" ) ) ; }

Target:
public static final java.io.File getAndroidRootDir ( ) { java.lang.String androidHome = com.android.jack.test.TestsProperties.getProperty ( "android.home" ) ; if ( androidHome.equals ( "" ) ) { throw new com.android.jack.test.TestConfigurationException ( "Property 'android.home' is not set'" ) ; } return new java.io.File ( androidHome ) ; }
Source:
public static com.android.dialer.speeddial.loader.SpeedDialUiItem.Builder builder ( ) { return new com.android.dialer.speeddial.loader.AutoValue_SpeedDialUiItem.Builder ( ) . setChannels ( com.google.common.collect.ImmutableList.of ( ) ) ; }

Target:
public static com.android.dialer.speeddial.loader.SpeedDialUiItem.Builder builder ( ) { return new com.android.dialer.speeddial.loader.AutoValue_SpeedDialUiItem.Builder ( ) . setChannels ( com.google.common.collect.ImmutableList.of ( ) ) . setPinnedPosition ( com.google.common.base.Optional.absent ( ) ) ; }
Source:
private void removeEntry ( java.lang.String key ) { com.android.volley.toolbox.DiskBasedCache.CacheHeader entry = mEntries.get ( key ) ; if ( entry != null ) { mTotalSize -= entry.size ; mEntries.remove ( key ) ; } }

Target:
private void removeEntry ( java.lang.String key ) { com.android.volley.toolbox.DiskBasedCache.CacheHeader removed = mEntries.remove ( key ) ; if ( removed != null ) { mTotalSize -= removed.size ; } }
Source:
private void printProblem ( @ javax.annotation.Nonnull com.android.jack.reporting.Reportable.ProblemLevel problemLevel , @ javax.annotation.Nonnull java.lang.String message ) { printProblem ( problemLevel , message , null , ( - 1 ) , ( - 1 ) , ( - 1 ) , ( - 1 ) ) ; }

Target:
public void report ( @ javax.annotation.Nonnull com.android.jack.reporting.Severity severity , @ javax.annotation.Nonnull com.android.jack.reporting.Reportable reportable ) { if ( ( severity == ( Severity.FATAL ) ) || ( reportable.getDefaultProblemLevel ( ) . isVisibleWith ( verbosityLevel ) ) ) { toProcess.add ( new com.android.jack.reporting.CommonReporter.ProblemDescription ( severity , reportable ) ) ; } }
Source:
public static void assertNotNull ( java.lang.Object object ) { if ( object == null ) throw new java.lang.RuntimeException ( "AssertionFailedError: object was null" ) ; }

Target:
public static void assertNotNull ( java.lang.Object object ) { if ( object == null ) throw new dot.junit.AssertionFailedException ( "object was null" ) ; }
Source:
protected boolean isHandheld ( ) throws com.android.tradefed.device.DeviceNotAvailableException { return ( ! ( hasDeviceFeature ( "android.software.leanback" ) ) ) && ( ! ( hasDeviceFeature ( "android.hardware.type.watch" ) ) ) ; }

Target:
protected boolean supportsKeyguard ( ) throws com.android.tradefed.device.DeviceNotAvailableException { return ( ( ! ( hasDeviceFeature ( "android.software.leanback" ) ) ) && ( ! ( hasDeviceFeature ( "android.hardware.type.watch" ) ) ) ) && ( ! ( isUiModeLockedToVrHeadset ( ) ) ) ; }
Source:
public void test_U8_1_SCALE05_20_inRectangle ( ) { testReszie ( inX , inY , Element.DataType.UNSIGNED_8 , 1 , 0.5F , 2.0F ) ; }

Target:
public void test_U8_1_SCALE05_20_inRectangle ( ) { testResize ( inX , inY , Element.DataType.UNSIGNED_8 , 1 , 0.5F , 2.0F ) ; }
Source:
protected android.view.View inflate ( android.view.ViewGroup parent ) { return createAutoItem ( parent , R.string.nls_unsnooze ) ; }

Target:
protected android.view.View inflate ( android.view.ViewGroup parent ) { return createAutoItem ( parent , R.string.nls_snooze_one_time ) ; }