auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void loadNowOverrideApplicationContext ( android.content.Context appContext ) throws org.chromium.base.library_loader.ProcessInitException { synchronized ( org.chromium.base.library_loader.LibraryLoader.sLock ) { if ( ( mLoaded ) && ( appContext != ( org.chromium.base.ContextUtils.getApplicationContext ( ) ) ) ) { throw new java.lang.IllegalStateException ( "Attempt to load again from alternate context." ) ; } loadAlreadyLocked ( appContext ) ; } }

Target:
public void loadNow ( android.content.Context context ) throws org.chromium.base.library_loader.ProcessInitException { synchronized ( org.chromium.base.library_loader.LibraryLoader.sLock ) { loadAlreadyLocked ( context ) ; } }
Source:
public static com.android.dialer.contactsfragment.ContactsCursorLoader createInstanceDisplayNameAlternative ( android.content.Context context , java.lang.String sortKey ) { return new com.android.dialer.contactsfragment.ContactsCursorLoader ( context , com.android.dialer.contactsfragment.ContactsCursorLoader.CONTACTS_PROJECTION_DISPLAY_NAME_ALTERNATIVE , sortKey ) ; }

Target:
private static java.lang.String [ ] getProjection ( android.content.Context context ) { com.android.contacts.common.preference.ContactsPreferences contactsPrefs = new com.android.contacts.common.preference.ContactsPreferences ( context ) ; boolean displayOrderPrimary = ( contactsPrefs.getDisplayOrder ( ) ) == ( com.android.contacts.common.preference.ContactsPreferences.DISPLAY_ORDER_PRIMARY ) ; return displayOrderPrimary ? com.android.dialer.contactsfragment.ContactsCursorLoader.CONTACTS_PROJECTION_DISPLAY_NAME_PRIMARY : com.android.dialer.contactsfragment.ContactsCursorLoader.CONTACTS_PROJECTION_DISPLAY_NAME_ALTERNATIVE ; }
Source:
private native void gattServerReadPhyNative ( int clientIf , int conn_id ) ;

Target:
private native void gattServerSetPreferredPhyNative ( int clientIf , java.lang.String address , int tx_phy , int rx_phy , int phy_options ) ;
Source:
public void testSetupConnectedState ( ) { setUpConnectedState ( ) ; org.junit.Assert.assertEquals ( BluetoothProfile.STATE_CONNECTED , mHeadsetStateMachine.getConnectionState ( mTestDevice ) ) ; org.junit.Assert.assertThat ( mHeadsetStateMachine.getCurrentState ( ) , org.hamcrest.core.IsInstanceOf.instanceOf ( HeadsetStateMachine.Connected.class ) ) ; }

Target:
public void testDefaultDisconnectedState ( ) { org.junit.Assert.assertEquals ( BluetoothProfile.STATE_DISCONNECTED , mHeadsetStateMachine.getConnectionState ( ) ) ; org.junit.Assert.assertThat ( mHeadsetStateMachine.getCurrentState ( ) , org.hamcrest.core.IsInstanceOf.instanceOf ( HeadsetStateMachine.Disconnected.class ) ) ; }
Source:
protected void log ( java.lang.String s ) { android.telephony.Rlog.d ( com.android.internal.telephony.ServiceStateTracker.LOG_TAG , s ) ; }

Target:
protected final void loge ( java.lang.String s ) { android.telephony.Rlog.e ( com.android.internal.telephony.ServiceStateTracker.LOG_TAG , ( ( ( "[" + ( mPhone.getPhoneId ( ) ) ) + "] " ) + s ) ) ; }
Source:
public boolean isArray ( ) { return ( descriptor.charAt ( 0 ) ) == '[' ; }

Target:
public boolean isArray ( ) { return ( descriptor.getString ( ) . charAt ( 0 ) ) == '[' ; }
Source:
public static byte shortToCharToByte ( short value ) { return ( ( byte ) ( ( char ) ( value ) ) ) ; }

Target:
public static int $noinline$intToDoubleToInt ( int value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( int ) ( ( double ) ( value ) ) ) ; }
Source:
public static org.junit.runner.Description createSuiteDescription ( java.lang.String name , java.lang.annotation.Annotation ... annotations ) { if ( ( name.length ( ) ) == 0 ) throw new java.lang.IllegalArgumentException ( "name must have non-zero length" ) ; return new org.junit.runner.Description ( name , annotations ) ; }

Target:
public static org.junit.runner.Description createSuiteDescription ( java.lang.String name , java.io.Serializable uniqueId , java.lang.annotation.Annotation ... annotations ) { return new org.junit.runner.Description ( null , name , uniqueId , annotations ) ; }
Source:
protected boolean isTrivialCast ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JReferenceType castTo ) { if ( ( this . equals ( castTo ) ) || ( castTo.equals ( com.android.jack.Jack.getSession ( ) . getPhantomLookup ( ) . getClass ( CommonTypes.JAVA_LANG_OBJECT ) ) ) ) { return true ; } return false ; }

Target:
protected boolean isTrivialCast ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JReferenceType castTo ) { if ( ( this . isSameType ( castTo ) ) || ( castTo.isSameType ( com.android.jack.Jack.getSession ( ) . getPhantomLookup ( ) . getClass ( CommonTypes.JAVA_LANG_OBJECT ) ) ) ) { return true ; } return false ; }
Source:
public boolean tryReleaseShared ( long ignore ) { setState ( ( 1 << 62 ) ) ; return true ; }

Target:
public boolean tryReleaseShared ( long ignore ) { setState ( ( 1L << 62 ) ) ; return true ; }
Source:
public void setZoom ( int value ) { synchronized ( this ) { if ( ( grid ) != null ) { grid.dispose ( ) ; grid = null ; zoom = value ; } } redraw ( ) ; }

Target:
public void imageLoaded ( ) { synchronized ( this ) { loadImage ( ) ; crosshairLocation = model.getCrosshairLocation ( ) ; zoom = model.getZoom ( ) ; } doRedraw ( ) ; }
Source:
public static void initializeForTests ( com.android.builder.profile.ProcessRecorder.ExecutionRecordWriter recordWriter ) { com.android.builder.profile.ProcessRecorderFactory.sINSTANCE = new com.android.builder.profile.ProcessRecorderFactory ( ) ; com.android.builder.profile.ProcessRecorder.resetForTests ( ) ; com.android.builder.profile.ProcessRecorderFactory.setEnabled ( true ) ; com.android.builder.profile.ProcessRecorderFactory.sINSTANCE.setRecordWriter ( recordWriter ) ; com.android.builder.profile.ProcessRecorderFactory.publishInitialRecords ( ) ; }

Target:
public static void initializeForTests ( com.android.builder.profile.ProcessRecorder.ExecutionRecordWriter recordWriter ) { com.android.builder.profile.ProcessRecorderFactory.sINSTANCE = new com.android.builder.profile.ProcessRecorderFactory ( ) ; com.android.builder.profile.ProcessRecorder.resetForTests ( ) ; com.android.builder.profile.ProcessRecorderFactory.setEnabled ( true ) ; com.android.builder.profile.ProcessRecorderFactory.sINSTANCE.setRecordWriter ( recordWriter ) ; com.android.builder.profile.ProcessRecorderFactory.publishInitialRecords ( com.google.common.collect.ImmutableList.< com.android.builder.profile.Recorder.Property > of ( ) ) ; }
Source:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , int timeoutMs ) { requestNetwork ( request , networkCallback , timeoutMs , inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ) ; }

Target:
public void registerNetworkCallback ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback ) { registerNetworkCallback ( request , networkCallback , getDefaultHandler ( ) ) ; }
Source:
public native java.lang.String getHostByAddr ( byte [ ] addr ) throws java.net.UnknownHostException ;

Target:
private native java.lang.String getHostByAddr0 ( byte [ ] addr ) throws java.net.UnknownHostException ;
Source:
private static native int firstImpl ( int address ) ;

Target:
private static native int nextImpl ( int address , java.lang.String text , int n ) ;
Source:
public java.lang.String getMessage ( ) { return ( overflowKind ) + " overflow when trying to merge dex files" ; }

Target:
public java.lang.String getMessage ( ) { return ( DexFileWriter.DEX_FILENAME ) + " has too many IDs" ; }
Source:
public void test_getLong_TemporalField ( ) { org.testng.Assert.assertEquals ( TEST_07_15.getLong ( java.time.temporal.ChronoField.DAY_OF_MONTH ) , 15 ) ; org.testng.Assert.assertEquals ( TEST_07_15.getLong ( java.time.temporal.ChronoField.MONTH_OF_YEAR ) , 7 ) ; }

Target:
public void test_get_TemporalField ( ) { org.testng.Assert.assertEquals ( tck.java.time.TCKMonthDay.TEST_07_15.get ( java.time.temporal.ChronoField.DAY_OF_MONTH ) , 15 ) ; org.testng.Assert.assertEquals ( tck.java.time.TCKMonthDay.TEST_07_15.get ( java.time.temporal.ChronoField.MONTH_OF_YEAR ) , 7 ) ; }
Source:
public void bindResponse ( int ind_id , boolean ind_status ) { com.android.bluetooth.hfp.HeadsetService service = getService ( ) ; if ( service == null ) return ; service.bindResponse ( ind_id , ind_status ) ; }

Target:
public void bindResponse ( int indId , boolean indStatus ) { com.android.bluetooth.hfp.HeadsetService service = getService ( ) ; if ( service == null ) return ; service.bindResponse ( indId , indStatus ) ; }
Source:
private void assertContains ( java.util.List < java.lang.String > headers , java.lang.String header ) { assertTrue ( headers.toString ( ) , headers.contains ( header ) ) ; }

Target:
private void assertContains ( java.util.List < java.lang.String > list , java.lang.String value ) { assertTrue ( list.toString ( ) , list.contains ( value ) ) ; }
Source:
public org.bouncycastle.cert.crmf.jcajce.JcePKMACValuesCalculator setProvider ( java.lang.String providerName ) { this . helper = new org.bouncycastle.cert.crmf.jcajce.CRMFHelper ( new org.bouncycastle.jcajce.NamedJcaJceHelper ( providerName ) ) ; return this ; }

Target:
public org.bouncycastle.cert.crmf.jcajce.JcePKMACValuesCalculator setProvider ( java.lang.String providerName ) { this . helper = new org.bouncycastle.cert.crmf.jcajce.CRMFHelper ( new org.bouncycastle.jcajce.util.NamedJcaJceHelper ( providerName ) ) ; return this ; }
Source:
public void sendRttRequest ( ) { mInCallAdapter.sendRttRequest ( ) ; }

Target:
public void stopRtt ( ) { mInCallAdapter.stopRtt ( mTelecomCallId ) ; }
Source:
public void waitForIdle ( int timeoutMs ) { com.android.server.ConnectivityServiceTest.waitForIdleHandler ( mHandlerThread , timeoutMs ) ; }

Target:
public void waitForIdle ( int timeoutMs ) { com.android.server.ConnectivityServiceTest.waitForIdleHandler ( mService.mHandlerThread , timeoutMs ) ; waitForIdle ( mCellNetworkAgent , timeoutMs ) ; waitForIdle ( mWiFiNetworkAgent , timeoutMs ) ; waitForIdle ( mEthernetNetworkAgent , timeoutMs ) ; com.android.server.ConnectivityServiceTest.waitForIdleHandler ( mService.mHandlerThread , timeoutMs ) ; }
Source:
protected void fillRtTestInfos ( ) { rtTestInfos.add ( TEST001 ) ; }

Target:
protected void fillRtTestInfos ( ) { rtTestInfos.add ( TEST001 ) ; rtTestInfos.add ( TEST002 ) ; }
Source:
public boolean linkToDeath ( android.os.IHwBinder.DeathRecipient recipient , long cookie ) ;

Target:
public void serviceDied ( long cookie ) ;
Source:
private void onATBiev ( int ind_id , int ind_value , byte [ ] address ) { com.android.bluetooth.hfp.HeadsetStateMachine.StackEvent event = new com.android.bluetooth.hfp.HeadsetStateMachine.StackEvent ( com.android.bluetooth.hfp.HeadsetStateMachine.EVENT_TYPE_BIEV ) ; event.valueInt = ind_id ; event.valueInt2 = ind_value ; event.device = getDevice ( address ) ; sendMessage ( com.android.bluetooth.hfp.HeadsetStateMachine.STACK_EVENT , event ) ; }

Target:
private void onATBiev ( int indId , int indValue , byte [ ] address ) { com.android.bluetooth.hfp.HeadsetStateMachine.StackEvent event = new com.android.bluetooth.hfp.HeadsetStateMachine.StackEvent ( com.android.bluetooth.hfp.HeadsetStateMachine.EVENT_TYPE_BIEV ) ; event.valueInt = indId ; event.valueInt2 = indValue ; event.device = getDevice ( address ) ; sendMessage ( com.android.bluetooth.hfp.HeadsetStateMachine.STACK_EVENT , event ) ; }
Source:
public java.io.File getFolder ( ) { return mBundleFolder ; }

Target:
public java.io.File getBundleFolder ( ) { return mBundleFolder ; }
Source:
public static double DoubleAddition ( ) { double a ; double b ; double c ; a = 1.0 ; b = 2.0 ; c = a + b ; return c ; }

Target:
public static double DoubleAddition ( ) { double a ; double b ; double c ; a = Main.$inline$double ( 1.0 ) ; b = Main.$inline$double ( 2.0 ) ; c = a + b ; return c ; }
Source:
void expandViewHolder ( ) { transcriptionTextView.setMaxLines ( 999 ) ; isViewHolderExpanded = true ; }

Target:
void expandViewHolder ( ) { transcriptionTextView.setMaxLines ( 999 ) ; isViewHolderExpanded = true ; mediaPlayerView.setVisibility ( View.VISIBLE ) ; }
Source:
public void checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType ) throws java.security.cert.CertificateException { checkTrusted ( chain , authType , null , false ) ; }

Target:
public java.util.List < java.security.cert.X509Certificate > checkClientTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType , java.lang.String hostname ) throws java.security.cert.CertificateException { return checkTrusted ( chain , authType , hostname , true ) ; }
Source:
private boolean isScoAcceptable ( ) { return ( mAudioRouteAllowed ) && ( ( mVoiceRecognitionStarted ) || ( isInCall ( ) ) ) ; }

Target:
private boolean isScoAcceptable ( ) { if ( mForceScoAudio ) return true ; return ( mAudioRouteAllowed ) && ( ( ( mVoiceRecognitionStarted ) || ( isInCall ( ) ) ) || ( ( android.bluetooth.BluetoothHeadset.isInbandRingingSupported ( mService ) ) && ( isRinging ( ) ) ) ) ; }
Source:
public java.lang.invoke.MethodHandle findConstructor ( java.lang.Class < ? > refc , java.lang.invoke.MethodType type ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException { throw new java.lang.UnsupportedOperationException ( "MethodHandles.Lookup.findConstructor is not implemented" ) ; }

Target:
private java.lang.invoke.MethodHandle findVirtualForMH ( java.lang.String name , java.lang.invoke.MethodType type ) { if ( "invoke" . equals ( name ) ) return java.lang.invoke.MethodHandles.invoker ( type ) ; if ( "invokeExact" . equals ( name ) ) return java.lang.invoke.MethodHandles.exactInvoker ( type ) ; return null ; }
Source:
public boolean isVoiceCapable ( ) { if ( ( android.telephony.TelephonyManager.sContext ) == null ) return true ; return android.telephony.TelephonyManager.sContext.getResources ( ) . getBoolean ( com.android.internal.R.bool.config_voice_capable ) ; }

Target:
public boolean isSmsCapable ( ) { if ( ( mContext ) == null ) return true ; return mContext.getResources ( ) . getBoolean ( com.android.internal.R.bool.config_sms_capable ) ; }
Source:
public com.android.ims.internal.IImsUt getUtInterface ( ) throws android.os.RemoteException { synchronized ( mLock ) { return this . getUt ( ) . getInterface ( ) ; } }

Target:
public com.android.ims.internal.IImsCallSession createCallSession ( android.telephony.ims.ImsCallProfile profile ) throws android.os.RemoteException { synchronized ( mLock ) { return createCallSessionInterface ( profile ) ; } }
Source:
public static long NegNeg1 ( long arg ) { return - ( - arg ) ; }

Target:
public static long $noinline$NegNeg1 ( long arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return - ( - arg ) ; }
Source:
public java.lang.String getStringValue ( ) { if ( ( mValue ) != null ) { return mValue ; } return "" ; }

Target:
public java.lang.String getShortDisplayValue ( ) { if ( ( mValue ) != null ) { return mValue ; } return "" ; }
Source:
public void exit ( ) { unrequestUpstreamMobileConnection ( ) ; mUpstreamNetworkMonitor.stop ( ) ; simChange.stopListening ( ) ; notifyTetheredOfNewUpstreamIface ( null ) ; handleNewUpstreamNetworkState ( null ) ; }

Target:
public void exit ( ) { mOffloadController.stop ( ) ; unrequestUpstreamMobileConnection ( ) ; mUpstreamNetworkMonitor.stop ( ) ; simChange.stopListening ( ) ; notifyTetheredOfNewUpstreamIface ( null ) ; handleNewUpstreamNetworkState ( null ) ; }
Source:
public void removeImsFeatureStatusCallback ( com.android.ims.internal.IImsFeatureStatusCallback c ) { if ( c == null ) { return ; } synchronized ( mStatusCallbacks ) { mStatusCallbacks.remove ( c ) ; } }

Target:
protected final void setFeatureState ( @ android.telephony.ims.feature.ImsFeature.ImsState int state ) { synchronized ( mLock ) { if ( ( mState ) != state ) { mState = state ; notifyFeatureState ( state ) ; } } }
Source:
public static native java.lang.String EVP_PKEY_print_private ( int pkeyRef ) ;

Target:
public static native int EVP_PKEY_size ( long pkey ) ;
Source:
public static java.lang.String formatCompiledPattern ( java.lang.String compiledPattern , java.lang.CharSequence ... values ) { return android.icu.impl.SimplePatternFormatter.formatAndAppend ( compiledPattern , new java.lang.StringBuilder ( ) , null , values ) . toString ( ) ; }

Target:
public static java.lang.String formatCompiledPattern ( java.lang.String compiledPattern , java.lang.CharSequence ... values ) { return android.icu.impl.SimpleFormatterImpl.formatAndAppend ( compiledPattern , new java.lang.StringBuilder ( ) , null , values ) . toString ( ) ; }
Source:
public void addI64 ( android.support.v8.renderscript.Long4 v ) { mN.addI64 ( new android.support.v8.renderscript.Long4 ( v.x , v.y , v.z , v.w ) ) ; }

Target:
public void addI64 ( android.support.v8.renderscript.Long4 v ) { mN.addI64 ( new android.support.v8.renderscript.Long4 ( v.x , v.y , v.z , v.w ) ) ; mPos += 32 ; }
Source:
public java.lang.String getTraceViewLocation ( ) { return ( getSdkToolsFolder ( ) ) + ( com.android.ide.eclipse.monitor.SdkToolsLocator.FN_TRACEVIEW ) ; }

Target:
public java.lang.String getTraceViewLocation ( ) { return new java.io.File ( getSdkToolsFolder ( ) , com.android.ide.eclipse.monitor.SdkToolsLocator.FN_TRACEVIEW ) . getAbsolutePath ( ) ; }
Source:
public void visitElement ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Element element ) { context.report ( com.android.tools.lint.checks.DeprecationDetector.ISSUE , element , context.getLocation ( element ) , java.lang.String.format ( "%1$s is deprecated" , element.getTagName ( ) ) , null ) ; }

Target:
public void visitElement ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Element element ) { context.report ( com.android.tools.lint.checks.DeprecationDetector.ISSUE , element , context.getLocation ( element ) , java.lang.String.format ( "`%1$s` is deprecated" , element.getTagName ( ) ) , null ) ; }
Source:
public static native long EVP_DigestInit ( long evp_md ) ;

Target:
public static native int EVP_DigestInit ( org.conscrypt.OpenSSLDigestContext ctx , long evp_md ) ;
Source:
public void run ( ) { android.bluetooth.le.AdvertisingSet advertisingSet = mAdvertisingSets.get ( advertiserId ) ; callback.onAdvertisingParametersUpdated ( advertisingSet , status ) ; }

Target:
public void run ( ) { android.bluetooth.le.AdvertisingSet advertisingSet = mAdvertisingSets.get ( advertiserId ) ; callback.onAdvertisingParametersUpdated ( advertisingSet , txPower , status ) ; }
Source:
private native java.lang.String format1 ( java.lang.String format ) ;

Target:
public java.lang.String format ( java.lang.String format ) { if ( format == null ) { format = "%c" ; } android.text.format.TimeFormatter formatter = new android.text.format.TimeFormatter ( ) ; return formatter.format ( format , wallTime , zoneInfo ) ; }
Source:
public static long IntMatCond_LongVarVar ( int a , int b , long x , long y ) { long result = ( a > b ) ? x : y ; return result + ( a > b ? 0L : 1L ) ; }

Target:
public static long LongNonmatCond_LongVarVar ( long a , long b , long x , long y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return a > b ? x : y ; }
Source:
public static int $noinline$intSubAddSimplifyLeft ( int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int sub = x - y ; return sub + y ; }

Target:
public static int $noinline$intSubAddSimplifyRight ( int x , int y ) { int sub = x - y ; return y + sub ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; myFile = getTempFile ( "patch.zip" ) ; myPatchSpec = new com.intellij.updater.PatchSpec ( ) . setOldFolder ( myOlderDir.getAbsolutePath ( ) ) . setNewFolder ( myNewerDir.getAbsolutePath ( ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; myFile = getTempFile ( "patch.zip" ) ; myPatchSpec = new com.intellij.updater.PatchSpec ( ) . addOldFolder ( myOlderDir.getAbsolutePath ( ) ) . setNewFolder ( myNewerDir.getAbsolutePath ( ) ) ; }
Source:
public void remove ( android.icu.impl.ICUResource.Key key ) { keyToLoader.remove ( key ) ; }

Target:
public void putNoFallback ( android.icu.impl.ICUResource.Key key ) { if ( ! ( keyToLoader.containsKey ( key ) ) ) { keyToLoader.put ( key.clone ( ) , android.icu.impl.TimeZoneNamesImpl.ZNamesLoader.DUMMY_LOADER ) ; } }
Source:
public java.util.List < com.google.currysrc.api.transform.TransformRule > getTransformRules ( java.io.File file ) { return com.google.common.collect.Lists.< com.google.currysrc.api.transform.TransformRule > newArrayList ( new com.google.currysrc.api.transform.DocumentTransformRule ( captureTransformer , com.google.currysrc.api.match.SourceMatchers.all ( ) , false ) ) ; }

Target:
public java.util.List < com.google.currysrc.api.process.Rule > getRuleList ( java.io.File file ) { return com.google.common.collect.Lists.< com.google.currysrc.api.process.Rule > newArrayList ( com.android.icu4j.srcgen.Icu4jTransformRules.createOptionalRule ( captureTransformer ) ) ; }
Source:
public java.lang.StringBuffer format ( java.math.BigInteger number , java.lang.StringBuffer toAppendTo , java.text.FieldPosition pos ) { return format ( new android.icu.text.BigDecimal ( number ) , toAppendTo , pos ) ; }

Target:
public java.lang.StringBuffer format ( java.math.BigInteger number , java.lang.StringBuffer toAppendTo , java.text.FieldPosition pos ) { return format ( new android.icu.math.BigDecimal ( number ) , toAppendTo , pos ) ; }
Source:
public java.io.File getOutputFile ( ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
public java.io.File getOutputFile ( ) { return file ; }
Source:
public com.android.ide.eclipse.adt.editors.layout.gscripts.Rect set ( int x , int y , int w , int h ) { this . x = x ; this . y = y ; this . w = w ; this . h = h ; return this ; }

Target:
public com.android.ide.common.api.Rect set ( int x , int y , int w , int h ) { this . x = x ; this . y = y ; this . w = w ; this . h = h ; return this ; }
Source:
public static short byteToDoubleToShort ( byte value ) { return ( ( short ) ( ( double ) ( value ) ) ) ; }

Target:
public static long $noinline$longToIntToLong ( long value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( long ) ( ( int ) ( value ) ) ) ; }
Source:
public void testRefactor1b ( ) throws java.lang.Exception { renameType ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT , "com.example.refactoringtest.MainActivity2" , true , "NewActivityName" , ( "CHANGES:\n" + ( ( ( ( ( ( "-------\n" + "* Rename compilation unit \'MainActivity2.java\' to \'NewActivityName.java\'\n" ) + "\n" ) + "* AndroidManifest.xml - /testRefactor1b/AndroidManifest.xml\n" ) + " @@ -25 +25\n" ) + " - android:name=\".MainActivity2\"\n" ) + " + android:name=\".NewActivityName\"" ) ) ) ; }

Target:
public void testRefactor1b ( ) throws java.lang.Exception { renameType ( com.android.ide.eclipse.adt.internal.refactorings.core.TEST_PROJECT , "com.example.refactoringtest.MainActivity2" , true , "NewActivityName" , ( "CHANGES:\n" + ( ( ( ( ( ( "-------\n" + "[x] Rename compilation unit \'MainActivity2.java\' to \'NewActivityName.java\'\n" ) + "\n" ) + "[x] AndroidManifest.xml - /testRefactor1b/AndroidManifest.xml\n" ) + " @@ -25 +25\n" ) + " - android:name=\".MainActivity2\"\n" ) + " + android:name=\".NewActivityName\"" ) ) ) ; }
Source:
public native void putOrderedInt ( java.lang.Object obj , long offset , int newValue ) ;

Target:
public native void putInt ( java.lang.Object obj , long offset , int newValue ) ;
Source:
public void testCheckSignaturesSharedSomeMatch2 ( ) { int apk1 = SHARED1_CERT1_CERT2 ; int apk2 = SHARED2_CERT2 ; boolean fail = true ; int retCode = PackageManager.INSTALL_FAILED_SHARED_USER_INCOMPATIBLE ; int expMatchResult = - 1 ; checkSharedSignatures ( apk1 , apk2 , true , fail , retCode , expMatchResult ) ; }

Target:
public void testCheckSignaturesSharedSomeMatch1 ( ) { int apk1 = SHARED1_CERT1_CERT2 ; int apk2 = SHARED2_CERT1 ; boolean fail = true ; int retCode = android.content.pm.PackageManager.INSTALL_FAILED_SHARED_USER_INCOMPATIBLE ; int expMatchResult = - 1 ; checkSharedSignatures ( apk1 , apk2 , true , fail , retCode , expMatchResult ) ; }
Source:
public void setScanInterval ( int scanInterval ) { doBooleanCommand ( ( "SCAN_INTERVAL " + scanInterval ) ) ; }

Target:
public boolean umtsAuthFailedResponse ( int id ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.sendCurrentNetworkEapSimUmtsAuthFailure ( ) ; } else { return doBooleanCommand ( ( ( "CTRL-RSP-SIM-" + id ) + ":UMTS-FAIL" ) ) ; } }
Source:
public java.util.Collection < com.android.jack.dx.rop.cst.CstType > getCstTypes ( ) { return com.android.jack.Jack.getUnmodifiableCollections ( ) . getUnmodifiableCollection ( cstTypes ) ; }

Target:
public java.util.Collection < com.android.jack.dx.rop.cst.CstFieldRef > getCstFieldRefs ( ) { return com.android.jack.Jack.getUnmodifiableCollections ( ) . getUnmodifiableCollection ( cstFieldRefs ) ; }
Source:
public long getContext ( ) { return pointCtx ; }

Target:
public NativeRef.EC_POINT getNativeRef ( ) { return pointCtx ; }
Source:
public void test_oneJar_constructor ( ) throws java.lang.Exception { dalvik.system.DexClassLoaderTest.test_constructor ( dalvik.system.DexClassLoaderTest.Configuration.ONE_JAR ) ; }

Target:
public void test_oneDex_callInstanceMethod ( ) throws java.lang.Exception { createLoaderAndCallMethod ( "test.TestMethods" , "test_callInstanceMethod" , dex1 ) ; }
Source:
public void releaseSecurityParameterIndex ( int resourceId ) throws android.os.RemoteException { }

Target:
public void releaseSecurityParameterIndex ( int resourceId ) throws android.os.RemoteException { releaseManagedResource ( mSpiRecords , resourceId , "SecurityParameterIndex" ) ; }
Source:
protected void dump ( java.io.FileDescriptor fd , java.io.PrintWriter writer , java.lang.String [ ] args ) { mProvider.dump ( fd , writer , args ) ; }

Target:
public android.os.IBinder onBind ( android.content.Intent intent ) { return mProvider.getBinder ( ) ; }
Source:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , int timeoutMs ) { requestNetwork ( request , networkCallback , timeoutMs , inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ) ; }

Target:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , int timeoutMs , int legacyType ) { requestNetwork ( request , networkCallback , timeoutMs , legacyType , getDefaultHandler ( ) ) ; }
Source:
public java.lang.String select ( android.icu.text.PluralRules.FixedDecimal number ) { return rules.select ( number ) ; }

Target:
public boolean matches ( android.icu.text.PluralRules.FixedDecimal sample , java.lang.String keyword ) { return rules.select ( sample , keyword ) ; }
Source:
protected void engineUpdate ( byte [ ] b , int off , int len ) throws java.security.SignatureException { }

Target:
public void engineUpdate ( byte [ ] b , int off , int len ) throws java.security.SignatureException { throw new java.lang.UnsupportedOperationException ( ) ; }
Source:
public void setProcessorOptions ( @ javax.annotation.Nonnull java.util.Map < java.lang.String , java.lang.String > processorOptions ) { for ( java.util.Map.Entry < java.lang.String , java.lang.String > entry : processorOptions.entrySet ( ) ) { options.addAnnotationProcessorOption ( entry.getKey ( ) , entry.getValue ( ) ) ; } }

Target:
public void setProcessorNames ( @ javax.annotation.Nonnull java.util.List < java.lang.String > processorNames ) { options.addProperty ( Options.ANNOTATION_PROCESSOR_MANUAL.getName ( ) , "true" ) ; options.addProperty ( Options.ANNOTATION_PROCESSOR_MANUAL_LIST.getName ( ) , Options.ANNOTATION_PROCESSOR_MANUAL_LIST.getCodec ( ) . formatValue ( processorNames ) ) ; }
Source:
public com.android.sdklib.IAndroidTarget getTarget ( org.eclipse.core.resources.IProject project ) { if ( project == null ) { return null ; } com.android.ide.eclipse.adt.internal.project.ProjectState state = com.android.ide.eclipse.adt.internal.sdk.Sdk.getProjectState ( project ) ; if ( state != null ) { return state.getTarget ( ) ; } return null ; }

Target:
public com.android.sdklib.IAndroidTarget getTarget ( org.eclipse.core.resources.IProject project ) { if ( project == null ) { return null ; } com.android.ide.eclipse.adt.internal.sdk.ProjectState state = com.android.ide.eclipse.adt.internal.sdk.Sdk.getProjectState ( project ) ; if ( state != null ) { return state.getTarget ( ) ; } return null ; }
Source:
private void checkNoPeerName ( java.io.FileDescriptor fd ) throws java.lang.Exception { checkNoName ( Libcore.os.getpeername ( fd ) ) ; }

Target:
private void checkNoPeerName ( java.io.FileDescriptor fd ) throws java.lang.Exception { checkNoName ( ( ( android.system.UnixSocketAddress ) ( Libcore.os.getpeername ( fd ) ) ) ) ; }
Source:
public static void assertEqualSessions ( long expected , long actual ) { org.conscrypt.TestUtils.assertEqualByteArrays ( org.conscrypt.NativeCrypto.SSL_SESSION_session_id ( expected ) , org.conscrypt.NativeCrypto.SSL_SESSION_session_id ( actual ) ) ; }

Target:
public static void assertEqualSessions ( long expected , long actual ) { org.conscrypt.NativeCryptoTest.assertEqualByteArrays ( org.conscrypt.NativeCrypto.SSL_SESSION_session_id ( expected ) , org.conscrypt.NativeCrypto.SSL_SESSION_session_id ( actual ) ) ; }
Source:
public static < T extends java.lang.Exception > org.hamcrest.Matcher < T > isException ( org.hamcrest.Matcher < T > exceptionMatcher ) { return org.junit.internal.matchers.StacktracePrintingMatcher.isException ( exceptionMatcher ) ; }

Target:
public static < T > org.junit.internal.matchers.CombinableMatcher < T > both ( org.hamcrest.Matcher < T > matcher ) { return new org.junit.internal.matchers.CombinableMatcher < T > ( matcher ) ; }
Source:
static com.android.builder.profile.ProcessRecorder get ( ) { return ProcessRecorderFactory.INSTANCE.get ( ) ; }

Target:
static com.android.builder.profile.ProcessRecorder get ( ) { return ProcessRecorderFactory.sINSTANCE.get ( ) ; }
Source:
public void forceLayout ( ) { mPrivateFlags |= android.view.View.FORCE_LAYOUT ; }

Target:
public void forceLayout ( ) { mPrivateFlags |= android.view.View.FORCE_LAYOUT ; mPrivateFlags |= android.view.View.INVALIDATED ; }
Source:
static void invokeStaticNotInlined ( ) { Main.ClassWithClinit6.staticMethod ( ) ; }

Target:
static void invokeStaticNotInlined ( ) { Main.ClassWithClinit6.$noinline$staticMethod ( ) ; }
Source:
public void disableOptionalCodecs ( ) { if ( android.bluetooth.BluetoothA2dp.DBG ) android.util.Log.d ( android.bluetooth.BluetoothA2dp.TAG , "disableOptionalCodecs" ) ; enableDisableOptionalCodecs ( false ) ; }

Target:
public void disableOptionalCodecs ( android.bluetooth.BluetoothDevice device ) { if ( android.bluetooth.BluetoothA2dp.DBG ) android.util.Log.d ( android.bluetooth.BluetoothA2dp.TAG , ( ( "disableOptionalCodecs(" + device ) + ")" ) ) ; enableDisableOptionalCodecs ( device , false ) ; }
Source:
public java.lang.String getNamespace ( com.android.ide.common.api.INode layout ) { java.lang.String namespace = com.android.ide.common.layout.LayoutConstants.ANDROID_URI ; if ( ! ( layout.getFqcn ( ) . equals ( com.android.ide.common.layout.LayoutConstants.FQCN_GRID_LAYOUT ) ) ) { namespace = mRulesEngine.getAppNameSpace ( ) ; } return namespace ; }

Target:
public java.lang.String getNamespace ( com.android.ide.common.api.INode layout ) { java.lang.String namespace = com.android.util.XmlUtils.ANDROID_URI ; if ( ! ( layout.getFqcn ( ) . equals ( com.android.ide.common.layout.LayoutConstants.FQCN_GRID_LAYOUT ) ) ) { namespace = mRulesEngine.getAppNameSpace ( ) ; } return namespace ; }
Source:
public void testStringSwedishOverlay ( ) throws java.lang.Throwable { final int resId = com.android.internal.R.string.phoneTypeWork ; setLocale ( "en_US" ) ; assertResource ( resId , "Work" , "Work" ) ; setLocale ( "sv_SE" ) ; assertResource ( resId , "Arbete" , "Jobb" ) ; }

Target:
private int getExpected ( int no , int so , int mo ) { switch ( mMode ) { case com.android.overlaytest.OverlayBaseTest.MODE_NO_OVERLAY : return no ; case com.android.overlaytest.OverlayBaseTest.MODE_SINGLE_OVERLAY : return so ; case com.android.overlaytest.OverlayBaseTest.MODE_MULTIPLE_OVERLAYS : return mo ; default : fail ( "Unknown mode!" ) ; return no ; } }
Source:
public PS getLinkedProjectSettings ( @ org.jetbrains.annotations.NotNull java.lang.String linkedProjectPath ) { return myLinkedProjectsSettings.get ( linkedProjectPath ) ; }

Target:
public PS getLinkedProjectSettings ( @ org.jetbrains.annotations.NotNull java.lang.String linkedProjectPath ) { PS ps = myLinkedProjectsSettings.get ( linkedProjectPath ) ; if ( ps == null ) { ps = myLinkedProjectsSettings.get ( com.intellij.openapi.util.io.FileUtil.toSystemIndependentName ( linkedProjectPath ) ) ; } return ps ; }
Source:
public boolean isConnected ( ) { return false ; }

Target:
public boolean finishConnect ( ) throws java.io.IOException { return false ; }
Source:
private com.google.common.base.Objects.ToStringHelper.ValueHolder addHolder ( @ javax.annotation.Nullable java.lang.Object value ) { com.google.common.base.Objects.ToStringHelper.ValueHolder valueHolder = addHolder ( ) ; valueHolder.isNull = value == null ; return valueHolder ; }

Target:
private com.google.common.base.Objects.ToStringHelper addHolder ( java.lang.String name , @ javax.annotation.Nullable java.lang.Object value ) { com.google.common.base.Objects.ToStringHelper.ValueHolder valueHolder = addHolder ( ) ; valueHolder.value = value ; valueHolder.name = com.google.common.base.Preconditions.checkNotNull ( name ) ; return this ; }
Source:
public boolean setAlertCallToActive ( ) { if ( ! ( sendCtrlCommand ( RilCtrlCmds.CTRL_CMD_SET_CALL_ACTIVE , 0 , 0 , null ) ) ) { android.util.Log.v ( com.android.internal.telephony.mockril.MockRilController.TAG , "send CTRL_CMD_SET_CALL_ACTIVE request failed" ) ; return false ; } return true ; }

Target:
public boolean setAlertCallToActive ( ) { if ( ! ( sendCtrlCommand ( RilCtrlCmds.CTRL_CMD_SET_CALL_ACTIVE , 0 , 0 , null ) ) ) { android.telephony.Rlog.v ( com.android.internal.telephony.mockril.MockRilController.TAG , "send CTRL_CMD_SET_CALL_ACTIVE request failed" ) ; return false ; } return true ; }
Source:
public void onHandoverFailed ( int handoverError ) { for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onHandoverFailed ( this , handoverError ) ; } }

Target:
public void onHandoverFailed ( int handoverError ) { android.telecom.Log.i ( this , "onHandoverFailed; callId=%s, handoverError=%d" , getId ( ) , handoverError ) ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onHandoverFailed ( this , handoverError ) ; } }
Source:
public void onSensorChanged ( android.hardware.SensorEvent event ) { android.hardware.cts.helpers.TestSensorEvent testEvent = new android.hardware.cts.helpers.TestSensorEvent ( event , java.lang.System.nanoTime ( ) ) ; for ( android.hardware.cts.helpers.sensorverification.ISensorVerification verification : mVerifications ) { verification.addSensorEvent ( testEvent ) ; } super . onSensorChanged ( event ) ; }

Target:
public void onSensorChanged ( android.hardware.SensorEvent event ) { android.hardware.cts.helpers.TestSensorEvent testEvent = new android.hardware.cts.helpers.TestSensorEvent ( event , android.os.SystemClock.elapsedRealtimeNanos ( ) ) ; for ( android.hardware.cts.helpers.sensorverification.ISensorVerification verification : mVerifications ) { verification.addSensorEvent ( testEvent ) ; } super . onSensorChanged ( event ) ; }
Source:
public void wifiStopTrackingStateChange ( ) { if ( ( mTrackingWifiStateChange ) == true ) { mService.unregisterReceiver ( mTetherStateReceiver ) ; mService.unregisterReceiver ( mStateChangeReceiver ) ; mTrackingWifiStateChange = false ; } }

Target:
public void wifiStopTrackingTetherStateChange ( ) { if ( ( mTrackingTetherStateChange ) == true ) { mService.unregisterReceiver ( mTetherStateReceiver ) ; mTrackingTetherStateChange = false ; } }
Source:
public void testGetCnsWithQuotedStrings ( ) { assertCns ( "cn=\"\\\" a ,=<>#;\"" , "\" a ,=<>#;" ) ; assertCns ( "cn=abc\\,def" , "abc,def" ) ; }

Target:
public void testGetCnsWithQuotedStrings ( ) { assertCns ( "cn=\"\\\" a ,=<>#;\"" , "\" a ,=<>#;" ) ; assertCns ( "cn=abc\\,def" , "abc,def" ) ; assertCns ( "cn=\"\\\" a ,\\=<>\\#;\"" , "\" a ,=<>#;" ) ; }
Source:
private static native void native_drawTextRun ( int nativeCanvas , java.lang.String text , int start , int end , int contextStart , int contextEnd , float x , float y , int flags , int paint ) ;

Target:
private static native void native_drawTextRun ( long nativeCanvas , java.lang.String text , int start , int end , int contextStart , int contextEnd , float x , float y , int flags , long nativePaint ) ;
Source:
public final void init ( int opmode , java.security.Key key , java.security.AlgorithmParameters params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { checkMode ( opmode ) ; spiImpl.engineInit ( opmode , key , params , random ) ; mode = opmode ; }

Target:
public final void init ( int opmode , java.security.Key key , java.security.SecureRandom random ) throws java.security.InvalidKeyException { checkMode ( opmode ) ; getSpi ( key ) . engineInit ( opmode , key , random ) ; mode = opmode ; }
Source:
public java.lang.String getAuthTokenLabel ( java.lang.String s ) { android.util.Log.d ( com.google.android.car.pbapsink.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; return null ; }

Target:
public java.lang.String getAuthTokenLabel ( java.lang.String s ) { android.util.Log.d ( com.android.bluetooth.pbapclient.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; return null ; }
Source:
private static java.lang.String trimSqlForDisplay ( java.lang.String sql ) { return android.database.sqlite.SQLiteConnection.TRIM_SQL_PATTERN.matcher ( sql ) . replaceAll ( " " ) ; }

Target:
private static java.lang.String trimSqlForDisplay ( java.lang.String sql ) { return sql.replaceAll ( "[\\s]*\\n+[\\s]*" , " " ) ; }
Source:
private native void gattClientRegisterForNotificationsNative ( int clientIf , java.lang.String address , int service_type , int service_id_inst_id , long service_id_uuid_lsb , long service_id_uuid_msb , int char_id_inst_id , long char_id_uuid_lsb , long char_id_uuid_msb , boolean enable ) ;

Target:
private native void gattClientRegisterForNotificationsNative ( int clientIf , java.lang.String address , int handle , boolean enable ) ;
Source:
void stopKeepalive ( ) { return ; }

Target:
public void stopNattKeepalive ( ) { synchronized ( mKeepaliveCallback ) { if ( ( mKeepalive ) == null ) { android.util.Log.e ( android.net.IpSecTransform.TAG , "No active keepalive to stop" ) ; return ; } mKeepalive.stop ( ) ; } }
Source:
private void assertEqualsWithin ( long expected , long value , long fudgeFactor ) { long diff = java.lang.Math.abs ( ( expected - value ) ) ; assertTrue ( ( diff < fudgeFactor ) ) ; }

Target:
private void assertEqualsWithin ( long expected , long value , long fudgeFactor ) { long diff = java.lang.Math.abs ( ( expected - value ) ) ; org.junit.Assert.assertTrue ( ( diff < fudgeFactor ) ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { android.hardware.camera2.cts.helpers.MaybeNull.close ( mCamera ) ; mHandlerThread.quitSafely ( ) ; mHandler = null ; super . tearDown ( ) ; }

Target:
protected void tearDown ( ) throws java.lang.Exception { android.hardware.camera2.cts.helpers.MaybeNull.close ( mCamera ) ; android.hardware.camera2.cts.rs.RenderScriptSingleton.clearContext ( ) ; mHandlerThread.quitSafely ( ) ; mHandler = null ; super . tearDown ( ) ; }
Source:
static short $opt$CharToShort ( char a ) { return ( ( short ) ( a ) ) ; }

Target:
static int $opt$DoubleToInt ( double a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( int ) ( a ) ) ; }
Source:
public com.android.builder.model.AndroidProject getGradleProjectModel ( ) { com.android.builder.model.AndroidProject project = org.easymock.EasyMock.createNiceMock ( com.android.builder.model.AndroidProject.class ) ; org.easymock.EasyMock.expect ( project.getResourcePrefix ( ) ) . andReturn ( "unit_test_prefix_" ) . anyTimes ( ) ; org.easymock.EasyMock.replay ( project ) ; return project ; }

Target:
public com.android.builder.model.AndroidProject getGradleProjectModel ( ) { com.android.builder.model.AndroidProject project = org.mockito.Mockito.mock ( com.android.builder.model.AndroidProject.class ) ; org.mockito.Mockito.when ( project.getResourcePrefix ( ) ) . thenReturn ( "unit_test_prefix_" ) ; return project ; }
Source:
protected boolean isEnabled ( com.android.tools.lint.detector.api.Issue issue ) { java.lang.Class < ? extends com.android.tools.lint.detector.api.Detector > detectorClass = getDetector ( ) . getClass ( ) ; if ( ( issue.getDetectorClass ( ) ) == detectorClass ) { return true ; } return false ; }

Target:
protected boolean isEnabled ( com.android.tools.lint.detector.api.Issue issue ) { java.lang.Class < ? extends com.android.tools.lint.detector.api.Detector > detectorClass = getDetectorInstance ( ) . getClass ( ) ; if ( ( issue.getDetectorClass ( ) ) == detectorClass ) { return true ; } return false ; }
Source:
public void run ( ) { task.run ( ) ; }

Target:
public void run ( ) { java.lang.System.out.println ( "STARTING TASK" ) ; task.run ( ) ; java.lang.System.out.println ( "ENDING TASK" ) ; }
Source:
public java.lang.String getCdmaPrlVersion ( ) { return getCdmaPrlVersion ( android.telephony.TelephonyManager.getDefaultSubscription ( ) ) ; }

Target:
public void setSimPowerState ( boolean powerUp ) { setSimPowerStateForSlot ( getSlotIndex ( ) , powerUp ) ; }
Source:
public static native byte [ ] [ ] EC_GROUP_get_curve ( int groupRef ) ;

Target:
public static native byte [ ] i2d_DSAPrivateKey ( long dsa ) ;
Source:
protected java.lang.String getCurrentMode ( ) { if ( ( mModeStateMachine ) != null ) { return mModeStateMachine.getCurrentMode ( ) ; } return "WifiDisabled" ; }

Target:
protected java.lang.String getCurrentMode ( ) { if ( ( mModeStateMachine ) != null ) { return mModeStateMachine.getCurrentMode ( ) ; } return "WifiDisabledState" ; }
Source:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType.isCreate ( ) ) { node.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_SRC , "@android:drawable/btn_plus" ) ; } }

Target:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType.isCreate ( ) ) { node.setAttribute ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_SRC , "@android:drawable/btn_plus" ) ; } }
Source:
public android.bluetooth.le.AdvertisingSetParameters.Builder setAnonymouus ( boolean isAnonymous ) { this . isAnonymous = isAnonymous ; return this ; }

Target:
public android.bluetooth.le.AdvertisingSetParameters.Builder setAnonymous ( boolean isAnonymous ) { this . isAnonymous = isAnonymous ; return this ; }
Source:
com.android.build.gradle.AndroidSourceFile srcFile ( java.lang.Object o ) ;

Target:
com.android.build.gradle.AndroidSourceFile srcFile ( java.lang.Object srcPath ) ;
Source:
public void trimToSize ( ) { ( modCount ) ++ ; if ( ( size ) < ( elementData.length ) ) { elementData = java.util.Arrays.copyOf ( elementData , size ) ; } }

Target:
public void trimToSize ( ) { ( modCount ) ++ ; if ( ( size ) < ( elementData.length ) ) { elementData = ( ( size ) == 0 ) ? java.util.ArrayList.EMPTY_ELEMENTDATA : java.util.Arrays.copyOf ( elementData , size ) ; } }
Source:
private void expectRemoveInterfaceQuota ( java.lang.String iface ) throws java.lang.Exception { mNetworkManager.removeInterfaceQuota ( iface ) ; org.easymock.EasyMock.expectLastCall ( ) . atLeastOnce ( ) ; }

Target:
private void verifySetInterfaceQuota ( java.lang.String iface , long quotaBytes ) throws java.lang.Exception { org.mockito.Mockito.verify ( mNetworkManager , org.mockito.Mockito.atLeastOnce ( ) ) . setInterfaceQuota ( iface , quotaBytes ) ; }
Source:
private static java.util.Properties createSystemProperties ( ) { java.util.Properties p = new java.lang.System.PropertiesWithNonOverrideableDefaults ( java.lang.System.unchangeableSystemProperties ) ; p.put ( "java.io.tmpdir" , "/tmp" ) ; return p ; }

Target:
private static java.util.Properties createSystemProperties ( ) { java.util.Properties p = new java.lang.System.PropertiesWithNonOverrideableDefaults ( java.lang.System.unchangeableSystemProperties ) ; p.put ( "os.arch" , Libcore.os.uname ( ) . machine ) ; p.put ( "java.io.tmpdir" , "/tmp" ) ; return p ; }
Source:
public void onConnectSuccess ( ) { }

Target:
public void onConnectSuccess ( android.net.wifi.nan.WifiNanSession session ) { }
Source:
public final native float [ ] readFloatVector ( ) ;

Target:
private final native float [ ] readFloatVectorAsArray ( ) ;
Source:
public libcore.util.ZoneInfo makeTimeZone ( java.lang.String id ) throws java.io.IOException { libcore.util.ZoneInfo zoneInfo = cache.get ( id ) ; return zoneInfo == null ? null : ( ( libcore.util.ZoneInfo ) ( zoneInfo.clone ( ) ) ) ; }

Target:
public libcore.util.ZoneInfo makeTimeZone ( java.lang.String id ) throws java.io.IOException { checkNotClosed ( ) ; libcore.util.ZoneInfo zoneInfo = cache.get ( id ) ; return zoneInfo == null ? null : ( ( libcore.util.ZoneInfo ) ( zoneInfo.clone ( ) ) ) ; }
Source:
public void setDataProfile ( com.android.internal.telephony.dataconnection.DataProfile [ ] dps , boolean isRoaming , android.os.Message result ) { }

Target:
public void setInitialAttachApn ( android.telephony.data.DataProfile dataProfile , boolean isRoaming , android.os.Message result ) { }
Source:
public static native int EVP_PKEY_type ( int pkey ) ;

Target:
public static native java.lang.String ENGINE_get_id ( long engineRef ) ;
Source:
public void onCallStateChanged ( com.android.server.telecom.Call call , int oldState , int newState ) { updateCall ( call ) ; }

Target:
public void onCallStateChanged ( com.android.server.telecom.Call call , int oldState , int newState ) { if ( call.isSelfManaged ( ) ) { android.telecom.Log.i ( this , "onExternalCallChanged: skipped self-managed %s" , call ) ; return ; } updateCall ( call ) ; }
Source:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.core.CoreCompilationTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.compile.androidtree.core.CoreCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "core" ) ; }

Target:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.core.CoreCompilationTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.compile.androidtree.core.CoreCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "core-libart" ) ; }
Source:
private boolean optimize ( ) throws java.io.IOException { if ( configuration.verbose ) { java.lang.System.out.println ( "Optimizing..." ) ; } return new proguard.Optimizer ( configuration ) . execute ( programClassPool , libraryClassPool ) ; }

Target:
private void inlineSubroutines ( ) { if ( configuration.verbose ) { java.lang.System.out.println ( "Inlining subroutines..." ) ; } new proguard.SubroutineInliner ( configuration ) . execute ( programClassPool ) ; }
Source:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; }

Target:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 4444 ) ) ; }