auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static int convertHalState ( int halState ) { switch ( halState ) { case com.android.bluetooth.hid.HidDeviceService.CONN_STATE_CONNECTED : return android.bluetooth.BluetoothProfile.STATE_CONNECTED ; case com.android.bluetooth.hid.HidDeviceService.CONN_STATE_CONNECTING : return android.bluetooth.BluetoothProfile.STATE_CONNECTING ; case com.android.bluetooth.hid.HidDeviceService.CONN_STATE_DISCONNECTED : return android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; case com.android.bluetooth.hid.HidDeviceService.CONN_STATE_DISCONNECTING : return android.bluetooth.BluetoothProfile.STATE_DISCONNECTING ; default : return android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; } }

Target:
private static int convertHalState ( int halState ) { switch ( halState ) { case com.android.bluetooth.hid.HidDeviceService.HAL_CONN_STATE_CONNECTED : return android.bluetooth.BluetoothProfile.STATE_CONNECTED ; case com.android.bluetooth.hid.HidDeviceService.HAL_CONN_STATE_CONNECTING : return android.bluetooth.BluetoothProfile.STATE_CONNECTING ; case com.android.bluetooth.hid.HidDeviceService.HAL_CONN_STATE_DISCONNECTED : return android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; case com.android.bluetooth.hid.HidDeviceService.HAL_CONN_STATE_DISCONNECTING : return android.bluetooth.BluetoothProfile.STATE_DISCONNECTING ; default : return android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ; } }
Source:
protected void engineUpdate ( byte [ ] input , int offset , int len ) { final org.conscrypt.OpenSSLDigestContext ctxLocal = ctx ; org.conscrypt.NativeCrypto.EVP_DigestUpdate ( ctxLocal , input , offset , len ) ; }

Target:
protected void engineUpdate ( byte [ ] input , int offset , int len ) { final org.conscrypt.NativeRef.EVP_MD_CTX ctxLocal = ctx ; org.conscrypt.NativeCrypto.EVP_DigestUpdate ( ctxLocal , input , offset , len ) ; }
Source:
public void onPopulateAccessibilityEvent ( android.view.accessibility.AccessibilityEvent event ) { super . onPopulateAccessibilityEvent ( event ) ; mDelegate.onPopulateAccessibilityEvent ( event ) ; }

Target:
public void onPopulateAccessibilityEventInternal ( android.view.accessibility.AccessibilityEvent event ) { super . onPopulateAccessibilityEventInternal ( event ) ; mDelegate.onPopulateAccessibilityEvent ( event ) ; }
Source:
public void setExtra ( byte [ ] data ) { if ( ( data == null ) || ( ( data.length ) <= 65535 ) ) { extra = data ; } else { throw new java.lang.IllegalArgumentException ( ) ; } }

Target:
public void setExtra ( byte [ ] data ) { if ( ( data != null ) && ( ( data.length ) > 65535 ) ) { throw new java.lang.IllegalArgumentException ( ( "Extra data too long: " + ( data.length ) ) ) ; } extra = data ; }
Source:
public void onCallUpdateFailed ( com.android.ims.ImsCall call , com.android.ims.ImsReasonInfo reasonInfo ) { onCallError ( call , reasonInfo ) ; }

Target:
public void onCallUpdateFailed ( com.android.ims.ImsCall call , android.telephony.ims.ImsReasonInfo reasonInfo ) { onCallError ( call , reasonInfo ) ; }
Source:
public static native void enableMethodTracing ( java.lang.Class < ? > methodClass , java.lang.reflect.Method entryMethod , java.lang.reflect.Method exitMethod , java.lang.Thread thr ) ;

Target:
public static native void enableTracing ( java.lang.Class < ? > methodClass , java.lang.reflect.Method entryMethod , java.lang.reflect.Method exitMethod , java.lang.reflect.Method fieldAccess , java.lang.reflect.Method fieldModify , java.lang.Thread thr ) ;
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < java.lang.Iterable < T > > hasItems ( T ... elements ) { return org.hamcrest.collection.IsCollectionContaining.hasItems ( elements ) ; }

Target:
public static < T > org.hamcrest.org.hamcrest.Matcher < T > in ( T [ ] elements ) { return org.hamcrest.collection.IsIn.< T > in ( elements ) ; }
Source:
public void removeImsFeatureStatusCallback ( com.android.ims.internal.IImsFeatureStatusCallback c ) { if ( c == null ) { return ; } synchronized ( mStatusCallbacks ) { mStatusCallbacks.remove ( c ) ; } }

Target:
public final void removeCapabilityCallback ( android.telephony.ims.aidl.IImsCapabilityCallback c ) { mCapabilityCallbacks.unregister ( c ) ; }
Source:
private static java.lang.String getSystemIndependentSourcePath ( @ com.android.annotations.NonNull com.android.ide.common.blame.output.GradleMessage message ) { java.lang.String sourcePath = message.getSourcePath ( ) ; return sourcePath == null ? null : sourcePath.replace ( '\\' , '/' ) ; }

Target:
private static java.lang.String getSystemIndependentSourcePath ( @ com.android.annotations.NonNull com.android.ide.common.blame.Message message ) { java.lang.String sourcePath = message.getSourcePath ( ) ; return sourcePath == null ? null : sourcePath.replace ( '\\' , '/' ) ; }
Source:
public boolean isEnabled ( android.content.Context context ) { return ( ( Build.VERSION.SDK_INT ) > ( Build.VERSION_CODES.M ) ) || ( android.support.v4.os.BuildCompat.isAtLeastN ( ) ) ; }

Target:
public boolean isEnabled ( android.content.Context context ) { if ( com.android.tv.util.Utils.isDeveloper ( ) ) { return true ; } return ( ( Build.VERSION.SDK_INT ) > ( Build.VERSION_CODES.M ) ) || ( android.support.v4.os.BuildCompat.isAtLeastN ( ) ) ; }
Source:
public int getCarrierPrivilegeStatusForCurrentTransaction ( android.content.pm.PackageManager packageManager ) { com.android.internal.telephony.uicc.UiccCarrierPrivilegeRules carrierPrivilegeRules = getCarrierPrivilegeRules ( ) ; return carrierPrivilegeRules == null ? android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED : carrierPrivilegeRules.getCarrierPrivilegeStatusForCurrentTransaction ( packageManager ) ; }

Target:
public int getCarrierPrivilegeStatus ( android.content.pm.Signature signature , java.lang.String packageName ) { if ( ( mUiccProfile ) != null ) { return mUiccProfile.getCarrierPrivilegeStatus ( signature , packageName ) ; } else { return android.telephony.TelephonyManager.CARRIER_PRIVILEGE_STATUS_RULES_NOT_LOADED ; } }
Source:
public static byte [ ] networkPortionToCalledPartyBCDWithLength ( java.lang.String s ) { java.lang.String networkPortion = android.telephony.PhoneNumberUtils.extractNetworkPortion ( s ) ; return android.telephony.PhoneNumberUtils.numberToCalledPartyBCDHelper ( networkPortion , true ) ; }

Target:
public static byte [ ] networkPortionToCalledPartyBCDWithLength ( java.lang.String s ) { java.lang.String networkPortion = android.telephony.PhoneNumberUtils.extractNetworkPortion ( s ) ; return android.telephony.PhoneNumberUtils.numberToCalledPartyBCDHelper ( networkPortion , true , android.telephony.PhoneNumberUtils.BCD_EXTENDED_TYPE_EF_ADN ) ; }
Source:
public void visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDoubleLiteral x , @ javax.annotation.Nonnull com.android.sched.transform.TransformRequest transformRequest ) throws java.lang.Exception { visit ( ( ( com.android.jack.ir.ast.JNumberValueLiteral ) ( x ) ) , transformRequest ) ; }

Target:
public void visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDoubleLiteral doubleLiteral , @ javax.annotation.Nonnull com.android.sched.transform.TransformRequest transformRequest ) throws java.lang.Exception { visit ( ( ( com.android.jack.ir.ast.JNumberValueLiteral ) ( doubleLiteral ) ) , transformRequest ) ; }
Source:
public void test_dropSourceSpecific_sourceKeysAreIndependent_IPv6 ( ) throws java.lang.Exception { test_dropSourceSpecific_sourceKeysAreIndependent ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv6 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv6_1 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv6_2 ) ; }

Target:
public void test_dropSourceSpecific_sourceKeysAreIndependent_IPv6 ( ) throws java.lang.Exception { test_dropSourceSpecific_sourceKeysAreIndependent ( libcore.java.nio.channels.DatagramChannelMulticastTest.GOOD_MULTICAST_IPv6 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv6_1 , libcore.java.nio.channels.DatagramChannelMulticastTest.UNICAST_IPv6_2 , ipv6NetworkInterface ) ; }
Source:
public static int getIndex ( com.android.sdklib.resources.Navigation value ) { int i = 0 ; for ( com.android.sdklib.resources.Navigation nav : com.android.sdklib.resources.Navigation.values ( ) ) { if ( nav == value ) { return i ; } i ++ ; } return - 1 ; }

Target:
public static int getIndex ( com.android.resources.Navigation value ) { int i = 0 ; for ( com.android.resources.Navigation nav : com.android.resources.Navigation.values ( ) ) { if ( nav == value ) { return i ; } i ++ ; } return - 1 ; }
Source:
public void tearDown ( ) { mMockAdapterService = null ; mProfiles = null ; }

Target:
public void tearDown ( ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException , java.lang.reflect.InvocationTargetException { mMockAdapterService.cleanupNative ( ) ; com.android.bluetooth.TestUtils.clearAdapterService ( mMockAdapterService ) ; mMockAdapterService = null ; mProfiles = null ; }
Source:
public static android.telephony.MbmsStreamingManager create ( android.content.Context context , android.telephony.mbms.MbmsStreamingManagerCallback callback ) throws android.telephony.mbms.MbmsException { return android.telephony.MbmsStreamingManager.create ( context , callback , android.telephony.SubscriptionManager.getDefaultSubscriptionId ( ) ) ; }

Target:
public static android.telephony.MbmsStreamingManager create ( android.content.Context context , android.telephony.mbms.MbmsStreamingManagerCallback callback , android.os.Handler handler ) throws android.telephony.mbms.MbmsException { return android.telephony.MbmsStreamingManager.create ( context , callback , android.telephony.SubscriptionManager.getDefaultSubscriptionId ( ) , handler ) ; }
Source:
public int getCallStateForSlot ( int slotId ) { com.android.internal.telephony.Phone phone = com.android.internal.telephony.PhoneFactory.getPhone ( slotId ) ; return phone == null ? android.telephony.TelephonyManager.CALL_STATE_IDLE : com.android.internal.telephony.DefaultPhoneNotifier.convertCallState ( phone.getState ( ) ) ; }

Target:
public int getCallStateForSlot ( int slotIndex ) { com.android.internal.telephony.Phone phone = com.android.internal.telephony.PhoneFactory.getPhone ( slotIndex ) ; return phone == null ? android.telephony.TelephonyManager.CALL_STATE_IDLE : com.android.internal.telephony.PhoneConstantConversions.convertCallState ( phone.getState ( ) ) ; }
Source:
private static com.google.currysrc.api.transform.TransformRule createReplaceSelectedJavadocRule ( ) throws java.io.IOException { return com.android.icu4j.srcgen.Icu4jTransformRules.createOptionalRule ( com.google.currysrc.transformers.ReplaceSelectedJavadoc.createFromResource ( com.android.icu4j.srcgen.Icu4jTransform.Icu4jRules.REPLACEMENT_JAVADOC_RESOURCE ) ) ; }

Target:
private static com.google.currysrc.api.process.Rule createReplaceSelectedJavadocRule ( ) throws java.io.IOException { return com.android.icu4j.srcgen.Icu4jTransformRules.createOptionalRule ( com.google.currysrc.processors.ReplaceSelectedJavadoc.createFromResource ( com.android.icu4j.srcgen.Icu4jTransform.Icu4jRules.REPLACEMENT_JAVADOC_RESOURCE ) ) ; }
Source:
public void testVFE5 ( ) { try { java.lang.Class.forName ( "dot.junit.opcodes.rem_long.d.T_rem_long_3" ) ; fail ( "expected a verification exception" ) ; } catch ( java.lang.Throwable t ) { dot.junit.DxUtil.checkVerifyException ( t ) ; } }

Target:
public void testE1 ( ) { loadAndRun ( "dot.junit.opcodes.rem_long.d.T_rem_long_1" , java.lang.ArithmeticException.class , 1234567890123L , 0L ) ; }
Source:
public int getToolTipDisplayDelayTime ( java.lang.Object object ) { return 500 ; }

Target:
private void onDeselectAll ( ) { mImpl.onDeselectAll ( ) ; syncViewerSelection ( ) ; updateButtonsState ( ) ; }
Source:
public void getCdmaBroadcastConfig ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_GET_BROADCAST_CONFIG , response ) ; send ( rr ) ; }

Target:
public java.util.List < android.telephony.ClientRequestStats > getClientRequestStats ( ) { return mClientWakelockTracker.getClientRequestStats ( ) ; }
Source:
public void testPublishConfigBuilderNegativeCount ( ) { new android.net.wifi.nan.PublishConfig.Builder ( ) . setPublishCount ( ( - 4 ) ) ; }

Target:
public void testPublishConfigBuilderNegativeCount ( ) { new android.net.wifi.aware.PublishConfig.Builder ( ) . setPublishCount ( ( - 4 ) ) ; }
Source:
public void run ( ) { mErrorCallback.mErrorMessage = mErrorMessage ; mErrorCallback.mErrorNum = mErrorNum ; mErrorCallback.run ( ) ; }

Target:
public void setErrorHandler ( android.support.v8.renderscript.RenderScript.RSErrorHandler msg ) { mErrorCallback = msg ; if ( android.support.v8.renderscript.RenderScript.isNative ) { android.support.v8.renderscript.RenderScriptThunker rst = ( ( android.support.v8.renderscript.RenderScriptThunker ) ( this ) ) ; rst.setErrorHandler ( msg ) ; } }
Source:
public static void assumeLocalDevice ( ) { Truth.ASSUME.withFailureMessage ( "Install task not run against device provider" ) . that ( com.android.build.gradle.integration.common.fixture.GradleTestProject.REMOTE_TEST_PROVIDER ) . isNull ( ) ; }

Target:
public static void assumeLocalDevice ( ) { org.junit.Assume.assumeTrue ( "Install task not run against device provider" , ( ( com.android.build.gradle.integration.common.fixture.GradleTestProject.REMOTE_TEST_PROVIDER ) == null ) ) ; }
Source:
public void writeOnImsCallHeld ( int phoneId , com.android.ims.internal.ImsCallSession session ) { }

Target:
public void writeOnImsCallStarted ( int phoneId , android.telephony.ims.ImsCallSession session ) { }
Source:
void setEmergencyCallsOnly ( boolean emergencyOnly ) ;

Target:
public void setUserSetupComplete ( final boolean userSetup ) { mReceiverHandler.post ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { handleSetUserSetupComplete ( userSetup ) ; } } ) ; }
Source:
synchronized void nAllocationRead ( int id , float [ ] d ) { validate ( ) ; rsnAllocationRead ( mContext , id , d ) ; }

Target:
native void rsnAllocationRead ( long con , long id , int [ ] d ) ;
Source:
public java.math.BigDecimal abs ( java.math.MathContext mc ) { java.math.BigDecimal result = abs ( ) ; result.inplaceRound ( mc ) ; return result ; }

Target:
public java.math.BigDecimal abs ( java.math.MathContext mc ) { java.math.BigDecimal result = ( ( signum ( ) ) < 0 ) ? negate ( ) : new java.math.BigDecimal ( getUnscaledValue ( ) , scale ) ; result.inplaceRound ( mc ) ; return result ; }
Source:
public void setup ( ) { put ( "Signature.FOO" , libcore.java.security.ProviderTest.MockSpi.class . getName ( ) ) ; put ( "Signature.FOO SupportedKeyClasses" , libcore.javax.crypto.MockKey.class . getName ( ) ) ; }

Target:
public void setup ( ) { put ( "Signature.FOO" , libcore.java.security.ProviderTest.MockSpi.class . getName ( ) ) ; put ( "Signature.FOO SupportedKeyClasses" , java.security.interfaces.RSAPrivateKey.class . getName ( ) ) ; }
Source:
private void edgeSplit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { if ( com.android.jack.transformations.ssa.SsaBasicBlockSplitter.NEED_EDGE_SPLIT_PREDECESSOR ) { edgeSplitPredecessors ( cfg ) ; } com.android.jack.transformations.ssa.SsaBasicBlockSplitter.edgeSplitMoveExceptionsAndResults ( cfg ) ; com.android.jack.transformations.ssa.SsaBasicBlockSplitter.edgeSplitSuccessors ( cfg ) ; }

Target:
private void edgeSplit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { if ( com.android.jack.transformations.ssa.SsaBasicBlockSplitter.NEED_EDGE_SPLIT_PREDECESSOR ) { edgeSplitPredecessors ( cfg ) ; } if ( com.android.jack.transformations.ssa.SsaBasicBlockSplitter.NEED_EDGE_SPLIT_MV_EXCEPTION ) { com.android.jack.transformations.ssa.SsaBasicBlockSplitter.edgeSplitMoveExceptionsAndResults ( cfg ) ; } com.android.jack.transformations.ssa.SsaBasicBlockSplitter.edgeSplitSuccessors ( cfg ) ; }
Source:
public abstract java.util.Collection < com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem > getResources ( com.android.resources.ResourceType type , com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources projectResources ) ;

Target:
protected abstract void load ( ) ;
Source:
public java.lang.String getVersion ( ) { return version ; }

Target:
public java.lang.String getVersion ( ) { checkNotClosed ( ) ; return version ; }
Source:
public ScriptGroup2.Closure prepInit ( android.renderscript.ScriptGroup2.Builder b ) { return b.addInvoke ( s.getInvokeID_init_filter ( ) , dimX , dimY , 0.5F , 0.5F , 0.5F , android.renderscript.Sampler.CLAMP_LINEAR ( mRS ) ) ; }

Target:
public ScriptGroup.Closure prepInit ( android.renderscript.ScriptGroup.Builder2 b ) { return b.addInvoke ( s.getInvokeID_init_filter ( ) , dimX , dimY , 0.5F , 0.5F , 0.5F , android.renderscript.Sampler.CLAMP_LINEAR ( mRS ) ) ; }
Source:
int nativeDrawGLFunctor ( ) { if ( ( ( mNativeDrawGLFunctor ) <= ( java.lang.Integer.MAX_VALUE ) ) && ( ( mNativeDrawGLFunctor ) >= ( java.lang.Integer.MIN_VALUE ) ) ) { return ( ( int ) ( mNativeDrawGLFunctor ) ) ; } else { throw new java.lang.RuntimeException ( "64bit not supported yet" ) ; } }

Target:
void detachNativeFunctor ( ) { if ( ( ( mNativeDrawGLFunctor ) != 0 ) && ( ( mViewRootImpl ) != null ) ) { mViewRootImpl.detachFunctor ( mNativeDrawGLFunctor ) ; } mViewRootImpl = null ; }
Source:
public void setLeSecureConnectionsConfirmation ( byte [ ] leSecureConnectionsConfirmation ) { this . leSecureConnectionsConfirmation = leSecureConnectionsConfirmation ; }

Target:
public void setLeSecureConnectionsConfirmation ( byte [ ] leSecureConnectionsConfirmation ) { mLeSecureConnectionsConfirmation = leSecureConnectionsConfirmation ; }
Source:
protected abstract T doCreateOutput ( ) ;

Target:
protected abstract T doCreateOutput ( @ com.android.annotations.Nullable java.lang.String densityFilter , @ com.android.annotations.Nullable java.lang.String abiFilter ) ;
Source:
public void test_implAcceptLjava_net_Socket ( ) throws java.lang.Exception { try { new org.apache.harmony.tests.java.net.ServerSocketTest.MockServerSocket ( ) . mockImplAccept ( new org.apache.harmony.tests.java.net.ServerSocketTest.MockSocket ( new org.apache.harmony.tests.java.net.ServerSocketTest.MockSocketImpl ( ) ) ) ; } catch ( java.net.SocketException e ) { } }

Target:
public void test_implAcceptLjava_net_Socket ( ) throws java.lang.Exception { try ( org.apache.harmony.tests.java.net.ServerSocketTest.MockServerSocket mockServerSocket = new org.apache.harmony.tests.java.net.ServerSocketTest.MockServerSocket ( ) ) { try { mockServerSocket.mockImplAccept ( new org.apache.harmony.tests.java.net.ServerSocketTest.MockSocket ( new org.apache.harmony.tests.java.net.ServerSocketTest.MockSocketImpl ( ) ) ) ; fail ( "Expected SocketException" ) ; } catch ( java.net.SocketException e ) { } } }
Source:
public static com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator create ( boolean allowXmlExtension , java.util.Set < java.lang.String > existing , com.android.resources.ResourceType type ) { boolean isFileType = ! ( com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.isValueResource ( type ) ) ; return new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ResourceNameValidator ( allowXmlExtension , existing , isFileType ) ; }

Target:
public static com.android.ide.eclipse.adt.internal.resources.ResourceNameValidator create ( boolean allowXmlExtension , java.util.Set < java.lang.String > existing , com.android.resources.ResourceType type ) { boolean isFileType = com.android.ide.eclipse.adt.internal.resources.ResourceNameValidator.isFileBasedResourceType ( type ) ; return new com.android.ide.eclipse.adt.internal.resources.ResourceNameValidator ( allowXmlExtension , existing , isFileType ) ; }
Source:
public < T > T [ ] toArray ( T [ ] other ) { return asList ( ) . toArray ( other ) ; }

Target:
int copyIntoArray ( java.lang.Object [ ] dst , int offset ) { return offset ; }
Source:
public com.android.dx.io.EncodedValueReader getReader ( ) { return new com.android.dx.io.EncodedValueReader ( encodedAnnotation , com.android.dx.io.EncodedValueReader.ENCODED_ANNOTATION ) ; }

Target:
public com.android.dex.EncodedValueReader getReader ( ) { return new com.android.dex.EncodedValueReader ( encodedAnnotation , com.android.dex.EncodedValueReader.ENCODED_ANNOTATION ) ; }
Source:
public java.util.List < java.security.cert.X509Certificate > checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType , java.lang.String host ) throws java.security.cert.CertificateException { return checkTrusted ( chain , authType , host , false ) ; }

Target:
public java.util.List < java.security.cert.X509Certificate > checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType , javax.net.ssl.SSLSession session ) throws java.security.cert.CertificateException { return checkTrusted ( chain , authType , session , null , false ) ; }
Source:
public byte [ ] sign ( java.lang.String key , byte [ ] data ) { return sign ( android.security.KeyStore.getKeyBytes ( key ) , data ) ; }

Target:
public byte [ ] sign ( java.lang.String key , byte [ ] data ) { try { return mBinder.sign ( key , data ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return null ; } }
Source:
public android.net.IpSecTransform buildTunnelModeTransform ( java.net.InetAddress localAddress , java.net.InetAddress remoteAddress ) { mConfig.localAddress = localAddress ; mConfig.remoteAddress = remoteAddress ; mConfig.mode = android.net.IpSecTransform.MODE_TUNNEL ; return new android.net.IpSecTransform ( mContext , mConfig ) ; }

Target:
public android.net.IpSecTransform buildTunnelModeTransform ( java.net.InetAddress localAddress , java.net.InetAddress remoteAddress ) { mConfig.setLocalAddress ( localAddress.getHostAddress ( ) ) ; mConfig.setRemoteAddress ( remoteAddress.getHostAddress ( ) ) ; mConfig.setMode ( android.net.IpSecTransform.MODE_TUNNEL ) ; return new android.net.IpSecTransform ( mContext , mConfig ) ; }
Source:
public com.android.chimpchat.core.IChimpView getView ( com.android.chimpchat.ChimpManager manager ) { com.android.chimpchat.core.ChimpView view = new com.android.chimpchat.core.ChimpView ( ChimpView.ACCESSIBILITY_IDS , com.google.common.collect.Lists.newArrayList ( java.lang.Integer.toString ( windowId ) , java.lang.Integer.toString ( accessibilityId ) ) ) ; view.setManager ( manager ) ; return view ; }

Target:
public com.android.chimpchat.core.IChimpView getView ( com.android.chimpchat.ChimpManager manager ) { com.android.chimpchat.core.ChimpView view = new com.android.chimpchat.core.ChimpView ( ChimpView.ACCESSIBILITY_IDS , com.google.common.collect.Lists.newArrayList ( java.lang.Integer.toString ( windowId ) , java.lang.Long.toString ( accessibilityId ) ) ) ; view.setManager ( manager ) ; return view ; }
Source:
public void tearDown ( ) { mHidDeviceService.stop ( ) ; mHidDeviceService.cleanup ( ) ; mHidDeviceService = null ; reset ( com.android.bluetooth.hid.HidDeviceTest.sHidDeviceNativeInterface ) ; }

Target:
public void tearDown ( ) { mHidDeviceService.stop ( ) ; mHidDeviceService.cleanup ( ) ; mHidDeviceService = null ; mTargetContext.unregisterReceiver ( mConnectionStateChangedReceiver ) ; mConnectionStateChangedQueue.clear ( ) ; mCallbackQueue.clear ( ) ; }
Source:
private void assertVerifiedForEach ( java.lang.String apkFilenamePatternInResources , java.lang.String [ ] args ) throws java.lang.Exception { assertVerifiedForEach ( apkFilenamePatternInResources , args , null ) ; }

Target:
private void assertVerified ( java.lang.String apkFilenameInResources , java.lang.Integer minSdkVersionOverride , java.lang.Integer maxSdkVersionOverride ) throws java.lang.Exception { com.android.apksig.ApkVerifierTest.assertVerified ( verify ( apkFilenameInResources , minSdkVersionOverride , maxSdkVersionOverride ) ) ; }
Source:
public final com.android.tools.perflib.heap.ClassObj getClass ( long id ) { return mClassesById.get ( id ) ; }

Target:
public final void addClass ( long id , com.android.tools.perflib.heap.ClassObj theClass ) { mClassesById.put ( id , theClass ) ; mClassesByName.put ( theClass.mClassName , theClass ) ; }
Source:
public boolean isPackageOnPath ( @ javax.annotation.Nonnull java.lang.String packageName ) { try { return getPackage ( packageName ) . isOnPath ( ) ; } catch ( com.android.jack.ir.ast.JPackageLookupException e ) { return false ; } }

Target:
public boolean isPackageOnPath ( @ javax.annotation.Nonnull java.lang.String packageName ) { try { return getPackage ( packageName , adapter ) . isOnPath ( ) ; } catch ( com.android.jack.ir.ast.JPackageLookupException e ) { return false ; } }
Source:
public boolean isProvisioningAllowed ( java.lang.String action ) { throwIfParentInstance ( "isProvisioningAllowed" ) ; try { return mService.isProvisioningAllowed ( action ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } }

Target:
public boolean isProvisioningAllowed ( @ android.annotation.NonNull java.lang.String action ) { throwIfParentInstance ( "isProvisioningAllowed" ) ; try { return mService.isProvisioningAllowed ( action , mContext.getPackageName ( ) ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } }
Source:
public void checkDelete ( java.lang.String file ) { if ( isRelevant ( ) ) { if ( file.startsWith ( mTempDir ) ) { return ; } throw com.android.ide.common.rendering.RenderSecurityException.create ( "Delete" , file ) ; } }

Target:
public void checkDelete ( java.lang.String file ) { if ( isRelevant ( ) ) { if ( isWritingAllowed ( file ) ) { return ; } throw com.android.ide.common.rendering.RenderSecurityException.create ( "Delete" , file ) ; } }
Source:
com.android.apksig.internal.apk.v2.ContentDigestAlgorithm getContentDigestAlgorithm ( ) { return mContentDigestAlgorithm ; }

Target:
public com.android.apksig.internal.apk.ContentDigestAlgorithm getContentDigestAlgorithm ( ) { return mContentDigestAlgorithm ; }
Source:
public java.util.Map < java.lang.String , com.google.devtools.common.options.OptionsParser.OptionValueDescription > clearValue ( java.lang.String optionName ) throws com.google.devtools.common.options.OptionsParsingException { java.util.Map < java.lang.String , com.google.devtools.common.options.OptionsParser.OptionValueDescription > clearedValues = com.google.common.collect.Maps.newHashMap ( ) ; impl.clearValue ( optionName , clearedValues ) ; return clearedValues ; }

Target:
public com.google.devtools.common.options.OptionsParser.OptionValueDescription clearValue ( java.lang.String optionName ) throws com.google.devtools.common.options.OptionsParsingException { com.google.devtools.common.options.OptionsParser.OptionValueDescription clearedValue = impl.clearValue ( optionName ) ; return clearedValue ; }
Source:
public void test70_expand_fqcns ( ) throws java.lang.Exception { processTestFiles ( ) ; }

Target:
public int queryCodenameApiLevel ( @ com.android.annotations.NonNull java.lang.String codename ) { if ( "ApiCodename1" . equals ( codename ) ) { return 1 ; } else if ( "ApiCodename10" . equals ( codename ) ) { return 10 ; } return ICallback.UNKNOWN_CODENAME ; }
Source:
public java.util.List < java.lang.String > getApplicableCallNames ( ) { return java.util.Arrays.asList ( com.android.tools.lint.checks.JavaPerformanceDetector.ON_DRAW , com.android.tools.lint.checks.JavaPerformanceDetector.ON_MEASURE , com.android.tools.lint.checks.JavaPerformanceDetector.ON_LAYOUT ) ; }

Target:
public java.util.List < java.lang.String > getApplicableMethodNames ( ) { return java.util.Arrays.asList ( com.android.tools.lint.checks.JavaPerformanceDetector.ON_DRAW , com.android.tools.lint.checks.JavaPerformanceDetector.ON_MEASURE , com.android.tools.lint.checks.JavaPerformanceDetector.ON_LAYOUT ) ; }
Source:
public void releasePersistableUriPermission ( android.net.Uri uri , int modeFlags ) { try { android.app.ActivityManagerNative.getDefault ( ) . releasePersistableUriPermission ( uri , modeFlags ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public int resolveUserId ( android.net.Uri uri ) { return android.content.ContentProvider.getUserIdFromUri ( uri , mContext.getUserId ( ) ) ; }
Source:
public void testWithRowDouble_columnNameAndValue ( ) { assertTrue ( android.support.test.espresso.matcher.CursorMatchers.withRowDouble ( android.support.test.espresso.matcher.CursorMatchersTest.COLUMN_DOUBLE , android.support.test.espresso.matcher.CursorMatchersTest.DOUBLE_VALUE ) . matches ( cursor ) ) ; }

Target:
public void withRowDouble_columnNameAndValue ( ) { org.junit.Assert.assertTrue ( android.support.test.espresso.matcher.CursorMatchers.withRowDouble ( android.support.test.espresso.matcher.CursorMatchersTest.COLUMN_DOUBLE , android.support.test.espresso.matcher.CursorMatchersTest.DOUBLE_VALUE ) . matches ( cursor ) ) ; }
Source:
native void rsnAllocationData2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , byte [ ] d , int sizeBytes ) ;

Target:
native void rsnAllocationData2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , int dt ) ;
Source:
public static com.google.gct.testing.ConfigurationInstance parseFromDisplayString ( java.lang.String configurationInstance ) { return com.google.gct.testing.ConfigurationInstance.parse ( com.google.gct.testing.ConfigurationInstance.GET_DISPLAY_NAME , com.google.gct.testing.ConfigurationInstance.DISPLAY_NAME_DELIMITER , configurationInstance ) ; }

Target:
public static com.google.gct.testing.ConfigurationInstance parseFromResultsViewerDisplayString ( java.lang.String configurationInstance ) { return com.google.gct.testing.ConfigurationInstance.parse ( com.google.gct.testing.ConfigurationInstance.GET_RESULTS_VIEWER_DISPLAY_NAME , com.google.gct.testing.ConfigurationInstance.DISPLAY_NAME_DELIMITER , configurationInstance ) ; }
Source:
public void test_SSL_check_private_key_null ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_check_private_key ( org.conscrypt.NativeCryptoTest.NULL ) ; org.junit.Assert.fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }

Target:
public void SSL_CTX_set_session_id_context_NullContextArgument ( ) throws java.lang.Exception { org.conscrypt.NativeCrypto.SSL_CTX_set_session_id_context ( org.conscrypt.NativeCryptoTest.NULL , new byte [ 0 ] ) ; }
Source:
public int getTrafficClass ( ) throws java.net.SocketException { return ( ( java.lang.Integer ) ( getImpl ( ) . getOption ( java.net.SocketOptions.IP_TOS ) ) ) . intValue ( ) ; }

Target:
public int getTrafficClass ( ) throws java.net.SocketException { if ( isClosed ( ) ) { throw new java.net.SocketException ( "Socket is closed" ) ; } return ( ( java.lang.Integer ) ( getImpl ( ) . getOption ( java.net.SocketOptions.IP_TOS ) ) ) . intValue ( ) ; }
Source:
native long rsnScriptFieldIDCreate ( long con , long sid , int slot ) ;

Target:
native void rsnScriptSetVarV ( long con , long id , int slot , byte [ ] val , boolean mUseInc ) ;
Source:
public void setresourcefilter ( java.lang.String filter ) { if ( ( filter != null ) && ( ( filter.length ( ) ) > 0 ) ) { mResourceFilter = filter ; } }

Target:
public void setresourcefilter ( java.lang.String filter ) { if ( ( filter != null ) && ( ! ( filter.isEmpty ( ) ) ) ) { mResourceFilter = filter ; } }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JFieldRef ref ) { replaceFieldWithValue ( ref ) ; super . endVisit ( ref ) ; }

Target:
public com.android.jack.ir.ast.cfg.JControlFlowGraph getCfg ( ) { return cfg ; }
Source:
public final void set ( T object , java.lang.Integer value ) { set ( object , value.intValue ( ) ) ; }

Target:
public final void set ( T object , java.lang.Integer value ) { setValue ( object , value.intValue ( ) ) ; }
Source:
public boolean dispatchPopulateAccessibilityEvent ( android.view.accessibility.AccessibilityEvent event ) { return false ; }

Target:
protected boolean dispatchGenericPointerEvent ( android.view.MotionEvent event ) { return false ; }
Source:
public void execute ( com.android.monkeyrunner.MonkeyDevice device ) throws java.lang.Exception { device.touch ( x , y , MonkeyDevice.TOUCH_NAME_TO_ENUM.get ( direction ) ) ; }

Target:
public void execute ( com.android.monkeyrunner.core.IMonkeyDevice device ) throws java.lang.Exception { device.touch ( x , y , MonkeyDevice.TOUCH_NAME_TO_ENUM.get ( direction ) ) ; }
Source:
public java.lang.Integer getResourceValue ( java.lang.String type , java.lang.String name ) { if ( ( mProjectRes ) != null ) { return mProjectRes.getResourceValue ( type , name ) ; } return null ; }

Target:
public java.lang.Integer getResourceValue ( com.android.resources.ResourceType type , java.lang.String name ) { if ( ( mProjectRes ) != null ) { return mProjectRes.getResourceValue ( type , name ) ; } return null ; }
Source:
public java.lang.String getGeoDescription ( android.content.Context context , java.lang.String number ) { return null ; }

Target:
public java.lang.String getGeoDescription ( android.content.Context context , java.lang.String number , java.lang.String countryIso ) { return null ; }
Source:
public void testPackageOverridePackageFromFlavorWithSuffix ( ) { mFlavorConfig.setPackageName ( "foo.bar" ) ; mBuildType.setPackageNameSuffix ( ".fortytwo" ) ; com.android.builder.core.VariantConfiguration variant = getVariant ( ) ; assertEquals ( "foo.bar.fortytwo" , variant.getPackageOverride ( ) ) ; }

Target:
public void testIdOverrideIdFromFlavor ( ) { mFlavorConfig.setApplicationId ( "foo.bar" ) ; com.android.builder.core.VariantConfiguration variant = getVariant ( ) ; assertEquals ( "foo.bar" , variant.getIdOverride ( ) ) ; }
Source:
private com.android.internal.util.Predicate < android.test.suitebuilder.TestMethod > getNotAnnotationPredicate ( java.lang.String annotationClassName ) { java.lang.Class < ? extends java.lang.annotation.Annotation > annotationClass = getAnnotationClass ( annotationClassName ) ; if ( annotationClass != null ) { return com.android.internal.util.Predicates.not ( new android.test.suitebuilder.annotation.HasAnnotation ( annotationClass ) ) ; } return null ; }

Target:
private com.android.internal.util.Predicate < android.test.suitebuilder.TestMethod > getAnnotationPredicate ( java.lang.String annotationClassName ) { java.lang.Class < ? extends java.lang.annotation.Annotation > annotationClass = getAnnotationClass ( annotationClassName ) ; if ( annotationClass != null ) { return android.test.suitebuilder.TestPredicates.hasAnnotation ( annotationClass ) ; } return null ; }
Source:
protected com.android.internal.telephony.Connection dialInternal ( java.lang.String dialString , int videoState , android.os.Bundle intentExtras ) throws com.android.internal.telephony.CallStateException { return dialInternal ( dialString , videoState , intentExtras , null ) ; }

Target:
public com.android.internal.telephony.Connection dial ( java.lang.String dialString , com.android.internal.telephony.imsphone.DialArgs dialArgs ) throws com.android.internal.telephony.CallStateException { return dialInternal ( dialString , dialArgs , null ) ; }
Source:
public void testHasErrorTextReturnsFalse_WithDifferentErrorString ( ) { android.widget.EditText editText = new android.widget.EditText ( context ) ; editText.setError ( "TEST" ) ; assertFalse ( android.support.test.espresso.matcher.ViewMatchers.hasErrorText ( "TEST1" ) . matches ( editText ) ) ; }

Target:
public void hasErrorTextReturnsFalse_WithDifferentErrorString ( ) { android.widget.EditText editText = new android.widget.EditText ( context ) ; editText.setError ( "TEST" ) ; org.junit.Assert.assertFalse ( android.support.test.espresso.matcher.ViewMatchers.hasErrorText ( "TEST1" ) . matches ( editText ) ) ; }
Source:
public void doImport ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) { try { super . doImport ( session ) ; } catch ( com.android.jack.resource.ResourceReadingException e ) { throw new java.lang.AssertionError ( e ) ; } }

Target:
public java.util.List < com.android.jack.meta.Meta > getImports ( ) { try { return ( ( java.util.List < com.android.jack.meta.Meta > ) ( super . getImports ( ) ) ) ; } catch ( com.android.jack.resource.ResourceReadingException e ) { throw new java.lang.AssertionError ( e ) ; } }
Source:
public void enableSaveConfig ( ) { doBooleanCommand ( "SET update_config 1" ) ; }

Target:
public boolean setP2pSsidPostfix ( java.lang.String postfix ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.setSsidPostfix ( postfix ) ; } else { return doBooleanCommand ( ( "SET p2p_ssid_postfix " + postfix ) ) ; } }
Source:
public static int BoolCond_IntCstVar ( boolean cond , int y ) { return cond ? 1 : y ; }

Target:
public static int BoolCond_IntCstVar ( boolean cond , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return cond ? 1 : y ; }
Source:
boolean expectAux ( java.lang.String tag , java.lang.String source , java.lang.String result , java.lang.String expectedResult ) { return expectAux ( tag , new java.lang.String [ ] { source , result } , result.equals ( expectedResult ) , expectedResult ) ; }

Target:
static boolean expectAux ( java.lang.String tag , java.lang.String source , java.lang.String result , boolean pass , java.lang.String expectedResult ) { return android.icu.dev.test.translit.TransliteratorTest.expectAux ( tag , new java.lang.String [ ] { source , result } , pass , expectedResult ) ; }
Source:
public static java.lang.invoke.MethodHandle arrayElementSetter ( java.lang.Class < ? > arrayClass ) throws java.lang.IllegalArgumentException { throw new java.lang.UnsupportedOperationException ( "MethodHandles.arrayElementSetter is not implemented" ) ; }

Target:
public static byte arrayElementGetter ( byte [ ] array , int i ) { return array [ i ] ; }
Source:
static java.lang.String screenStateToString ( int screenState ) { switch ( screenState ) { case com.android.nfc.ScreenStateHelper.SCREEN_STATE_OFF : return "OFF" ; case com.android.nfc.ScreenStateHelper.SCREEN_STATE_ON_LOCKED : return "ON_LOCKED" ; case com.android.nfc.ScreenStateHelper.SCREEN_STATE_ON_UNLOCKED : return "ON_UNLOCKED" ; default : return "UNKNOWN" ; } }

Target:
static java.lang.String screenStateToString ( int screenState ) { switch ( screenState ) { case com.android.nfc.ScreenStateHelper.SCREEN_STATE_OFF_LOCKED : return "OFF_LOCKED" ; case com.android.nfc.ScreenStateHelper.SCREEN_STATE_ON_LOCKED : return "ON_LOCKED" ; case com.android.nfc.ScreenStateHelper.SCREEN_STATE_ON_UNLOCKED : return "ON_UNLOCKED" ; case com.android.nfc.ScreenStateHelper.SCREEN_STATE_OFF_UNLOCKED : return "OFF_UNLOCKED" ; default : return "UNKNOWN" ; } }
Source:
private void createSimInfoTable ( android.database.sqlite.SQLiteDatabase db ) { if ( com.android.providers.telephony.TelephonyProvider.DBG ) com.android.providers.telephony.TelephonyProvider.log ( "dbh.createSimInfoTable:+" ) ; db.execSQL ( com.android.providers.telephony.TelephonyProvider.CREATE_SIMINFO_TABLE_STRING ) ; if ( com.android.providers.telephony.TelephonyProvider.DBG ) com.android.providers.telephony.TelephonyProvider.log ( "dbh.createSimInfoTable:-" ) ; }

Target:
private void createSimInfoTable ( android.database.sqlite.SQLiteDatabase db , java.lang.String tableName ) { if ( com.android.providers.telephony.TelephonyProvider.DBG ) com.android.providers.telephony.TelephonyProvider.log ( ( "dbh.createSimInfoTable:+ " + tableName ) ) ; db.execSQL ( com.android.providers.telephony.TelephonyProvider.getStringForSimInfoTableCreation ( tableName ) ) ; if ( com.android.providers.telephony.TelephonyProvider.DBG ) com.android.providers.telephony.TelephonyProvider.log ( "dbh.createSimInfoTable:-" ) ; }
Source:
public void onSuccess ( ) { android.telecom.Log.d ( this , "Adding simService %s" , currentSimService.getComponentName ( ) ) ; simServiceComponentNames.add ( currentSimService.getComponentName ( ) ) ; simServiceBinders.add ( currentSimService.mServiceInterface.asBinder ( ) ) ; maybeComplete ( ) ; }

Target:
public void onFailure ( ) { android.telecom.Log.d ( this , "Failed simService %s" , currentSimService.getComponentName ( ) ) ; noRemoteServices ( callback ) ; }
Source:
public void setAlwaysFinish ( boolean enabled ) { enforceCallingPermission ( android.Manifest.permission.SET_ALWAYS_FINISH , "setAlwaysFinish()" ) ; Settings.System.putInt ( mContext.getContentResolver ( ) , Settings.System.ALWAYS_FINISH_ACTIVITIES , ( enabled ? 1 : 0 ) ) ; synchronized ( this ) { mAlwaysFinishActivities = enabled ; } }

Target:
public void setAlwaysFinish ( boolean enabled ) { enforceCallingPermission ( android.Manifest.permission.SET_ALWAYS_FINISH , "setAlwaysFinish()" ) ; Settings.Global.putInt ( mContext.getContentResolver ( ) , Settings.Global.ALWAYS_FINISH_ACTIVITIES , ( enabled ? 1 : 0 ) ) ; synchronized ( this ) { mAlwaysFinishActivities = enabled ; } }
Source:
private static void assertDifferentZoneIds ( java.lang.String zone1 , java.lang.String zone2 ) { org.junit.Assert.assertFalse ( ( "Zone IDs not different, both=" + zone1 ) , zone1.equals ( zone2 ) ) ; }

Target:
private static void assertOffsetResultMetadata ( boolean isOnlyMatch , com.android.internal.telephony.TimeZoneLookupHelper.OffsetResult lookupResult ) { org.junit.Assert.assertEquals ( isOnlyMatch , lookupResult.isOnlyMatch ) ; }
Source:
public java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ 0 ] ; }

Target:
public java.lang.String [ ] getSupportedCipherSuites ( ) { return new java.lang.String [ 0 ] ; }
Source:
public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String name , java.lang.String desc ) { return new com.android.build.gradle.tasks.ResourceUsageAnalyzer.AnnotationUsageVisitor ( ) ; }

Target:
public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String name , java.lang.String desc ) { return new com.android.build.gradle.tasks.ResourceUsageAnalyzer.UsageVisitor.AnnotationUsageVisitor ( ) ; }
Source:
private com.android.server.NetworkPolicyManagerServiceTest.IdleFuture expectIdle ( ) { final com.android.server.NetworkPolicyManagerServiceTest.IdleFuture future = new com.android.server.NetworkPolicyManagerServiceTest.IdleFuture ( ) ; mService.addIdleHandler ( future ) ; return future ; }

Target:
public java.lang.Void answer ( org.mockito.invocation.InvocationOnMock invocation ) throws java.lang.Throwable { android.util.Log.d ( com.android.server.NetworkPolicyManagerServiceTest.TAG , ( "counting down on answer: " + invocation ) ) ; latch.countDown ( ) ; return null ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mIsWindows = com.intellij.updater.Utils.isWindows ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mIsWindows = java.lang.System.getProperty ( "os.name" ) . startsWith ( "Windows" ) ; }
Source:
public static java.io.FileDescriptor [ ] pipe ( ) throws android.system.ErrnoException { return Libcore.os.pipe ( ) ; }

Target:
public static java.io.FileDescriptor [ ] pipe ( ) throws android.system.ErrnoException { return Libcore.os.pipe2 ( 0 ) ; }
Source:
private static boolean samePostDialPortion ( com.android.dialer.DialerPhoneNumber number1 , com.android.dialer.DialerPhoneNumber number2 ) { return android.telephony.PhoneNumberUtils.extractPostDialPortion ( number1.getRawInput ( ) . getNumber ( ) ) . equals ( android.telephony.PhoneNumberUtils.extractPostDialPortion ( number2.getRawInput ( ) . getNumber ( ) ) ) ; }

Target:
private static boolean samePostDialPortion ( com.android.dialer.DialerPhoneNumber number1 , com.android.dialer.DialerPhoneNumber number2 ) { return android.telephony.PhoneNumberUtils.extractPostDialPortion ( number1.getNormalizedNumber ( ) ) . equals ( android.telephony.PhoneNumberUtils.extractPostDialPortion ( number2.getNormalizedNumber ( ) ) ) ; }
Source:
public static int Or0 ( int arg ) { return arg | 0 ; }

Target:
public static int $noinline$Or0 ( int arg ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } return arg | 0 ; }
Source:
public void test_EUC_JP ( ) throws java.lang.Exception { assertEncodes ( java.nio.charset.Charset.forName ( "EUC-JP" ) , "�" , 244 , 254 ) ; }

Target:
public void test_EUC_JP_replacement_character ( ) throws java.lang.Exception { assertEncodes ( java.nio.charset.Charset.forName ( "EUC-JP" ) , "�" , 244 , 254 ) ; }
Source:
public boolean isTerminal ( ) { return asg.canThrow ( ) ; }

Target:
public boolean isPolymorphicMethodCall ( ) { return ( asg.getRhs ( ) ) instanceof com.android.jack.ir.ast.JPolymorphicMethodCall ; }
Source:
private void onLocked ( ) { if ( DBG ) log ( "only fetch EF_LI and EF_PL in lock state" ) ; loadEfLiAndEfPl ( ) ; }

Target:
private void onLocked ( ) { if ( DBG ) log ( "only fetch EF_LI, EF_PL and EF_ICCID in locked state" ) ; mLockedRecordsRequested = true ; loadEfLiAndEfPl ( ) ; mFh.loadEFTransparent ( com.android.internal.telephony.uicc.EF_ICCID , obtainMessage ( com.android.internal.telephony.uicc.SIMRecords.EVENT_GET_ICCID_DONE ) ) ; ( mRecordsToLoad ) ++ ; }
Source:
private static void write ( java.lang.CharSequence from , java.io.File to , java.nio.charset.Charset charset , boolean append ) throws java.io.IOException { com.google.common.io.CharStreams.write ( from , com.google.common.io.Files.newWriterSupplier ( to , charset , append ) ) ; }

Target:
public static void write ( java.lang.CharSequence from , java.io.File to , java.nio.charset.Charset charset ) throws java.io.IOException { com.google.common.io.Files.asCharSink ( to , charset ) . write ( from ) ; }
Source:
public com.android.ims.internal.IImsMultiEndpoint getMultiEndpointInterface ( ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . getMultiEndpointInterface ( mSlotId , mSupportedFeature ) ; } }

Target:
public boolean isConnected ( int callServiceType , int callType ) throws android.os.RemoteException { synchronized ( mLock ) { checkServiceIsReady ( ) ; return getServiceInterface ( mBinder ) . isConnected ( callServiceType , callType ) ; } }
Source:
public static < E > com.google.common.collect.ImmutableMultiset < E > of ( ) { return ( ( com.google.common.collect.ImmutableMultiset < E > ) ( EmptyImmutableMultiset.INSTANCE ) ) ; }

Target:
public static < E > com.google.common.collect.ImmutableMultiset < E > of ( ) { return ( ( com.google.common.collect.ImmutableMultiset < E > ) ( com.google.common.collect.ImmutableMultiset.EMPTY ) ) ; }
Source:
public boolean hasAlternativeName ( @ javax.annotation.Nonnull java.lang.String oldName ) { return false ; }

Target:
public boolean hasAlternativeName ( @ javax.annotation.Nonnull com.android.jack.shrob.obfuscation.key.Key oldKey ) { return false ; }
Source:
public static native int addHostRoute ( java.lang.String interfaceName , int hostaddr ) ;

Target:
public static native int addRoute ( java.lang.String interfaceName , java.lang.String dst , int prefixLength , java.lang.String gw ) ;
Source:
public java.lang.String getMessage ( ) { return ( ( ( ( ( ( "Certificate has been revoked, reason: " + ( reason ) ) + ", revocation date: " ) + ( revocationDate ) ) + ", authority: " ) + ( authority ) ) + ", extensions: " ) + ( extensions ) ; }

Target:
public java.lang.String getMessage ( ) { return ( ( ( ( ( ( "Certificate has been revoked, reason: " + ( reason ) ) + ", revocation date: " ) + ( revocationDate ) ) + ", authority: " ) + ( authority ) ) + ", extension OIDs: " ) + ( extensions.keySet ( ) ) ; }
Source:
private void initInternal ( org.conscrypt.OpenSSLKey newKey , boolean signing ) throws java.security.InvalidKeyException { checkEngineType ( newKey ) ; key = newKey ; this . signing = signing ; resetContext ( ) ; }

Target:
private void initInternal ( org.conscrypt.OpenSSLKey newKey , boolean signing ) throws java.security.InvalidKeyException { checkEngineType ( newKey ) ; key = newKey ; this . signing = signing ; try { resetContext ( ) ; } catch ( java.security.InvalidAlgorithmParameterException e ) { throw new java.security.InvalidKeyException ( e ) ; } }