auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void run ( ) { try { com.android.internal.statusbar.IStatusBarService statusbar = getStatusBarService ( ) ; if ( statusbar != null ) { statusbar.collapse ( ) ; } } catch ( android.os.RemoteException ex ) { mStatusBarService = null ; } }

Target:
public void run ( ) { try { com.android.internal.statusbar.IStatusBarService statusbar = getStatusBarService ( ) ; if ( statusbar != null ) { statusbar.collapsePanels ( ) ; } } catch ( android.os.RemoteException ex ) { mStatusBarService = null ; } }
Source:
public void testMixedFormat ( ) throws java.lang.Exception { mEnabled = com.android.tools.lint.checks.IconDetectorTest.ALL ; assertEquals ( ( "res/drawable-xhdpi/f.xml: Warning: The following images appear both as density independent .xml files and as bitmap files: res/drawable-hdpi/f.xml, res/drawable-mdpi/f.png [IconXmlAndPng]\n" + ( ( " res/drawable-mdpi/f.png: <No location-specific message\n" + " res/drawable-hdpi/f.xml: <No location-specific message\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "res/drawable-mdpi/frame.png=>res/drawable-mdpi/f.png" , "res/drawable/states.xml=>res/drawable-hdpi/f.xml" , "res/drawable/states.xml=>res/drawable-xhdpi/f.xml" ) ) ; }

Target:
public void testMixedFormat ( ) throws java.lang.Exception { mEnabled = com.android.tools.lint.checks.IconDetectorTest.ALL ; assertEquals ( ( "res/drawable-xxhdpi/f.xml: Warning: The following images appear both as density independent .xml files and as bitmap files: res/drawable-hdpi/f.xml, res/drawable-mdpi/f.png [IconXmlAndPng]\n" + ( ( ( " res/drawable-xhdpi/f.xml: <No location-specific message\n" + " res/drawable-mdpi/f.png: <No location-specific message\n" ) + " res/drawable-hdpi/f.xml: <No location-specific message\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "res/drawable-mdpi/frame.png=>res/drawable-mdpi/f.png" , "res/drawable/states.xml=>res/drawable-hdpi/f.xml" , "res/drawable/states.xml=>res/drawable-xhdpi/f.xml" , "res/drawable/states.xml=>res/drawable-xxhdpi/f.xml" ) ) ; }
Source:
public void applyTransportModeTransform ( java.net.Socket socket , android.net.IpSecTransform transform ) throws java.io.IOException { applyTransportModeTransform ( android.os.ParcelFileDescriptor.fromSocket ( socket ) , transform ) ; }

Target:
public void removeTransportModeTransform ( java.net.Socket socket , android.net.IpSecTransform transform ) throws java.io.IOException { try ( android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.fromSocket ( socket ) ) { removeTransportModeTransform ( pfd , transform ) ; } }
Source:
public java.io.FileDescriptor getFileDescriptor$ ( ) { if ( ( socket ) == ( this ) ) { return super . getFileDescriptor$ ( ) ; } else { return socket.getFileDescriptor$ ( ) ; } }

Target:
public java.io.FileDescriptor getFileDescriptor$ ( ) { if ( ( socket ) == ( this ) ) { return org.conscrypt.Platform.getFileDescriptorFromSSLSocket ( this ) ; } else { return org.conscrypt.Platform.getFileDescriptor ( socket ) ; } }
Source:
public int getHandle ( ) { return mHandle ; }

Target:
public long getNativeHandle ( ) { return mHandle ; }
Source:
static double $opt$IntToDouble ( int a ) { return ( ( double ) ( a ) ) ; }

Target:
static float $opt$ShortToFloat ( short a ) { if ( Main.doThrow ) throw new java.lang.Error ( ) ; return ( ( float ) ( a ) ) ; }
Source:
public void onClick ( android.content.DialogInterface dialog , int which ) { switchUserNow ( mAddedUserId ) ; }

Target:
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 ( ) ; } }
Source:
public void testLamba019 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( LAMBDA019 ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.LegacyToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . setWithDebugInfos ( true ) . compileAndRunTest ( ) ; }

Target:
public void testLamba019 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( LAMBDA019 ) . setSourceLevel ( SourceLevel.JAVA_8 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.LegacyBasedToolchain.class ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JackApiV01.class ) . setWithDebugInfos ( true ) . compileAndRunTest ( ) ; }
Source:
public static void computeDistance ( android.renderscript.cts.TestDistance.ArgumentsFloatFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 1 , 1 , false ) ; args.out = android.renderscript.cts.CoreMathVerifier.distance ( new float [ ] { args.inLhs } , new float [ ] { args.inRhs } , t ) ; }

Target:
public static void computeDistance ( android.renderscript.cts.TestDistance.ArgumentsFloatFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 1 , 1 , false ) ; args.out = android.renderscript.cts.CoreMathVerifier.distance ( new float [ ] { args.inLeftVector } , new float [ ] { args.inRightVector } , t ) ; }
Source:
public static void tearDownClass ( ) throws java.lang.Exception { com.android.jack.gwt.BinaryLookup.hooks.runHooks ( ) ; }

Target:
public static void tearDownClass ( ) throws java.lang.Exception { com.android.jack.gwt.BinaryLookup.hooks.runHooks ( ) ; com.android.sched.util.config.ThreadConfig.unsetConfig ( ) ; }
Source:
public void testInstall_unsuccessfulFirstUpdate_olderVersionThanSystem ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundle ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.OLDER_RULES_VERSION , "001" ) ; assertFalse ( installer.install ( bundle.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testInstall_unsuccessfulFirstUpdate_olderVersionThanSystem ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundle ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.OLDER_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneBundleInstaller.INSTALL_FAIL_RULES_TOO_OLD , installer.installWithErrorCode ( bundle.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }
Source:
private static native java.lang.String [ ] getTrackingEventMessages ( ) ;

Target:
private static native java.lang.String [ ] getTrackingEventMessages ( java.lang.Thread [ ] threads ) ;
Source:
protected proguard.gradle.FileCollection getInJarFiles ( ) throws proguard.gradle.ParseException { return getProject ( ) . files ( inJarFiles ) ; }

Target:
protected proguard.gradle.FileCollection getInJarFileCollection ( ) { return getProject ( ) . files ( inJarFiles ) ; }
Source:
public void setActions ( com.android.ddmuilib.actions.ICommonAction pushAction , com.android.ddmuilib.actions.ICommonAction pullAction , com.android.ddmuilib.actions.ICommonAction deleteAction ) { mPushAction = pushAction ; mPullAction = pullAction ; mDeleteAction = deleteAction ; }

Target:
public void setActions ( com.android.ddmuilib.actions.ICommonAction pushAction , com.android.ddmuilib.actions.ICommonAction pullAction , com.android.ddmuilib.actions.ICommonAction deleteAction , com.android.ddmuilib.actions.ICommonAction createNewFolderAction ) { mPushAction = pushAction ; mPullAction = pullAction ; mDeleteAction = deleteAction ; mCreateNewFolderAction = createNewFolderAction ; }
Source:
public static void computeNativeAtan2pi ( android.renderscript.cts.TestNativeAtan2pi.ArgumentsFloatFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( android.renderscript.cts.CoreMathVerifier.NATIVE_PRECISION , android.renderscript.cts.CoreMathVerifier.NATIVE_PRECISION , true ) ; args.out = android.renderscript.cts.CoreMathVerifier.atan2pi ( args.inY , args.inX , t ) ; }

Target:
public static void computeNativeAtan2pi ( android.renderscript.cts.TestNativeAtan2pi.ArgumentsFloatFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( android.renderscript.cts.CoreMathVerifier.NATIVE_PRECISION , android.renderscript.cts.CoreMathVerifier.NATIVE_PRECISION , true ) ; args.out = android.renderscript.cts.CoreMathVerifier.atan2pi ( args.inNumerator , args.inDenominator , t ) ; }
Source:
public java.lang.String getName ( ) { return Name ; }

Target:
public long getFromAtomId ( ) { return FromAtomId ; }
Source:
public java.util.List < com.android.jack.ir.ast.JMethod > getCallables ( ) { java.util.List < com.android.jack.ir.ast.JMethod > callables = getLambdaMethods ( ) ; callables.addAll ( getMethods ( ) ) ; return callables ; }

Target:
public java.util.Collection < com.android.jack.ir.ast.JMethod > getCallables ( ) { java.util.Collection < com.android.jack.ir.ast.JMethod > callables = getLambdaMethods ( ) ; callables.addAll ( getMethods ( ) ) ; return callables ; }
Source:
public void testNonTranslatable2 ( ) throws java.lang.Exception { TranslationDetector.COMPLETE_REGIONS = true ; assertEquals ( ( "values-nb/nontranslatable.xml:3: Error: Non-translatable resources should only " + "be defined in the base values/ folder" ) , lintProject ( "res/values/nontranslatable.xml=>res/values-nb/nontranslatable.xml" ) ) ; }

Target:
public void testNonTranslatable2 ( ) throws java.lang.Exception { TranslationDetector.COMPLETE_REGIONS = true ; assertEquals ( ( "res/values-nb/nontranslatable.xml:3: Error: Non-translatable resources should only be defined in the base values/ folder [ExtraTranslation]\n" + ( ( ( " <string name=\"dummy\" translatable=\"false\">Ignore Me</string>\n" + " ~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "res/values/nontranslatable.xml=>res/values-nb/nontranslatable.xml" ) ) ; }
Source:
static com.google.common.util.concurrent.RateLimiter createBursty ( com.google.common.util.concurrent.RateLimiter.SleepingTicker ticker , double permitsPerSecond , int maxBurstSize ) { com.google.common.util.concurrent.RateLimiter.Bursty rateLimiter = new com.google.common.util.concurrent.RateLimiter.Bursty ( ticker ) ; rateLimiter.setRate ( permitsPerSecond ) ; rateLimiter.maxPermits = maxBurstSize ; return rateLimiter ; }

Target:
private java.lang.Object mutex ( ) { java.lang.Object mutex = mutexDoNotUseDirectly ; if ( mutex == null ) { synchronized ( this ) { mutex = mutexDoNotUseDirectly ; if ( mutex == null ) { mutexDoNotUseDirectly = mutex = new java.lang.Object ( ) ; } } } return mutex ; }
Source:
public com.android.tools.rpclib.rpc.TypeKind getKind ( ) { return Kind ; }

Target:
public long getAtomId ( ) { return AtomId ; }
Source:
public com.android.sched.vfs.InputVDir getInputVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileOrDirectoryException { return dir.getInputVDir ( path ) ; }

Target:
public com.android.sched.vfs.InputVDir getInputVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileOrDirectoryException { assert ! ( closed ) ; return dir.getInputVDir ( path ) ; }
Source:
public E lower ( E e ) { return com.google.common.collect.Iterables.getFirst ( headSet ( e , false ) . descendingSet ( ) , null ) ; }

Target:
public E lower ( E e ) { return com.google.common.collect.Iterators.getNext ( headSet ( e , false ) . descendingIterator ( ) , null ) ; }
Source:
public synchronized void kill ( ) { if ( sendCommand ( com.android.ddmlib.EmulatorConsole.COMMAND_KILL ) ) { com.android.ddmlib.EmulatorConsole.RemoveConsole ( mPort ) ; } }

Target:
public synchronized void kill ( ) { if ( sendCommand ( com.android.ddmlib.EmulatorConsole.COMMAND_KILL ) ) { com.android.ddmlib.EmulatorConsole.removeConsole ( mPort ) ; try { mSocketChannel.close ( ) ; } catch ( java.io.IOException e ) { com.android.ddmlib.Log.w ( com.android.ddmlib.EmulatorConsole.LOG_TAG , "Failed to close EmulatorConsole channel" ) ; } } }
Source:
public java.util.Map < java.lang.String , java.lang.String > getNetworkExtra ( int netId , java.lang.String name ) { final java.lang.String extraString = getNetworkVariable ( netId , name ) ; return com.android.server.wifi.WifiNative.parseNetworkExtra ( extraString ) ; }

Target:
public int getFrameworkNetworkId ( int supplicantNetworkId ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return supplicantNetworkId ; } else { return mWifiSupplicantControl.getFrameworkNetworkId ( supplicantNetworkId ) ; } }
Source:
public javax.net.ssl.SSLSession getHandshakeSession ( ) { return sslParameters.handshakeSession ; }

Target:
public void setEnabledCipherSuites ( java.lang.String [ ] suites ) { sslParameters.setEnabledCipherSuites ( suites ) ; }
Source:
public java.lang.String getSmsFormat ( ) throws com.android.ims.ImsException { try { return mMmTelFeatureConnection.getSmsFormat ( ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getSmsFormat()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }

Target:
public java.lang.String getSmsFormat ( ) throws com.android.ims.ImsException { try { return mMmTelFeatureConnection.getSmsFormat ( ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getSmsFormat()" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }
Source:
public static void computeDegrees ( android.renderscript.cts.TestDegrees.ArgumentsFloatFloat args ) { args.ulf = 3 ; args.ulfRelaxed = 3 ; args.out = ( ( float ) ( ( ( double ) ( args.inValue ) ) * ( 180.0 / ( java.lang.StrictMath.PI ) ) ) ) ; }

Target:
public static void computeDegrees ( android.renderscript.cts.TestDegrees.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( ( ( args.inValue ) * ( ( float ) ( 180.0 / ( java.lang.Math.PI ) ) ) ) , 3 , 3 ) ; }
Source:
protected void onStop ( ) { if ( mRunning ) { mLog.log ( android.net.ip.ConnectivityPacketTracker.MARK_STOP ) ; } else { mLog.log ( ( ( android.net.ip.ConnectivityPacketTracker.MARK_STOP ) + " (packet listener stopped unexpectedly)" ) ) ; } }

Target:
protected void onStop ( ) { java.lang.String msg = ( android.text.TextUtils.isEmpty ( mDisplayName ) ) ? android.net.ip.ConnectivityPacketTracker.MARK_STOP : java.lang.String.format ( android.net.ip.ConnectivityPacketTracker.MARK_NAMED_STOP , mDisplayName ) ; if ( ! ( mRunning ) ) msg += " (packet listener stopped unexpectedly)" ; mLog.log ( msg ) ; }
Source:
public void testEnable ( ) { doEnable ( 0 ) ; }

Target:
public void testEnableDisable ( ) { doEnable ( 0 , false ) ; doDisable ( 0 , false ) ; }
Source:
public static org.conscrypt.OpenSSLKey getInstance ( javax.crypto.SecretKey key ) throws java.security.InvalidKeyException { try { return new org.conscrypt.OpenSSLKey ( org.conscrypt.NativeCrypto.EVP_PKEY_new_mac_key ( NativeCrypto.EVP_PKEY_HMAC , key.getEncoded ( ) ) ) ; } catch ( java.lang.Exception e ) { throw new java.security.InvalidKeyException ( e ) ; } }

Target:
public static org.conscrypt.OpenSSLKey getInstance ( javax.crypto.SecretKey key ) throws java.security.InvalidKeyException { try { return new org.conscrypt.OpenSSLKey ( org.conscrypt.NativeCrypto.EVP_PKEY_new_mac_key ( NativeConstants.EVP_PKEY_HMAC , key.getEncoded ( ) ) ) ; } catch ( java.lang.Exception e ) { throw new java.security.InvalidKeyException ( e ) ; } }
Source:
public void testVFE2 ( ) { try { new dot.junit.opcodes.invoke_interface.d.T_invoke_interface_4 ( ) . run ( ) ; fail ( "expected an IncompatibleClassChangeError" ) ; } catch ( java.lang.IncompatibleClassChangeError e ) { } }

Target:
public void testVFE14 ( ) { loadAndRun ( "dot.junit.opcodes.invoke_interface.d.T_invoke_interface_7" , java.lang.NoSuchMethodError.class , new dot.junit.opcodes.invoke_interface.ITestImpl ( ) ) ; }
Source:
public static void computeAbs ( android.renderscript.cts.TestAbs.ArgumentsIntUint args ) { args.out = java.lang.Math.abs ( args.inValue ) ; }

Target:
public static void computeAbs ( android.renderscript.cts.TestAbs.ArgumentsIntUint args ) { args.out = java.lang.Math.abs ( args.inN ) ; }
Source:
public void setChildren ( java.util.List < com.android.layoutlib.api.ViewInfo > children ) { mChildren = java.util.Collections.unmodifiableList ( children ) ; }

Target:
public void setChildren ( java.util.List < com.android.layoutlib.api.ViewInfo > children ) { if ( children != null ) { mChildren = java.util.Collections.unmodifiableList ( children ) ; } else { mChildren = java.util.Collections.emptyList ( ) ; } }
Source:
public boolean disable ( ) { try { return mManagerService.disable ( true ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public boolean disable ( boolean persist ) { try { return mManagerService.disable ( android.app.ActivityThread.currentPackageName ( ) , persist ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }
Source:
protected byte [ ] wrap ( byte content_type , org.conscrypt.DataStream dataStream ) { byte [ ] fragment = dataStream.getData ( org.conscrypt.SSLRecordProtocol.MAX_DATA_LENGTH ) ; return wrap ( content_type , fragment , 0 , fragment.length ) ; }

Target:
private byte [ ] wrap ( byte content_type , org.conscrypt.DataStream dataStream , int max_len ) { byte [ ] fragment = dataStream.getData ( max_len ) ; return wrap ( content_type , fragment , 0 , fragment.length ) ; }
Source:
public void testInstall_withMissingBundleVersionFile ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundleBuilder ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , 1 ) . clearVersionForTests ( ) . buildUnvalidated ( ) ; assertEquals ( TimeZoneBundleInstaller.INSTALL_FAIL_BAD_BUNDLE_STRUCTURE , installer.installWithErrorCode ( bundle.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testInstall_withMissingDistroVersionFile ( ) throws java.lang.Exception { libcore.tzdata.update2.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , 1 ) . clearVersionForTests ( ) . buildUnvalidated ( ) ; assertEquals ( TimeZoneBundleInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.installWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }
Source:
public void onCheckedChanged ( android.widget.CompoundButton buttonView , boolean isChecked ) { setImsVolteProvisionedState ( isChecked ) ; }

Target:
public void onCheckedChanged ( android.widget.CompoundButton buttonView , boolean isChecked ) { log ( ( "toggle radio power: currently " + ( isRadioOn ( ) ? "on" : "off" ) ) ) ; phone.setRadioPower ( isChecked ) ; }
Source:
public void run ( long sslSession ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_shutdown ( sslSession , null , org.conscrypt.NativeCryptoTest.DUMMY_CB ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void run ( long sslSession ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_shutdown ( sslSession , org.conscrypt.NativeCryptoTest.INVALID_FD , org.conscrypt.NativeCryptoTest.DUMMY_CB ) ; fail ( ) ; } catch ( java.net.SocketException expected ) { } }
Source:
public void callSessionResumeFailed ( com.android.ims.internal.IImsCallSession i , android.telephony.ims.ImsReasonInfo imsReasonInfo ) throws android.os.RemoteException { mNewListener.callSessionResumeFailed ( imsReasonInfo ) ; }

Target:
public void callSessionHandover ( com.android.ims.internal.IImsCallSession i , int srcAccessTech , int targetAccessTech , android.telephony.ims.ImsReasonInfo reasonInfo ) throws android.os.RemoteException { mNewListener.callSessionHandover ( srcAccessTech , targetAccessTech , reasonInfo ) ; }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotationLiteral ) { assert annotationLiteral == ( transformationRequestRoot.peek ( ) ) ; transformationRequestRoot.pop ( ) ; super . endVisit ( annotationLiteral ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotation annotation ) { assert annotation == ( transformationRequestRoot.peek ( ) ) ; transformationRequestRoot.pop ( ) ; super . endVisit ( annotation ) ; }
Source:
protected void onDataConnectionDetached ( ) { if ( DBG ) log ( "onDataConnectionDetached: stop polling and notify detached" ) ; stopNetStatPoll ( ) ; stopDataStallAlarm ( ) ; notifyDataConnection ( Phone.REASON_DATA_DETACHED ) ; }

Target:
protected void onDataConnectionDetached ( ) { if ( DBG ) log ( "onDataConnectionDetached: stop polling and notify detached" ) ; stopNetStatPoll ( ) ; stopDataStallAlarm ( ) ; notifyDataConnection ( Phone.REASON_DATA_DETACHED ) ; mAttached.set ( false ) ; }
Source:
com.android.build.gradle.internal.variant.TestVariantData getTestVariantData ( ) ;

Target:
com.android.build.gradle.internal.variant.TestVariantData getTestVariantData ( com.android.builder.core.VariantConfiguration.Type type ) ;
Source:
public void sendSessionModifyRequest ( android.telecom.VideoProfile fromProfile , android.telecom.VideoProfile toProfile ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = fromProfile ; args.arg2 = toProfile ; mProviderHandler.obtainMessage ( com.android.ims.internal.ImsVideoCallProvider.MSG_SEND_SESSION_MODIFY_REQUEST , args ) . sendToTarget ( ) ; }

Target:
public void sendSessionModifyRequest ( android.telecom.VideoProfile fromProfile , android.telecom.VideoProfile toProfile ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = fromProfile ; args.arg2 = toProfile ; mProviderHandler.obtainMessage ( android.telephony.ims.ImsVideoCallProvider.MSG_SEND_SESSION_MODIFY_REQUEST , args ) . sendToTarget ( ) ; }
Source:
protected void engineInit ( java.security.spec.AlgorithmParameterSpec genParamSpec , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException { throw new java.security.InvalidAlgorithmParameterException ( "No supported AlgorithmParameterSpec for AES parameter generation." ) ; }

Target:
protected void engineInit ( java.security.spec.AlgorithmParameterSpec genParamSpec , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException { throw new java.security.InvalidAlgorithmParameterException ( "No supported AlgorithmParameterSpec for GOST28147 parameter generation." ) ; }
Source:
public static java.io.FileDescriptor getFileDescriptorFromSSLSocket ( org.conscrypt.OpenSSLSocketImpl openSSLSocketImpl ) { return org.conscrypt.Platform.getFileDescriptor ( openSSLSocketImpl ) ; }

Target:
public static java.io.FileDescriptor getFileDescriptorFromSSLSocket ( org.conscrypt.AbstractConscryptSocket socket ) { return org.conscrypt.Platform.getFileDescriptor ( socket ) ; }
Source:
public void executeShellCommand ( java.lang.String command , com.android.ddmlib.IShellOutputReceiver receiver , int timeout ) throws com.android.ddmlib.TimeoutException , java.io.IOException { com.android.ddmlib.AdbHelper.executeRemoteCommand ( com.android.ddmlib.AndroidDebugBridge.getSocketAddress ( ) , command , this , receiver , timeout ) ; }

Target:
public void executeShellCommand ( java.lang.String command , com.android.ddmlib.IShellOutputReceiver receiver , int maxTimeToOutputResponse ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.ShellCommandUnresponsiveException , com.android.ddmlib.TimeoutException , java.io.IOException { com.android.ddmlib.AdbHelper.executeRemoteCommand ( com.android.ddmlib.AndroidDebugBridge.getSocketAddress ( ) , command , this , receiver , maxTimeToOutputResponse ) ; }
Source:
public static android.app.DialogFragment newInstance ( java.lang.String displayNumber , boolean isSpam , com.android.dialer.blocking.BlockReportSpamDialogs.OnConfirmListener positiveListener , @ android.support.annotation.Nullable android.content.DialogInterface.OnDismissListener dismissListener ) { com.android.dialer.blocking.BlockReportSpamDialogs.UnblockDialogFragment fragment = new com.android.dialer.blocking.BlockReportSpamDialogs.UnblockDialogFragment ( ) ; fragment.mDisplayNumber = displayNumber ; fragment.mIsSpam = isSpam ; fragment.mPositiveListener = positiveListener ; fragment.mDismissListener = dismissListener ; return fragment ; }

Target:
public static android.app.DialogFragment newInstance ( java.lang.String displayNumber , boolean isSpam , com.android.dialer.blocking.BlockReportSpamDialogs.OnConfirmListener positiveListener , @ android.support.annotation.Nullable android.content.DialogInterface.OnDismissListener dismissListener ) { com.android.dialer.blocking.BlockReportSpamDialogs.UnblockDialogFragment fragment = new com.android.dialer.blocking.BlockReportSpamDialogs.UnblockDialogFragment ( ) ; fragment.displayNumber = displayNumber ; fragment.isSpam = isSpam ; fragment.positiveListener = positiveListener ; fragment.dismissListener = dismissListener ; return fragment ; }
Source:
public void tearDown ( ) { mHandlerThread.quit ( ) ; }

Target:
public void tearDown ( ) { mTestLooperManager.release ( ) ; mHandlerThread.quit ( ) ; }
Source:
void addGeneratedSourceFolders ( @ com.android.annotations.NonNull org.gradle.api.Task task , @ com.android.annotations.NonNull java.io.File ... sourceFolders ) ;

Target:
void addJavaSourceFoldersToModel ( @ com.android.annotations.NonNull java.io.File ... sourceFolders ) ;
Source:
public < T extends java.lang.annotation.Annotation > T getAnnotation ( java.lang.Class < T > annotationClass ) { throw new java.lang.UnsupportedOperationException ( "Executable.getAnnotation(Class) not implemented" ) ; }

Target:
public < T extends java.lang.annotation.Annotation > T getAnnotation ( java.lang.Class < T > annotationClass ) { java.util.Objects.requireNonNull ( annotationClass ) ; return getAnnotationNative ( annotationClass ) ; }
Source:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback ) { requestNetwork ( request , networkCallback , 0 , 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 void testResourceType ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( ( ( ( "src/p1/p2/Flow.java:13: Error: Expected resource of type drawable [ResourceType]\n" + " resources.getDrawable(10); // ERROR\n" ) + " ~~\n" ) + "src/p1/p2/Flow.java:18: Error: Expected resource of type drawable [ResourceType]\n" ) + " resources.getDrawable(R.string.my_string); // ERROR\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) + "src/p1/p2/Flow.java:22: Error: Expected resource of type drawable [ResourceType]\n" ) + " myMethod(R.string.my_string); // ERROR\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) + "src/p1/p2/Flow.java:32: Error: Expected resource identifier (R.type.name) [ResourceType]\n" ) + " myAnyResMethod(50); // ERROR\n" ) + " ~~\n" ) + "4 errors, 0 warnings\n" ) ) , lintProject ( "src/p1/p2/Flow.java.txt=>src/p1/p2/Flow.java" , "src/android/support/annotation/DrawableRes.java.txt=>src/android/support/annotation/DrawableRes.java" ) ) ; }

Target:
public void testResourceType ( ) throws java.lang.Exception { assertEquals ( ( ( ( ( ( ( ( ( com.android.tools.lint.checks.SupportAnnotationDetectorTest.SDK_ANNOTATIONS_AVAILABLE ? "" + ( ( ( ( ( "src/p1/p2/Flow.java:13: Error: Expected resource of type drawable [ResourceType]\n" + " resources.getDrawable(10); // ERROR\n" ) + " ~~\n" ) + "src/p1/p2/Flow.java:18: Error: Expected resource of type drawable [ResourceType]\n" ) + " resources.getDrawable(R.string.my_string); // ERROR\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) : "" ) + "src/p1/p2/Flow.java:22: Error: Expected resource of type drawable [ResourceType]\n" ) + " myMethod(R.string.my_string); // ERROR\n" ) + " ~~~~~~~~~~~~~~~~~~\n" ) + "src/p1/p2/Flow.java:32: Error: Expected resource identifier (R.type.name) [ResourceType]\n" ) + " myAnyResMethod(50); // ERROR\n" ) + " ~~\n" ) + ( com.android.tools.lint.checks.SupportAnnotationDetectorTest.SDK_ANNOTATIONS_AVAILABLE ? "4 errors, 0 warnings\n" : "2 errors, 0 warnings\n" ) ) , lintProject ( "src/p1/p2/Flow.java.txt=>src/p1/p2/Flow.java" , "src/android/support/annotation/DrawableRes.java.txt=>src/android/support/annotation/DrawableRes.java" ) ) ; }
Source:
public void closeSupplicantConnection ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { localLog ( ( ( mInterfacePrefix ) + "closeSupplicantConnection" ) ) ; com.android.server.wifi.WifiNative.closeSupplicantConnectionNative ( ) ; } }

Target:
public void closeSupplicantConnection ( ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { localLog ( ( ( mInterfacePrefix ) + "closeSupplicantConnection" ) ) ; com.android.server.wifi.WifiNative.closeSupplicantConnectionNative ( ) ; } } }
Source:
private static java.lang.String getNotifTitle ( com.android.internal.location.GpsNetInitiatedHandler.GpsNiNotification notif ) { java.lang.String title = java.lang.String.format ( "Position Request" ) ; return title ; }

Target:
private static java.lang.String getNotifTitle ( com.android.internal.location.GpsNetInitiatedHandler.GpsNiNotification notif , android.content.Context context ) { java.lang.String title = java.lang.String.format ( context.getString ( R.string.gpsNotifTitle ) ) ; return title ; }
Source:
public synchronized void close ( ) throws java.io.IOException { if ( ! ( closed ) ) { if ( ( zipFile.getStatus ( ) ) == ( com.android.sched.util.file.StreamFileStatus.OPEN ) ) { zipFile.getOutputStream ( ) . close ( ) ; } closed = true ; } }

Target:
public synchronized void close ( ) throws java.io.IOException { if ( ! ( closed ) ) { outputStream.close ( ) ; closed = true ; } }
Source:
public void testSymmetry ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( RtlDetector.SYMMETRY ) ; assertEquals ( ( "" + ( ( ( "res/layout/relative.xml:29: Error: When you define %1$s you should probably also define %2$s for right-to-left symmetry [RtlSymmetry]\n" + " android:paddingRight=\"120dip\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "rtl/project-api17.properties=>project.properties" , "rtl/minsdk5targetsdk17.xml=>AndroidManifest.xml" , "rtl/relative.xml=>res/layout/relative.xml" ) ) ; }

Target:
public void testSymmetry ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( RtlDetector.SYMMETRY ) ; assertEquals ( ( "" + ( ( ( "res/layout/relative.xml:29: Error: When you define paddingRight you should probably also define paddingLeft for right-to-left symmetry [RtlSymmetry]\n" + " android:paddingRight=\"120dip\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "1 errors, 0 warnings\n" ) ) , lintProject ( "rtl/project-api17.properties=>project.properties" , "rtl/minsdk5targetsdk17.xml=>AndroidManifest.xml" , "rtl/relative.xml=>res/layout/relative.xml" ) ) ; }
Source:
public static double DoubleSubtraction ( ) { double a ; double b ; double c ; a = 6.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:
public void setTarget ( java.lang.String target ) { mTarget = com.android.ant.MultiApkExportTask.Target.getTarget ( target ) ; }

Target:
public void setTarget ( java.lang.String target ) { mTarget = com.android.sdklib.internal.export.MultiApkExportHelper.Target.getTarget ( target ) ; }
Source:
public void testImsConfigGetProvisionedValue ( ) throws java.lang.Exception { int testItem = 0 ; mTestImsConfig.getProvisionedValue ( testItem ) ; org.mockito.Mockito.verify ( mMockImsConfigInterface ) . getProvisionedValue ( org.mockito.Matchers.eq ( testItem ) ) ; }

Target:
public void testImsConfigGetProvisionedValue ( ) throws java.lang.Exception { int testItem = 0 ; mTestImsConfig.getProvisionedValue ( testItem ) ; org.mockito.Mockito.verify ( mMockImsConfigInterface ) . getConfigInt ( org.mockito.Matchers.eq ( testItem ) ) ; }
Source:
public static void computeMin ( android.renderscript.cts.TestMin.ArgumentsCharCharChar args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( byte ) ( java.lang.StrictMath.min ( args.inV1 , args.inV2 ) ) ) ; }

Target:
public static void computeMin ( android.renderscript.cts.TestMin.ArgumentsCharCharChar args ) { args.out = android.renderscript.cts.CoreMathVerifier.minI8 ( args.inV1 , args.inV2 ) ; }
Source:
public void read ( char [ ] mappingTable ) throws java.io.IOException { for ( int i = 0 ; i < ( mappingTable.length ) ; i ++ ) { mappingTable [ i ] = byteBuffer.getChar ( ) ; } }

Target:
public char [ ] read ( int length ) throws java.io.IOException { return com.ibm.icu.impl.ICUBinary.getChars ( byteBuffer , length , 0 ) ; }
Source:
native void rsnAllocationData2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , float [ ] d , int sizeBytes ) ;

Target:
native void rsnAllocationRead2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , int dt , int mSize , boolean usePadding ) ;
Source:
private boolean hasAcceptedTos ( ) { if ( isVvm3 ( ) ) { return ( preferences.getInt ( com.android.dialer.app.voicemail.error.VoicemailTosMessageCreator.PREF_VVM3_TOS_VERSION_ACCEPTED_KEY , 0 ) ) >= ( com.android.dialer.app.voicemail.error.VoicemailTosMessageCreator.CURRENT_VVM3_TOS_VERSION ) ; } else { return ( preferences.getInt ( com.android.dialer.app.voicemail.error.VoicemailTosMessageCreator.PREF_DIALER_TOS_VERSION_ACCEPTED_KEY , 0 ) ) >= ( com.android.dialer.app.voicemail.error.VoicemailTosMessageCreator.CURRENT_DIALER_TOS_VERSION ) ; } }

Target:
private boolean hasAcceptedTos ( ) { if ( isVvm3 ( ) ) { return ( preferences.getInt ( VoicemailVersionConstants.PREF_VVM3_TOS_VERSION_ACCEPTED_KEY , 0 ) ) >= ( com.android.voicemail.VoicemailVersionConstants.CURRENT_VVM3_TOS_VERSION ) ; } else { return ( preferences.getInt ( VoicemailVersionConstants.PREF_DIALER_TOS_VERSION_ACCEPTED_KEY , 0 ) ) >= ( com.android.voicemail.VoicemailVersionConstants.CURRENT_DIALER_TOS_VERSION ) ; } }
Source:
synchronized void nScriptSetVarObj ( long id , int slot , long val ) { validate ( ) ; rsnScriptSetVarObj ( mContext , id , slot , val ) ; }

Target:
void nIncObjDestroy ( long id ) { if ( ( mIncCon ) != 0 ) { rsnIncObjDestroy ( mIncCon , id ) ; } }
Source:
public static void computeFabs ( android.renderscript.cts.TestFabs.ArgumentsFloatFloat args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( float ) ( java.lang.StrictMath.abs ( args.in ) ) ) ; }

Target:
public static void computeFabs ( android.renderscript.cts.TestFabs.ArgumentsFloatFloat args ) { args.out = new android.renderscript.cts.Floaty ( java.lang.Math.abs ( args.in ) , 0 , 0 ) ; }
Source:
public static java.nio.channels.FileChannel newFileChannel ( java.lang.Object stream , java.io.FileDescriptor fd , int mode ) { return new java.nio.FileChannelImpl ( stream , fd , mode ) ; }

Target:
public static java.nio.channels.FileChannel newFileChannel ( java.io.Closeable ioObject , java.io.FileDescriptor fd , int mode ) { return new java.nio.FileChannelImpl ( ioObject , fd , mode ) ; }
Source:
protected void onStart ( ) { mLog.log ( android.net.ip.ConnectivityPacketTracker.MARK_START ) ; }

Target:
protected void onStart ( ) { final java.lang.String msg = ( android.text.TextUtils.isEmpty ( mDisplayName ) ) ? android.net.ip.ConnectivityPacketTracker.MARK_START : java.lang.String.format ( android.net.ip.ConnectivityPacketTracker.MARK_NAMED_START , mDisplayName ) ; mLog.log ( msg ) ; }
Source:
public void docdecl ( java.lang.String dd ) throws java.io.IOException { writer.write ( "<!DOCTYPE" ) ; writer.write ( dd ) ; writer.write ( ">" ) ; }

Target:
public void docdecl ( java.lang.String dd ) throws java.io.IOException { append ( "<!DOCTYPE" ) ; append ( dd ) ; append ( '>' ) ; }
Source:
public java.lang.Void doInBackground ( @ android.support.annotation.Nullable java.lang.Void input ) throws java.lang.Throwable { updateSmartDialDatabase ( ) ; return null ; }

Target:
public java.lang.Void doInBackground ( java.lang.Boolean forceUpdate ) throws java.lang.Throwable { updateSmartDialDatabase ( forceUpdate ) ; return null ; }
Source:
public void set ( org.eclipse.swt.graphics.Rectangle swtRect ) { set ( swtRect.x , swtRect.y , swtRect.width , swtRect.height ) ; }

Target:
public com.android.ide.eclipse.adt.editors.layout.gscripts.Rect set ( org.eclipse.swt.graphics.Rectangle swtRect ) { set ( swtRect.x , swtRect.y , swtRect.width , swtRect.height ) ; return this ; }
Source:
public static void computeMax ( android.renderscript.cts.TestMax.ArgumentsUshortUshortUshort args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( short ) ( java.lang.StrictMath.max ( ( ( args.inV1 ) & 65535 ) , ( ( args.inV2 ) & 65535 ) ) ) ) ; }

Target:
public static void computeClamp ( android.renderscript.cts.TestClamp.ArgumentsCharCharCharChar args ) { args.out = android.renderscript.cts.CoreMathVerifier.minI8 ( args.inMaxValue , android.renderscript.cts.CoreMathVerifier.maxI8 ( args.inValue , args.inMinValue ) ) ; }
Source:
void setState ( int mState ) { debugLog ( ( "Setting state to " + mState ) ) ; this . mState = mState ; }

Target:
void setState ( int mState ) { com.android.bluetooth.btservice.AdapterProperties.debugLog ( ( "Setting state to " + mState ) ) ; this . mState = mState ; }
Source:
public com.android.dx.io.DexBuffer.Section appendSection ( int maxByteCount , java.lang.String name ) { int limit = com.android.dx.io.DexBuffer.fourByteAlign ( ( ( length ) + maxByteCount ) ) ; com.android.dx.io.DexBuffer.Section result = new com.android.dx.io.DexBuffer.Section ( name , length , limit ) ; length = limit ; return result ; }

Target:
public com.android.dex.Dex.Section appendSection ( int maxByteCount , java.lang.String name ) { int limit = com.android.dex.Dex.fourByteAlign ( ( ( length ) + maxByteCount ) ) ; com.android.dex.Dex.Section result = new com.android.dex.Dex.Section ( name , length , limit ) ; length = limit ; return result ; }
Source:
public static com.android.sdklib.xml.ManifestData parseForData ( java.lang.String osManifestFilePath ) { return com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parse ( new com.android.sdklib.io.FileWrapper ( osManifestFilePath ) , true , null ) ; }

Target:
public static com.android.sdklib.xml.ManifestData parseForData ( java.lang.String osManifestFilePath ) { return com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parse ( new com.android.io.FileWrapper ( osManifestFilePath ) , true , null ) ; }
Source:
protected abstract void doCompileFiles ( java.util.List < org.eclipse.core.resources.IFile > filesToCompile , com.android.ide.eclipse.adt.internal.build.builders.BaseBuilder builder , org.eclipse.core.resources.IProject project , com.android.sdklib.IAndroidTarget projectTarget , int targetApi , java.util.List < org.eclipse.core.runtime.IPath > sourceFolders , java.util.List < org.eclipse.core.resources.IFile > notCompiledOut , org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException ;

Target:
protected abstract void doCompileFiles ( java.util.List < org.eclipse.core.resources.IFile > filesToCompile , com.android.ide.eclipse.adt.internal.build.builders.BaseBuilder builder , org.eclipse.core.resources.IProject project , com.android.sdklib.IAndroidTarget projectTarget , int targetApi , java.util.List < org.eclipse.core.runtime.IPath > sourceFolders , java.util.List < org.eclipse.core.resources.IFile > notCompiledOut , java.util.List < java.io.File > libraryProjectsOut , org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException ;
Source:
public int [ ] getCipherSuites ( ) { return new int [ ] { CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 , CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 , CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA , CipherSuite.TLS_RSA_WITH_AES_128_GCM_SHA256 , CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA256 , CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA } ; }

Target:
public int [ ] getCipherSuites ( ) { return new int [ ] { CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 , CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 , CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA , CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 , CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 , CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA , CipherSuite.TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 , CipherSuite.TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 , CipherSuite.TLS_DHE_DSS_WITH_AES_128_CBC_SHA , CipherSuite.TLS_RSA_WITH_AES_128_GCM_SHA256 , CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA256 , CipherSuite.TLS_RSA_WITH_AES_128_CBC_SHA } ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s#%s" , getClassName ( ) , getTestName ( ) ) ; }

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 setOutputFile ( @ com.android.annotations.NonNull java.io.File outputFile ) { variantData.packageApplicationTask.setOutputFile ( outputFile ) ; }

Target:
public void setOutputFile ( @ com.android.annotations.NonNull java.io.File outputFile ) { if ( ( variantData.zipAlignTask ) != null ) { variantData.zipAlignTask.setOutputFile ( outputFile ) ; } else { variantData.packageApplicationTask.setOutputFile ( outputFile ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { mContext = android.support.test.InstrumentationRegistry.getTargetContext ( ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; if ( ( android.os.Looper.myLooper ( ) ) == null ) { android.os.Looper.prepare ( ) ; } }

Target:
public void setUp ( ) throws java.lang.Exception { mContext = android.support.test.InstrumentationRegistry.getTargetContext ( ) ; mMockitoHelper.setUp ( mContext , getClass ( ) ) ; org.mockito.MockitoAnnotations.initMocks ( this ) ; }
Source:
public long getPrimaryStorageSize ( ) { return android.os.FileUtils.roundStorageSize ( android.os.Environment.getDataDirectory ( ) . getTotalSpace ( ) ) ; }

Target:
public long getPrimaryStorageSize ( ) { return android.os.FileUtils.roundStorageSize ( ( ( android.os.Environment.getDataDirectory ( ) . getTotalSpace ( ) ) + ( android.os.Environment.getRootDirectory ( ) . getTotalSpace ( ) ) ) ) ; }
Source:
public com.android.ahat.DocString render ( com.android.tools.perflib.heap.Instance element ) { return com.android.ahat.Value.render ( mSnapshot , element ) ; }

Target:
public com.android.ahat.DocString render ( com.android.ahat.heapdump.AhatInstance element ) { return com.android.ahat.Summarizer.summarize ( element ) ; }
Source:
public void valueChanged ( com.android.tools.chartlib.LayoutComponent.SliceSelectionEvent e ) { com.android.tools.chartlib.ValuedTreeNode node = e.getNode ( ) ; info.setText ( ( node == null ? "<No selection>" : java.lang.String.format ( "Value %d Count %d" , node.getValue ( ) , node.getCount ( ) ) ) ) ; }

Target:
public void valueChanged ( com.android.tools.chartlib.SunburstComponent.SliceSelectionEvent e ) { com.android.tools.chartlib.ValuedTreeNode node = e.getNode ( ) ; info.setText ( ( node == null ? "<No selection>" : java.lang.String.format ( "Value %d Count %d" , node.getValue ( ) , node.getCount ( ) ) ) ) ; }
Source:
public native long getSpace ( java.io.File f , int t ) ;

Target:
public java.lang.String [ ] list ( java.io.File f ) { dalvik.system.BlockGuard.getThreadPolicy ( ) . onReadFromDisk ( ) ; return list0 ( f ) ; }
Source:
java.lang.String getBaseName ( ) { return mChooseAssetPage.getOutputName ( ) ; }

Target:
public void addPages ( ) { mValues.project = mInitialProject ; mChooseAssetPage = new com.android.ide.eclipse.adt.internal.assetstudio.ChooseAssetTypePage ( mValues ) ; mConfigureAssetPage = new com.android.ide.eclipse.adt.internal.assetstudio.ConfigureAssetSetPage ( mValues ) ; addPage ( mChooseAssetPage ) ; addPage ( mConfigureAssetPage ) ; }
Source:
public void onVirtualCableUnplug ( ) { android.util.Log.d ( android.bluetooth.BluetoothHidDeviceCallback.TAG , "onVirtualCableUnplug" ) ; }

Target:
public void onIntrData ( android.bluetooth.BluetoothDevice device , byte reportId , byte [ ] data ) { android.util.Log.d ( android.bluetooth.BluetoothHidDeviceCallback.TAG , ( ( ( "onIntrData: device=" + device ) + " reportId=" ) + reportId ) ) ; }
Source:
public void testConstructor_NullStartDate_Failure ( ) throws java.lang.Exception { try { new android.security.KeyPairGeneratorSpec ( getContext ( ) , android.security.KeyPairGeneratorSpecTest.TEST_ALIAS_1 , android.security.KeyPairGeneratorSpecTest.TEST_DN_1 , android.security.KeyPairGeneratorSpecTest.SERIAL_1 , null , android.security.KeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS , 0 ) ; fail ( "Should throw IllegalArgumentException when startDate is null" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }

Target:
public void testConstructor_NullSubjectDN_Failure ( ) throws java.lang.Exception { try { new android.security.KeyPairGeneratorSpec ( getContext ( ) , android.security.KeyPairGeneratorSpecTest.TEST_ALIAS_1 , "RSA" , 1024 , null , null , android.security.KeyPairGeneratorSpecTest.SERIAL_1 , android.security.KeyPairGeneratorSpecTest.NOW , android.security.KeyPairGeneratorSpecTest.NOW_PLUS_10_YEARS , 0 ) ; fail ( "Should throw IllegalArgumentException when subjectDN is null" ) ; } catch ( java.lang.IllegalArgumentException success ) { } }
Source:
public void onScheduledRecordingRemoved ( com.android.tv.dvr.ScheduledRecording ... scheduledRecordings ) { super . onScheduledRecordingRemoved ( scheduledRecordings ) ; if ( ( getRowsAdapter ( ) . size ( ) ) == 0 ) { showEmptyMessage ( R.string.dvr_schedules_empty_state ) ; } }

Target:
public void onScheduledRecordingRemoved ( com.android.tv.dvr.data.ScheduledRecording ... scheduledRecordings ) { super . onScheduledRecordingRemoved ( scheduledRecordings ) ; if ( ( getRowsAdapter ( ) . size ( ) ) == 0 ) { showEmptyMessage ( R.string.dvr_schedules_empty_state ) ; } }
Source:
public static boolean getDisplayAdvancedDevices ( android.content.Context context ) { return android.preference.PreferenceManager.getDefaultSharedPreferences ( context ) . getBoolean ( com.android.documentsui.LocalPreferences.KEY_ADVANCED_DEVICES , false ) ; }

Target:
public static boolean getDisplayAdvancedDevices ( android.content.Context context ) { boolean defaultAdvanced = context.getResources ( ) . getBoolean ( R.bool.config_defaultAdvancedDevices ) ; return android.preference.PreferenceManager.getDefaultSharedPreferences ( context ) . getBoolean ( com.android.documentsui.LocalPreferences.KEY_ADVANCED_DEVICES , defaultAdvanced ) ; }
Source:
public com.android.build.gradle.integration.common.fixture.app.LargeTestProject.Builder withType ( @ com.android.annotations.NonNull com.android.build.gradle.integration.common.fixture.app.LargeTestProject.ProjectType type ) { this . type = type ; return this ; }

Target:
public com.android.build.gradle.integration.common.fixture.app.LargeTestProject.Builder withModule ( @ com.android.annotations.NonNull java.lang.Class < ? extends com.android.build.gradle.integration.common.fixture.app.GradleModule > moduleClass ) { this . moduleClass = moduleClass ; return this ; }
Source:
public static native int EVP_SignFinal ( int ctx , byte [ ] signature , int offset , int key ) ;

Target:
public static native void EVP_SignUpdate ( long ctx , byte [ ] buffer , int offset , int length ) ;