auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean isConnected ( int callServiceType , int callType ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . isConnected ( mSlotId , mSupportedFeature , callServiceType , callType ) ; } }

Target:
public boolean isOpened ( ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . isOpened ( ) ; } }
Source:
public com.android.tools.lint.detector.api.Speed getSpeed ( ) { return com.android.tools.lint.detector.api.Speed.FAST ; }

Target:
public java.util.List < java.lang.Class < ? extends com.intellij.psi.PsiElement > > getApplicablePsiTypes ( ) { return java.util.Collections.< java.lang.Class < ? extends com.intellij.psi.PsiElement > > singletonList ( com.intellij.psi.PsiClass.class ) ; }
Source:
private void unsljLogvRet ( int response , java.lang.Object ret ) { riljLogv ( ( ( ( "[UNSL]< " + ( com.android.internal.telephony.RIL.responseToString ( response ) ) ) + " " ) + ( retToString ( response , ret ) ) ) ) ; }

Target:
private void riljLog ( java.lang.String msg ) { android.telephony.Rlog.d ( com.android.internal.telephony.RIL.RILJ_LOG_TAG , ( msg + ( ( mInstanceId ) != null ? ( " [SUB" + ( mInstanceId ) ) + "]" : "" ) ) ) ; }
Source:
public int getBlockModes ( ) { return mBlockModes ; }

Target:
public java.lang.String [ ] getBlockModes ( ) { return android.security.ArrayUtils.cloneIfNotEmpty ( mBlockModes ) ; }
Source:
private void compile ( @ javax.annotation.Nonnull com.android.jack.test.toolchain.IToolchain toolchain , @ javax.annotation.Nonnull com.android.jack.test.helper.ErrorTestHelper helper ) throws java.lang.Exception { toolchain.srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathAsString ( toolchain.getDefaultBootClasspath ( ) ) , helper.getOutputDexFolder ( ) , false , helper.getSourceFolder ( ) ) ; }

Target:
private void compile ( @ javax.annotation.Nonnull com.android.jack.test.toolchain.IToolchain toolchain , @ javax.annotation.Nonnull com.android.jack.test.helper.ErrorTestHelper helper ) throws java.lang.Exception { toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToExe ( helper.getOutputDexFolder ( ) , false , helper.getSourceFolder ( ) ) ; }
Source:
boolean isAudioConnected ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; return mStateMachine.isAudioConnected ( device ) ; }

Target:
boolean isAudioConnected ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; return ( mStateMachine.getAudioState ( ) ) == ( android.bluetooth.BluetoothHeadset.STATE_AUDIO_CONNECTED ) ; }
Source:
public boolean isValidValueForDevice ( ) { return ( this ) != ( com.android.resources.Density.NODPI ) ; }

Target:
public boolean isValidValueForDevice ( ) { return ( ( this ) != ( com.android.resources.Density.NODPI ) ) && ( ( this ) != ( com.android.resources.Density.ANYDPI ) ) ; }
Source:
public void onCancel ( android.content.DialogInterface dialog ) { mWebViewCore.sendMessage ( EventHub.SINGLE_LISTBOX_CHOICE , ( - 2 ) , 0 ) ; }

Target:
public void onCancel ( android.content.DialogInterface dialog ) { mWebViewCore.sendMessage ( EventHub.SINGLE_LISTBOX_CHOICE , ( - 2 ) , 0 ) ; mListBoxDialog = null ; }
Source:
private java.awt.Color getFontColor ( com.android.tools.perflib.vmtrace.Call c ) { com.android.tools.perflib.vmtrace.MethodInfo info = mTraceData.getMethod ( c.getMethodId ( ) ) ; int percent = quantize ( info.getInclusiveThreadPercent ( ) ) ; return getFontColor ( percent ) ; }

Target:
private java.awt.Color getFontColor ( com.android.tools.perflib.vmtrace.Call c ) { int percent = quantize ( getDurationPercentage ( c , EXCLUSIVE_TIME_SELECTOR ) ) ; return getFontColor ( percent ) ; }
Source:
public void testGenerate_Locked_Fail ( ) throws java.lang.Exception { mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ; mKeyStore.lock ( ) ; assertFalse ( "Should fail when keystore is locked" , mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; }

Target:
public void testGenerate_Locked_Fail ( ) throws java.lang.Exception { mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ; mKeyStore.lock ( ) ; assertFalse ( "Should fail when keystore is locked" , mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , NativeCrypto.EVP_PKEY_RSA , 1024 , KeyStore.FLAG_ENCRYPTED , null ) ) ; }
Source:
public long elapsedNanos ( ) { return stopwatch.elapsedTime ( java.util.concurrent.TimeUnit.NANOSECONDS ) ; }

Target:
public long elapsedNanos ( ) { return stopwatch.elapsed ( java.util.concurrent.TimeUnit.NANOSECONDS ) ; }
Source:
private android.net.wifi.WifiConfiguration getInternalConfiguredNetwork ( java.lang.String configKey ) { android.net.wifi.WifiConfiguration internalConfig = mConfiguredNetworks.getByConfigKeyForCurrentUser ( configKey ) ; if ( internalConfig == null ) { android.util.Log.e ( com.android.server.wifi.WifiConfigManagerNew.TAG , ( "Cannot find network with configKey " + configKey ) ) ; } return internalConfig ; }

Target:
private android.net.wifi.WifiConfiguration getInternalConfiguredNetwork ( java.lang.String configKey ) { android.net.wifi.WifiConfiguration internalConfig = mConfiguredNetworks.getByConfigKeyForCurrentUser ( configKey ) ; if ( internalConfig == null ) { android.util.Log.e ( com.android.server.wifi.WifiConfigManager.TAG , ( "Cannot find network with configKey " + configKey ) ) ; } return internalConfig ; }
Source:
public void testVFE4 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.invoke_direct.d.T_invoke_direct_6" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testVFE4 ( ) { try { new dot.junit.opcodes.invoke_direct.d.T_invoke_direct_6 ( ) ; fail ( "expected NoSuchMethodError" ) ; } catch ( java.lang.NoSuchMethodError t ) { } }
Source:
public void setUUID ( java.lang.String UUID ) { this . UUID = UUID ; }

Target:
public void setUUID ( java.lang.String uuid ) { this . mUuid = uuid ; }
Source:
com.android.manifmerger.MergingReport.Builder addInfo ( java.lang.String info ) { mRecordBuilder.add ( new com.android.manifmerger.MergingReport.Record ( com.android.manifmerger.MergingReport.Record.Type.INFO , info ) ) ; return this ; }

Target:
com.android.manifmerger.MergingReport.Builder addInfo ( java.lang.String info ) { mRecordBuilder.add ( new com.android.manifmerger.MergingReport.Record ( com.android.manifmerger.MergingReport.Record.Severity.INFO , info ) ) ; return this ; }
Source:
public void testKeyStore_GetCertificate_NonExist_Failure ( ) throws java.lang.Exception { mKeyStore.load ( null , null ) ; assertNull ( "Certificate should not exist in keystore" , mKeyStore.getCertificate ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) ; }

Target:
public void testKeyStore_GetCertificate_NonExist_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; assertNull ( "Certificate should not exist in keystore" , mKeyStore.getCertificate ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) ; }
Source:
public native java.lang.String [ ] list ( java.io.File f ) ;

Target:
private native long getLength0 ( java.io.File f ) ;
Source:
native void rsnAllocationData2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , int [ ] d , int sizeBytes ) ;

Target:
native void rsnAllocationRead2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , int dt ) ;
Source:
public void onMiddlewareReady ( ) { }

Target:
public void middlewareReady ( ) throws android.os.RemoteException { }
Source:
private static void validateCollection ( java.util.Collection collection ) { if ( ( collection == null ) || ( ( collection.size ( ) ) == 0 ) ) { throw new java.lang.IllegalStateException ( "Collection cannot be null or empty" ) ; } }

Target:
private static < T > void validateCollection ( java.util.Collection < T > collection ) { if ( ( collection == null ) || ( ( collection.size ( ) ) == 0 ) ) { throw new java.lang.IllegalStateException ( "Collection cannot be null or empty" ) ; } }
Source:
public com.android.jack.dx.rop.type.Type getType ( ) { return getNat ( ) . getFieldType ( ) ; }

Target:
public com.android.jack.dx.rop.type.Type getType ( ) { return com.android.jack.dx.rop.type.Type.intern ( getDescriptor ( ) . getString ( ) ) ; }
Source:
public abstract java.util.List < com.android.jack.ir.ast.cfg.JBasicBlockElement > elements ( boolean forward ) ;

Target:
public abstract java.util.List < com.android.jack.ir.ast.cfg.JBasicBlockElement > getElements ( boolean forward ) ;
Source:
public void reportConnectionEventPropagatesStartToLastMileLogger ( ) { final boolean verbosityToggle = false ; mWifiDiagnostics.startLogging ( verbosityToggle ) ; mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_STARTED ) ; org.mockito.Mockito.verify ( mLastMileLogger ) . reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_STARTED ) ; }

Target:
public void reportConnectionEventPropagatesStartToLastMileLogger ( ) { final boolean verbosityToggle = false ; mWifiDiagnostics.startLogging ( verbosityToggle ) ; mWifiDiagnostics.reportConnectionEvent ( com.android.server.wifi.WifiDiagnosticsTest.FAKE_CONNECTION_ID , WifiDiagnostics.CONNECTION_EVENT_STARTED ) ; org.mockito.Mockito.verify ( mLastMileLogger ) . reportConnectionEvent ( com.android.server.wifi.WifiDiagnosticsTest.FAKE_CONNECTION_ID , WifiDiagnostics.CONNECTION_EVENT_STARTED ) ; }
Source:
public void callSessionTtyModeReceived ( com.android.ims.internal.IImsCallSession iImsCallSession , int mode ) throws android.os.RemoteException { mNewListener.callSessionTtyModeReceived ( mode ) ; }

Target:
public void callSessionMergeComplete ( com.android.ims.internal.IImsCallSession iImsCallSession ) throws android.os.RemoteException { mNewListener.callSessionMergeComplete ( iImsCallSession ) ; }
Source:
public void run ( ) { onWindowFocusChanged ( hasWindowFocus ) ; }

Target:
public void run ( ) { onFocusChanged ( focused , direction , previouslyFocusedRect ) ; }
Source:
public java.io.File getOutput ( ) { return new java.io.File ( "" ) ; }

Target:
public java.io.File getOutputFile ( ) { return outputFile ; }
Source:
private long sumThreadTimes ( @ com.android.annotations.NonNull java.util.List < com.android.tools.perflib.vmtrace.Call > callees ) { long sum = 0 ; for ( com.android.tools.perflib.vmtrace.Call c : callees ) { sum += c.getInclusiveThreadTime ( ) ; } return sum ; }

Target:
private long sumInclusiveTimes ( @ com.android.annotations.NonNull java.util.List < com.android.tools.perflib.vmtrace.Call > callees , com.android.tools.perflib.vmtrace.ClockType clockType ) { long sum = 0 ; for ( com.android.tools.perflib.vmtrace.Call c : callees ) { sum += c.getInclusiveTime ( clockType ) ; } return sum ; }
Source:
protected boolean isPlannedForRemoval ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { return ( ! ( method.isExternal ( ) ) ) && ( ! ( ( ( com.android.jack.ir.ast.JNode ) ( method ) ) . containsMarker ( com.android.jack.shrob.shrink.KeepMarker.class ) ) ) ; }

Target:
protected boolean isPlannedForRemoval ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { return ( method.getEnclosingType ( ) . isToEmit ( ) ) && ( ! ( ( ( com.android.jack.ir.ast.JNode ) ( method ) ) . containsMarker ( com.android.jack.shrob.shrink.KeepMarker.class ) ) ) ; }
Source:
public void testIsKeyAlgorithmSupported_RequiredAlgorithmsSupported ( ) throws java.lang.Exception { assertTrue ( "DSA must be supported" , android.security.KeyChain.isKeyAlgorithmSupported ( "DSA" ) ) ; assertTrue ( "EC must be supported" , android.security.KeyChain.isKeyAlgorithmSupported ( "EC" ) ) ; assertTrue ( "RSA must be supported" , android.security.KeyChain.isKeyAlgorithmSupported ( "RSA" ) ) ; }

Target:
public void testIsKeyAlgorithmSupported_RequiredAlgorithmsSupported ( ) throws java.lang.Exception { assertFalse ( "DSA must not be supported" , android.security.KeyChain.isKeyAlgorithmSupported ( "DSA" ) ) ; assertTrue ( "EC must be supported" , android.security.KeyChain.isKeyAlgorithmSupported ( "EC" ) ) ; assertTrue ( "RSA must be supported" , android.security.KeyChain.isKeyAlgorithmSupported ( "RSA" ) ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JIfStatement jIf ) { super . visit ( jIf ) ; accept ( jIf.getIfExpr ( ) ) ; return false ; }

Target:
boolean isCondition1or2Violated ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JStatement startStmt ) { return traverse ( com.google.common.collect.Lists.newArrayList ( startStmt ) , ( ( byte ) ( ( com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.BB_ENTRY_POINT ) | ( com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.BB_ASSIGNS_OR_READS_B ) ) ) , com.android.jack.optimizations.DefUsesChainsSimplifier.CfgHelper.BB_ASSIGNS_A ) ; }
Source:
public com.google.appengine.api.datastore.Entity toEntity ( ) { com.google.appengine.api.datastore.Entity testEntity = new com.google.appengine.api.datastore.Entity ( com.android.vts.entity.TestEntity.KIND , this . testName ) ; return testEntity ; }

Target:
public com.google.appengine.api.datastore.Entity toEntity ( ) { com.google.appengine.api.datastore.Entity testEntity = new com.google.appengine.api.datastore.Entity ( this . key ) ; testEntity.setProperty ( com.android.vts.entity.TestEntity.HAS_PROFILING_DATA , this . hasProfilingData ) ; return testEntity ; }
Source:
public java.lang.String getCdmaPrlVersion ( ) { return getCdmaPrlVersion ( android.telephony.TelephonyManager.getDefaultSubscription ( ) ) ; }

Target:
public void setNetworkCountryIso ( java.lang.String iso ) { int phoneId = getPhoneId ( ) ; setNetworkCountryIsoForPhone ( phoneId , iso ) ; }
Source:
com.android.sched.util.location.Location getVFileLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { return vfs.getVFileLocation ( parent , name ) ; }

Target:
com.android.sched.util.location.Location getVFileLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { return vfs.getVFileLocation ( parent.getWrappedDir ( ) , path ) ; }
Source:
public java.lang.String getCallId ( ) throws android.os.RemoteException { return null ; }

Target:
public android.telephony.ims.ImsCallProfile getRemoteCallProfile ( ) { return null ; }
Source:
public void testWificondExistsOnStartup ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( mWificond ) ; com.android.server.wifi.WifiStateMachinePrime testWifiStateMachinePrime = new com.android.server.wifi.WifiStateMachinePrime ( mWifiInjector , mLooper.getLooper ( ) ) ; verify ( mWificond ) . tearDownInterfaces ( ) ; }

Target:
public void testWificondExistsOnStartup ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( mWificond ) ; com.android.server.wifi.WifiStateMachinePrime testWifiStateMachinePrime = new com.android.server.wifi.WifiStateMachinePrime ( mWifiInjector , mLooper.getLooper ( ) , mNMService ) ; verify ( mWificond ) . tearDownInterfaces ( ) ; }
Source:
public boolean visitClassLiteral ( lombok.ast.ClassLiteral node ) { mFoundInnerClass = true ; return super . visitClassLiteral ( node ) ; }

Target:
public java.util.List < com.intellij.psi.PsiMethodCallExpression > getDataBinders ( ) { return mDataBinders ; }
Source:
public com.android.sched.util.log.DummyTracer.DummyTracerEvent start ( @ javax.annotation.Nonnull java.lang.String name ) { return dummyEvent ; }

Target:
public com.android.sched.util.log.DummyTracer.DummyTracerEvent start ( @ javax.annotation.Nonnull com.android.sched.util.log.EventType type ) { assert ( config ) == ( com.android.sched.util.config.ThreadConfig.getConfig ( ) ) ; return dummyEvent ; }
Source:
public static java.nio.MappedByteBuffer map ( java.io.File file ) throws java.io.IOException { return com.google.common.io.Files.map ( file , java.nio.channels.FileChannel.MapMode.READ_ONLY ) ; }

Target:
public static java.nio.MappedByteBuffer map ( java.io.File file ) throws java.io.IOException { com.google.common.base.Preconditions.checkNotNull ( file ) ; return com.google.common.io.Files.map ( file , java.nio.channels.FileChannel.MapMode.READ_ONLY ) ; }
Source:
private static synchronized void clearAdapterService ( ) { com.android.bluetooth.btservice.AdapterService.sAdapterService = null ; }

Target:
private static synchronized void clearAdapterService ( com.android.bluetooth.btservice.AdapterService current ) { if ( ( com.android.bluetooth.btservice.AdapterService.sAdapterService ) == current ) { com.android.bluetooth.btservice.AdapterService.sAdapterService = null ; } }
Source:
public void executeShellCommand ( java.lang.String command , com.android.ddmlib.IShellOutputReceiver receiver , int maxTimeToOutputResponse ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.ShellCommandUnresponsiveException , com.android.ddmlib.TimeoutException , java.io.IOException { java.lang.System.out.println ( java.lang.String.format ( "EXECSHELL(%S) CALLED" , name ) ) ; execShellCalled = true ; }

Target:
public void executeShellCommand ( java.lang.String command , com.android.ddmlib.IShellOutputReceiver receiver , long maxTimeToOutputResponse , java.util.concurrent.TimeUnit maxTimeUnits ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.ShellCommandUnresponsiveException , com.android.ddmlib.TimeoutException , java.io.IOException { java.lang.System.out.println ( java.lang.String.format ( "EXECSHELL(%S) CALLED" , name ) ) ; execShellCalled = true ; }
Source:
public void deleteLocal ( ) { if ( isLocal ( ) ) { new com.android.sdklib.internal.repository.ArchiveInstaller ( ) . deleteFileOrFolder ( new java.io.File ( getLocalOsPath ( ) ) ) ; } }

Target:
public void deleteLocal ( ) { if ( isLocal ( ) ) { com.android.sdklib.internal.repository.OsHelper.deleteFileOrFolder ( new java.io.File ( getLocalOsPath ( ) ) ) ; } }
Source:
public final void setConnectElapsedTimeMillis ( long connectElapsedTimeMillis ) { mConnectElapsedTimeMillis = connectElapsedTimeMillis ; }

Target:
public final void setConnectionStartElapsedRealTime ( long connectElapsedTimeMillis ) { mConnectElapsedTimeMillis = connectElapsedTimeMillis ; }
Source:
public native void putLong ( java.lang.Object obj , long offset , long newValue ) ;

Target:
public native void putOrderedLong ( java.lang.Object obj , long offset , long newValue ) ;
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:
public void iccTransmitApduBasicChannel ( int cla , int instruction , int p1 , int p2 , int p3 , java.lang.String data , android.os.Message response ) { iccTransmitApduHelper ( com.android.internal.telephony.RIL_REQUEST_SIM_TRANSMIT_APDU_BASIC , 0 , cla , instruction , p1 , p2 , p3 , data , response ) ; }
Source:
public void serverSetPreferredPhy ( int serverIf , java.lang.String address , int txPhy , int rxPhy , int phyOptions ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; }

Target:
public void serverReadPhy ( int clientIf , java.lang.String address ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.serverReadPhy ( clientIf , address ) ; }
Source:
public static double computeDouble ( ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return 2.0 ; }

Target:
public static double $noinline$computeDouble ( ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return 2.0 ; }
Source:
boolean getIsInactive ( ) { return ( getCurrentState ( ) ) == ( mInactiveState ) ; }

Target:
boolean isInactive ( ) { return ( getCurrentState ( ) ) == ( mInactiveState ) ; }
Source:
public void testCipherGetInstanceDES ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/CipherGetInstanceDES.java:7: Warning: Cipher.getInstance should not be called without setting the encryption mode and padding. [GetInstance]\n" + ( ( " Cipher.getInstance(\"DES\");\n" + " ~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "src/test/pkg/CipherGetInstanceDES.java.txt=>src/test/pkg/CipherGetInstanceDES.java" ) ) ; }

Target:
public void testCipherGetInstanceDES ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/CipherGetInstanceDES.java:7: Warning: Cipher.getInstance should not be called without setting the encryption mode and padding [GetInstance]\n" + ( ( " Cipher.getInstance(\"DES\");\n" + " ~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "src/test/pkg/CipherGetInstanceDES.java.txt=>src/test/pkg/CipherGetInstanceDES.java" ) ) ; }
Source:
public void sendStickyBroadcast ( android.content.Intent intent ) { sendBroadcast ( intent ) ; }

Target:
public void sendBroadcastAsUser ( android.content.Intent intent , android.os.UserHandle user , java.lang.String receiverPermission ) { sendBroadcast ( intent ) ; }
Source:
public void testStartPnoScan ( ) throws java.lang.Exception { com.android.server.wifi.WificondControl wificondControl = org.mockito.Mockito.mock ( com.android.server.wifi.WificondControl.class ) ; mWifiNative.setWificondControl ( wificondControl ) ; mWifiNative.startPnoScan ( com.android.server.wifi.WifiNativeTest.TEST_PNO_SETTINGS ) ; org.mockito.Mockito.verify ( wificondControl ) . startPnoScan ( com.android.server.wifi.WifiNativeTest.TEST_PNO_SETTINGS ) ; }

Target:
public void testEnableSupplicant ( ) { org.mockito.Mockito.when ( mWificondControl.enableSupplicant ( ) ) . thenReturn ( true ) ; mWifiNative.enableSupplicant ( ) ; org.mockito.Mockito.verify ( mWificondControl ) . enableSupplicant ( ) ; }
Source:
public static int $noinline$intSubAddSimplifyRight ( int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int sub = x - y ; return y + sub ; }

Target:
public static int $noinline$intSubAddSimplifyLeft ( int x , int y ) { int sub = x - y ; return sub + y ; }
Source:
private static int fourByteAlign ( int position ) { return ( position + 3 ) & ( ~ 3 ) ; }

Target:
public void alignToFourBytes ( ) { data.position ( ( ( ( data.position ( ) ) + 3 ) & ( ~ 3 ) ) ) ; }
Source:
public java.lang.Integer ipSecGetSecurityParameterIndex ( java.lang.String id ) { android.net.IpSecManager.SecurityParameterIndex spi = com.googlecode.android_scripting.facade.IpSecManagerFacade.mSpiHashMap.get ( id ) ; if ( spi == null ) { com.googlecode.android_scripting.Log.d ( "IpSec: SPI does not exist for the requested id" ) ; return 0 ; } return spi.getSpi ( ) ; }

Target:
public java.lang.Integer ipSecGetSecurityParameterIndex ( java.lang.String id ) { android.net.IpSecManager.SecurityParameterIndex spi = com.googlecode.android_scripting.facade.IpSecManagerFacade.sSpiHashMap.get ( id ) ; if ( spi == null ) { com.googlecode.android_scripting.Log.d ( "IpSec: SPI does not exist for the requested id" ) ; return 0 ; } return spi.getSpi ( ) ; }
Source:
public void callSessionRttMessageReceived ( java.lang.String rttMessage ) throws android.os.RemoteException { mNewListener.callSessionRttMessageReceived ( rttMessage ) ; }

Target:
public void callSessionInviteParticipantsRequestFailed ( com.android.ims.internal.IImsCallSession i , android.telephony.ims.ImsReasonInfo imsReasonInfo ) throws android.os.RemoteException { mNewListener.callSessionInviteParticipantsRequestFailed ( imsReasonInfo ) ; }
Source:
native void rsnAllocationResize1D ( int con , int id , int dimX ) ;

Target:
native void rsnAllocationResize2D ( long con , long id , int dimX , int dimY ) ;
Source:
public void onClick ( android.view.View v ) { com.android.dialer.logging.Logger.get ( context ) . logImpression ( DialerImpression.Type.VVM_CALL_VOICEMAIL_CLICKED ) ; context.startActivity ( com.android.dialer.callintent.CallIntentBuilder.forVoicemail ( phoneAccountHandle , CallInitiationType.Type.VOICEMAIL_ERROR_MESSAGE ) . build ( ) ) ; }

Target:
public void onClick ( android.view.View v ) { com.android.dialer.logging.Logger.get ( context ) . logImpression ( DialerImpression.Type.VVM_CALL_VOICEMAIL_CLICKED ) ; com.android.dialer.precall.PreCall.start ( context , com.android.dialer.callintent.CallIntentBuilder.forVoicemail ( phoneAccountHandle , CallInitiationType.Type.VOICEMAIL_ERROR_MESSAGE ) ) ; }
Source:
protected void onDestroy ( ) { super . onDestroy ( ) ; mToneStopper.removeMessages ( com.android.stk.ToneDialog.MSG_ID_STOP_TONE ) ; player.stop ( ) ; player.release ( ) ; mVibrator.cancel ( ) ; }

Target:
protected void onDestroy ( ) { super . onDestroy ( ) ; if ( mIsResponseSent ) { mToneStopper.removeMessages ( com.android.stk.ToneDialog.MSG_ID_STOP_TONE ) ; } player.stop ( ) ; player.release ( ) ; mVibrator.cancel ( ) ; }
Source:
public void disposeStream ( java.lang.String appName , int subId , java.lang.String serviceId ) throws android.os.RemoteException { }

Target:
public void disposeStream ( java.lang.String appName , int subscriptionId , java.lang.String serviceId ) throws android.os.RemoteException { }
Source:
protected com.android.server.connectivity.NetworkMonitor.CaptivePortalProbeResult isCaptivePortal ( ) { return new com.android.server.connectivity.NetworkMonitor.CaptivePortalProbeResult ( gen204ProbeResult , gen204ProbeRedirectUrl , null ) ; }

Target:
protected com.android.server.connectivity.NetworkMonitor.CaptivePortalProbeResult isCaptivePortal ( ) { if ( ! ( mIsCaptivePortalCheckEnabled ) ) { return new com.android.server.connectivity.NetworkMonitor.CaptivePortalProbeResult ( 204 ) ; } return new com.android.server.connectivity.NetworkMonitor.CaptivePortalProbeResult ( gen204ProbeResult , gen204ProbeRedirectUrl , null ) ; }
Source:
abstract java.util.Map < K , V > map ( ) ;

Target:
final java.util.Map < K , V > map ( ) { return map ; }
Source:
private void setAssetsChecksum ( long checksum ) { android.content.SharedPreferences sp = getContext ( ) . getSharedPreferences ( com.android.providers.telephony.CarrierIdProvider.PREF_FILE , Context.MODE_PRIVATE ) ; android.content.SharedPreferences.Editor editor = sp.edit ( ) ; editor.putLong ( com.android.providers.telephony.CarrierIdProvider.ASSETS_FILE_CHECKSUM_PREF_KEY , checksum ) ; editor.apply ( ) ; }

Target:
private int getAppliedVersion ( ) { final android.content.SharedPreferences sp = getContext ( ) . getSharedPreferences ( com.android.providers.telephony.CarrierIdProvider.PREF_FILE , Context.MODE_PRIVATE ) ; return sp.getInt ( com.android.providers.telephony.CarrierIdProvider.VERSION_PREF_KEY , ( - 1 ) ) ; }
Source:
public void testFlagEF ( ) { installFromRawResource ( "install.apk" , R.raw.install , ( ( PackageManager.INSTALL_FORWARD_LOCK ) | ( PackageManager.INSTALL_EXTERNAL ) ) , false , true , PackageManager.INSTALL_FAILED_INVALID_INSTALL_LOCATION , PackageInfo.INSTALL_LOCATION_AUTO ) ; }

Target:
public void testFlagIF ( ) { sampleInstallFromRawResource ( ( ( android.content.pm.PackageManager.INSTALL_FORWARD_LOCK ) | ( android.content.pm.PackageManager.INSTALL_INTERNAL ) ) , true ) ; }
Source:
public static synchronized void setDefault ( java.util.Locale locale ) { if ( locale == null ) { throw new java.lang.NullPointerException ( "locale == null" ) ; } java.util.Locale.defaultLocale = locale ; }

Target:
public static synchronized void setDefault ( java.util.Locale locale ) { if ( locale == null ) { throw new java.lang.NullPointerException ( "locale == null" ) ; } java.util.Locale.defaultLocale = locale ; libcore.icu.ICU.setDefaultLocale ( libcore.icu.ICU.localeIdFromLocale ( locale ) ) ; }
Source:
public int setProvisionedValue ( int item , int value ) throws android.os.RemoteException { return ImsConfig.OperationStatusConstants.SUCCESS ; }

Target:
public int setConfig ( int item , int value ) { replaceConfig ( new com.android.phone.testapps.imstestapp.TestImsConfigImpl.ConfigItem ( item , value ) ) ; return ImsConfig.OperationStatusConstants.SUCCESS ; }
Source:
public void finer ( java.lang.String msg ) { if ( ( java.util.logging.Level.FINER.intValue ( ) ) < ( levelValue ) ) { return ; } log ( java.util.logging.Level.FINER , msg ) ; }

Target:
public void entering ( java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.Object param1 ) { logp ( java.util.logging.Level.FINER , sourceClass , sourceMethod , "ENTRY {0}" , param1 ) ; }
Source:
public java.util.Set < java.lang.String > getAbiList ( ) { return abi.computeList ( com.android.build.gradle.internal.dsl.Splits.ABI_LIST ) ; }

Target:
public java.util.Set < java.lang.String > getAbiFilters ( ) { return abi.getApplicableFilters ( com.android.build.gradle.internal.dsl.Splits.ABI_LIST ) ; }
Source:
public static long LongDivision ( ) { long a ; long b ; long c ; a = 8L ; b = 3L ; c = a / b ; return c ; }

Target:
public static float FloatDivision ( ) { float a ; float b ; float c ; a = Main.$inline$float ( 8.0F ) ; b = Main.$inline$float ( 2.5F ) ; c = a / b ; return c ; }
Source:
public void save ( android.net.wifi.WifiManager.ActionListener listener ) { mEthernetManager.setConfiguration ( mIpConfiguration ) ; if ( listener != null ) { listener.onSuccess ( ) ; } }

Target:
public void save ( android.net.wifi.WifiManager.ActionListener listener ) { if ( ( mInterfaceName ) != null ) { mEthernetManager.setConfiguration ( mInterfaceName , mIpConfiguration ) ; } if ( listener != null ) { listener.onSuccess ( ) ; } }
Source:
public void setInitialAttachApn ( java.lang.String apn , java.lang.String protocol , int authType , java.lang.String username , java.lang.String password , android.os.Message result ) ;

Target:
void setUnsolResponseFilter ( int filter , android.os.Message result ) ;
Source:
public android.os.IBinder onBind ( android.content.Intent intent ) { if ( android.telephony.ims.ImsService.SERVICE_INTERFACE.equals ( intent.getAction ( ) ) ) { return mImsServiceController ; } return null ; }

Target:
public android.os.IBinder onBind ( android.content.Intent intent ) { if ( android.telephony.ims.ImsService.SERVICE_INTERFACE.equals ( intent.getAction ( ) ) ) { android.util.Log.i ( android.telephony.ims.ImsService.LOG_TAG , "ImsService Bound." ) ; return mImsServiceController ; } return null ; }
Source:
private void run ( @ javax.annotation.Nonnull com.android.jack.test.runtime.RuntimeTestInfo rti ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( rti ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , java.lang.String.valueOf ( AndroidCompatibilityChecker.N_API_LEVEL ) ) . compileAndRunTest ( ) ; }

Target:
private void run ( @ javax.annotation.Nonnull com.android.jack.test.runtime.RuntimeTestInfo rti ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( rti ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addProperty ( Options.ANDROID_MIN_API_LEVEL.getName ( ) , java.lang.String.valueOf ( AndroidApiLevel.ReleasedLevel.N.getLevel ( ) ) ) . compileAndRunTest ( ) ; }
Source:
public static final int toCodePoint ( char high , char low ) { return android.icu.impl.UCharacterProperty.getRawSupplementary ( high , low ) ; }

Target:
public static final boolean isSurrogatePair ( char high , char low ) { return java.lang.Character.isSurrogatePair ( high , low ) ; }
Source:
public java.util.List < java.io.File > getImportedLibrary ( ) { return options.getJayceImport ( ) ; }

Target:
public java.util.List < java.io.File > getImportedLibrary ( ) { return options.getImportedLibraries ( ) ; }
Source:
public void testSinhF32 ( ) { script_f32 = new android.renderscript.cts.ScriptC_sinh_f32 ( mRS , mRes , R.raw.sinh_f32 ) ; doF32 ( 810 , 4 ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; script_f32 = new android.renderscript.cts.ScriptC_sinh_f32 ( mRS ) ; }
Source:
com.android.bluetooth.gatt.ScanClient getRegularScanClient ( int clientIf ) { for ( com.android.bluetooth.gatt.ScanClient client : mRegularScanClients ) { if ( ( client.clientIf ) == clientIf ) return client ; } return null ; }

Target:
com.android.bluetooth.gatt.ScanClient getRegularScanClient ( int scannerId ) { for ( com.android.bluetooth.gatt.ScanClient client : mRegularScanClients ) { if ( ( client.scannerId ) == scannerId ) return client ; } return null ; }
Source:
protected junit.framework.TestCase getTestCase ( ) throws java.lang.Exception { return constructor.newInstance ( constructorArgs ) ; }

Target:
protected junit.framework.TestCase getTestCase ( ) throws java.lang.Exception { junit.framework.TestCase testCase = constructor.newInstance ( constructorArgs ) ; if ( ( constructor.getParameterTypes ( ) . length ) == 0 ) { testCase.setName ( method.getName ( ) ) ; } return testCase ; }
Source:
public static java.lang.String toString ( java.util.Iterator < ? > iterator ) { return com.google.common.base.Joiner.on ( ", " ) . useForNull ( "null" ) . appendTo ( new java.lang.StringBuilder ( ) . append ( '[' ) , iterator ) . append ( ']' ) . toString ( ) ; }

Target:
public static java.lang.String toString ( java.util.Iterator < ? > iterator ) { return com.google.common.collect.Collections2.STANDARD_JOINER.appendTo ( new java.lang.StringBuilder ( ) . append ( '[' ) , iterator ) . append ( ']' ) . toString ( ) ; }
Source:
public static int NotNot2 ( int arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int temp = ~ arg ; return temp + ( ~ temp ) ; }

Target:
public static int $noinline$NotNot2 ( int arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int temp = ~ arg ; return temp + ( ~ temp ) ; }
Source:
public com.google.common.collect.UnmodifiableIterator < V > iterator ( ) { return com.google.common.collect.Maps.valueIterator ( multimap.entries ( ) . iterator ( ) ) ; }

Target:
int copyIntoArray ( java.lang.Object [ ] dst , int offset ) { for ( com.google.common.collect.ImmutableCollection < V > valueCollection : multimap.map.values ( ) ) { offset = valueCollection.copyIntoArray ( dst , offset ) ; } return offset ; }
Source:
public void run ( ) { callback.onReceiveValue ( proceed ) ; }

Target:
public void proceed ( final java.security.PrivateKey privateKey , final java.security.cert.X509Certificate [ ] chain ) { mCallback.proceed ( privateKey , chain ) ; }
Source:
static double $opt$NegDouble ( double a ) { return - a ; }

Target:
private static double $opt$noinline$NegDouble ( double a ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return - a ; }
Source:
void resetResolvedDrawablesInternal ( ) { mPrivateFlags2 &= ~ ( android.view.View.PFLAG2_DRAWABLE_RESOLVED ) ; }

Target:
protected void resetResolvedDrawables ( ) { mPrivateFlags2 &= ~ ( android.view.View.PFLAG2_DRAWABLE_RESOLVED ) ; }
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > anyOf ( org.hamcrest.org.hamcrest.Matcher ... matchers ) { return org.hamcrest.core.AnyOf.< org.hamcrest.T > anyOf ( matchers ) ; }

Target:
public static < T > org.hamcrest.core.AnyOf < T > anyOf ( org.hamcrest.org.hamcrest.Matcher ... matchers ) { return org.hamcrest.core.AnyOf.anyOf ( matchers ) ; }
Source:
static long $opt$IntToLong ( int a ) { return ( ( long ) ( a ) ) ; }

Target:
static char $opt$IntToChar ( int a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( char ) ( a ) ) ; }
Source:
static short $opt$CharToShort ( char a ) { return ( ( short ) ( a ) ) ; }

Target:
static byte $opt$CharToByte ( char a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( byte ) ( a ) ) ; }
Source:
public com.google.common.collect.LinkedListMultimap.Node < K , V > next ( ) { com.google.common.collect.LinkedListMultimap.checkElement ( next ) ; previous = current = next ; next = next.next ; ( nextIndex ) ++ ; return current ; }

Target:
public com.google.common.collect.LinkedListMultimap.Node < K , V > next ( ) { checkForConcurrentModification ( ) ; com.google.common.collect.LinkedListMultimap.checkElement ( next ) ; previous = current = next ; next = next.next ; ( nextIndex ) ++ ; return current ; }
Source:
public abstract long length ( @ com.android.annotations.NonNull java.io.File file ) ;

Target:
boolean delete ( @ com.android.annotations.NonNull java.io.File file ) ;
Source:
public void onMetadataChanged ( android.media.MediaMetadata metadata ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , "onMetadataChanged" ) ; updateCurrentMediaState ( false ) ; }

Target:
public void onMetadataChanged ( android.media.MediaMetadata metadata ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , "onMetadataChanged" ) ; scheduleMediaUpdate ( ) ; }
Source:
public native void set ( java.lang.Object object , java.lang.Object value ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;

Target:
private native void set ( java.lang.Object object , java.lang.Object value , boolean accessible ) throws java.lang.IllegalAccessException , java.lang.IllegalArgumentException ;
Source:
public static void computeMax ( android.renderscript.cts.TestMax.ArgumentsFloatFloatFloat args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( float ) ( java.lang.StrictMath.max ( args.in , args.in1 ) ) ) ; }

Target:
public static void computeCeil ( android.renderscript.cts.TestCeil.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( android.renderscript.cts.CoreMathVerifier.ceil ( args.in ) , 0 , 1 ) ; }
Source:
public java.lang.String toLanguageTag ( ) { if ( ( cachedLanguageTag ) == null ) { cachedLanguageTag = libcore.icu.ICU.toLanguageTag ( this ) ; } return cachedLanguageTag ; }

Target:
public java.lang.String toLanguageTag ( ) { if ( ( cachedLanguageTag ) == null ) { cachedLanguageTag = makeLanguageTag ( ) ; } return cachedLanguageTag ; }
Source:
public static native boolean presentInProfile ( java.lang.String profile , int methodIdx ) ;

Target:
public static native boolean presentInProfile ( java.lang.String profile , java.lang.reflect.Method method ) ;
Source:
public final java.lang.Throwable [ ] getSuppressed ( ) { return ( suppressedExceptions ) != null ? suppressedExceptions.toArray ( new java.lang.Throwable [ suppressedExceptions.size ( ) ] ) : libcore.util.EmptyArray.THROWABLE ; }

Target:
public final java.lang.Throwable [ ] getSuppressed ( ) { return ( ( suppressedExceptions ) != null ) && ( ! ( suppressedExceptions.isEmpty ( ) ) ) ? suppressedExceptions.toArray ( new java.lang.Throwable [ suppressedExceptions.size ( ) ] ) : libcore.util.EmptyArray.THROWABLE ; }
Source:
public TestCaseBuilder withScreenshotter ( android.uirendering.cts.testinfrastructure.ActivityTestBase.Screenshotter screenshotter ) { }

Target:
public android.uirendering.cts.testinfrastructure.ActivityTestBase.TestCaseBuilder withScreenshotter ( android.uirendering.cts.testinfrastructure.ActivityTestBase.Screenshotter screenshotter ) { org.junit.Assert.assertNull ( "Screenshotter is already set!" , mScreenshotter ) ; mScreenshotter = screenshotter ; return this ; }
Source:
private android.support.test.uiautomator.UiObject2 getLabel ( android.autofillservice.cts.UiBot uiBot , java.lang.String contentDescription ) { if ( ! ( android.autofillservice.cts.WebViewActivity.CONTENT_DESCRIPTION_SUPPORTED ) ) { return uiBot.assertShownByText ( contentDescription ) ; } return uiBot.assertShownByContentDescription ( contentDescription ) ; }

Target:
private android.support.test.uiautomator.UiObject2 getLabel ( android.autofillservice.cts.UiBot uiBot , java.lang.String contentDescription ) { final android.support.test.uiautomator.UiObject2 label = uiBot.assertShownByContentDescription ( contentDescription ) ; return label ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { reloadAbiTypeCombo ( ) ; validatePage ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { reloadTagAbiCombo ( ) ; validatePage ( ) ; }
Source:
public void run ( long sslSession ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_shutdown ( sslSession , org.conscrypt.NativeCryptoTest.INVALID_FD , org.conscrypt.NativeCryptoTest.DUMMY_CB ) ; fail ( ) ; } catch ( java.net.SocketException expected ) { } }

Target:
public void run ( long sslSession ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_shutdown ( sslSession , org.conscrypt.NativeCryptoTest.INVALID_FD , org.conscrypt.NativeCryptoTest.DUMMY_CB ) ; org.junit.Assert.fail ( ) ; } catch ( java.net.SocketException expected ) { } }
Source:
public java.util.Set < java.io.File > call ( ) throws java.lang.Exception { return getJniFolders ( scope ) ; }

Target:
public com.android.build.gradle.internal.dsl.PackagingOptions call ( ) throws java.lang.Exception { return getExtension ( ) . getPackagingOptions ( ) ; }
Source:
public boolean removeLinkAddress ( android.net.LinkAddress toRemove ) { return mLinkAddresses.remove ( toRemove ) ; }

Target:
public boolean removeLinkAddress ( android.net.LinkAddress toRemove ) { int i = findLinkAddressIndex ( toRemove ) ; if ( i >= 0 ) { mLinkAddresses.remove ( i ) ; return true ; } return false ; }
Source:
public void doWork ( ) throws android.os.RemoteException { mService.getAuthToken ( mResponse , account , authTokenType , notifyAuthFailure , false , optionsIn ) ; }

Target:
public void doWork ( ) throws android.os.RemoteException { mService.removeAccount ( mResponse , account , ( activity != null ) ) ; }
Source:
public void testAlpha3 ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( "res/values-b+nor+NOR: Warning: For compatibility, should use 2-letter language codes when available; use nor instead of no [UseAlpha2]\n" + "res/values-b+nor+NOR: Warning: For compatibility, should use 2-letter region codes when available; use NOR instead of NO [UseAlpha2]\n" ) + "0 errors, 2 warnings\n" ) ) , lintProject ( "res/values/strings.xml" , "res/values/strings.xml=>res/values-no/strings.xml" , "res/values/strings.xml=>res/values-b+kok+IN//strings.xml" , "res/values/strings.xml=>res/values-b+nor+NOR/strings.xml" ) ) ; }

Target:
public void testAlpha3 ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( "res/values-b+nor+NOR: Warning: For compatibility, should use 2-letter language codes when available; use no instead of nor [UseAlpha2]\n" + "res/values-b+nor+NOR: Warning: For compatibility, should use 2-letter region codes when available; use NO instead of NOR [UseAlpha2]\n" ) + "0 errors, 2 warnings\n" ) ) , lintProject ( "res/values/strings.xml" , "res/values/strings.xml=>res/values-no/strings.xml" , "res/values/strings.xml=>res/values-b+kok+IN//strings.xml" , "res/values/strings.xml=>res/values-b+nor+NOR/strings.xml" ) ) ; }
Source:
public void TestOnePlaceholder ( ) { assertEquals ( "TestOnePlaceholder" , "1 meter" , com.ibm.icu.impl.SimplePatternFormatter.compile ( "{0} meter" ) . format ( "1" ) ) ; }

Target:
public void TestOneArgument ( ) { assertEquals ( "TestOneArgument" , "1 meter" , com.ibm.icu.text.SimpleFormatter.compile ( "{0} meter" ) . format ( "1" ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { new Main ( args ) . run ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { new Main ( args ) . runBase ( ) ; }
Source:
public com.android.ims.internal.IImsUt getUtInterface ( ) throws android.os.RemoteException { return mCompatFeature.getUtInterface ( ) ; }

Target:
public void enableIms ( ) throws android.os.RemoteException { mCompatFeature.turnOnIms ( ) ; }
Source:
public boolean p2pServDiscCancelReq ( java.lang.String id ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.cancelServiceDiscovery ( id ) ; } else { return doBooleanCommand ( ( "P2P_SERV_DISC_CANCEL_REQ " + id ) ) ; } }

Target:
public boolean p2pServDiscCancelReq ( java.lang.String id ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.cancelServiceDiscovery ( id ) ; } else { return doBooleanCommand ( ( "P2P_SERV_DISC_CANCEL_REQ " + id ) ) ; } }
Source:
public void setListener ( android.telephony.ims.internal.aidl.IImsMmTelListener l ) throws android.os.RemoteException { synchronized ( mLock ) { this . setListener ( l ) ; } }

Target:
public void setListener ( android.telephony.ims.aidl.IImsMmTelListener l ) throws android.os.RemoteException { synchronized ( mLock ) { this . setListener ( l ) ; } }
Source:
public boolean onCanceledViaNewOutgoingCallBroadcast ( com.android.server.telecom.Call call ) { return false ; }

Target:
public boolean onCanceledViaNewOutgoingCallBroadcast ( com.android.server.telecom.Call call , long disconnectionTimeout ) { return false ; }
Source:
public java.lang.String toString ( ) { return ( ( ( getClass ( ) . getSimpleName ( ) ) + " [" ) + ( state ( ) ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return ( ( ( serviceName ( ) ) + " [" ) + ( state ( ) ) ) + "]" ; }
Source:
public java.util.List < com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.NewCall > getNewMissedCalls ( ) { return mNewCallsQuery.query ( Calls.MISSED_TYPE ) ; }

Target:
public java.util.List < com.android.dialer.app.calllog.CallLogNotificationsQueryHelper.NewCall > getNewVoicemails ( ) { return mNewCallsQuery.query ( Calls.VOICEMAIL_TYPE ) ; }
Source:
com.android.bluetooth.btservice.RemoteDevices.DeviceProperties getDeviceProperties ( android.bluetooth.BluetoothDevice device ) { synchronized ( mDevices ) { return mDevices.get ( device ) ; } }

Target:
com.android.bluetooth.btservice.RemoteDevices.DeviceProperties getDeviceProperties ( android.bluetooth.BluetoothDevice device ) { synchronized ( mDevices ) { return mDevices.get ( device.getAddress ( ) ) ; } }
Source:
private static void listIssue ( java.io.PrintStream out , com.android.tools.lint.detector.api.Issue issue ) { out.print ( com.android.tools.lint.Main.wrapArg ( ( ( ( "\"" + ( issue.getId ( ) ) ) + "\": " ) + ( issue.getDescription ( com.android.tools.lint.detector.api.Issue.OutputFormat.TEXT ) ) ) ) ) ; }

Target:
private static void listIssue ( java.io.PrintStream out , com.android.tools.lint.detector.api.Issue issue ) { out.print ( com.android.tools.lint.Main.wrapArg ( ( ( ( "\"" + ( issue.getId ( ) ) ) + "\": " ) + ( issue.getDescription ( com.android.tools.lint.detector.api.TextFormat.TEXT ) ) ) ) ) ; }
Source:
public void testEnglishRegionAndValuesAsEnglish3 ( ) throws java.lang.Exception { assertEquals ( "No warnings." , lintProject ( "locale33845/res/values/strings5.xml=>res/values/strings.xml" , "locale33845/res/values-en-rGB/strings3.xml=>res/values-de-rDE/strings.xml" ) ) ; }

Target:
public void testEnglishRegionAndValuesAsEnglish3 ( ) throws java.lang.Exception { TranslationDetector.sCompleteRegions = false ; assertEquals ( "No warnings." , lintProject ( "locale33845/res/values/strings5.xml=>res/values/strings.xml" , "locale33845/res/values-en-rGB/strings3.xml=>res/values-de-rDE/strings.xml" ) ) ; }
Source:
public com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile getFile ( com.android.sdklib.io.IAbstractFile file ) { if ( ( mFiles ) != null ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile f : mFiles ) { if ( f.getFile ( ) . equals ( file ) ) { return f ; } } } return null ; }

Target:
public com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile getFile ( com.android.io.IAbstractFile file ) { if ( ( mFiles ) != null ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile f : mFiles ) { if ( f.getFile ( ) . equals ( file ) ) { return f ; } } } return null ; }
Source:
protected void standardClear ( ) { java.util.Iterator < java.util.Map.Entry < K , V > > entryIterator = entrySet ( ) . iterator ( ) ; while ( entryIterator.hasNext ( ) ) { entryIterator.next ( ) ; entryIterator.remove ( ) ; } }

Target:
protected void standardClear ( ) { com.google.common.collect.Iterators.clear ( entrySet ( ) . iterator ( ) ) ; }