auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void freeBitmap ( ) { junit.framework.Assert.assertTrue ( ( ( mBitmap ) != null ) ) ; onFreeBitmap ( mBitmap ) ; mBitmap = null ; }

Target:
private void freeBitmap ( ) { if ( ( mBitmap ) == null ) { throw new java.lang.AssertionError ( ) ; } onFreeBitmap ( mBitmap ) ; mBitmap = null ; }
Source:
public void validateUpdateParameterWithPasswordContainedInvalidPadding ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.UpdateParameter updateParam = android.net.wifi.hotspot2.pps.UpdateParameterTest.createUpdateParameter ( ) ; updateParam.base64EncodedPassword = ( updateParam.base64EncodedPassword ) + "=" ; org.junit.Assert.assertFalse ( updateParam.validate ( ) ) ; }

Target:
public void validateUpdateParameterWithoutTrustRootCertUrl ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.UpdateParameter updateParam = android.net.wifi.hotspot2.pps.UpdateParameterTest.createUpdateParameter ( ) ; updateParam.setTrustRootCertUrl ( null ) ; org.junit.Assert.assertFalse ( updateParam.validate ( ) ) ; }
Source:
public void setModel ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo rootViewInfo ) { mTreeViewer.setInput ( rootViewInfo ) ; }

Target:
public void setModel ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo rootViewInfo ) { mRootWrapper.setRoot ( rootViewInfo ) ; java.lang.Object [ ] expanded = mTreeViewer.getExpandedElements ( ) ; mTreeViewer.refresh ( ) ; mTreeViewer.setExpandedElements ( expanded ) ; }
Source:
public com.android.layoutlib.api.SceneResult insertChild ( java.lang.Object parentView , com.android.layoutlib.api.IXmlPullParser childXml , int index ) { return SceneStatus.NOT_IMPLEMENTED.getResult ( ) ; }

Target:
public com.android.layoutlib.api.SceneResult insertChild ( java.lang.Object parentView , com.android.layoutlib.api.IXmlPullParser childXml , java.lang.Object beforeSibling , com.android.layoutlib.api.LayoutScene.IAnimationListener listener ) { return SceneStatus.NOT_IMPLEMENTED.getResult ( ) ; }
Source:
public boolean onMenuItemClick ( android.view.MenuItem item ) { android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_VIEW ) ; intent.setClassName ( "com.android.phone" , "com.android.phone.SimContacts" ) ; startActivity ( intent ) ; return true ; }

Target:
public boolean onMenuItemClick ( android.view.MenuItem item ) { android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_VIEW ) ; intent.setClassName ( "com.android.phone" , "com.android.phone.settings.fdn.FdnList" ) ; startActivity ( intent ) ; return true ; }
Source:
private static com.android.build.SplitOutput getAbiOutput ( java.lang.String filter , int versionCode ) { return new com.android.ide.common.build.SplitOutputMatcherTest.FakeSplitOutput ( null , filter , versionCode ) ; }

Target:
private static com.android.build.VariantOutput getAbiOutput ( java.lang.String filter , int versionCode ) { return new com.android.ide.common.build.SplitOutputMatcherTest.FakeVariantOutput ( new com.android.ide.common.build.SplitOutputMatcherTest.FakeSplitOutput ( null , filter , versionCode ) ) ; }
Source:
public void removeListener ( org.eclipse.jface.viewers.ILabelProviderListener listener ) { }

Target:
public void controlResized ( org.eclipse.swt.events.ControlEvent e ) { updateColumnWidths ( ) ; }
Source:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; mPreferences = android.preference.PreferenceManager.getDefaultSharedPreferences ( this ) ; }

Target:
protected void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; mPreferences = android.preference.PreferenceManager.getDefaultSharedPreferences ( this . getApplicationContext ( ) ) ; }
Source:
public void onPause ( ) { super . onPause ( ) ; unregisterReceiver ( mBatteryInfoReceiver ) ; unregisterReceiver ( mConnectivityReceiver ) ; mHandler.removeMessages ( com.android.settings.deviceinfo.Status.EVENT_UPDATE_STATS ) ; }

Target:
public void onPause ( ) { super . onPause ( ) ; getContext ( ) . unregisterReceiver ( mBatteryInfoReceiver ) ; getContext ( ) . unregisterReceiver ( mConnectivityReceiver ) ; mHandler.removeMessages ( com.android.settings.deviceinfo.Status.EVENT_UPDATE_STATS ) ; }
Source:
public void testInstallApkWhichDoesNotStartWithZipLocalFileHeaderMagic ( ) throws java.lang.Exception { HEAD ( 2.0F ) ; }

Target:
public void testInstallApkWhichDoesNotStartWithZipLocalFileHeaderMagic ( ) throws java.lang.Exception { java.lang.String error = "Unknown failure" ; assertInstallFailsWithError ( "v1-only-starts-with-00000000-magic.apk" , error ) ; assertInstallFailsWithError ( "v2-only-starts-with-00000000-magic.apk" , error ) ; assertInstallFailsWithError ( "v1-only-starts-with-dex-magic.apk" , error ) ; assertInstallFailsWithError ( "v2-only-starts-with-dex-magic.apk" , error ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { com.android.sdkuilib.internal.widgets.DeviceCreationDialog dlg = new com.android.sdkuilib.internal.widgets.DeviceCreationDialog ( mShell , manager , mUpdaterData.getImageFactory ( ) , null ) ; if ( ( dlg.open ( ) ) == ( org.eclipse.jface.window.Window.OK ) ) { setupDevices ( menuBarDevices ) ; } }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { com.android.sdkuilib.internal.widgets.DeviceCreationDialog dlg = new com.android.sdkuilib.internal.widgets.DeviceCreationDialog ( mShell , mDeviceManager , mUpdaterData.getImageFactory ( ) , null ) ; if ( ( dlg.open ( ) ) == ( org.eclipse.jface.window.Window.OK ) ) { setupDevices ( menuBarDevices ) ; } }
Source:
void removeActiveDcByCid ( com.android.internal.telephony.dataconnection.DataConnection dc ) { com.android.internal.telephony.dataconnection.DataConnection removedDc = mDcListActiveByCid.remove ( dc.mCid ) ; if ( ( com.android.internal.telephony.dataconnection.DcController.DBG ) && ( removedDc == null ) ) { log ( ( "removeActiveDcByCid removedDc=null dc=" + dc ) ) ; } }

Target:
void removeActiveDcByCid ( com.android.internal.telephony.dataconnection.DataConnection dc ) { synchronized ( mDcListAll ) { com.android.internal.telephony.dataconnection.DataConnection removedDc = mDcListActiveByCid.remove ( dc.mCid ) ; if ( ( com.android.internal.telephony.dataconnection.DcController.DBG ) && ( removedDc == null ) ) { log ( ( "removeActiveDcByCid removedDc=null dc=" + dc ) ) ; } } }
Source:
protected void clean ( org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException { super . clean ( monitor ) ; org.eclipse.core.resources.IProject project = getProject ( ) ; removeMarkersFromContainer ( project , AndroidConstants.MARKER_AAPT_PACKAGE ) ; removeMarkersFromContainer ( project , AndroidConstants.MARKER_PACKAGING ) ; }

Target:
protected void clean ( org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException { super . clean ( monitor ) ; org.eclipse.core.resources.IProject project = getProject ( ) ; removeMarkersFromContainer ( project , AdtConstants.MARKER_AAPT_PACKAGE ) ; removeMarkersFromContainer ( project , AdtConstants.MARKER_PACKAGING ) ; }
Source:
private void showToast ( int resid ) { if ( ( mToast ) == null ) { mToast = com.android.music.Toast.makeText ( this , "" , Toast.LENGTH_SHORT ) ; } mToast.setText ( resid ) ; mToast.show ( ) ; }

Target:
private void showToast ( int resid ) { if ( ( mToast ) == null ) { mToast = android.widget.Toast.makeText ( this , "" , Toast.LENGTH_SHORT ) ; } mToast.setText ( resid ) ; mToast.show ( ) ; }
Source:
public final int compareTo ( E o ) { return ( ordinal ) - ( o.ordinal ( ) ) ; }

Target:
public final int compareTo ( E o ) { return ( ordinal ) - ( ( ( java.lang.Enum < ? > ) ( o ) ) . ordinal ) ; }
Source:
public void notifyCallForwardingIndicator ( ) { android.util.Log.e ( com.android.internal.telephony.PhoneBase.LOG_TAG , "Error! This function should never be executed, inactive CDMAPhone." ) ; }

Target:
public void notifyCallForwardingIndicator ( ) { android.telephony.Rlog.e ( com.android.internal.telephony.PhoneBase.LOG_TAG , "Error! This function should never be executed, inactive CDMAPhone." ) ; }
Source:
void onAdvertiseCallback ( int status , int advertiserId ) { if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( ( ( "onAdvertiseCallback,- advertiserId=" + advertiserId ) + ", status=" ) + status ) ) ; mAdvertiseManager.callbackDone ( advertiserId , status ) ; }

Target:
void onAdvertiseCallback ( int status ) { if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "onAdvertiseCallback status=" + status ) ) ; mAdvertiseManager.callbackDone ( 0 , status ) ; }
Source:
public void test_F32_1_SCALE05_20_inSqure ( ) { testReszie ( inX , inX , Element.DataType.FLOAT_32 , 1 , 0.5F , 2.0F ) ; }

Target:
public void test_F32_1_SCALE05_20_inSqure ( ) { testResize ( inX , inX , Element.DataType.FLOAT_32 , 1 , 0.5F , 2.0F ) ; }
Source:
public void onClick ( android.view.View v ) { getPassButton ( ) . setEnabled ( true ) ; setTestResultAndFinish ( true ) ; }

Target:
public void onClick ( android.view.View v ) { startActivity ( new android.content.Intent ( android.telephony.TelephonyManager.ACTION_CONFIGURE_VOICEMAIL ) . putExtra ( TelephonyManager.EXTRA_HIDE_PUBLIC_SETTINGS , true ) ) ; }
Source:
public void testVFE6 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.invoke_interface_range.d.T_invoke_interface_range_10" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testVFE15 ( ) { loadAndRun ( "dot.junit.opcodes.invoke_interface_range.d.T_invoke_interface_range_16" , java.lang.NoSuchMethodError.class , new dot.junit.opcodes.invoke_interface_range.ITestImpl ( ) ) ; }
Source:
public void cleanup ( ) { if ( ( com.android.bluetooth.sdp.SdpManager.sSdpSearchTracker ) != null ) { synchronized ( com.android.bluetooth.sdp.SdpManager.mTrackerLock ) { com.android.bluetooth.sdp.SdpManager.sSdpSearchTracker.clear ( ) ; } } if ( com.android.bluetooth.sdp.SdpManager.sNativeAvailable ) { cleanupNative ( ) ; com.android.bluetooth.sdp.SdpManager.sNativeAvailable = false ; } com.android.bluetooth.sdp.SdpManager.sSdpManager = null ; }

Target:
public void cleanup ( ) { if ( ( com.android.bluetooth.sdp.SdpManager.sSdpSearchTracker ) != null ) { synchronized ( com.android.bluetooth.sdp.SdpManager.TRACKER_LOCK ) { com.android.bluetooth.sdp.SdpManager.sSdpSearchTracker.clear ( ) ; } } if ( com.android.bluetooth.sdp.SdpManager.sNativeAvailable ) { cleanupNative ( ) ; com.android.bluetooth.sdp.SdpManager.sNativeAvailable = false ; } com.android.bluetooth.sdp.SdpManager.sSdpManager = null ; }
Source:
public static int $opt$noinline$notXorConstant ( int mask ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return 15 ^ ( ~ mask ) ; }

Target:
public static int $opt$noinline$notAndConstant ( int mask ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return 15 & ( ~ mask ) ; }
Source:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setSuitePlanBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 16 ; suitePlan_ = value ; onChanged ( ) ; return this ; }

Target:
public com.android.vts.proto.TestSuiteResultMessageProto.TestSuiteResultMessage.Builder setResultPathBytes ( com.android.vts.proto.ByteString value ) { if ( value == null ) { throw new java.lang.NullPointerException ( ) ; } bitField0_ |= 2 ; resultPath_ = value ; onChanged ( ) ; return this ; }
Source:
public void testAttrWithoutSlash ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "res/layout/divider.xml:7: Error: ?android:dividerHorizontal requires API level 11 (current min is 1) [NewApi]\n" + " android:divider=\"?android:dividerHorizontal\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "apicheck/minsdk1.xml=>AndroidManifest.xml" , "apicheck/divider.xml=>res/layout/divider.xml" ) ) ; }

Target:
public void testAttrWithoutSlash ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "res/layout/attribute.xml:4: Error: ?android:autoMirrored requires API level 19 (current min is 1) [NewApi]\n" + " android:enabled=\"?android:autoMirrored\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "apicheck/minsdk1.xml=>AndroidManifest.xml" , "apicheck/attribute.xml=>res/layout/attribute.xml" ) ) ; }
Source:
public int setProvisionedStringValue ( int item , java.lang.String value ) throws android.os.RemoteException { return ImsConfig.OperationStatusConstants.SUCCESS ; }

Target:
public int setConfig ( int item , java.lang.String value ) { replaceConfig ( new com.android.phone.testapps.imstestapp.TestImsConfigImpl.ConfigItem ( item , value ) ) ; return ImsConfig.OperationStatusConstants.SUCCESS ; }
Source:
private void destroy ( ) { if ( ( mNativePtr ) != 0 ) { if ( mOwnsNativeParcelObject ) { android.os.Parcel.nativeDestroy ( mNativePtr ) ; } mNativePtr = 0 ; } }

Target:
private void freeBuffer ( ) { if ( mOwnsNativeParcelObject ) { android.os.Parcel.nativeFreeBuffer ( mNativePtr ) ; } }
Source:
public void setup ( ) { put ( "Signature.FOO" , libcore.java.security.ProviderTest.MockSpi.class . getName ( ) ) ; }

Target:
public void setup ( ) { put ( "Signature.FOO" , libcore.java.security.ProviderTest.MockSpi.class . getName ( ) ) ; put ( "Signature.FOO SupportedKeyClasses" , libcore.java.security.ProviderTest.MockSpi.class . getName ( ) ) ; }
Source:
public void doExecute ( org.gradle.api.internal.html.SimpleHtmlWriter htmlWriter ) throws java.io.IOException { renderClasses ( htmlWriter ) ; }

Target:
public void doExecute ( com.android.build.gradle.internal.test.report.SimpleHtmlWriter htmlWriter ) throws java.io.IOException { renderClasses ( htmlWriter ) ; }
Source:
void addCall ( com.android.server.telecom.Call call ) { addCall ( call , call.getId ( ) ) ; }

Target:
void addCall ( com.android.server.telecom.Call call ) { addCall ( call , mCallInfo.getCallId ( call ) ) ; }
Source:
public void onClick ( android.content.DialogInterface dialog , int which ) { addUserNow ( userType ) ; if ( ! longMessageDisplayed ) { preferences.edit ( ) . putBoolean ( com.android.settings.users.UserSettings.KEY_ADD_USER_LONG_MESSAGE_DISPLAYED , true ) . apply ( ) ; } }

Target:
public void onClick ( android.content.DialogInterface dialog , int which ) { removeUserNow ( ) ; }
Source:
public void answerVideo ( java.lang.String callId , int videoState ) throws android.os.RemoteException { }

Target:
public void answerVideo ( java.lang.String callId , int videoState , android.telecom.Logging.Session.Info info ) throws android.os.RemoteException { }
Source:
public void setCallWaiting ( boolean enable , android.os.Message onComplete ) { mCM.setCallWaiting ( enable , CommandsInterface.SERVICE_CLASS_VOICE , onComplete ) ; }

Target:
public void getCallWaiting ( android.os.Message onComplete ) { mCi.queryCallWaiting ( CommandsInterface.SERVICE_CLASS_NONE , onComplete ) ; }
Source:
public static com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessProvider.AccessStatus getAccessStatus ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.NotNull com.intellij.openapi.fileEditor.impl.VirtualFile file ) { return com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessProvider.allAccessAllowed ( project ) ? com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessProvider.AccessStatus.ALLOWED : com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessProvider.getRegisteredFiles ( project ) . get ( file ) ; }

Target:
private com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessProvider.UnlockOption askToUnlock ( @ org.jetbrains.annotations.NotNull java.util.List < com.intellij.openapi.fileEditor.impl.VirtualFile > files ) { com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessDialog dialog = new com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessDialog ( myProject , files ) ; if ( ! ( dialog.showAndGet ( ) ) ) return null ; return dialog.getUnlockOption ( ) ; }
Source:
private java.lang.String toZoneOffsetStr ( java.lang.String expected ) { return expected.replaceAll ( "GMT(?:\\+00:00)|UTC|UT" , "Z" ) . replaceAll ( "(?:GMT|UTC)([+\\-]?[0-9]{2}:[0-9]{2})" , "$1" ) ; }

Target:
private java.lang.String toZoneOffsetStr ( java.lang.String expected ) { return expected.replaceAll ( "GMT(?:\\+00:00)?(?=])|UTC|UT" , "Z" ) . replaceAll ( "(?:GMT|UTC)([+\\-]?[0-9]{2}:[0-9]{2})" , "$1" ) ; }
Source:
private com.android.dialer.phonelookup.PhoneLookupInfo.Cp2Info.Cp2ContactInfo firstLocalContact ( com.android.dialer.phonelookup.PhoneLookupInfo phoneLookupInfo ) { if ( ( phoneLookupInfo.getCp2Info ( ) . getCp2ContactInfoCount ( ) ) > 0 ) { return phoneLookupInfo.getCp2Info ( ) . getCp2ContactInfo ( 0 ) ; } return null ; }

Target:
private com.android.dialer.phonelookup.PhoneLookupInfo.Cp2Info.Cp2ContactInfo firstLocalContact ( com.android.dialer.phonelookup.PhoneLookupInfo phoneLookupInfo ) { if ( ( phoneLookupInfo.getCp2LocalInfo ( ) . getCp2ContactInfoCount ( ) ) > 0 ) { return phoneLookupInfo.getCp2LocalInfo ( ) . getCp2ContactInfo ( 0 ) ; } return null ; }
Source:
java.io.OutputStream openWrite ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVFile file ) throws com.android.sched.util.file.WrongPermissionException { assert ! ( isClosed ( ) ) ; return file.getEncodedFile ( ) . openWrite ( ) ; }

Target:
java.io.InputStream openRead ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVFile file ) throws com.android.sched.util.file.WrongPermissionException { assert ! ( isClosed ( ) ) ; return file.getEncodedFile ( ) . openRead ( ) ; }
Source:
static void resetDiscoveryTestApiUpdateTimestamp ( java.lang.String dimension ) { com.google.gct.testing.dimension.GoogleCloudTestingDimension.lastDiscoveryTestApiUpdateTimestampMap.put ( dimension , java.lang.System.currentTimeMillis ( ) ) ; }

Target:
static void resetDiscoveryTestApiUpdateTimestamp ( java.lang.String dimension ) { com.google.gct.testing.dimension.CloudConfigurationDimension.lastDiscoveryTestApiUpdateTimestampMap.put ( dimension , java.lang.System.currentTimeMillis ( ) ) ; }
Source:
public int hashCode ( ) { return ( ( getClassName ( ) . hashCode ( ) ) * 31 ) + ( getTestName ( ) . hashCode ( ) ) ; }

Target:
public java.lang.String toString ( ) { java.lang.String deviceName = getDeviceName ( ) ; java.lang.String name = java.lang.String.format ( "%s#%s" , getClassName ( ) , getTestName ( ) ) ; if ( deviceName != null ) { name += java.lang.String.format ( " (%s)" , deviceName ) ; } return name ; }
Source:
public void onInitializeAccessibilityEvent ( android.view.accessibility.AccessibilityEvent event ) { event.setClassName ( android.widget.DatePicker.class . getName ( ) ) ; }

Target:
public java.lang.CharSequence getAccessibilityClassName ( ) { return android.widget.DatePicker.class . getName ( ) ; }
Source:
public void addI8 ( byte v ) { mN.addI8 ( v ) ; }

Target:
public void addI8 ( byte v ) { mN.addI8 ( v ) ; ( mPos ) ++ ; }
Source:
public com.android.tools.rpclib.binary.ObjectTypeID type ( ) { return ObjectFactory.ClassIdInfoID ; }

Target:
public com.android.tools.rpclib.binary.ObjectTypeID type ( ) { return ObjectFactory.AtomRangeTimerID ; }
Source:
public void testRun ( ) throws java.lang.Exception { java.lang.String expectedCmd = org.easymock.EasyMock.eq ( java.lang.String.format ( "am instrument -w -r %s/%s" , com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.TEST_PACKAGE , com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.TEST_RUNNER ) ) ; runAndVerify ( expectedCmd ) ; }

Target:
public void testRun ( ) throws java.lang.Exception { java.lang.String expectedCmd = org.easymock.EasyMock.eq ( java.lang.String.format ( "am instrument -w -r %s/%s" , com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.TEST_PACKAGE , com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.TEST_RUNNER ) ) ; runAndVerify ( expectedCmd ) ; }
Source:
private native void open ( java.lang.String name ) throws java.io.FileNotFoundException ;

Target:
private native void open0 ( java.lang.String name ) throws java.io.FileNotFoundException ;
Source:
public static void computeMax ( android.renderscript.cts.TestMax.ArgumentsCharCharChar args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( byte ) ( java.lang.StrictMath.max ( args.inV1 , args.inV2 ) ) ) ; }

Target:
public static void computeMax ( android.renderscript.cts.TestMax.ArgumentsUintUintUint args ) { args.out = android.renderscript.cts.CoreMathVerifier.maxU32 ( args.inV1 , args.inV2 ) ; }
Source:
protected void writeStyleSheet ( ) throws java.io.IOException { if ( com.android.tools.lint.HtmlReporter.USE_HOLO_STYLE ) { mWriter.write ( ( "<link rel=\"stylesheet\" type=\"text/css\" " + "href=\"http://fonts.googleapis.com/css?family=Roboto\">" ) ) ; } java.net.URL cssUrl = com.android.tools.lint.HtmlReporter.class . getResource ( com.android.tools.lint.HtmlReporter.CSS ) ; if ( mSimpleFormat ) { mWriter.write ( "<style>\n" ) ; @ java.lang.SuppressWarnings ( value = "resource" ) java.io.InputStream input = cssUrl.openStream ( ) ; byte [ ] bytes = com.google.common.io.ByteStreams.toByteArray ( input ) ; com.google.common.io.Closeables.closeQuietly ( input ) ; java.lang.String css = new java.lang.String ( bytes , com.google.common.base.Charsets.UTF_8 ) ; mWriter.write ( css ) ; mWriter.write ( "</style>\n" ) ; } else { java.lang.String ref = addLocalResources ( cssUrl ) ; if ( ref != null ) { mWriter.write ( ( ( "<link rel=\"stylesheet\" type=\"text/css\" href=\"" + ref ) + "\">\n" ) ) ; } } }

Target:
protected void writeStyleSheet ( ) throws java.io.IOException { if ( com.android.tools.lint.HtmlReporter.USE_HOLO_STYLE ) { mWriter.write ( ( "<link rel=\"stylesheet\" type=\"text/css\" " + "href=\"http://fonts.googleapis.com/css?family=Roboto\" />\n" ) ) ; } java.net.URL cssUrl = com.android.tools.lint.HtmlReporter.class . getResource ( com.android.tools.lint.HtmlReporter.CSS ) ; if ( mSimpleFormat ) { mWriter.write ( "<style>\n" ) ; @ java.lang.SuppressWarnings ( value = "resource" ) java.io.InputStream input = cssUrl.openStream ( ) ; byte [ ] bytes = com.google.common.io.ByteStreams.toByteArray ( input ) ; com.google.common.io.Closeables.closeQuietly ( input ) ; java.lang.String css = new java.lang.String ( bytes , com.google.common.base.Charsets.UTF_8 ) ; mWriter.write ( css ) ; mWriter.write ( "</style>\n" ) ; } else { java.lang.String ref = addLocalResources ( cssUrl ) ; if ( ref != null ) { mWriter.write ( ( ( "<link rel=\"stylesheet\" type=\"text/css\" href=\"" + ref ) + "\" />\n" ) ) ; } } }
Source:
public static int NegNeg2 ( int arg ) { int temp = - arg ; return temp + ( - temp ) ; }

Target:
public static int $noinline$NegNeg2 ( int arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int temp = - arg ; return temp + ( - temp ) ; }
Source:
public java.lang.StringBuffer format ( java.math.BigDecimal number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition ) { return format ( number , result , fieldPosition , false ) ; }

Target:
public synchronized void setSecondaryGroupingSize ( int width ) { properties.setSecondaryGroupingSize ( width ) ; refreshFormatter ( ) ; }
Source:
public java.util.Map < java.lang.String , com.android.ide.eclipse.adt.internal.resources.DeclareStyleableInfo > getDeclareStyleableList ( ) { return java.util.Collections.unmodifiableMap ( mStyleMap ) ; }

Target:
public java.util.Map < java.lang.String , com.android.ide.common.resources.platform.DeclareStyleableInfo > getDeclareStyleableList ( ) { return java.util.Collections.unmodifiableMap ( mStyleMap ) ; }
Source:
public boolean isUpdateFor ( com.android.sdklib.repository.descriptors.PkgDesc thisPkgDesc , com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { return ( thisPkgDesc.isGenericUpdateFor ( existingDesc ) ) && ( ( thisPkgDesc.getFullRevision ( ) . compareTo ( existingDesc.getFullRevision ( ) , PreviewComparison.COMPARE_TYPE ) ) == 0 ) ; }

Target:
public boolean isUpdateFor ( com.android.sdklib.repository.descriptors.PkgDesc thisPkgDesc , com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { return ( thisPkgDesc.isGenericUpdateFor ( existingDesc , PreviewComparison.COMPARE_NUMBER ) ) && ( ( thisPkgDesc.getFullRevision ( ) . compareTo ( existingDesc.getFullRevision ( ) , PreviewComparison.COMPARE_TYPE ) ) == 0 ) ; }
Source:
public native boolean isNativeDebuggable ( ) ;

Target:
public native boolean isDebuggerActive ( ) ;
Source:
public java.lang.String typeArgumentsName ( java.util.HashSet < java.lang.String > typeVars ) { if ( ( ( mTypeParameters ) == null ) || ( mTypeParameters.isEmpty ( ) ) ) { return "" ; } else { return com.google.doclava.TypeInfo.typeArgumentsName ( mTypeParameters , typeVars ) ; } }

Target:
public java.lang.String typeArgumentsName ( java.util.HashSet < java.lang.String > typeVars ) { if ( ! ( hasTypeParameters ( ) ) ) { return "" ; } else { return com.google.doclava.TypeInfo.typeArgumentsName ( mTypeParameters , typeVars ) ; } }
Source:
public android.bluetooth.le.ScanSettings build ( ) { return new android.bluetooth.le.ScanSettings ( mScanMode , mCallbackType , mScanResultType , mReportDelayMillis , mMatchMode , mNumOfMatchesPerFilter ) ; }

Target:
public android.bluetooth.le.ScanSettings build ( ) { return new android.bluetooth.le.ScanSettings ( mScanMode , mCallbackType , mScanResultType , mReportDelayMillis , mMatchMode , mNumOfMatchesPerFilter , mLegacy , mPhy ) ; }
Source:
public void test_RSA_size_null_key_Failure ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.RSA_size ( org.conscrypt.NativeCryptoTest.NULL_EVP_PKEY ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void test_RSA_private_encrypt_null_key_Failure ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.RSA_private_encrypt ( 0 , new byte [ 0 ] , new byte [ 0 ] , null , 0 ) ; fail ( "Expecting null pointer exception for RSA_private encrypt with null key" ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
public boolean isDataEnabled ( ) { return getDataEnabled ( getSubId ( android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ) ) ; }

Target:
public boolean getDataEnabled ( ) { return isUserMobileDataEnabled ( ) ; }
Source:
public boolean isTrue ( ) throws android.support.test.uiautomator.UiObjectNotFoundException { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( "OPEN" ) ) . exists ( ) ; }

Target:
public boolean isTrue ( ) throws android.support.test.uiautomator.UiObjectNotFoundException { return device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . description ( ( "Sign in " + email ) ) ) . exists ( ) ; }
Source:
protected void setServiceInterface ( android.os.IBinder binder ) { if ( binder == null ) { handleConnectionServiceDeath ( ) ; mCallsManager.handleConnectionServiceDeath ( this ) ; mServiceInterface = null ; } else { mServiceInterface = IConnectionService.Stub.asInterface ( binder ) ; addConnectionServiceAdapter ( mAdapter ) ; } }

Target:
protected void setServiceInterface ( android.os.IBinder binder ) { mServiceInterface = IConnectionService.Stub.asInterface ( binder ) ; android.telecom.Log.v ( this , "Adding Connection Service Adapter." ) ; addConnectionServiceAdapter ( mAdapter ) ; }
Source:
static char $opt$IntToChar ( int a ) { return ( ( char ) ( a ) ) ; }

Target:
static long $opt$FloatToLong ( float a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( long ) ( a ) ) ; }
Source:
public void test_parse_dd_MMMM_yyyy_w ( ) throws java.lang.Exception { org.apache.harmony.tests.java.text.SimpleDateFormatTest.checkPatternOnFixedDate ( "dd MMMM yyyy w" , "11 March 2002 11" ) ; }

Target:
public void test_parse_dd_MMMM_yyyy_w ( ) throws java.lang.Exception { java.util.Date d = new java.util.Date ( 1015822800000L ) ; java.lang.String pattern = "dd MMMM yyyy w" ; java.lang.String dateString = "11 March 2002 11" ; org.apache.harmony.tests.java.text.SimpleDateFormatTest.assertFormat ( d , pattern , dateString ) ; org.apache.harmony.tests.java.text.SimpleDateFormatTest.assertParse ( dateString , pattern , d ) ; }
Source:
native boolean nIncLoadSO ( int deviceApi ) ;

Target:
native boolean nIncLoadSO ( int deviceApi , java.lang.String libPath ) ;
Source:
public final char getChar ( int index ) { checkIndex ( index , SizeOf.CHAR ) ; return ( ( char ) ( this . block.peekShort ( ( ( offset ) + index ) , order ) ) ) ; }

Target:
public final short getShort ( int index ) { checkIndex ( index , SizeOf.SHORT ) ; return this . block.peekShort ( ( ( offset ) + index ) , order ) ; }
Source:
public void setAllowScansWithTraffic ( int enabled ) { mWifiConfigManager.mAlwaysEnableScansWhileAssociated.set ( enabled ) ; }

Target:
public void handleUserUnlock ( int userId ) { sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_USER_UNLOCK , userId ) ; }
Source:
public void xmlParsing_unknownCountryReturnsNull ( ) throws java.lang.Exception { libcore.util.TimeZoneFinder finder = libcore.util.TimeZoneFinderTest.validate ( ( "<timezones>\n" + ( ( " <countryzones>\n" + " </countryzones>\n" ) + "</timezones>\n" ) ) ) ; org.junit.Assert.assertNull ( finder.lookupTimeZonesByCountry ( "gb" ) ) ; }

Target:
public void xmlParsing_unknownCountryReturnsNull ( ) throws java.lang.Exception { libcore.util.TimeZoneFinder finder = libcore.util.TimeZoneFinderTest.validate ( ( "<timezones ianaversion=\"2017b\">\n" + ( ( " <countryzones>\n" + " </countryzones>\n" ) + "</timezones>\n" ) ) ) ; org.junit.Assert.assertNull ( finder.lookupTimeZonesByCountry ( "gb" ) ) ; }
Source:
public void establishZygoteConnectionForAbi ( java.lang.String abi ) { try { openZygoteSocketIfNeeded ( abi ) ; } catch ( android.os.ZygoteStartFailedEx ex ) { throw new java.lang.RuntimeException ( ( "Unable to connect to zygote for abi: " + abi ) , ex ) ; } }

Target:
public void establishZygoteConnectionForAbi ( java.lang.String abi ) { try { synchronized ( mLock ) { openZygoteSocketIfNeeded ( abi ) ; } } catch ( android.os.ZygoteStartFailedEx ex ) { throw new java.lang.RuntimeException ( ( "Unable to connect to zygote for abi: " + abi ) , ex ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) { Main.byteToLong ( ) ; Main.shortToLong ( ) ; Main.intToLong ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { Main.byteToLong ( ) ; Main.charToLong ( ) ; Main.shortToLong ( ) ; Main.intToLong ( ) ; }
Source:
public void endTraceSeed ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { composedStatus.pop ( ) ; }

Target:
public void endTraceSeed ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface type ) { composedStatus.pop ( ) ; for ( com.android.jack.analysis.tracer.TracerBrush brush : brushes ) { brush.endTraceSeed ( type ) ; } }
Source:
public com.android.util.Pair < com.android.resources.ResourceType , java.lang.String > resolveResourceValue ( int id ) { if ( ( mResIdValueToNameMap ) != null ) { return mResIdValueToNameMap.get ( id ) ; } return null ; }

Target:
public com.android.util.Pair < com.android.resources.ResourceType , java.lang.String > resolveResourceId ( int id ) { if ( ( mResIdValueToNameMap ) != null ) { return mResIdValueToNameMap.get ( id ) ; } return null ; }
Source:
public static java.lang.String getJavaDocPath ( java.lang.String javaDocOSLocation ) { java.lang.String javaDoc = javaDocOSLocation.replaceAll ( "\\\\" , AndroidConstants.WS_SEP ) ; if ( javaDoc.startsWith ( AndroidConstants.WS_SEP ) ) { return "file:" + javaDoc ; } return "file:/" + javaDoc ; }

Target:
public static java.lang.String getJavaDocPath ( java.lang.String javaDocOSLocation ) { java.lang.String javaDoc = javaDocOSLocation.replaceAll ( "\\\\" , AdtConstants.WS_SEP ) ; if ( javaDoc.startsWith ( AdtConstants.WS_SEP ) ) { return "file:" + javaDoc ; } return "file:/" + javaDoc ; }
Source:
public com.google.common.base.Objects.ToStringHelper add ( java.lang.String name , @ javax.annotation.Nullable java.lang.Object value ) { com.google.common.base.Preconditions.checkNotNull ( name ) ; addHolder ( value ) . builder.append ( name ) . append ( '=' ) . append ( value ) ; return this ; }

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:
boolean revealMethod ( java.lang.String fqmn , java.lang.String perspective ) ;

Target:
boolean revealMethod ( java.lang.String fqmn , java.lang.String fileName , int lineNumber , java.lang.String perspective ) ;
Source:
public com.android.ims.internal.IImsRcsFeature createRcsFeature ( int slotId , com.android.ims.internal.IImsFeatureStatusCallback c ) throws android.os.RemoteException { mStatusCallback = c ; return this . createRcsFeature ( slotId ) ; }

Target:
public android.telephony.ims.aidl.IImsRcsFeature createRcsFeature ( int slotId , com.android.ims.internal.IImsFeatureStatusCallback c ) { return this . createRcsFeature ( slotId ) ; }
Source:
public com.android.ims.internal.IImsUt getUtInterface ( int sessionId ) throws android.os.RemoteException { checkBinderConnection ( ) ; return getServiceInterface ( mBinder ) . getUtInterface ( sessionId ) ; }

Target:
public com.android.ims.internal.IImsUt getUtInterface ( ) throws android.os.RemoteException { checkBinderConnection ( ) ; return getServiceInterface ( mBinder ) . getUtInterface ( android.telephony.ims.ImsServiceProxyCompat.SERVICE_ID ) ; }
Source:
public java.lang.Boolean connectivityCheckAirplaneMode ( ) { try { return ( android.provider.Settings.System.getInt ( mService.getContentResolver ( ) , android.provider.Settings.Global.AIRPLANE_MODE_ON ) ) == ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.AIRPLANE_MODE_ON ) ; } catch ( android.provider.Settings.SettingNotFoundException e ) { return false ; } }

Target:
public java.lang.Boolean connectivityCheckAirplaneMode ( ) { try { return ( android.provider.Settings.Global.getInt ( mService.getContentResolver ( ) , android.provider.Settings.Global.AIRPLANE_MODE_ON ) ) == ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.AIRPLANE_MODE_ON ) ; } catch ( android.provider.Settings.SettingNotFoundException e ) { com.googlecode.android_scripting.Log.e ( "Settings.Global.AIRPLANE_MODE_ON not found!" ) ; return false ; } }
Source:
public com.android.sdklib.repository.descriptors.PkgType getType ( ) { return PkgType.PKG_TOOLS ; }

Target:
public boolean isUpdateFor ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.IPkgDesc existingDesc ) { if ( ( mCustomIsUpdateFor ) != null ) { return mCustomIsUpdateFor.isUpdateFor ( this , existingDesc ) ; } else { return isGenericUpdateFor ( existingDesc ) ; } }
Source:
public static void start ( ) { java.lang.Daemons.ReferenceQueueDaemon.INSTANCE.start ( ) ; java.lang.Daemons.FinalizerDaemon.INSTANCE.start ( ) ; java.lang.Daemons.FinalizerWatchdogDaemon.INSTANCE.start ( ) ; java.lang.Daemons.HeapTrimmerDaemon.INSTANCE.start ( ) ; java.lang.Daemons.GCDaemon.INSTANCE.start ( ) ; }

Target:
public static void start ( ) { java.lang.Daemons.ReferenceQueueDaemon.INSTANCE.start ( ) ; java.lang.Daemons.FinalizerDaemon.INSTANCE.start ( ) ; java.lang.Daemons.FinalizerWatchdogDaemon.INSTANCE.start ( ) ; java.lang.Daemons.HeapTaskDaemon.INSTANCE.start ( ) ; }
Source:
public boolean isTrue ( ) throws java.lang.Exception { return com.android.devtools.systemimage.uitest.utils.NetworkUtil.hasCellularNetworkConnection ( instrumentation ) ; }

Target:
public boolean isTrue ( ) { return dataSwitch.exists ( ) ; }
Source:
void onTosAccepted ( android.content.Context context ) ;

Target:
void onTosAccepted ( android.content.Context context , android.telecom.PhoneAccountHandle phoneAccountHandle ) ;
Source:
public com.android.build.gradle.internal.variant.BaseVariantData createVariantData ( @ com.android.annotations.NonNull com.android.builder.core.VariantConfiguration variantConfiguration ) { return new com.android.build.gradle.internal.variant.ApplicationVariantData ( variantConfiguration ) ; }

Target:
public com.android.build.gradle.internal.variant.BaseVariantData createVariantData ( @ com.android.annotations.NonNull com.android.builder.core.VariantConfiguration variantConfiguration ) { return new com.android.build.gradle.internal.variant.ApplicationVariantData ( basePlugin , variantConfiguration ) ; }
Source:
java.io.InputStream openRead ( ) throws com.android.sched.util.file.WrongPermissionException ;

Target:
com.android.sched.vfs.VPath getPathFromRoot ( ) ;
Source:
protected java.util.Map < K , java.util.Collection < V > > delegate ( ) { return unmodifiableMap ; }

Target:
public java.util.Collection < V > apply ( java.util.Collection < V > collection ) { return com.google.common.collect.Multimaps.unmodifiableValueCollection ( collection ) ; }
Source:
final void deleteByRedirectingToPrimarySuccessor ( ) { assert hasPrimarySuccessor ( ) ; com.android.jack.ir.ast.cfg.JBasicBlock primary = getPrimarySuccessor ( ) ; for ( com.android.jack.ir.ast.cfg.JBasicBlock pre : this . getPredecessorsSnapshot ( ) ) { pre.replaceAllSuccessors ( this , primary ) ; } dereferenceAllSuccessors ( ) ; }

Target:
final void deleteByRedirectingToPrimarySuccessor ( ) { assert hasPrimarySuccessor ( ) ; com.android.jack.ir.ast.cfg.JBasicBlock primary = getPrimarySuccessor ( ) ; this . replaceWith ( primary ) ; dereferenceAllSuccessors ( ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { com.android.hierarchyviewerlib.ui.CaptureDisplay.onWhite.setSelection ( true ) ; com.android.hierarchyviewerlib.ui.CaptureDisplay.onBlack.setSelection ( false ) ; com.android.hierarchyviewerlib.ui.CaptureDisplay.canvas.redraw ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { com.android.hierarchyviewerlib.ui.CaptureDisplay.sOnWhite.setSelection ( true ) ; com.android.hierarchyviewerlib.ui.CaptureDisplay.sOnBlack.setSelection ( false ) ; com.android.hierarchyviewerlib.ui.CaptureDisplay.sCanvas.redraw ( ) ; }
Source:
public void testShortFormLength ( ) throws java.lang.Exception { com.android.apksig.internal.test.MoreAsserts.assertByteBufferEquals ( new byte [ 0 ] , readDataValue ( "3000" ) . getEncodedContents ( ) ) ; com.android.apksig.internal.test.MoreAsserts.assertByteBufferEquals ( com.android.apksig.internal.test.HexEncoding.decode ( "010203" ) , readDataValue ( "3003010203" ) . getEncodedContents ( ) ) ; }

Target:
public void testShortFormLength ( ) throws java.lang.Exception { com.android.apksig.internal.test.MoreAsserts.assertByteBufferEquals ( new byte [ 0 ] , readDataValue ( "3000" ) . getEncodedContents ( ) ) ; com.android.apksig.internal.test.MoreAsserts.assertByteBufferEquals ( com.android.apksig.internal.util.HexEncoding.decode ( "010203" ) , readDataValue ( "3003010203" ) . getEncodedContents ( ) ) ; }
Source:
public java.text.CollationElementIterator getCollationElementIterator ( java.text.CharacterIterator source ) { if ( source == null ) { throw new java.lang.NullPointerException ( "source == null" ) ; } return new java.text.CollationElementIterator ( icuColl.getCollationElementIterator ( source ) ) ; }

Target:
public java.text.CollationElementIterator getCollationElementIterator ( java.text.CharacterIterator source ) { if ( source == null ) { throw new java.lang.NullPointerException ( "source == null" ) ; } return new java.text.CollationElementIterator ( collAsICU ( ) . getCollationElementIterator ( source ) ) ; }
Source:
public java.util.Collection < java.lang.String > getResourceConfigurations ( ) { return com.google.common.collect.Lists.newArrayList ( ) ; }

Target:
public java.util.Collection < java.lang.String > getResourceConfigurations ( ) { return productFlavor.getResourceConfigurations ( ) ; }
Source:
public java.lang.String telephonyGetDeviceId ( ) { return telephonyGetDeviceIdForSlotId ( mTelephonyManager.getDefaultSim ( ) ) ; }

Target:
public java.lang.String telephonyGetDeviceId ( ) { return telephonyGetDeviceIdForSlotId ( mTelephonyManager.getSlotIndex ( ) ) ; }
Source:
int f ( ) throws java.lang.Exception { g ( 1 ) ; g ( 2 ) ; for ( int i = 0 ; i < 10 ; i ++ ) { java.lang.Thread.sleep ( 0 ) ; } return 0 ; }

Target:
int $noinline$f ( ) throws java.lang.Exception { g ( 1 ) ; g ( 2 ) ; for ( int i = 0 ; i < 10 ; i ++ ) { java.lang.Thread.sleep ( 0 ) ; } return 0 ; }
Source:
public void run ( ) { try { movePackageInternal ( packageName , volumeUuid , moveId ) ; } catch ( com.android.server.pm.PackageManagerException e ) { android.util.Slog.w ( com.android.server.pm.PackageManagerService.TAG , ( "Failed to move " + packageName ) , e ) ; mMoveCallbacks.notifyStatusChanged ( moveId , PackageManager.MOVE_FAILED_INTERNAL_ERROR ) ; } }

Target:
public void run ( ) { try { movePackageInternal ( packageName , volumeUuid , moveId , user ) ; } catch ( com.android.server.pm.PackageManagerException e ) { android.util.Slog.w ( com.android.server.pm.PackageManagerService.TAG , ( "Failed to move " + packageName ) , e ) ; mMoveCallbacks.notifyStatusChanged ( moveId , PackageManager.MOVE_FAILED_INTERNAL_ERROR ) ; } }
Source:
private long getSecureLong ( java.lang.String name , long def ) { return Settings.Secure.getLong ( mResolver , name , def ) ; }

Target:
public long getUidTagPersistBytes ( long def ) { return getGlobalLong ( android.provider.Settings.Global.NETSTATS_UID_TAG_PERSIST_BYTES , def ) ; }
Source:
public void manageFeaturesAndProductions ( @ javax.annotation.Nonnull com.android.sched.util.config.Config config , @ javax.annotation.Nonnull com.android.sched.scheduler.FeatureSet features , @ javax.annotation.Nonnull com.android.sched.scheduler.ProductionSet productions ) { if ( config.get ( CodeCoverage.CODE_COVERVAGE ) . booleanValue ( ) ) { features.add ( com.android.jack.coverage.CodeCoverage.class ) ; productions.add ( com.android.jack.coverage.CodeCoverageMetadataFile.class ) ; } }

Target:
public com.android.sched.scheduler.FeatureSet getFeatures ( @ javax.annotation.Nonnull com.android.sched.util.config.Config config , @ javax.annotation.Nonnull com.android.sched.scheduler.Scheduler scheduler ) { com.android.sched.scheduler.FeatureSet set = scheduler.createFeatureSet ( ) ; if ( config.get ( CodeCoverage.CODE_COVERVAGE ) . booleanValue ( ) ) { set.add ( com.android.jack.coverage.CodeCoverage.class ) ; } return set ; }
Source:
public void removeAllRights ( ) { if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } _removeAllRights ( mUniqueId ) ; }

Target:
public int removeRights ( android.net.Uri uri ) { if ( ( null == uri ) || ( ( android.net.Uri.EMPTY ) == uri ) ) { throw new java.lang.IllegalArgumentException ( "Given uri is not valid" ) ; } return removeRights ( convertUriToPath ( uri ) ) ; }
Source:
public java.lang.String getName ( ) { return name ; }

Target:
public com.android.sched.vfs.VPath getPathFromRoot ( ) { return vfs.getPathFromRoot ( this ) ; }
Source:
public void visitBootstrapMethodsAttribute ( proguard.shrink.Clazz clazz , proguard.shrink.BootstrapMethodsAttribute bootstrapMethodsAttribute ) { bootstrapMethodsAttribute.u2bootstrapMethodsCount = shrinkArray ( bootstrapMethodsAttribute.bootstrapMethods , bootstrapMethodsAttribute.u2bootstrapMethodsCount ) ; }

Target:
public void visitBootstrapMethodsAttribute ( proguard.shrink.Clazz clazz , proguard.shrink.BootstrapMethodsAttribute bootstrapMethodsAttribute ) { int newBootstrapMethodsCount = shrinkBootstrapMethodArray ( bootstrapMethodsAttribute.bootstrapMethods , bootstrapMethodsAttribute.u2bootstrapMethodsCount ) ; if ( newBootstrapMethodsCount < ( bootstrapMethodsAttribute.u2bootstrapMethodsCount ) ) { bootstrapMethodsAttribute.u2bootstrapMethodsCount = newBootstrapMethodsCount ; bootstrapMethodRemapper.setConstantIndexMap ( bootstrapMethodIndexMap ) ; clazz.constantPoolEntriesAccept ( bootstrapMethodRemapper ) ; } }
Source:
public static int $noinline$intToFloatToInt ( int value ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return ( ( int ) ( ( float ) ( value ) ) ) ; }

Target:
public static short $noinline$floatToIntToShort ( float value ) { return ( ( short ) ( value ) ) ; }
Source:
private void enforceModifyPermissionOrCarrierPrivilege ( int subId ) { int permission = mApp.checkCallingOrSelfPermission ( android.Manifest.permission.MODIFY_PHONE_STATE ) ; if ( permission == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { return ; } com.android.phone.PhoneInterfaceManager.log ( "No modify permission, check carrier privilege next." ) ; enforceCarrierPrivilege ( subId ) ; }

Target:
public android.telephony.ims.aidl.IImsMmTelFeature getMmTelFeatureAndListen ( int slotId , com.android.ims.internal.IImsServiceFeatureCallback callback ) { enforceModifyPermission ( ) ; return com.android.internal.telephony.PhoneFactory.getImsResolver ( ) . getMmTelFeatureAndListen ( slotId , callback ) ; }
Source:
public com.google.devtools.common.options.testing.ConverterTesterMap.Builder addAll ( java.lang.Iterable < com.google.devtools.common.options.testing.ConverterTester > items ) { for ( com.google.devtools.common.options.testing.ConverterTester item : items ) { add ( item ) ; } return this ; }

Target:
public com.google.devtools.common.options.testing.ConverterTesterMap.Builder addAll ( java.lang.Iterable < com.google.devtools.common.options.testing.ConverterTester > items ) { items.forEach ( this :: add ) ; return this ; }
Source:
public void testAlternateFormatsContainsData ( ) throws java.lang.Exception { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata germanyAlternateFormats = com.google.i18n.phonenumbers.MetadataManager.getAlternateFormatsForCountry ( 49 ) ; assertNotNull ( germanyAlternateFormats ) ; assertTrue ( ( ( germanyAlternateFormats.numberFormats ( ) . size ( ) ) > 0 ) ) ; }

Target:
public void testAlternateFormatsContainsData ( ) throws java.lang.Exception { com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata germanyAlternateFormats = com.google.i18n.phonenumbers.MetadataManager.getAlternateFormatsForCountry ( 49 ) ; assertNotNull ( germanyAlternateFormats ) ; assertTrue ( ( ( germanyAlternateFormats.numberFormat.length ) > 0 ) ) ; }
Source:
static boolean isViablePhoneNumber ( java.lang.String number ) { if ( ( number.length ( ) ) < ( com.google.i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_FOR_NSN ) ) { return false ; } java.util.regex.Matcher m = com.google.i18n.phonenumbers.PhoneNumberUtil.VALID_PHONE_NUMBER_PATTERN.matcher ( number ) ; return m.matches ( ) ; }

Target:
static boolean isViablePhoneNumber ( java.lang.CharSequence number ) { if ( ( number.length ( ) ) < ( com.google.i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_FOR_NSN ) ) { return false ; } java.util.regex.Matcher m = com.google.i18n.phonenumbers.PhoneNumberUtil.VALID_PHONE_NUMBER_PATTERN.matcher ( number ) ; return m.matches ( ) ; }
Source:
public void setDataProfile ( com.android.internal.telephony.dataconnection.DataProfile [ ] dps , android.os.Message result ) ;

Target:
void setDataProfile ( com.android.internal.telephony.dataconnection.DataProfile [ ] dps , boolean isRoaming , android.os.Message result ) ;