auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testHasErrorTextShouldFail_WithNullString ( ) { try { android.support.test.espresso.matcher.ViewMatchers.hasErrorText ( ( ( org.hamcrest.Matcher < java.lang.String > ) ( null ) ) ) ; fail ( "Should of thrown NPE" ) ; } catch ( java.lang.NullPointerException e ) { } }

Target:
public void hasErrorTextShouldFail_WithNullString ( ) { try { android.support.test.espresso.matcher.ViewMatchers.hasErrorText ( ( ( org.hamcrest.Matcher < java.lang.String > ) ( null ) ) ) ; org.junit.Assert.fail ( "Should of thrown NPE" ) ; } catch ( java.lang.NullPointerException e ) { } }
Source:
private native void nativeDrawFocusRing ( android.graphics.Canvas content ) ;

Target:
private native void nativeDrawCursorRing ( android.graphics.Canvas content ) ;
Source:
public int getMaxWallpaperLayer ( ) { return com.android.internal.policy.impl.PhoneWindowManager.STATUS_BAR_LAYER ; }

Target:
public int getAboveUniverseLayer ( ) { return windowTypeToLayerLw ( android.view.WindowManager.LayoutParams.TYPE_SYSTEM_ERROR ) ; }
Source:
void run ( ) throws com.android.jack.server.api.v01.ServerException , java.lang.InterruptedException ;

Target:
void run ( @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.lang.Object > parameters ) throws com.android.jack.server.api.v01.ServerException , java.lang.InterruptedException ;
Source:
abstract void onSdkChange ( ) ;

Target:
abstract org.eclipse.draw2d.geometry.Rectangle getScreenBounds ( ) ;
Source:
public java.lang.String getPackageName ( ) { return variantConfiguration.getPackageName ( ) ; }

Target:
protected java.lang.String getCapitalizedFlavorName ( ) { return com.android.build.gradle.internal.StringHelper.capitalize ( variantConfiguration.getFlavorName ( ) ) ; }
Source:
void onOptionChanged ( java.lang.String newOption ) ;

Target:
void onOptionChanged ( @ com.android.tv.TvOptionsManager.OptionType int optionType , java.lang.String newString ) ;
Source:
private void openChannel ( ) { mUiccCard.iccOpenLogicalChannel ( com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules.AID , obtainMessage ( com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules.EVENT_OPEN_LOGICAL_CHANNEL_DONE , null ) ) ; }

Target:
private void openChannel ( ) { int p2 = 0 ; mUiccCard.iccOpenLogicalChannel ( com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules.AID , p2 , obtainMessage ( com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules.EVENT_OPEN_LOGICAL_CHANNEL_DONE , null ) ) ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setSuiteBuildNumber ( java.lang.String value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 64 ; suiteBuildNumber_ = value ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setTarget ( java.lang.String value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 8 ; target_ = value ; onChanged ( ) ; return this ; }
Source:
boolean setBluetoothClass ( android.bluetooth.BluetoothClass bluetoothClass ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PRIVILEGED , "Need BLUETOOTH PRIVILEGED permission" ) ; return mAdapterProperties.setBluetoothClass ( bluetoothClass.getClassOfDeviceBytes ( ) ) ; }

Target:
android.bluetooth.BluetoothClass getBluetoothClass ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH ADMIN permission" ) ; return mAdapterProperties.getBluetoothClass ( ) ; }
Source:
public android.net.http.SslCertificate call ( ) { return getCertificate ( ) ; }

Target:
public void run ( ) { setHttpAuthUsernamePassword ( host , realm , username , password ) ; }
Source:
private static void sourceIfExist ( org.gradle.platform.base.BinarySpec binary , com.android.build.gradle.model.AndroidComponentModelSourceSet projectSourceSet , java.lang.String sourceSetName ) { org.gradle.language.base.FunctionalSourceSet sourceSet = projectSourceSet.findByName ( sourceSetName ) ; if ( sourceSet != null ) { binary.source ( sourceSet ) ; } }

Target:
public void execute ( org.gradle.language.base.LanguageSourceSet source ) { source.getSource ( ) . setSrcDirs ( jni.getSource ( ) . getSrcDirs ( ) ) ; source.getSource ( ) . include ( "**/*.cpp" ) ; source.getSource ( ) . include ( "**/*.cc" ) ; source.getSource ( ) . include ( "**/*.cp" ) ; source.getSource ( ) . include ( "**/*.cxx" ) ; }
Source:
public static org.hamcrest.org.hamcrest.Matcher < java.lang.String > equalToIgnoringCase ( java.lang.String string ) { return org.hamcrest.text.IsEqualIgnoringCase.equalToIgnoringCase ( string ) ; }

Target:
public static org.hamcrest.org.hamcrest.Matcher < java.lang.String > equalToIgnoringCase ( java.lang.String expectedString ) { return org.hamcrest.text.IsEqualIgnoringCase.equalToIgnoringCase ( expectedString ) ; }
Source:
protected void finalize ( ) { synchronized ( Main.FinalizeCounter.finalizeLock ) { ++ ( Main.FinalizeCounter.finalizeCount ) ; } }

Target:
protected void finalize ( ) { synchronized ( Main.FinalizeCounter.finalizeLock ) { ++ ( Main.FinalizeCounter.finalizeCount ) ; Main.FinalizeCounter.finalized [ index ] = true ; } }
Source:
private static float sigmoid ( float x , float s ) { return 1.0F / ( 1.0F + ( android.util.FloatMath.exp ( ( ( - x ) * s ) ) ) ) ; }

Target:
private static float sigmoid ( float x , float s ) { return 1.0F / ( 1.0F + ( ( float ) ( java.lang.Math.exp ( ( ( - x ) * s ) ) ) ) ) ; }
Source:
public java.lang.String getMessage ( ) { return ( ( "Failed to lookup method " + ( com.android.jack.Jack.getUserFriendlyFormatter ( ) . getName ( getDeclaringClass ( ) ) ) ) + '.' ) + ( getMethodString ( ) ) ; }

Target:
public java.lang.String getMessage ( ) { return ( ( ( "Method '" + ( getMethodString ( ) ) ) + "' not found in type '" ) + ( com.android.jack.Jack.getUserFriendlyFormatter ( ) . getName ( getDeclaringClass ( ) ) ) ) + "'" ; }
Source:
synchronized void nScriptSetTimeZone ( long script , byte [ ] timeZone ) { validate ( ) ; rsnScriptSetTimeZone ( mContext , script , timeZone ) ; }

Target:
synchronized void nScriptSetVarObj ( long id , int slot , long val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarObj ( curCon , id , slot , val , mUseInc ) ; }
Source:
private static native java.lang.String nativeLoad ( java.lang.String filename , java.lang.ClassLoader loader ) ;

Target:
private static native java.lang.String nativeLoad ( java.lang.String filename , java.lang.ClassLoader loader , java.lang.String ldLibraryPath ) ;
Source:
public final void saveState ( org.eclipse.core.resources.IProject project ) { com.android.ide.eclipse.adt.internal.project.ProjectHelper.saveStringProperty ( project , getSavePropertyName ( ) , java.lang.Boolean.toString ( ( ( getToCompile ( ) . size ( ) ) > 0 ) ) ) ; }

Target:
public final void saveState ( org.eclipse.core.resources.IProject project ) { com.android.ide.eclipse.adt.internal.project.ProjectHelper.saveStringProperty ( project , getSavePropertyName ( ) , java.lang.Boolean.toString ( ( ( mToCompile.size ( ) ) > 0 ) ) ) ; }
Source:
protected boolean cleanup ( ) { if ( ( mStateMachine ) != null ) { mStateMachine.cleanup ( ) ; } com.android.bluetooth.hfp.HeadsetService.clearHeadsetService ( ) ; return true ; }

Target:
protected synchronized boolean cleanup ( ) { android.util.Log.i ( com.android.bluetooth.hfp.HeadsetService.TAG , "cleanup" ) ; if ( ! ( mCreated ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetService.TAG , "cleanup() called before create()" ) ; return true ; } mCreated = false ; return true ; }
Source:
public void setBuildConfigLines ( java.util.List < java.lang.String > lines ) { mBuildConfigLines.addAll ( lines ) ; }

Target:
protected void addBuildConfigLines ( java.util.List < java.lang.String > lines ) { mBuildConfigLines.addAll ( lines ) ; }
Source:
public void onServiceDisconnected ( android.content.ComponentName name ) { if ( com.android.server.NetworkScoreService.DBG ) { android.util.Log.d ( com.android.server.NetworkScoreService.TAG , ( "ScoringServiceConnection, disconnected: " + ( name.flattenToString ( ) ) ) ) ; } mConnected = false ; }

Target:
public void onServiceDisconnected ( android.content.ComponentName name ) { if ( com.android.server.NetworkScoreService.DBG ) { android.util.Log.d ( com.android.server.NetworkScoreService.TAG , ( "ScoringServiceConnection, disconnected: " + ( name.flattenToString ( ) ) ) ) ; } mConnected = false ; mRecommendationProvider = null ; }
Source:
private java.lang.String dumpEntireTimeZoneStatusToString ( ) throws java.lang.Exception { java.lang.String output = getDevice ( ) . executeAdbCommand ( "shell" , "dumpsys" , "timezone" ) ; assertNotNull ( output ) ; return output ; }

Target:
private java.lang.String dumpEntireTimeZoneStatusToString ( ) throws java.lang.Exception { java.lang.String output = getDevice ( ) . executeShellCommand ( "dumpsys timezone" ) ; assertNotNull ( output ) ; return output ; }
Source:
public com.android.sched.util.log.Event start ( @ javax.annotation.Nonnull com.android.sched.util.log.EventType type ) ;

Target:
public com.android.sched.util.log.Event open ( @ javax.annotation.Nonnull com.android.sched.util.log.EventType type ) ;
Source:
public static com.google.common.io.OutputSupplier < java.io.OutputStreamWriter > newWriterSupplier ( java.io.File file , java.nio.charset.Charset charset , boolean append ) { return com.google.common.io.CharStreams.newWriterSupplier ( com.google.common.io.Files.newOutputStreamSupplier ( file , append ) , charset ) ; }

Target:
public static com.google.common.io.CharSink asCharSink ( java.io.File file , java.nio.charset.Charset charset , com.google.common.io.FileWriteMode ... modes ) { return com.google.common.io.Files.asByteSink ( file , modes ) . asCharSink ( charset ) ; }
Source:
public void init ( org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey , org.bouncycastle.crypto.CipherParameters params , org.bouncycastle.crypto.generators.EphemeralKeyPairGenerator ephemeralKeyPairGenerator ) { this . forEncryption = true ; this . pubParam = publicKey ; this . param = ( ( org.bouncycastle.crypto.params.IESParameters ) ( params ) ) ; this . keyPairGenerator = ephemeralKeyPairGenerator ; }

Target:
public void init ( org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey , org.bouncycastle.crypto.CipherParameters params , org.bouncycastle.crypto.generators.EphemeralKeyPairGenerator ephemeralKeyPairGenerator ) { this . forEncryption = true ; this . pubParam = publicKey ; this . keyPairGenerator = ephemeralKeyPairGenerator ; extractParams ( params ) ; }
Source:
public void testAospSeappContexts ( ) throws java.lang.Exception { deviceSeappFile = java.io.File.createTempFile ( "seapp_contexts" , ".tmp" ) ; deviceSeappFile.deleteOnExit ( ) ; mDevice.pullFile ( "/seapp_contexts" , deviceSeappFile ) ; aospSeappFile = copyResourceToTempFile ( "/plat_seapp_contexts" ) ; assertFileStartsWith ( aospSeappFile , deviceSeappFile ) ; }

Target:
public void testAospSeappContexts ( ) throws java.lang.Exception { deviceSeappFile = java.io.File.createTempFile ( "seapp_contexts" , ".tmp" ) ; deviceSeappFile.deleteOnExit ( ) ; mDevice.pullFile ( "/plat_seapp_contexts" , deviceSeappFile ) ; aospSeappFile = copyResourceToTempFile ( "/plat_seapp_contexts" ) ; assertFileEquals ( aospSeappFile , deviceSeappFile ) ; }
Source:
public final native double [ ] readDoubleVector ( ) ;

Target:
private final native double [ ] readDoubleVectorAsArray ( ) ;
Source:
public void testHasFeature ( ) throws android.accounts.AuthenticatorException , android.accounts.OperationCanceledException , java.io.IOException { testHasFeature ( null ) ; testHasFeature ( new android.os.Handler ( ) ) ; testHasFeatureWithCallback ( null ) ; testHasFeatureWithCallback ( new android.os.Handler ( ) ) ; }

Target:
public void testHasFeature ( ) throws android.accounts.AuthenticatorException , android.accounts.OperationCanceledException , java.io.IOException { assertHasFeature ( null ) ; assertHasFeature ( new android.os.Handler ( ) ) ; assertHasFeatureWithCallback ( null ) ; assertHasFeatureWithCallback ( new android.os.Handler ( ) ) ; }
Source:
private void createWifiConfigManager ( ) { mWifiConfigManager = new com.android.server.wifi.WifiConfigManager ( mContext , mFrameworkFacade , mClock , mUserManager , mTelephonyManager , mWifiKeyStore , mWifiConfigStore , mWifiConfigStoreLegacy , mWifiPermissionsWrapper ) ; mWifiConfigManager.enableVerboseLogging ( 1 ) ; }

Target:
private void createWifiConfigManager ( ) { mWifiConfigManager = new com.android.server.wifi.WifiConfigManager ( mContext , mFrameworkFacade , mClock , mUserManager , mTelephonyManager , mWifiKeyStore , mWifiConfigStore , mWifiConfigStoreLegacy , mWifiPermissionsWrapper , mNetworkListStoreData , mDeletedEphemeralSsidsStoreData ) ; mWifiConfigManager.enableVerboseLogging ( 1 ) ; }
Source:
public void removeTunnelModeTransform ( android.net.Network net , android.net.IpSecTransform transform ) { }

Target:
public void applyTunnelModeTransform ( android.net.Network net , android.net.IpSecTransform transform ) { }
Source:
public byte [ ] getApfProgram ( ) { assertTrue ( mGotApfProgram.block ( android.net.apf.ApfTest.TIMEOUT_MS ) ) ; return mLastApfProgram ; }

Target:
public void assertNoProgramUpdate ( ) { org.junit.Assert.assertFalse ( mGotApfProgram.block ( android.net.apf.ApfTest.TIMEOUT_MS ) ) ; }
Source:
private static native int nativeCreateGLFunctor ( int viewContext ) ;

Target:
private static native void nativeSetChromiumAwDrawGLFunction ( long functionPointer ) ;
Source:
public boolean putAll ( K key , java.lang.Iterable < ? extends V > values ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
java.util.Map.Entry < K , V > output ( K key , V value ) { return com.google.common.collect.Maps.immutableEntry ( key , value ) ; }
Source:
native void rsnScriptForEach ( int con , int id , int slot , int ain , int aout ) ;

Target:
native void rsnScriptSetVarVE ( long con , long id , int slot , byte [ ] val , long e , int [ ] dims ) ;
Source:
public final int getBlockSize ( ) { return spiImpl.engineGetBlockSize ( ) ; }

Target:
public final int getBlockSize ( ) { return getSpi ( ) . engineGetBlockSize ( ) ; }
Source:
boolean isMergeCallSupported ( android.telecom.PhoneAccountHandle handle ) { for ( com.android.services.telephony.TelecomAccountRegistry.AccountEntry entry : mAccounts ) { if ( entry.getPhoneAccountHandle ( ) . equals ( handle ) ) { return entry.isMergeCallSupported ( ) ; } } return false ; }

Target:
boolean isMergeCallSupported ( android.telecom.PhoneAccountHandle handle ) { synchronized ( mAccountsLock ) { for ( com.android.services.telephony.TelecomAccountRegistry.AccountEntry entry : mAccounts ) { if ( entry.getPhoneAccountHandle ( ) . equals ( handle ) ) { return entry.isMergeCallSupported ( ) ; } } } return false ; }
Source:
public static int intToFloatToInt ( int value ) { return ( ( int ) ( ( float ) ( value ) ) ) ; }

Target:
public static int $noinline$intToFloatToInt ( int value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( int ) ( ( float ) ( value ) ) ) ; }
Source:
public boolean hasNext ( ) { return ( cursor ) != ( elementCount ) ; }

Target:
public boolean hasNext ( ) { return ( cursor ) < ( limit ) ; }
Source:
public void attach ( @ android.annotation.NonNull android.net.wifi.aware.WifiAwareAttachCallback attachCallback , @ android.annotation.NonNull android.net.wifi.aware.WifiAwareIdentityChangedListener identityChangedListener , @ android.annotation.Nullable android.os.Handler handler ) { attach ( handler , null , attachCallback , identityChangedListener ) ; }

Target:
public void attach ( @ android.annotation.NonNull android.net.wifi.aware.AttachCallback attachCallback , @ android.annotation.NonNull android.net.wifi.aware.IdentityChangedListener identityChangedListener , @ android.annotation.Nullable android.os.Handler handler ) { attach ( handler , null , attachCallback , identityChangedListener ) ; }
Source:
public void enter ( ) { super . enter ( ) ; com.android.server.telecom.Log.event ( mCallsManager.getForegroundCall ( ) , Log.Events.AUDIO_ROUTE , ( "Entering state " + ( getName ( ) ) ) ) ; }

Target:
public void enter ( ) { super . enter ( ) ; android.telecom.Log.addEvent ( mCallsManager.getForegroundCall ( ) , LogUtils.Events.AUDIO_ROUTE , ( "Entering state " + ( getName ( ) ) ) ) ; }
Source:
public int queryCallBarringForServiceClass ( int cbType , int serviceClass ) throws android.os.RemoteException { return - 1 ; }

Target:
public int queryCallBarring ( int cbType ) throws android.os.RemoteException { return this . queryCallBarring ( cbType ) ; }
Source:
public android.net.NetworkRequest.Builder setNetworkSpecifier ( java.lang.String networkSpecifier ) { return setNetworkSpecifier ( new android.net.StringNetworkSpecifier ( networkSpecifier ) ) ; }

Target:
public android.net.NetworkRequest.Builder setNetworkSpecifier ( java.lang.String networkSpecifier ) { return setNetworkSpecifier ( ( android.text.TextUtils.isEmpty ( networkSpecifier ) ? null : new android.net.StringNetworkSpecifier ( networkSpecifier ) ) ) ; }
Source:
private java.lang.String getCurrentDeviceName ( ) { java.lang.String deviceName = mDevice.getName ( ) ; if ( deviceName == null ) { return "<unknown>" ; } return deviceName ; }

Target:
private java.lang.String getCurrentDeviceName ( ) { java.lang.String deviceName = mAdapterService.getRemoteName ( mDevice ) ; if ( deviceName == null ) { return "<unknown>" ; } return deviceName ; }
Source:
public void removeNotificationFromList ( java.lang.String callingPackage , int seqNumber , com.android.internal.telephony.euicc.IRemoveNotificationFromListCallback callback ) { checkCallingPackage ( callingPackage ) ; }

Target:
public void onException ( java.lang.Throwable e ) { try { callback.onComplete ( getResultCode ( e ) ) ; } catch ( android.os.RemoteException exception ) { throw exception.rethrowFromSystemServer ( ) ; } }
Source:
private void parse ( java.io.InputStream in , java.lang.String encoding , java.lang.String publicId , java.lang.String systemId ) throws java.io.IOException , org.xml.sax.SAXException { org.apache.harmony.xml.ExpatParser parser = new org.apache.harmony.xml.ExpatParser ( encoding , this , processNamespaces , publicId , systemId ) ; parser.parseDocument ( in ) ; }

Target:
private void parse ( java.io.InputStream in , java.lang.String charsetName , java.lang.String publicId , java.lang.String systemId ) throws java.io.IOException , org.xml.sax.SAXException { org.apache.harmony.xml.ExpatParser parser = new org.apache.harmony.xml.ExpatParser ( charsetName , this , processNamespaces , publicId , systemId ) ; parser.parseDocument ( in ) ; }
Source:
public void testConfigRequestBuilderMasterPrefReserved1 ( ) { new android.net.wifi.nan.ConfigRequest.Builder ( ) . setMasterPreference ( 1 ) ; }

Target:
public void testConfigRequestBuilderMasterPrefReserved1 ( ) { new android.net.wifi.aware.ConfigRequest.Builder ( ) . setMasterPreference ( 1 ) ; }
Source:
private synchronized int getNextMergerIdx ( int oldMergerIdx , int typeIdx ) { if ( ( currentMergerIdx ) > oldMergerIdx ) { return getCurrentMergerIdx ( ) ; } ( currentMergerIdx ) ++ ; mergers.add ( getNewJackMerger ( typeIdx ) ) ; return getCurrentMergerIdx ( ) ; }

Target:
private synchronized int getNextMergerIdx ( int oldMergerIdx ) { if ( ( currentMergerIdx ) > oldMergerIdx ) { return getCurrentMergerIdx ( ) ; } ( currentMergerIdx ) ++ ; mergers.add ( getNewMerger ( ) ) ; return getCurrentMergerIdx ( ) ; }
Source:
public boolean supportsUpgrade ( @ android.support.annotation.NonNull android.content.Context context , @ android.support.annotation.Nullable java.lang.String number ) { com.android.dialer.common.Assert.isMainThread ( ) ; com.android.dialer.common.Assert.isNotNull ( context ) ; return false ; }

Target:
public com.google.common.base.Optional < java.lang.Boolean > supportsUpgrade ( @ android.support.annotation.NonNull android.content.Context context , @ android.support.annotation.Nullable java.lang.String number ) { com.android.dialer.common.Assert.isMainThread ( ) ; com.android.dialer.common.Assert.isNotNull ( context ) ; return com.google.common.base.Optional.of ( false ) ; }
Source:
public java.lang.String getShortName ( ) { return com.android.ide.eclipse.adt.internal.resources.configurations.PixelDensityQualifier.NAME ; }

Target:
public java.lang.String getShortName ( ) { return com.android.ide.common.resources.configuration.PixelDensityQualifier.NAME ; }
Source:
public void testDollar ( ) { org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "*$*" ) . apply ( "java/util/Map$Entry" ) ) ; org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "*$$$*" ) . apply ( "org/example/Enity$$$generated123" ) ) ; }

Target:
public void testDollar ( ) { org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "*$*" ) . matches ( "java/util/Map$Entry" ) ) ; org.junit.Assert.assertTrue ( new org.jacoco.core.matcher.WildcardMatcher ( "*$$$*" ) . matches ( "org/example/Enity$$$generated123" ) ) ; }
Source:
public boolean createBondOutOfBand ( byte [ ] hash , byte [ ] randomizer ) { return false ; }

Target:
public boolean createBondOutOfBand ( int transport , android.bluetooth.OobData oobData ) { try { return android.bluetooth.BluetoothDevice.sService.createBondOutOfBand ( this , transport , oobData ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }
Source:
public void setAudioQuality ( int audioQuality ) { mHasHighDefAudio = audioQuality == com.android.services.telephony.com.android.internal.telephony.Connection.AUDIO_QUALITY_HIGH_DEFINITION ; updateConnectionCapabilities ( ) ; }

Target:
public void setOriginalConnectionCapabilities ( int connectionCapabilities ) { mOriginalConnectionCapabilities = connectionCapabilities ; updateConnectionCapabilities ( ) ; updateConnectionProperties ( ) ; }
Source:
public static < T > org.junit.internal.matchers.CombinableMatcher < T > either ( org.hamcrest.Matcher < T > matcher ) { return new org.junit.internal.matchers.CombinableMatcher < T > ( matcher ) ; }

Target:
public static < T > org.hamcrest.core.CombinableMatcher.CombinableBothMatcher < T > both ( org.hamcrest.Matcher < ? super T > matcher ) { return org.hamcrest.CoreMatchers.both ( matcher ) ; }
Source:
public int getAttributeNameResourceId ( int index ) throws com.android.apksigner.AndroidBinXmlParser.XmlParserException { return getAttribute ( index ) . getNameResourceId ( ) ; }

Target:
public int getAttributeNameResourceId ( int index ) throws com.android.apksig.apk.AndroidBinXmlParser.XmlParserException { return getAttribute ( index ) . getNameResourceId ( ) ; }
Source:
public void registrationProgressingWithRadioTech ( int imsRadioTech ) { if ( com.android.ims.ImsManager.DBG ) { com.android.ims.ImsManager.log ( ( "registrationProgressingWithRadioTech :: imsRadioTech=" + imsRadioTech ) ) ; } if ( ( mListener ) != null ) { mListener.onImsProgressing ( ) ; } }

Target:
public void registrationProgressing ( ) { if ( com.android.ims.ImsManager.DBG ) { com.android.ims.ImsManager.log ( "registrationProgressing ::" ) ; } if ( ( mListener ) != null ) { mListener.onImsProgressing ( ServiceState.RIL_RADIO_TECHNOLOGY_UNKNOWN ) ; } }
Source:
public void testNotIsInManagedCall ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mFakeCallsManager.hasOngoingManagedCalls ( ) ) . thenReturn ( false ) ; assertFalse ( mTSIBinder.isInManagedCall ( com.android.server.telecom.tests.TelecomServiceImplTest.DEFAULT_DIALER_PACKAGE ) ) ; }

Target:
public void testNotIsInManagedCall ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mFakeCallsManager.hasOngoingManagedCalls ( ) ) . thenReturn ( false ) ; org.junit.Assert.assertFalse ( mTSIBinder.isInManagedCall ( com.android.server.telecom.tests.TelecomServiceImplTest.DEFAULT_DIALER_PACKAGE ) ) ; }
Source:
public void setPauseImage ( android.net.Uri uri ) { mProviderHandler.obtainMessage ( com.android.ims.internal.ImsVideoCallProvider.MSG_SET_PAUSE_IMAGE , uri ) . sendToTarget ( ) ; }

Target:
public void setPauseImage ( android.net.Uri uri ) { mProviderHandler.obtainMessage ( android.telephony.ims.ImsVideoCallProvider.MSG_SET_PAUSE_IMAGE , uri ) . sendToTarget ( ) ; }
Source:
public void onScheduledRecordingStatusChanged ( com.android.tv.dvr.ScheduledRecording ... scheduledRecordings ) { if ( ( mRowsAdapter ) != null ) { for ( com.android.tv.dvr.ScheduledRecording recording : scheduledRecordings ) { mRowsAdapter.onScheduledRecordingUpdated ( recording , false ) ; } } }

Target:
public void onScheduledRecordingStatusChanged ( com.android.tv.dvr.data.ScheduledRecording ... scheduledRecordings ) { if ( ( mRowsAdapter ) != null ) { for ( com.android.tv.dvr.data.ScheduledRecording recording : scheduledRecordings ) { mRowsAdapter.onScheduledRecordingUpdated ( recording , false ) ; } } }
Source:
com.android.build.gradle.model.AndroidProjectTest.ProductFlavorTester setPackageName ( java.lang.String packageName ) { this . packageName = packageName ; return this ; }

Target:
com.android.build.gradle.model.AndroidProjectTest.ProductFlavorTester setApplicationId ( java.lang.String applicationId ) { this . applicationId = applicationId ; return this ; }
Source:
public int add ( E element , int occurrences ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public int add ( @ javax.annotation.Nullable E element , int occurrences ) { com.google.common.base.Preconditions.checkArgument ( predicate.apply ( element ) , "Element %s does not match predicate %s" , element , predicate ) ; return unfiltered.add ( element , occurrences ) ; }
Source:
private boolean hasAccountEntryForPhoneAccount ( android.telecom.PhoneAccountHandle handle ) { for ( com.android.services.telephony.TelecomAccountRegistry.AccountEntry entry : mAccounts ) { if ( entry.getPhoneAccountHandle ( ) . equals ( handle ) ) { return true ; } } return false ; }

Target:
boolean hasAccountEntryForPhoneAccount ( android.telecom.PhoneAccountHandle handle ) { synchronized ( mAccountsLock ) { for ( com.android.services.telephony.TelecomAccountRegistry.AccountEntry entry : mAccounts ) { if ( entry.getPhoneAccountHandle ( ) . equals ( handle ) ) { return true ; } } } return false ; }
Source:
public void setIccLockEnabled ( boolean enabled , java.lang.String password , android.os.Message onComplete ) ;

Target:
public void changeIccFdnPassword ( java.lang.String oldPassword , java.lang.String newPassword , android.os.Message onComplete ) { sendMessageWithCardAbsentException ( onComplete ) ; }
Source:
public com.android.sdklib.internal.repository.AddonsListFetcher.Site [ ] _parseAddonsList ( org.w3c.dom.Document doc , java.lang.String nsUri , com.android.sdklib.internal.repository.ITaskMonitor monitor ) { return super . parseAddonsList ( doc , nsUri , monitor ) ; }

Target:
public com.android.sdklib.internal.repository.AddonsListFetcher.Site [ ] _parseAddonsList ( org.w3c.dom.Document doc , java.lang.String nsUri , java.lang.String baseUrl , com.android.sdklib.internal.repository.ITaskMonitor monitor ) { return super . parseAddonsList ( doc , nsUri , baseUrl , monitor ) ; }
Source:
public void run ( ) { detachNativeFunctor ( ) ; com.android.webview.chromium.DrawGLFunctor.nativeDestroyGLFunctor ( mNativeDrawGLFunctor ) ; mNativeDrawGLFunctor = 0 ; }

Target:
int nativeDrawGLFunctor ( ) { if ( ( ( mNativeDrawGLFunctor ) <= ( java.lang.Integer.MAX_VALUE ) ) && ( ( mNativeDrawGLFunctor ) >= ( java.lang.Integer.MIN_VALUE ) ) ) { return ( ( int ) ( mNativeDrawGLFunctor ) ) ; } else { throw new java.lang.RuntimeException ( "64bit not supported yet" ) ; } }
Source:
private java.lang.String getLicenseId ( com.android.sdklib.internal.repository.packages.License lic ) { return java.lang.String.format ( "%1$s-%2$08x" , lic.getLicenseRef ( ) , lic.getLicense ( ) . hashCode ( ) ) ; }

Target:
private java.lang.String getLicenseId ( com.android.sdklib.repository.License lic ) { return java.lang.String.format ( "%1$s-%2$08x" , lic.getLicenseRef ( ) , lic.getLicense ( ) . hashCode ( ) ) ; }
Source:
com.android.sched.vfs.MessageDigestFS.MessageDigestVFile getVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { return new com.android.sched.vfs.MessageDigestFS.MessageDigestVFile ( this , vfs.getVFile ( parent , name ) ) ; }

Target:
com.android.sched.vfs.MessageDigestFS.MessageDigestVDir createVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.CannotCreateFileException { return new com.android.sched.vfs.MessageDigestFS.MessageDigestVDir ( this , parent.getWrappedDir ( ) . createVDir ( name ) ) ; }
Source:
private com.intellij.execution.testframework.AbstractTestProxy getFirstLeaf ( com.intellij.execution.testframework.AbstractTestProxy testNode ) { while ( ! ( testNode.isLeaf ( ) ) ) { return getFirstLeaf ( testNode.getChildren ( ) . get ( 0 ) ) ; } return testNode ; }

Target:
private boolean isRootNode ( com.intellij.execution.testframework.AbstractTestProxy node ) { return node instanceof com.google.gct.testing.results.GoogleCloudTestProxy.GoogleCloudRootTestProxy ; }
Source:
public com.android.ide.eclipse.adt.internal.resources.ResourceType [ ] getResourceTypes ( ) { update ( ) ; java.util.Set < com.android.ide.eclipse.adt.internal.resources.ResourceType > keys = mResourceItems.keySet ( ) ; return keys.toArray ( new com.android.ide.eclipse.adt.internal.resources.ResourceType [ keys.size ( ) ] ) ; }

Target:
public com.android.resources.ResourceType [ ] getResourceTypes ( ) { update ( ) ; java.util.Set < com.android.resources.ResourceType > keys = mResourceItems.keySet ( ) ; return keys.toArray ( new com.android.resources.ResourceType [ keys.size ( ) ] ) ; }
Source:
protected void invoke ( int slot ) { mRS.nScriptInvoke ( getID ( mRS ) , slot ) ; }

Target:
public void setVar ( int index , float v ) { mRS.nScriptSetVarF ( getID ( mRS ) , index , v , mUseIncSupp ) ; }
Source:
public void dispose ( ) { java.lang.Object selectedItem = getComboBox ( ) . getSelectedItem ( ) ; if ( selectedItem != null ) { com.google.gct.testing.CloudConfigurationComboBox.chosenConfiguration = ( ( com.google.gct.testing.GoogleCloudTestingConfiguration ) ( selectedItem ) ) ; } super . dispose ( ) ; }

Target:
public void dispose ( ) { rememberChosenMatrixConfiguration ( ) ; super . dispose ( ) ; }
Source:
public void testTanhF32 ( ) { script_f32 = new android.renderscript.cts.ScriptC_tanh_f32 ( mRS , mRes , R.raw.tanh_f32 ) ; doF32 ( 43873 , 5 ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; script_f32 = new android.renderscript.cts.ScriptC_tanh_f32 ( mRS ) ; }
Source:
public static void main ( ) { try { new ConstructorProxy ( ) . runTest ( ) ; } catch ( java.lang.Exception e ) { java.lang.System.out.println ( "Unexpected failure occured" ) ; e.printStackTrace ( ) ; } }

Target:
public static void main ( ) { try { new ConstructorProxy ( ) . runTest ( ) ; } catch ( java.lang.Exception e ) { java.lang.System.out.println ( "Unexpected failure occured" ) ; e.printStackTrace ( java.lang.System.out ) ; } }
Source:
public void streamStateUpdated ( @ android.telephony.mbms.StreamingService.StreamingState int state , @ android.telephony.mbms.StreamingService.StreamingStateChangeReason int reason ) throws android.os.RemoteException { listener.streamStateUpdated ( state , reason ) ; }

Target:
public void onStreamStateUpdated ( @ android.telephony.mbms.StreamingService.StreamingState int state , @ android.telephony.mbms.StreamingService.StreamingStateChangeReason int reason ) { try { listener.streamStateUpdated ( state , reason ) ; } catch ( android.os.RemoteException e ) { onAppCallbackDied ( uid , subscriptionId ) ; } }
Source:
public void onCallRemoved ( android.telecom.Call call , int numCalls ) { android.util.Log.i ( android.telecom.cts.TAG , ( ( ( "onCallRemoved, Call: " + call ) + ", Num Calls: " ) + numCalls ) ) ; }

Target:
public void onCallRemoved ( android.telecom.Call call , int numCalls ) { android.util.Log.i ( android.telecom.cts.TestUtils.TAG , ( ( ( "onCallRemoved, Call: " + call ) + ", Num Calls: " ) + numCalls ) ) ; }
Source:
void expectCapabilitiesWith ( int capability , com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { com.android.server.ConnectivityServiceTest.CallbackInfo cbi = expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.NETWORK_CAPABILITIES , agent ) ; android.net.NetworkCapabilities.NetworkCapabilities nc = ( ( android.net.NetworkCapabilities.NetworkCapabilities ) ( cbi.arg ) ) ; assertTrue ( nc.hasCapability ( capability ) ) ; }

Target:
void expectCapabilitiesWithout ( int capability , com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { com.android.server.ConnectivityServiceTest.CallbackInfo cbi = expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.NETWORK_CAPABILITIES , agent ) ; android.net.NetworkCapabilities.NetworkCapabilities nc = ( ( android.net.NetworkCapabilities.NetworkCapabilities ) ( cbi.arg ) ) ; org.junit.Assert.assertFalse ( nc.hasCapability ( capability ) ) ; }
Source:
public void run ( ) { view.startAnimation ( mAnimation ) ; }

Target:
public void run ( ) { view.startAnimation ( mAnimation ) ; assertNotNull ( view.getAnimation ( ) ) ; }
Source:
public void beforeCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( context.getPhase ( ) ) == 1 ) { mFileToArrayCount = new java.util.HashMap < java.io.File , com.android.utils.Pair < java.lang.String , java.lang.Integer > > ( 30 ) ; } }

Target:
public void beforeCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( context.getPhase ( ) ) == 1 ) { mFileToArrayCount = com.google.common.collect.ArrayListMultimap.create ( 30 , 5 ) ; } }
Source:
public int getState ( ) { if ( mClosed ) { return com.android.ims.internal.ImsCallSession.State.INVALID ; } try { return miSession.getState ( ) ; } catch ( android.os.RemoteException e ) { return com.android.ims.internal.ImsCallSession.State.INVALID ; } }

Target:
public int getState ( ) { if ( mClosed ) { return android.telephony.ims.ImsCallSession.State.INVALID ; } try { return miSession.getState ( ) ; } catch ( android.os.RemoteException e ) { return android.telephony.ims.ImsCallSession.State.INVALID ; } }
Source:
public void test_SSL_check_private_key_null ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_check_private_key ( org.conscrypt.NativeCryptoTest.NULL ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void SSL_check_private_key_NullArgument ( ) throws java.lang.Exception { org.conscrypt.NativeCrypto.SSL_check_private_key ( org.conscrypt.NativeCryptoTest.NULL ) ; }
Source:
public void timeDateToString_AndroidDateFormat ( int reps ) { for ( int i = 0 ; i < reps ; i ++ ) { android.text.format.DateFormat.format ( "EEE MMM dd kk:mm:ss zzz yyyy" , calendar ) ; } }

Target:
public void timeDateToString_AndroidDateFormat ( int reps ) { for ( int i = 0 ; i < reps ; i ++ ) { android.text.format.DateFormat.format ( "EEE MMM dd HH:mm:ss zzz yyyy" , calendar ) ; } }
Source:
private void flipOrientation ( ) { com.android.ide.eclipse.adt.internal.sdk.LayoutDevice.DeviceConfig config = getSelectedDeviceConfig ( ) ; com.android.ide.eclipse.adt.internal.sdk.LayoutDevice.DeviceConfig flipped = getNextDeviceConfig ( getSelectedDeviceConfig ( ) ) ; if ( flipped != config ) { selectDeviceConfig ( flipped ) ; onDeviceConfigChange ( ) ; } }

Target:
private void gotoNextState ( ) { com.android.sdklib.devices.State state = getSelectedDeviceState ( ) ; com.android.sdklib.devices.State flipped = getNextDeviceState ( state ) ; if ( flipped != state ) { selectDeviceState ( flipped ) ; onDeviceConfigChange ( ) ; } }
Source:
public void testConnectViaProxyUsingHttpProxySystemProperty ( ) throws java.lang.Exception { testConnectViaProxy ( libcore.java.net.URLConnectionTest.ProxyConfig.HTTP_PROXY_SYSTEM_PROPERTY ) ; }

Target:
public void testConnectViaProxy_complexUrlWithNoPath ( ) throws java.lang.Exception { checkConnectViaProxy ( libcore.java.net.URLConnectionTest.ProxyConfig.HTTP_PROXY_SYSTEM_PROPERTY , "http://android.com:8080?height=100&width=42" , "http://android.com:8080/?height=100&width=42" , "android.com:8080" ) ; }
Source:
public void connectionEventFailedDisablesTracing ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID , BaseWifiDiagnostics.CONNECTION_EVENT_FAILED ) ; org.junit.Assert.assertEquals ( "0" , libcore.io.IoUtils.readFileAsString ( mTraceEnableFile.getPath ( ) ) ) ; }

Target:
public void connectionEventStartedDoesNotEnableTracingForInvalidConnectionId ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( ( - 1 ) , BaseWifiDiagnostics.CONNECTION_EVENT_STARTED ) ; org.junit.Assert.assertEquals ( "0" , libcore.io.IoUtils.readFileAsString ( mTraceEnableFile.getPath ( ) ) ) ; }
Source:
public com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata getMetadataForNonGeographicalRegion ( int countryCallingCode ) { synchronized ( countryCodeToNonGeographicalMetadataMap ) { if ( ! ( countryCodeToNonGeographicalMetadataMap.containsKey ( countryCallingCode ) ) ) { loadMetadataFromFile ( PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY , countryCallingCode ) ; } } return countryCodeToNonGeographicalMetadataMap.get ( countryCallingCode ) ; }

Target:
public com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata getMetadataForNonGeographicalRegion ( int countryCallingCode ) { synchronized ( countryCodeToNonGeographicalMetadataMap ) { if ( ! ( countryCodeToNonGeographicalMetadataMap.containsKey ( countryCallingCode ) ) ) { loadMetadataFromFile ( currentFilePrefix , PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY , countryCallingCode , metadataLoader ) ; } } return countryCodeToNonGeographicalMetadataMap.get ( countryCallingCode ) ; }
Source:
public void noteBleScanStopped ( android.os.WorkSource ws ) { enforceCallingPermission ( ) ; synchronized ( mStats ) { mStats.noteBluetoothScanStoppedFromSourceLocked ( ws ) ; } }

Target:
public void noteBleScanStopped ( android.os.WorkSource ws , boolean isUnoptimized ) { enforceCallingPermission ( ) ; synchronized ( mStats ) { mStats.noteBluetoothScanStoppedFromSourceLocked ( ws , isUnoptimized ) ; } }
Source:
public void testValidationFailure ( ) throws ManifestMerger2.MergeFailureException , java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.sdklib.mock.MockLog mockLog = new com.android.sdklib.mock.MockLog ( ) ; java.lang.String input = "" + ( ( ( ( ( ( ( ( ( ( "<manifest\n" + " xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " xmlns:tools=\"http://schemas.android.com/tools\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <application android:label=\"@string/lib_name\" />\n" ) + "\n" ) + " <activity android:name=\"activityOne\" " ) + " tools:replace=\"exported\"/>\n" ) + "\n" ) + "</manifest>" ) ; java.io.File tmpFile = inputAsFile ( "ManifestMerger2Test_testValidationFailure" , input ) ; assertTrue ( tmpFile.exists ( ) ) ; try { com.android.manifmerger.MergingReport mergingReport = com.android.manifmerger.ManifestMerger2.newInvoker ( tmpFile , mockLog ) . merge ( ) ; assertEquals ( MergingReport.Result.ERROR , mergingReport.getResult ( ) ) ; assertTrue ( mockLog.toString ( ) . contains ( "tools:replace" ) ) ; assertFalse ( mergingReport.getMergedDocument ( ) . isPresent ( ) ) ; } finally { assertTrue ( tmpFile.delete ( ) ) ; } }

Target:
public void testValidationFailure ( ) throws ManifestMerger2.MergeFailureException , java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.sdklib.mock.MockLog mockLog = new com.android.sdklib.mock.MockLog ( ) ; java.lang.String input = "" + ( ( ( ( ( ( ( ( ( ( "<manifest\n" + " xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " xmlns:tools=\"http://schemas.android.com/tools\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <application android:label=\"@string/lib_name\" />\n" ) + "\n" ) + " <activity android:name=\"activityOne\" " ) + " tools:replace=\"exported\"/>\n" ) + "\n" ) + "</manifest>" ) ; java.io.File tmpFile = inputAsFile ( "ManifestMerger2Test_testValidationFailure" , input ) ; assertTrue ( tmpFile.exists ( ) ) ; try { com.android.manifmerger.MergingReport mergingReport = com.android.manifmerger.ManifestMerger2.newInvoker ( tmpFile , mockLog ) . merge ( ) ; assertEquals ( MergingReport.Result.ERROR , mergingReport.getResult ( ) ) ; assertStringPresenceInLogRecords ( mergingReport , "tools:replace" ) ; assertFalse ( mergingReport.getMergedDocument ( ) . isPresent ( ) ) ; } finally { assertTrue ( tmpFile.delete ( ) ) ; } }
Source:
public void testBack ( ) throws java.lang.Exception { com.android.tools.lint.checks.ButtonDetectorTest.sTestIssue = ButtonDetector.BACKBUTTON ; assertEquals ( ( "res/layout/buttonbar.xml:183: Warning: Back buttons are not standard on Android; see design guide\'s navigation section [BackButton]\n" + ( ( ( " <Button\n" + " ^\n" ) + "0 errors, 1 warnings\n" ) + "" ) ) , lintProject ( "res/layout/buttonbar.xml" , "res/values/buttonbar-values.xml" ) ) ; }

Target:
public void testBack ( ) throws java.lang.Exception { com.android.tools.lint.checks.ButtonDetectorTest.sTestIssue = ButtonDetector.BACK_BUTTON ; assertEquals ( ( "res/layout/buttonbar.xml:183: Warning: Back buttons are not standard on Android; see design guide\'s navigation section [BackButton]\n" + ( ( ( " <Button\n" + " ^\n" ) + "0 errors, 1 warnings\n" ) + "" ) ) , lintProject ( "res/layout/buttonbar.xml" , "res/values/buttonbar-values.xml" ) ) ; }
Source:
public final void reset ( ) { spiImpl.engineReset ( ) ; }

Target:
public final void reset ( ) { getSpi ( ) . engineReset ( ) ; }
Source:
public java.lang.String getSourceFileExtension ( ) { return "aidl" ; }

Target:
public java.util.Set < java.lang.String > getSourceFileExtensions ( ) { return java.util.Collections.singleton ( SdkConstants.EXT_AIDL ) ; }
Source:
public void testIsFixedLineAndMobile ( ) { assertEquals ( PhoneNumberUtil.PhoneNumberType.FIXED_LINE_OR_MOBILE , phoneUtil.getNumberType ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.US_NUMBER ) ) ; com.google.i18n.phonenumbers.Phonenumber.PhoneNumber fixedLineAndMobileNumber = new com.google.i18n.phonenumbers.Phonenumber.PhoneNumber ( ) . setCountryCode ( 54 ) . setNationalNumber ( 1987654321L ) ; assertEquals ( PhoneNumberUtil.PhoneNumberType.FIXED_LINE_OR_MOBILE , phoneUtil.getNumberType ( fixedLineAndMobileNumber ) ) ; }

Target:
public void testIsFixedLineAndMobile ( ) { assertEquals ( PhoneNumberType.FIXED_LINE_OR_MOBILE , phoneUtil.getNumberType ( com.google.i18n.phonenumbers.PhoneNumberUtilTest.US_NUMBER ) ) ; com.google.i18n.phonenumbers.Phonenumber.PhoneNumber fixedLineAndMobileNumber = new com.google.i18n.phonenumbers.Phonenumber.PhoneNumber ( ) . setCountryCode ( 54 ) . setNationalNumber ( 1987654321L ) ; assertEquals ( PhoneNumberType.FIXED_LINE_OR_MOBILE , phoneUtil.getNumberType ( fixedLineAndMobileNumber ) ) ; }
Source:
public static boolean isSyncActive ( android.accounts.Account account , java.lang.String authority ) { try { return android.content.ContentResolver.getContentService ( ) . isSyncActive ( account , authority ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( "the ContentService should always be reachable" , e ) ; } }

Target:
public static void cancelSyncAsUser ( android.accounts.Account account , java.lang.String authority , int userId ) { try { android.content.ContentResolver.getContentService ( ) . cancelSyncAsUser ( account , authority , null , userId ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public void testVFE9 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.filled_new_array.d.T_filled_new_array_11" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testVFE9 ( ) { try { dot.junit.opcodes.filled_new_array.d.T_filled_new_array_11 T = new dot.junit.opcodes.filled_new_array.d.T_filled_new_array_11 ( ) ; T.run ( ) ; fail ( "expected a IllegalAccessError exception" ) ; } catch ( java.lang.IllegalAccessError t ) { } }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setTargetBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 4 ; target_ = value ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setHostName ( java.lang.String value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 1024 ; hostName_ = value ; onChanged ( ) ; return this ; }
Source:
public abstract com.android.tools.lint.detector.api.Speed getSpeed ( ) ;

Target:
public com.android.tools.lint.detector.api.Speed getSpeed ( ) { return Speed.NORMAL ; }
Source:
public static byte [ ] readFile ( java.lang.String fileName ) { java.io.File file = new java.io.File ( fileName ) ; return com.android.dx.util.FileUtils.readFile ( file ) ; }

Target:
public static byte [ ] readFile ( java.lang.String fileName ) { java.io.File file = new java.io.File ( fileName ) ; return com.android.dex.util.FileUtils.readFile ( file ) ; }
Source:
public void setFacilityLockForAppResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , int var2 ) { }

Target:
public void setFacilityLockForAppResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , int retry ) { responseInts ( responseInfo , retry ) ; }
Source:
public com.android.layoutlib.api.SceneResult getResult ( ) { assert ( this ) != ( com.android.layoutlib.api.SceneResult.SceneStatus.ERROR_UNKNOWN ) ; if ( ( mResult ) == null ) { mResult = new com.android.layoutlib.api.SceneResult ( this ) ; } return mResult ; }

Target:
public com.android.layoutlib.api.SceneResult createResult ( ) { assert ( this ) != ( com.android.layoutlib.api.SceneResult.SceneStatus.ERROR_UNKNOWN ) ; if ( ( mResult ) == null ) { mResult = new com.android.layoutlib.api.SceneResult ( this ) ; } return mResult ; }
Source:
protected void engineSetPadding ( java.lang.String padding ) throws javax.crypto.NoSuchPaddingException { throw new java.lang.UnsupportedOperationException ( "not implemented" ) ; }

Target:
protected void engineSetPadding ( java.lang.String padding ) throws javax.crypto.NoSuchPaddingException { if ( ! ( "FOO" . equals ( padding ) ) ) { throw new java.lang.UnsupportedOperationException ( "not implemented" ) ; } }
Source:
private native int nativeWait ( java.nio.ByteBuffer buffer , int mojoHandle , int signals , long deadline ) ;

Target:
private native int nativeQueryHandleSignalsState ( int mojoHandle , java.nio.ByteBuffer signalsStateBuffer ) ;
Source:
public void registerSuggestionSpansForNotification ( android.text.style.SuggestionSpan [ ] spans ) { try { mService.registerSuggestionSpansForNotification ( spans ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void setImeWindowStatus ( android.os.IBinder imeToken , int vis , int backDisposition ) { try { mService.setImeWindowStatus ( imeToken , vis , backDisposition ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public org.jetbrains.asm4.signature.SignatureVisitor visitArrayType ( ) { return this ; }

Target:
public org.jetbrains.org.objectweb.asm.signature.SignatureVisitor visitArrayType ( ) { return this ; }