auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testVideoState ( ) { if ( ! ( mShouldTestTelecom ) ) { return ; } org.junit.Assert.assertThat ( mCall.getDetails ( ) . getVideoState ( ) , org.hamcrest.CoreMatchers.is ( java.lang.Integer.class ) ) ; }

Target:
public void testVideoState ( ) { if ( ! ( mShouldTestTelecom ) ) { return ; } org.junit.Assert.assertThat ( mCall.getDetails ( ) . getVideoState ( ) , org.hamcrest.CoreMatchers.instanceOf ( java.lang.Integer.class ) ) ; }
Source:
public int getMaximumExpectedSamplingPeriodUs ( ) { int expectedSamplingPeriodUs = getExpectedSamplingPeriodUs ( ) ; return ( ( int ) ( expectedSamplingPeriodUs / ( android.hardware.cts.helpers.TestSensorEnvironment.MAXIMUM_EXPECTED_SAMPLING_FREQUENCY_MULTIPLIER ) ) ) ; }

Target:
public int getMaximumExpectedSamplingPeriodUs ( ) { int sensorReportingMode = mSensor.getReportingMode ( ) ; if ( sensorReportingMode != ( android.hardware.Sensor.REPORTING_MODE_CONTINUOUS ) ) { return java.lang.Integer.MAX_VALUE ; } int expectedSamplingPeriodUs = getExpectedSamplingPeriodUs ( ) ; return ( ( int ) ( expectedSamplingPeriodUs / ( android.hardware.cts.helpers.TestSensorEnvironment.MAXIMUM_EXPECTED_SAMPLING_FREQUENCY_MULTIPLIER ) ) ) ; }
Source:
public native boolean createFileExclusively ( java.lang.String path ) throws java.io.IOException ;

Target:
public boolean createFileExclusively ( java.lang.String path ) throws java.io.IOException { dalvik.system.BlockGuard.getThreadPolicy ( ) . onWriteToDisk ( ) ; return createFileExclusively0 ( path ) ; }
Source:
protected void loge ( java.lang.String s ) { android.telephony.Rlog.e ( com.android.internal.telephony.ServiceStateTracker.LOG_TAG , s ) ; }

Target:
protected final void log ( java.lang.String s ) { android.telephony.Rlog.d ( com.android.internal.telephony.ServiceStateTracker.LOG_TAG , ( ( ( "[" + ( mPhone.getPhoneId ( ) ) ) + "] " ) + s ) ) ; }
Source:
public java.util.Set < java.lang.String > getExcludes ( ) { if ( ( excludes ) == null ) { return java.util.Collections.emptySet ( ) ; } return excludes ; }

Target:
public void setExcludes ( java.util.Set < java.lang.String > excludes ) { this . excludes = com.google.common.collect.Sets.newHashSet ( excludes ) ; }
Source:
synchronized void nScriptSetVarI ( int id , int slot , int val ) { validate ( ) ; rsnScriptSetVarI ( mContext , id , slot , val ) ; }

Target:
native void rsnScriptSetVarF ( long con , long id , int slot , float val ) ;
Source:
public void loadCaptureInBackground ( final com.android.hierarchyviewerlib.device.ViewNode viewNode ) { executeInBackground ( "Capturing node" , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { loadCapture ( viewNode ) ; } } ) ; }

Target:
public void loadCaptureInBackground ( final com.android.hierarchyviewerlib.models.ViewNode viewNode ) { executeInBackground ( "Capturing node" , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { loadCapture ( viewNode ) ; } } ) ; }
Source:
public void checkFocus ( ) { if ( checkFocusNoStartInput ( false , true ) ) { startInputInner ( null , 0 , 0 , 0 ) ; } }

Target:
public void checkFocus ( ) { if ( checkFocusNoStartInput ( false ) ) { startInputInner ( InputMethodClient.START_INPUT_REASON_CHECK_FOCUS , null , 0 , 0 , 0 ) ; } }
Source:
public void testE2 ( ) { try { dot.junit.opcodes.const_class.d.T_const_class_7 t = new dot.junit.opcodes.const_class.d.T_const_class_7 ( ) ; t.run ( ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.IllegalAccessError e ) { } catch ( java.lang.VerifyError e ) { } }

Target:
public void testE2 ( ) { try { dot.junit.opcodes.const_class.d.T_const_class_7 t = new dot.junit.opcodes.const_class.d.T_const_class_7 ( ) ; t.run ( ) ; fail ( "expected an IllegalAccessError exception" ) ; } catch ( java.lang.IllegalAccessError e ) { } }
Source:
public void testDeserializeEnumMissingValue ( ) throws java.lang.Exception { final java.lang.String s = "aced00057e7200326c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6" + ( "e5465737424456e756d4d697373696e6756616c756500000000000000001200007872000e6a61766" + "12e6c616e672e456e756d0000000000000000120000787074000d4d495353494e475f56414c5545" ) ; try { libcore.util.SerializationTester.deserializeHex ( s ) ; fail ( ) ; } catch ( java.io.InvalidObjectException expected ) { } }

Target:
public void testDeserializeEnumMissingValue ( ) throws java.lang.Exception { final java.lang.String s = "aced00057e7200326c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6" + ( "e5465737424456e756d4d697373696e6756616c756500000000000000001200007872000e6a61766" + "12e6c616e672e456e756d0000000000000000120000787074000d4d495353494e475f56414c5545" ) ; try { libcore.libcore.util.SerializationTester.deserializeHex ( s ) ; fail ( ) ; } catch ( java.io.InvalidObjectException expected ) { } }
Source:
native void rsnScriptForEach ( int con , int id , int slot , int ain , int aout , byte [ ] params ) ;

Target:
native void rsnScriptForEachClipped ( long con , long id , int slot , long ain , long aout , byte [ ] params , int xstart , int xend , int ystart , int yend , int zstart , int zend ) ;
Source:
public com.android.internal.telephony.ims.IsimRecords getIsimRecords ( ) { com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; return r != null ? r.getIsimRecords ( ) : null ; }

Target:
public java.lang.String getMsisdn ( ) { return ( mSimRecords ) != null ? mSimRecords.getMsisdnNumber ( ) : null ; }
Source:
public void run ( ) { freeLoadedPrograms ( ) ; }

Target:
public void run ( ) { cancelTimer ( ) ; freeLoadedPrograms ( ) ; }
Source:
public static void cancelSync ( android.accounts.Account account , java.lang.String authority ) { try { android.content.ContentResolver.getContentService ( ) . cancelSync ( account , authority ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public static void setSyncAutomaticallyAsUser ( android.accounts.Account account , java.lang.String authority , boolean sync , int userId ) { try { android.content.ContentResolver.getContentService ( ) . setSyncAutomaticallyAsUser ( account , authority , sync , userId ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public void callSessionSuppServiceReceived ( com.android.ims.internal.IImsCallSession i , android.telephony.ims.ImsSuppServiceNotification imsSuppServiceNotification ) throws android.os.RemoteException { mNewListener.callSessionSuppServiceReceived ( imsSuppServiceNotification ) ; }

Target:
public void callSessionRttModifyResponseReceived ( int status ) throws android.os.RemoteException { mNewListener.callSessionRttModifyResponseReceived ( status ) ; }
Source:
public final void addInstance ( long id , com.android.tools.perflib.heap.Instance instance ) { mInstances.put ( id , instance ) ; }

Target:
public final com.android.tools.perflib.heap.ClassObj getClass ( long id ) { return mClassesById.get ( id ) ; }
Source:
private java.math.BigInteger getPrivateKey ( ) { return new java.math.BigInteger ( org.conscrypt.NativeCrypto.EC_KEY_get_private_key ( key.getPkeyContext ( ) ) ) ; }

Target:
private java.math.BigInteger getPrivateKey ( ) { return new java.math.BigInteger ( org.conscrypt.NativeCrypto.EC_KEY_get_private_key ( key.getNativeRef ( ) ) ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotationLiteral ) { print ( "@" ) ; printTypeName ( annotationLiteral.getType ( ) ) ; lparen ( ) ; java.util.List < com.android.jack.ir.ast.JNameValuePair > nameValuePairs = new java.util.ArrayList < com.android.jack.ir.ast.JNameValuePair > ( annotationLiteral.getNameValuePairs ( ) ) ; java.util.Collections.sort ( nameValuePairs , new java.util.Comparator < com.android.jack.ir.ast.JNameValuePair > ( ) { @ java.lang.Override public int compare ( com.android.jack.ir.ast.JNameValuePair nameValuePair1 , com.android.jack.ir.ast.JNameValuePair nameValuePair2 ) { return nameValuePair1.getName ( ) . compareTo ( nameValuePair2.getName ( ) ) ; } } ) ; visitCollectionWithCommas ( nameValuePairs.iterator ( ) ) ; rparen ( ) ; return false ; }

Target:
protected void printMethodHeader ( com.android.jack.ir.ast.JMethod x ) { print ( com.android.jack.ir.ast.JModifier.getStringMethodModifier ( x.getModifier ( ) ) ) ; printType ( x ) ; space ( ) ; printName ( x ) ; printParameterList ( x ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { Main.math_012 ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { Main.math_012 ( ) ; Main.math_012_numerator ( 0 , 3 , ( - 1 ) , 4 , 5 ) ; }
Source:
public void test_SSL_SESSION_free ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_SESSION_free ( org.conscrypt.NativeCryptoTest.NULL ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void d2i_SSL_SESSION_NullArgument ( ) throws java.lang.Exception { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( null ) ; }
Source:
public android.bluetooth.le.AdvertisingSetParameters.Builder setPrimaryPhy ( int primaryPhy ) { if ( ( primaryPhy != ( android.bluetooth.BluetoothDevice.PHY_LE_1M ) ) && ( primaryPhy != ( android.bluetooth.BluetoothDevice.PHY_LE_CODED ) ) ) { throw new java.lang.IllegalArgumentException ( ( "bad primaryPhy " + primaryPhy ) ) ; } this . primaryPhy = primaryPhy ; return this ; }

Target:
public android.bluetooth.le.AdvertisingSetParameters.Builder setPrimaryPhy ( int primaryPhy ) { if ( ( primaryPhy != ( android.bluetooth.BluetoothDevice.PHY_LE_1M ) ) && ( primaryPhy != ( android.bluetooth.BluetoothDevice.PHY_LE_CODED ) ) ) { throw new java.lang.IllegalArgumentException ( ( "bad primaryPhy " + primaryPhy ) ) ; } mPrimaryPhy = primaryPhy ; return this ; }
Source:
public void dispose ( ) { mCi.unSetOnNewGsmSms ( this ) ; mCi.unSetOnSmsStatus ( this ) ; mCi.unSetOnNewGsmBroadcastSms ( this ) ; }

Target:
public void dispose ( ) { super . dispose ( ) ; mCi.unSetOnSmsStatus ( this ) ; mUiccController.unregisterForIccChanged ( this ) ; }
Source:
public void test_minusMonths_long_negativeAcrossYear ( ) { java.time.LocalDate t = TEST_2007_07_15.minusMonths ( ( - 7 ) ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2008 , 2 , 15 ) ) ; }

Target:
public void test_minusMonths_long_negativeAcrossYear ( ) { java.time.LocalDate t = tck.java.time.TCKLocalDate.TEST_2007_07_15.minusMonths ( ( - 7 ) ) ; org.testng.Assert.assertEquals ( t , java.time.LocalDate.of ( 2008 , 2 , 15 ) ) ; }
Source:
public void refreshTestResults ( ) { com.android.cts.verifier.TestListAdapter.updateTestResults ( mContext , mTestResults ) ; notifyDataSetChanged ( ) ; }

Target:
public void onChange ( boolean selfChange ) { super . onChange ( selfChange ) ; loadTestResults ( ) ; }
Source:
public java.lang.Exception getException ( ) { return null ; }

Target:
public java.lang.String toString ( ) { java.lang.String s = getClass ( ) . getName ( ) ; return ( exception ) != null ? ( s + ": " ) + ( exception.toString ( ) ) : s ; }
Source:
public static java.lang.String getSyntheticSwitchMapFieldName ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedEnum enumType ) { java.lang.String enumName = com.android.jack.util.NamingTools.getValidName ( com.android.jack.ir.formatter.BinaryQualifiedNameFormatter.getFormatter ( ) . getName ( enumType ) ) ; java.lang.String fieldName = com.android.jack.util.NamingTools.getNonSourceConflictingName ( ( enumName + ( com.android.jack.transformations.enums.OptimizationUtil.Suffix ) ) ) ; return fieldName ; }

Target:
public static java.lang.String getSyntheticSwitchMapFieldName ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedEnum enumType ) { java.lang.String enumName = com.android.jack.ir.formatter.BinaryQualifiedNameFormatter.getFormatter ( ) . getName ( enumType ) ; return com.android.jack.util.NamingTools.getStrictNonSourceConflictingName ( ( enumName + ( com.android.jack.transformations.enums.OptimizationUtil.Suffix ) ) ) ; }
Source:
public static native int EVP_SignInit ( org.conscrypt.NativeRef.EVP_MD_CTX ctx , long evpRef ) ;

Target:
public static native long EVP_DigestVerifyInit ( org.conscrypt.NativeRef.EVP_MD_CTX ctx , long evpMdRef , org.conscrypt.NativeRef.EVP_PKEY key ) ;
Source:
public void cancel ( ) { lock.lock ( ) ; purge ( ) ; try { isCancelled.set ( true ) ; schedulingChanged.signal ( ) ; } finally { lock.unlock ( ) ; } }

Target:
public void cancel ( ) { lock.lock ( ) ; doPurge ( ) ; try { isCancelled.set ( true ) ; schedulingChanged.signal ( ) ; } finally { lock.unlock ( ) ; } }
Source:
public void setNextValueAsInterfaceID ( long val ) { this . setNextValueAsObjectID ( val ) ; }

Target:
public void setNextValueAsInterfaceID ( long val ) { this . setNextValueAsReferenceTypeID ( val ) ; }
Source:
native void rsnAllocationRead ( long con , long id , java.lang.Object d , int dt ) ;

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 , int mSize , boolean usePadding ) ;
Source:
public static void main ( java.lang.String [ ] args ) { if ( ( args.length ) == 0 ) { args = new java.lang.String [ ] { "com.android.ahat.QueryTest" , "com.android.ahat.SortTest" } ; } org.junit.runner.JUnitCore.main ( args ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { if ( ( args.length ) == 0 ) { args = new java.lang.String [ ] { "com.android.ahat.InstanceUtilsTest" , "com.android.ahat.QueryTest" , "com.android.ahat.SortTest" } ; } org.junit.runner.JUnitCore.main ( args ) ; }
Source:
com.google.common.util.concurrent.ListenableFuture < com.google.common.util.concurrent.Service.State > stop ( ) ;

Target:
void awaitRunning ( ) ;
Source:
public boolean equals ( @ javax.annotation.Nullable java.lang.Object object ) { if ( object instanceof java.util.Map ) { java.util.Map < ? , ? > map = ( ( java.util.Map < ? , ? > ) ( object ) ) ; return map.isEmpty ( ) ; } return false ; }

Target:
public com.google.common.collect.ImmutableSetMultimap < K , V > asMultimap ( ) { return com.google.common.collect.ImmutableSetMultimap.of ( ) ; }
Source:
public static float $noinline$floatSubAddSimplifyLeft ( float x , float y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } float sub = x - y ; return sub + y ; }

Target:
public static float $noinline$floatSubAddSimplifyRight ( float x , float y ) { float sub = x - y ; return y + sub ; }
Source:
public static long Div1 ( long arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg / 1 ; }

Target:
public static long $noinline$Div1 ( long arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg / 1 ; }
Source:
void onAmbiguousContactClicked ( java.lang.String lookupKey ) ;

Target:
void onAmbiguousContactClicked ( java.lang.String contactId ) ;
Source:
public com.android.manifmerger.NodeOperationType getOperationType ( ) { return ( mNodeOperationType ) != null ? mNodeOperationType : NodeOperationType.STRICT ; }

Target:
public com.android.manifmerger.NodeOperationType getOperationType ( ) { return ( mNodeOperationType ) != null ? mNodeOperationType : NodeOperationType.MERGE ; }
Source:
public void enableKeyguard ( boolean enabled ) { if ( ( mKeyguardMediator ) != null ) { mKeyguardMediator.setKeyguardEnabled ( enabled ) ; } }

Target:
private boolean keyguardIsShowingTq ( ) { if ( ( mKeyguardMediator ) == null ) return false ; return mKeyguardMediator.isShowingAndNotHidden ( ) ; }
Source:
protected void doApply ( java.util.zip.ZipFile patchFile , java.io.File toFile ) throws java.io.IOException { }

Target:
protected void doApply ( com.intellij.updater.MultiZipFile patchFile , java.io.File backupDir , java.io.File toFile ) throws java.io.IOException { }
Source:
private static android.net.wifi.hotspot2.pps.Credential createCredentialWithSimCredential ( ) { android.net.wifi.hotspot2.pps.Credential.SimCredential simCred = new android.net.wifi.hotspot2.pps.Credential.SimCredential ( ) ; simCred.imsi = "1234*" ; simCred.eapType = android.net.wifi.EAPConstants.EAP_SIM ; return android.net.wifi.hotspot2.pps.CredentialTest.createCredential ( null , null , simCred , null , null , null ) ; }

Target:
private static android.net.wifi.hotspot2.pps.Credential createCredentialWithSimCredential ( ) { android.net.wifi.hotspot2.pps.Credential.SimCredential simCred = new android.net.wifi.hotspot2.pps.Credential.SimCredential ( ) ; simCred.setImsi ( "1234*" ) ; simCred.setEapType ( EAPConstants.EAP_SIM ) ; return android.net.wifi.hotspot2.pps.CredentialTest.createCredential ( null , null , simCred , null , null , null ) ; }
Source:
public void testDuplicateSession ( ) throws java.lang.Exception { try { android.telephony.MbmsDownloadSession failure = android.telephony.MbmsDownloadSession.create ( mContext , mCallback , mCallbackHandler ) ; fail ( "Duplicate create should've thrown an exception" ) ; } catch ( java.lang.IllegalStateException e ) { } }

Target:
public void testDuplicateSession ( ) throws java.lang.Exception { try { android.telephony.MbmsDownloadSession failure = android.telephony.MbmsDownloadSession.create ( mContext , mCallbackExecutor , mCallback ) ; fail ( "Duplicate create should've thrown an exception" ) ; } catch ( java.lang.IllegalStateException e ) { } }
Source:
public void voiceNetworkStateChanged ( int indicationType ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLog ( com.android.internal.telephony.RILConstants.RIL_UNSOL_RESPONSE_VOICE_NETWORK_STATE_CHANGED ) ; mRil.mVoiceNetworkStateRegistrants.notifyRegistrants ( ) ; }

Target:
public void networkStateChanged ( int indicationType ) { mRil.processIndication ( indicationType ) ; if ( RIL.RILJ_LOGD ) mRil.unsljLog ( com.android.internal.telephony.RILConstants.RIL_UNSOL_RESPONSE_NETWORK_STATE_CHANGED ) ; mRil.mNetworkStateRegistrants.notifyRegistrants ( ) ; }
Source:
public static android.net.Uri getUriForSubId ( int subId ) { return android.provider.Telephony.ServiceStateTable.CONTENT_URI.buildUpon ( ) . appendEncodedPath ( java.lang.String.valueOf ( subId ) ) . build ( ) ; }

Target:
public static android.net.Uri getUriForSubscriptionId ( int subscriptionId ) { return android.provider.Telephony.ServiceStateTable.CONTENT_URI.buildUpon ( ) . appendEncodedPath ( java.lang.String.valueOf ( subscriptionId ) ) . build ( ) ; }
Source:
public native double getDouble ( long address ) ;

Target:
public native int getInt ( long address ) ;
Source:
public java.io.InputStream openRead ( ) throws com.android.sched.util.file.WrongPermissionException { return wrappedFile.openRead ( ) ; }

Target:
public java.io.InputStream getInputStream ( ) throws com.android.sched.util.file.WrongPermissionException { return wrappedFile.getInputStream ( ) ; }
Source:
public void requestFocusNodeHref ( android.os.Message hrefMsg ) { checkThread ( ) ; if ( DebugFlags.TRACE_API ) android.util.Log.d ( android.webkit.WebView.LOGTAG , "requestFocusNodeHref" ) ; mProvider.requestFocusNodeHref ( hrefMsg ) ; }

Target:
public void requestFocusNodeHref ( android.os.Message hrefMsg ) { checkThread ( ) ; if ( android.webkit.WebView.TRACE ) android.util.Log.d ( android.webkit.WebView.LOGTAG , "requestFocusNodeHref" ) ; mProvider.requestFocusNodeHref ( hrefMsg ) ; }
Source:
private static native java.lang.Class < ? > generateProxy ( java.lang.String name , java.lang.Class < ? > [ ] interfaces , java.lang.ClassLoader loader , java.lang.reflect.Method [ ] methods , java.lang.Class < ? > [ ] [ ] exceptions ) ;

Target:
private static native java.lang.Class < ? > generateProxy ( java.lang.String name , java.lang.Class < ? > [ ] interfaces , java.lang.ClassLoader loader , java.lang.reflect.Method [ ] methods , java.lang.Class < ? > [ ] [ ] exceptions , boolean isLambdaProxy ) ;
Source:
private void startQuery ( ) { try { mQueryHandler.startQuery ( 0 , null , com.android.mms.ui.ManageSimMessages.SIM_URI , null , null , null , null ) ; } catch ( android.database.sqlite.SQLiteException e ) { com.google.android.mms.util.SqliteWrapper.checkSQLiteException ( this , e ) ; } }

Target:
private void startQuery ( ) { try { mQueryHandler.startQuery ( 0 , null , com.android.mms.ui.ManageSimMessages.ICC_URI , null , null , null , null ) ; } catch ( android.database.sqlite.SQLiteException e ) { com.google.android.mms.util.SqliteWrapper.checkSQLiteException ( this , e ) ; } }
Source:
public java.util.Set < java.io.File > getAssetsDirectories ( ) { return getAssets ( ) . getDirectories ( ) ; }

Target:
public java.util.Set < java.io.File > getAssetsDirectories ( ) { return getAssets ( ) . getSrcDirs ( ) ; }
Source:
java.lang.String dump ( ) ;

Target:
void dump ( java.io.FileDescriptor fd ) ;
Source:
public void warning ( java.lang.String message ) { com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( mEditedFile.getName ( ) , message ) ; }

Target:
public void warning ( java.lang.String tag , java.lang.String message ) { com.android.ide.eclipse.adt.AdtPlugin.printToConsole ( mEditedFile.getName ( ) , message ) ; }
Source:
public void stopScan ( int appIf , boolean isServer ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.stopScan ( new com.android.bluetooth.gatt.ScanClient ( appIf , isServer ) ) ; }

Target:
public void unregisterScanner ( int scannerId ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.unregisterScanner ( scannerId ) ; }
Source:
public void test_U8_4_SCALE05_20_inRectangle ( ) { testReszie ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inY , Element.DataType.UNSIGNED_8 , 4 , 0.5F , 2.0F ) ; checkError ( ) ; }

Target:
public void test_U8_4_SCALE05_20_inRectangle ( ) { testResize ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inY , Element.DataType.UNSIGNED_8 , 4 , 0.5F , 2.0F ) ; checkError ( ) ; }
Source:
public static java.lang.invoke.VarHandle byteArrayViewVarHandle ( java.lang.Class < ? > viewArrayClass , java.nio.ByteOrder byteOrder ) throws java.lang.IllegalArgumentException { java.lang.invoke.MethodHandles.unsupported ( "MethodHandles.byteArrayViewVarHandle()" ) ; return null ; }

Target:
public static java.lang.invoke.VarHandle byteBufferViewVarHandle ( java.lang.Class < ? > viewArrayClass , java.nio.ByteOrder byteOrder ) throws java.lang.IllegalArgumentException { java.lang.invoke.MethodHandles.checkClassIsArray ( viewArrayClass ) ; java.lang.invoke.MethodHandles.checkTypeIsViewable ( viewArrayClass.getComponentType ( ) ) ; return java.lang.invoke.ByteBufferViewVarHandle.create ( viewArrayClass , byteOrder ) ; }
Source:
public java.util.List < java.lang.String > getApplicableCallNames ( ) { return java.util.Arrays.asList ( "setTag" ) ; }

Target:
public java.util.List < java.lang.String > getApplicableCallNames ( ) { return java.util.Collections.singletonList ( "setTag" ) ; }
Source:
public void transform ( dalvik.system.EmulatedStackFrame emulatedStackFrame ) throws java.lang.Throwable { reader.attach ( emulatedStackFrame ) ; writer.attach ( emulatedStackFrame ) ; writer.asReturnValueWriter ( ) ; writer.putNextReference ( reader.nextReference ( type ) , type ) ; }

Target:
public void transform ( dalvik.system.EmulatedStackFrame emulatedStackFrame ) throws java.lang.Throwable { reader.attach ( emulatedStackFrame ) ; writer.attach ( emulatedStackFrame ) ; writer.makeReturnValueAccessor ( ) ; writer.putNextReference ( reader.nextReference ( type ) , type ) ; }
Source:
public void testAtSignInUserInfo ( ) throws java.lang.Exception { try { new java.net.URL ( "http://user@userhost.com:password@host" ) ; fail ( ) ; } catch ( java.net.MalformedURLException expected ) { } }

Target:
public void testMultipleUserField ( ) throws java.lang.Exception { final java.lang.String host = "http://multiple@users@url.com" ; java.net.URL url = new java.net.URL ( host ) ; assertNull ( url.getUserInfo ( ) ) ; assertTrue ( url.getHost ( ) . isEmpty ( ) ) ; }
Source:
public static native long SSL_do_handshake_bio ( long sslNativePointer , long sourceBioRef , long sinkBioRef , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks shc , boolean client_mode , byte [ ] alpnProtocols ) throws java.net.SocketTimeoutException , java.security.cert.CertificateException , javax.net.ssl.SSLException ;

Target:
public static native int ENGINE_SSL_write_BIO_heap ( long sslRef , long bioRef , byte [ ] sourceJava , int sourceOffset , int sourceLength , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks shc ) throws java.io.IOException ;
Source:
private boolean getRttMasterSwitch ( ) throws java.lang.Exception { return ( java.lang.Integer.valueOf ( android.telecom.cts.TestUtils.executeShellCommand ( getInstrumentation ( ) , "settings get system rtt_calling_mode" ) ) ) == 1 ; }

Target:
private boolean getRttMasterSwitch ( ) throws java.lang.Exception { try { return ( java.lang.Integer.valueOf ( android.telecom.cts.TestUtils.executeShellCommand ( getInstrumentation ( ) , "settings get system rtt_calling_mode" ) ) ) == 1 ; } catch ( java.lang.NumberFormatException e ) { return false ; } }
Source:
public int getContactType ( ) { return this . mContactType ; }

Target:
public int getContactType ( ) { return this . contactType ; }
Source:
public static java.util.Properties createProps ( com.android.sdklib.internal.repository.packages.FullRevision revision ) { java.util.Properties props = new java.util.Properties ( ) ; if ( revision != null ) { props.setProperty ( PkgProps.PKG_REVISION , revision.toString ( ) ) ; } return props ; }

Target:
public static java.util.Properties createProps ( com.android.sdklib.repository.FullRevision revision ) { java.util.Properties props = new java.util.Properties ( ) ; if ( revision != null ) { props.setProperty ( PkgProps.PKG_REVISION , revision.toString ( ) ) ; } return props ; }
Source:
public void verifyParcelWithValidHomeSP ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.HomeSPTest.verifyParcel ( android.net.wifi.hotspot2.pps.HomeSPTest.createHomeSp ( ) ) ; }

Target:
public void verifyParcelWithHomeNetworkIds ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.HomeSPTest.verifyParcel ( android.net.wifi.hotspot2.pps.HomeSPTest.createHomeSpWithHomeNetworkIds ( ) ) ; }
Source:
void setBound ( boolean flag ) { isBound = flag ; }

Target:
public void onAccept ( java.net.InetSocketAddress remoteAddress , boolean updateSocketState ) { onBind ( updateSocketState ) ; onConnectStatusChanged ( remoteAddress , java.nio.SocketChannelImpl.SOCKET_STATUS_CONNECTED , updateSocketState ) ; }
Source:
public boolean disableNetwork ( int netId ) { if ( com.android.server.wifi.WifiNative.DBG ) logDbg ( ( "disableNetwork nid=" + ( java.lang.Integer.toString ( netId ) ) ) ) ; return doBooleanCommand ( ( "DISABLE_NETWORK " + netId ) ) ; }

Target:
public boolean reconnect ( ) { if ( com.android.server.wifi.WifiNative.DBG ) logDbg ( "RECONNECT " ) ; if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.reconnect ( ) ; } else { return doBooleanCommand ( "RECONNECT" ) ; } }
Source:
public void test_block_filtersAsExpected_groupBind_ipv6 ( ) throws java.lang.Exception { if ( ! ( supportsMulticast ) ) { return ; } java.net.InetAddress ipv6LocalAddress = libcore.java.nio.channels.DatagramChannelMulticastTest.getLocalIpv6Address ( ipv6NetworkInterface ) ; test_block_filtersAsExpected ( ipv6LocalAddress , libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv6 , libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv6 , ipv6NetworkInterface ) ; }

Target:
public void test_block_filtersAsExpected_groupBind_ipv6 ( ) throws java.lang.Exception { if ( ! ( supportsMulticast ) ) { return ; } java.net.InetAddress ipv6LocalAddress = libcore.java.nio.channels.DatagramChannelMulticastTest.getLocalIpv6Address ( ipv6NetworkInterface ) ; check_block_filtersAsExpected ( ipv6LocalAddress , libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv6 , libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv6 , ipv6NetworkInterface ) ; }
Source:
public static java.lang.String toBinaryString ( long i ) { return java.lang.Long.toUnsignedString ( i , 1 ) ; }

Target:
public static java.lang.String toBinaryString ( long i ) { return java.lang.Long.toUnsignedString0 ( i , 1 ) ; }
Source:
private void removeOrientationAttribute ( org.eclipse.text.edits.MultiTextEdit rootEdit , org.w3c.dom.Element layout ) { assert layout.getTagName ( ) . equals ( com.android.ide.common.layout.LayoutConstants.LINEAR_LAYOUT ) ; removeAttribute ( rootEdit , layout , com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ORIENTATION ) ; }

Target:
private void removeOrientationAttribute ( org.eclipse.text.edits.MultiTextEdit rootEdit , org.w3c.dom.Element layout ) { assert layout.getTagName ( ) . equals ( com.android.ide.common.layout.LayoutConstants.LINEAR_LAYOUT ) ; removeAttribute ( rootEdit , layout , com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ORIENTATION ) ; }
Source:
void addUuid ( java.util.UUID uuid , java.util.UUID uuid_mask ) { com.android.bluetooth.gatt.ScanFilterQueue.Entry entry = new com.android.bluetooth.gatt.ScanFilterQueue.Entry ( ) ; entry.type = com.android.bluetooth.gatt.ScanFilterQueue.TYPE_SERVICE_UUID ; entry.uuid = uuid ; entry.uuid_mask = uuid_mask ; mEntries.add ( entry ) ; }

Target:
void addUuid ( java.util.UUID uuid , java.util.UUID uuidMask ) { com.android.bluetooth.gatt.ScanFilterQueue.Entry entry = new com.android.bluetooth.gatt.ScanFilterQueue.Entry ( ) ; entry.type = com.android.bluetooth.gatt.ScanFilterQueue.TYPE_SERVICE_UUID ; entry.uuid = uuid ; entry.uuid_mask = uuidMask ; mEntries.add ( entry ) ; }
Source:
protected void engineSetPadding ( java.lang.String padding ) throws javax.crypto.NoSuchPaddingException { if ( ! ( "PKCS5Padding" . equals ( padding ) ) ) { throw new javax.crypto.NoSuchPaddingException ( padding ) ; } }

Target:
protected void engineSetPadding ( java.lang.String padding ) throws javax.crypto.NoSuchPaddingException { if ( ( ! ( "PKCS5Padding" . equals ( padding ) ) ) && ( ! ( "PKCS7Padding" . equals ( padding ) ) ) ) { throw new javax.crypto.NoSuchPaddingException ( padding ) ; } }
Source:
private void queueOrSendMessage ( int what , java.lang.Object obj , int arg1 ) { queueOrSendMessage ( what , obj , arg1 , 0 ) ; }

Target:
private void sendMessage ( int what , java.lang.Object obj , int arg1 ) { sendMessage ( what , obj , arg1 , 0 , false ) ; }
Source:
public void test_U8_2_SCALE20_20_inRectangle ( ) { testReszie ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inY , Element.DataType.UNSIGNED_8 , 2 , 2.0F , 2.0F ) ; checkError ( ) ; }

Target:
public void test_U8_2_SCALE20_20_inRectangle ( ) { testResize ( android.renderscript.cts.IntrinsicResize.inX , android.renderscript.cts.IntrinsicResize.inY , Element.DataType.UNSIGNED_8 , 2 , 2.0F , 2.0F ) ; checkError ( ) ; }
Source:
public boolean equals ( java.lang.Object qualifier ) { if ( qualifier instanceof com.android.ide.eclipse.adt.internal.resources.configurations.EnumBasedResourceQualifier ) { return ( getEnumValue ( ) ) == ( ( ( com.android.ide.eclipse.adt.internal.resources.configurations.EnumBasedResourceQualifier ) ( qualifier ) ) . getEnumValue ( ) ) ; } return false ; }

Target:
public boolean equals ( java.lang.Object qualifier ) { if ( qualifier instanceof com.android.ide.common.resources.configuration.EnumBasedResourceQualifier ) { return ( getEnumValue ( ) ) == ( ( ( com.android.ide.common.resources.configuration.EnumBasedResourceQualifier ) ( qualifier ) ) . getEnumValue ( ) ) ; } return false ; }
Source:
public com.android.ide.common.rendering.api.StyleResourceValue getTheme ( ) { return null ; }

Target:
public com.android.ide.common.rendering.api.StyleResourceValue getCurrentTheme ( ) { return null ; }
Source:
public void onClick ( android.view.View view ) { com.android.tv.dvr.DvrUiHelper.startSeriesSettingsActivity ( getContext ( ) , header.getSeriesRecording ( ) . getId ( ) , null , false , false , false ) ; }

Target:
public void onClick ( android.view.View view ) { com.android.tv.dvr.ui.DvrUiHelper.startSeriesSettingsActivity ( getContext ( ) , header.getSeriesRecording ( ) . getId ( ) , header.getPrograms ( ) , false , false , false , null ) ; }
Source:
public void enableEnhancedVoicePrivacy ( boolean enable , android.os.Message onComplete ) { this . mCM.setPreferredVoicePrivacy ( enable , onComplete ) ; }

Target:
public void getEnhancedVoicePrivacy ( android.os.Message onComplete ) { mCi.getPreferredVoicePrivacy ( onComplete ) ; }
Source:
static int smear ( int hashCode ) { hashCode ^= ( hashCode > > > 20 ) ^ ( hashCode > > > 12 ) ; return ( hashCode ^ ( hashCode > > > 7 ) ) ^ ( hashCode > > > 4 ) ; }

Target:
static int smear ( int hashCode ) { return ( com.google.common.collect.Hashing.C2 ) * ( java.lang.Integer.rotateLeft ( ( hashCode * ( com.google.common.collect.Hashing.C1 ) ) , 15 ) ) ; }
Source:
public void deleteTransportModeTransform ( int resourceId ) throws android.os.RemoteException { releaseManagedResource ( mTransformRecords , resourceId , "IpSecTransform" ) ; }

Target:
public void releaseSecurityParameterIndex ( int resourceId ) throws android.os.RemoteException { releaseManagedResource ( mSpiRecords , resourceId , "SecurityParameterIndex" ) ; }
Source:
public void actionPerformed ( java.awt.event.ActionEvent e ) { for ( com.android.tools.idea.run.AdditionalRunDebugChangeListener listener : selectionChangeListeners ) { listener.changed ( ) ; } }

Target:
private void notifySelectionChangeListeners ( ) { for ( com.android.tools.idea.run.AdditionalRunDebugChangeListener listener : selectionChangeListeners ) { listener.changed ( ) ; } }
Source:
public void testGetLauncherActivity ( ) { com.android.sdklib.xml.AndroidManifestParser.Activity activity = mManifestTestApp.getLauncherActivity ( ) ; assertEquals ( com.android.ide.eclipse.adt.internal.project.AndroidManifestParserTest.ACTIVITY_NAME , activity.getName ( ) ) ; assertTrue ( activity.hasAction ( ) ) ; assertTrue ( activity.isHomeActivity ( ) ) ; }

Target:
public void testGetLauncherActivity ( ) { com.android.sdklib.xml.ManifestData.Activity activity = mManifestTestApp.getLauncherActivity ( ) ; assertEquals ( com.android.ide.eclipse.adt.internal.project.AndroidManifestParserTest.ACTIVITY_NAME , activity.getName ( ) ) ; assertTrue ( activity.hasAction ( ) ) ; assertTrue ( activity.isHomeActivity ( ) ) ; }
Source:
public android.net.wifi.nan.WifiNanCharacteristics getCharacteristics ( ) { try { return mService.getCharacteristics ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public android.net.wifi.aware.WifiAwareCharacteristics getCharacteristics ( ) { try { return mService.getCharacteristics ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public java.io.File [ ] getDefaultBootClasspath ( ) { return new java.io.File [ ] { new java.io.File ( com.android.jack.test.toolchain.AbstractTestTools.getJackRootDir ( ) , "jack-tests/libs/core-stubs-mini.jar" ) , new java.io.File ( com.android.jack.test.toolchain.AbstractTestTools.getJackRootDir ( ) , "jack-tests/libs/junit4.jar" ) } ; }

Target:
public java.io.File [ ] getDefaultBootClasspath ( ) { return new java.io.File [ ] { new java.io.File ( com.android.jack.test.toolchain.AbstractTestTools.getJackRootDir ( ) , "jack-tests/prebuilts/core-stubs-mini.jar" ) , new java.io.File ( com.android.jack.test.toolchain.AbstractTestTools.getJackRootDir ( ) , "jack-tests/libs/junit4.jar" ) } ; }
Source:
native void rsnScriptInvokeV ( int con , int id , int slot , byte [ ] params ) ;

Target:
native void rsnScriptInvoke ( long con , long id , int slot ) ;
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder clearModulesTotal ( ) { bitField0_ = ( bitField0_ ) & ( ~ 131072 ) ; modulesTotal_ = 0 ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder clearModulesTotal ( ) { bitField0_ = ( bitField0_ ) & ( ~ 262144 ) ; modulesTotal_ = 0 ; onChanged ( ) ; return this ; }
Source:
public void doWork ( ) throws android.os.RemoteException { mService.updateCredentials ( mResponse , account , authTokenType , ( activity != null ) , options ) ; }

Target:
public void doWork ( ) throws android.os.RemoteException { mService.getAuthToken ( mResponse , account , authTokenType , false , true , optionsIn ) ; }
Source:
private boolean isForegroundNetwork ( com.android.server.ConnectivityServiceTest.MockNetworkAgent network ) { android.net.NetworkCapabilities.NetworkCapabilities nc = mCm.getNetworkCapabilities ( network.getNetwork ( ) ) ; org.junit.Assert.assertNotNull ( nc ) ; return nc.hasCapability ( com.android.server.NET_CAPABILITY_FOREGROUND ) ; }

Target:
private boolean isForegroundNetwork ( com.android.server.ConnectivityServiceTest.MockNetworkAgent network ) { android.net.NetworkCapabilities nc = mCm.getNetworkCapabilities ( network.getNetwork ( ) ) ; org.junit.Assert.assertNotNull ( nc ) ; return nc.hasCapability ( android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND ) ; }
Source:
public java.lang.String getRealm ( ) { return getFieldValue ( android.net.wifi.WifiEnterpriseConfig.REALM_KEY , "" ) ; }

Target:
public void setRealm ( java.lang.String realm ) { setFieldValue ( android.net.wifi.WifiEnterpriseConfig.REALM_KEY , realm ) ; }
Source:
private void postNotification ( android.app.Notification notification ) { mNotificationManager.notifyAsUser ( null , com.android.networkrecommendation.WifiNotificationController.ICON_NETWORKS_AVAILABLE , notification , UserHandle.ALL ) ; }

Target:
private void postNotification ( android.app.Notification notification ) { mNotificationManager.notify ( null , com.android.networkrecommendation.WifiNotificationController.ICON_NETWORKS_AVAILABLE , notification ) ; }
Source:
public int getCarrierPrivilegeStatus ( android.content.pm.PackageInfo packageInfo ) { return ( mCarrierPrivilegeRules ) == null ? android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED : mCarrierPrivilegeRules.getCarrierPrivilegeStatus ( packageInfo ) ; }

Target:
public int getCarrierPrivilegeStatusForCurrentTransaction ( android.content.pm.PackageManager packageManager ) { com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules carrierPrivilegeRules = getCarrierPrivilegeRules ( ) ; return carrierPrivilegeRules == null ? android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED : carrierPrivilegeRules.getCarrierPrivilegeStatusForCurrentTransaction ( packageManager ) ; }
Source:
public V forcePut ( @ javax.annotation.Nullable K key , @ javax.annotation.Nullable V value ) { return super . forcePut ( key , value ) ; }

Target:
public V put ( @ javax.annotation.Nullable K key , @ javax.annotation.Nullable V value ) { return put ( key , value , false ) ; }
Source:
java.lang.String settingsSecureGetStringForUser ( java.lang.String key , int userId ) ;

Target:
public java.lang.String settingsSecureGetStringForUser ( java.lang.String key , int userId ) { return Settings.Secure.getStringForUser ( mContext.getContentResolver ( ) , key , userId ) ; }
Source:
private com.google.common.util.concurrent.ListenableFuture < V > fullyFailedFuture ( java.lang.Throwable t ) { com.google.common.util.concurrent.SettableFuture < V > future = com.google.common.util.concurrent.SettableFuture.create ( ) ; com.google.common.cache.LocalCache.LoadingValueReference.setException ( future , t ) ; return future ; }

Target:
private com.google.common.util.concurrent.ListenableFuture < V > fullyFailedFuture ( java.lang.Throwable t ) { return com.google.common.util.concurrent.Futures.immediateFailedFuture ( t ) ; }
Source:
public void setUp ( ) { TEST_11_30_59_500_PONE = java.time.OffsetTime.of ( 11 , 30 , 59 , 500 , tck.java.time.TCKOffsetTime.OFFSET_PONE ) ; }

Target:
public static void setUp ( ) { tck.java.time.TCKOffsetTime.TEST_11_30_59_500_PONE = java.time.OffsetTime.of ( 11 , 30 , 59 , 500 , tck.java.time.TCKOffsetTime.OFFSET_PONE ) ; }
Source:
public void addError ( junit.framework.Test test , java.lang.Throwable error ) { java.lang.System.out.println ( java.lang.String.format ( "failure:%s" , stringify ( error ) ) ) ; }

Target:
public void addError ( junit.framework.Test test , java.lang.Throwable error ) { java.lang.System.out.println ( java.lang.String.format ( "failure:%s" , com.android.compatibility.dalvik.DalvikTestRunner.DalvikTestListener.stringify ( error ) ) ) ; }
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > allOf ( java.lang.Iterable < org.hamcrest.org.hamcrest.Matcher < ? extends T > > matchers ) { return org.hamcrest.core.AllOf.allOf ( matchers ) ; }

Target:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > allOf ( java.lang.Iterable < org.hamcrest.org.hamcrest.Matcher < ? extends T > > matchers ) { return org.hamcrest.core.AllOf.< org.hamcrest.T > allOf ( matchers ) ; }
Source:
private synchronized java.io.InputStream openStream ( ) throws java.io.IOException { if ( ( file ) != null ) { return new java.io.FileInputStream ( file ) ; } else { return new java.io.ByteArrayInputStream ( memory.getBuffer ( ) , 0 , memory.getCount ( ) ) ; } }

Target:
private synchronized java.io.InputStream openInputStream ( ) throws java.io.IOException { if ( ( file ) != null ) { return new java.io.FileInputStream ( file ) ; } else { return new java.io.ByteArrayInputStream ( memory.getBuffer ( ) , 0 , memory.getCount ( ) ) ; } }
Source:
private void showNoScreenshotsWarning ( com.intellij.openapi.actionSystem.AnActionEvent e ) { com.google.gct.testing.GoogleCloudTestingUtils.showBalloonMessage ( e.getData ( PlatformDataKeys.PROJECT ) , "Screenshots are not yet available for this configuration" , MessageType.WARNING , 3 ) ; }

Target:
private void showNoScreenshotsWarning ( com.intellij.openapi.actionSystem.AnActionEvent e ) { com.google.gct.testing.CloudTestingUtils.showBalloonMessage ( e.getData ( PlatformDataKeys.PROJECT ) , "Screenshots are not yet available for this configuration" , MessageType.WARNING , 3 ) ; }
Source:
public boolean canBuild ( java.lang.String modelName ) { return modelName == ( com.android.builder.model.AndroidProject.name ) ; }

Target:
public boolean canBuild ( java.lang.String modelName ) { return modelName.equals ( com.android.builder.model.AndroidProject.class . getName ( ) ) ; }
Source:
protected void engineUpdate ( byte [ ] arg0 , int arg1 , int arg2 ) throws java.security.SignatureException { spiImpl.engineUpdate ( arg0 , arg1 , arg2 ) ; }

Target:
protected void engineUpdate ( byte [ ] arg0 , int arg1 , int arg2 ) throws java.security.SignatureException { getSpi ( ) . engineUpdate ( arg0 , arg1 , arg2 ) ; }
Source:
public void test3rdPartyTests ( ) throws java.lang.Exception { runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_MIN_VERSION , new java.io.File ( testDir , "3rdPartyTests" ) , java.util.Collections.< java.lang.String > emptyList ( ) , "clean" , "deviceCheck" ) ; }

Target:
public void test3rdPartyTests ( ) throws java.lang.Exception { runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_TEST_VERSION , new java.io.File ( testDir , "3rdPartyTests" ) , java.util.Collections.< java.lang.String > emptyList ( ) , "clean" , "deviceCheck" ) ; }
Source:
public void dispose ( ) { synchronized ( com.android.internal.telephony.PhoneProxy.lockForRadioTechnologyChange ) { super . dispose ( ) ; m3gppSMS.dispose ( ) ; mIccRecords.unregisterForNewSms ( this ) ; } }

Target:
protected void registerForRuimRecordEvents ( ) { com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; if ( r == null ) { return ; } r.registerForNewSms ( this , com.android.internal.telephony.cdma.EVENT_NEW_ICC_SMS , null ) ; super . registerForRuimRecordEvents ( ) ; }
Source:
public com.android.build.gradle.internal.dsl.BuildType testProguardFile ( java.lang.Object proguardFile ) { testProguardFiles.add ( project.file ( proguardFile ) ) ; return this ; }

Target:
public com.android.build.gradle.internal.dsl.BuildType testProguardFile ( @ com.android.annotations.NonNull java.lang.Object proguardFile ) { getTestProguardFiles ( ) . add ( project.file ( proguardFile ) ) ; return this ; }
Source:
public void onRepeat ( android.view.View v , long howlong , int repcnt ) { scanForward ( repcnt , howlong ) ; }

Target:
public void onClick ( android.view.View v ) { toggleShuffle ( ) ; }
Source:
public void execute ( com.android.build.gradle.managed.BuildType buildType ) { buildType.setIsDebuggable ( true ) ; buildType.setIsEmbedMicroApp ( false ) ; }

Target:
public void execute ( com.android.build.gradle.managed.BuildType buildType ) { buildType.setDebuggable ( true ) ; buildType.setEmbedMicroApp ( false ) ; }
Source:
void finishRunningVoiceLocked ( ) { if ( mRunningVoice ) { mRunningVoice = false ; goToSleepIfNeededLocked ( ) ; } }

Target:
void finishRunningVoiceLocked ( ) { if ( mRunningVoice ) { mRunningVoice = false ; updateSleepIfNeededLocked ( ) ; } }
Source:
private native boolean requestLastVoiceTagNumberNative ( ) ;

Target:
private native boolean startVoiceRecognitionNative ( byte [ ] address ) ;
Source:
private void checkUpdateCheckTriggered ( com.android.server.timezone.PackageVersions packageVersions ) { mFakeIntentHelper.assertUpdateTriggered ( ) ; mFakeIntentHelper.assertReliabilityTriggeringEnabled ( ) ; checkPackageStorageStatus ( PackageStatus.CHECK_STARTED , packageVersions ) ; }

Target:
private void checkUpdateCheckTriggered ( com.android.server.timezone.PackageVersions packageVersions ) { mFakeIntentHelper.assertUpdateTriggered ( ) ; mFakeIntentHelper.assertReliabilityTriggerScheduled ( ) ; checkPackageStorageStatus ( PackageStatus.CHECK_STARTED , packageVersions ) ; }
Source:
public void testWriting ( ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String input = "" + ( ( ( ( ( ( ( "<manifest" + " xmlns:x=\"http://schemas.android.com/apk/res/android\"" ) + " xmlns:y=\"http://schemas.android.com/apk/res/android/tools\"" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <application x:label=\"@string/lib_name\" y:node=\"replace\"/>\n" ) + "\n" ) + "</manifest>\n" ) ; com.android.manifmerger.XmlDocument xmlDocument = com.android.manifmerger.TestUtils.xmlDocumentFromString ( new com.android.manifmerger.TestUtils.TestSourceLocation ( getClass ( ) , "testWriting()" ) , input ) ; java.io.ByteArrayOutputStream byteArrayOutputStream = new java.io.ByteArrayOutputStream ( ) ; xmlDocument.write ( byteArrayOutputStream ) ; assertEquals ( input , byteArrayOutputStream.toString ( ) ) ; }

Target:
public void testMultipleNamespaceEnabledElements ( ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.lang.String input = "" + ( ( ( ( ( ( ( ( ( ( ( "<android:manifest\n" + " xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " xmlns:tools=\"http://schemas.android.com/tools\"\n" ) + " xmlns:acme=\"http://acme.org/schemas\"\n" ) + " package=\"com.example.lib3\">\n" ) + "\n" ) + " <android:application android:label=\"@string/lib_name\" \n" ) + " tools:node=\"replace\" />\n" ) + " <acme:custom-tag android:label=\"@string/lib_name\" />\n" ) + " <acme:application acme:label=\"@string/lib_name\" />\n" ) + "\n" ) + "</android:manifest>" ) ; com.android.manifmerger.XmlDocument xmlDocument = com.android.manifmerger.TestUtils.xmlDocumentFromString ( new com.android.manifmerger.TestUtils.TestSourceLocation ( getClass ( ) , "testMergeableElementsIdentification()" ) , input ) ; com.google.common.collect.ImmutableList < com.android.manifmerger.XmlElement > mergeableElements = xmlDocument.getRootNode ( ) . getMergeableElements ( ) ; assertEquals ( 3 , mergeableElements.size ( ) ) ; assertEquals ( ManifestModel.NodeTypes.APPLICATION , mergeableElements.get ( 0 ) . getType ( ) ) ; assertEquals ( ManifestModel.NodeTypes.CUSTOM , mergeableElements.get ( 1 ) . getType ( ) ) ; assertEquals ( ManifestModel.NodeTypes.CUSTOM , mergeableElements.get ( 2 ) . getType ( ) ) ; }
Source:
com.android.sched.util.location.Location getVFileLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.BaseVDir parent , @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) { return vfs.getVFileLocation ( parent , path ) ; }

Target:
com.android.sched.util.location.Location getVDirLocation ( @ javax.annotation.Nonnull com.android.sched.vfs.MessageDigestFS.MessageDigestVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { return vfs.getVDirLocation ( parent.getWrappedDir ( ) , name ) ; }