auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setChoices ( double [ ] limits , java.lang.String [ ] formats ) { if ( ( limits.length ) != ( formats.length ) ) { throw new java.lang.IllegalArgumentException ( "Array and limit arrays must be of the same length." ) ; } choiceLimits = limits ; choiceFormats = formats ; }

Target:
public void setChoices ( double [ ] limits , java.lang.String [ ] formats ) { if ( ( limits.length ) != ( formats.length ) ) { throw new java.lang.IllegalArgumentException ( "Array and limit arrays must be of the same length." ) ; } choiceLimits = java.util.Arrays.copyOf ( limits , limits.length ) ; choiceFormats = java.util.Arrays.copyOf ( formats , formats.length ) ; }
Source:
public boolean shouldOverrideUrlLoading ( java.lang.String url ) { org.chromium.content.common.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "shouldOverrideUrlLoading=" + url ) ) ; boolean result = mWebViewClient.shouldOverrideUrlLoading ( mWebView , url ) ; org.chromium.content.common.TraceEvent.end ( ) ; return result ; }

Target:
public boolean shouldOverrideUrlLoading ( java.lang.String url ) { org.chromium.base.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( "shouldOverrideUrlLoading=" + url ) ) ; boolean result = mWebViewClient.shouldOverrideUrlLoading ( mWebView , url ) ; org.chromium.base.TraceEvent.end ( ) ; return result ; }
Source:
public void onCallForwardingIndicatorChanged ( boolean visible ) { android.util.Log.i ( com.android.phone.CallNotifier.LOG_TAG , ( ( ( "onCallForwardingIndicatorChanged(): subId=" + ( this . mSubId ) ) + ", visible=" ) + ( visible ? "Y" : "N" ) ) ) ; mCFIStatus.put ( this . mSubId , visible ) ; updatePhoneStateListeners ( false ) ; }

Target:
public void onMessageWaitingIndicatorChanged ( boolean visible ) { if ( com.android.phone.CallNotifier.VDBG ) log ( ( ( ( "onMessageWaitingIndicatorChanged(): " + ( this . mSubId ) ) + " " ) + visible ) ) ; mMWIStatus.put ( this . mSubId , visible ) ; updatePhoneStateListeners ( false , com.android.phone.CallNotifier.UPDATE_TYPE_MWI , this . mSubId ) ; }
Source:
public void testSuppressInnerClasses ( ) throws java.lang.Exception { assertEquals ( ( "ApiCallTest4.java:38: Error: Call requires API level 14 (current min is 1): android.widget.GridLayout#<init>\n" + "ApiCallTest4.java:9: Error: Call requires API level 14 (current min is 1): android.widget.GridLayout#<init>" ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk1.xml=>AndroidManifest.xml" , "apicheck/ApiCallTest4.java.txt=>src/test/pkg/ApiCallTest4.java" , "apicheck/ApiCallTest4.class.data=>bin/classes/test/pkg/ApiCallTest4.class" , "apicheck/ApiCallTest4$1.class.data=>bin/classes/test/pkg/ApiCallTest4$1.class" , "apicheck/ApiCallTest4$InnerClass1.class.data=>bin/classes/test/pkg/ApiCallTest4$InnerClass1.class" , "apicheck/ApiCallTest4$InnerClass2.class.data=>bin/classes/test/pkg/ApiCallTest4$InnerClass2.class" , "apicheck/ApiCallTest4$InnerClass1$InnerInnerClass1.class.data=>bin/classes/test/pkg/ApiCallTest4$InnerClass1$InnerInnerClass1.class" ) ) ; }

Target:
public void testSuppressInnerClasses ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/ApiCallTest4.java:9: Error: Call requires API level 14 (current min is 1): android.widget.GridLayout#<init> [NewApi]\n" + ( ( ( ( ( ( " new GridLayout(null, null, 0);\n" + " ~~~~~~~~~~\n" ) + "src/test/pkg/ApiCallTest4.java:38: Error: Call requires API level 14 (current min is 1): android.widget.GridLayout#<init> [NewApi]\n" ) + " new GridLayout(null, null, 0);\n" ) + " ~~~~~~~~~~\n" ) + "2 errors, 0 warnings\n" ) + "" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk1.xml=>AndroidManifest.xml" , "apicheck/ApiCallTest4.java.txt=>src/test/pkg/ApiCallTest4.java" , "apicheck/ApiCallTest4.class.data=>bin/classes/test/pkg/ApiCallTest4.class" , "apicheck/ApiCallTest4$1.class.data=>bin/classes/test/pkg/ApiCallTest4$1.class" , "apicheck/ApiCallTest4$InnerClass1.class.data=>bin/classes/test/pkg/ApiCallTest4$InnerClass1.class" , "apicheck/ApiCallTest4$InnerClass2.class.data=>bin/classes/test/pkg/ApiCallTest4$InnerClass2.class" , "apicheck/ApiCallTest4$InnerClass1$InnerInnerClass1.class.data=>bin/classes/test/pkg/ApiCallTest4$InnerClass1$InnerInnerClass1.class" ) ) ; }
Source:
synchronized int nScriptGroupCreate ( int [ ] kernels , int [ ] src , int [ ] dstk , int [ ] dstf , int [ ] types ) { validate ( ) ; return rsnScriptGroupCreate ( mContext , kernels , src , dstk , dstf , types ) ; }

Target:
synchronized void nScriptSetVarV ( long id , int slot , byte [ ] val ) { validate ( ) ; rsnScriptSetVarV ( mContext , id , slot , val ) ; }
Source:
static void check ( java.security.PublicKey key , sun.security.x509.AlgorithmId algorithmId ) throws java.security.cert.CertPathValidatorException { java.lang.String sigAlgName = algorithmId.getName ( ) ; java.security.AlgorithmParameters sigAlgParams = algorithmId.getParameters ( ) ; if ( ! ( sun.security.provider.certpath.AlgorithmChecker.certPathDefaultConstraints.permits ( sun.security.provider.certpath.AlgorithmChecker.SIGNATURE_PRIMITIVE_SET , sigAlgName , key , sigAlgParams ) ) ) { throw new java.security.cert.CertPathValidatorException ( ( ( "algorithm check failed: " + sigAlgName ) + " is disabled" ) , null , null , ( - 1 ) , java.security.cert.CertPathValidatorException.BasicReason.ALGORITHM_CONSTRAINED ) ; } }

Target:
static void check ( java.security.PublicKey key , sun.security.x509.AlgorithmId algorithmId ) throws java.security.cert.CertPathValidatorException { java.lang.String sigAlgName = algorithmId.getName ( ) ; java.security.AlgorithmParameters sigAlgParams = algorithmId.getParameters ( ) ; if ( ! ( sun.security.provider.certpath.AlgorithmChecker.certPathDefaultConstraints.permits ( sun.security.provider.certpath.AlgorithmChecker.SIGNATURE_PRIMITIVE_SET , sigAlgName , key , sigAlgParams ) ) ) { throw new java.security.cert.CertPathValidatorException ( ( ( "Algorithm constraints check failed on signature algorithm: " + sigAlgName ) + " is disabled" ) , null , null , ( - 1 ) , java.security.cert.CertPathValidatorException.BasicReason.ALGORITHM_CONSTRAINED ) ; } }
Source:
void addAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotation ) throws java.lang.UnsupportedOperationException { com.android.jack.ir.ast.JAnnotation type = annotation.getType ( ) ; assert ( getAnnotation ( type ) ) == null ; annotations.put ( type , annotation ) ; }

Target:
void addAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotation ) throws java.lang.UnsupportedOperationException { com.android.jack.ir.ast.JAnnotation type = annotation.getType ( ) ; java.util.List < com.android.jack.ir.ast.JAnnotationLiteral > annotationLiterals = annotations.get ( type ) ; if ( annotationLiterals == null ) { annotationLiterals = new java.util.ArrayList < com.android.jack.ir.ast.JAnnotationLiteral > ( 1 ) ; annotations.put ( type , annotationLiterals ) ; } annotationLiterals.add ( annotation ) ; }
Source:
public java.lang.reflect.Type getGenericType ( ) { java.lang.String signatureAttribute = getSignatureAttribute ( ) ; java.lang.Class < ? > declaringClass = getDeclaringClass ( ) ; java.lang.ClassLoader cl = declaringClass.getClassLoader ( ) ; libcore.reflect.GenericSignatureParser parser = new libcore.reflect.GenericSignatureParser ( cl ) ; parser.parseForField ( declaringClass , signatureAttribute ) ; java.lang.reflect.Type genericType = parser.fieldType ; if ( genericType == null ) { genericType = getType ( ) ; } return genericType ; }

Target:
public java.lang.reflect.Type getGenericType ( ) { java.lang.String signatureAttribute = libcore.reflect.AnnotationAccess.getSignature ( this ) ; java.lang.Class < ? > declaringClass = getDeclaringClass ( ) ; java.lang.ClassLoader cl = declaringClass.getClassLoader ( ) ; libcore.reflect.GenericSignatureParser parser = new libcore.reflect.GenericSignatureParser ( cl ) ; parser.parseForField ( declaringClass , signatureAttribute ) ; java.lang.reflect.Type genericType = parser.fieldType ; if ( genericType == null ) { genericType = getType ( ) ; } return genericType ; }
Source:
private static org.bouncycastle.math.ec.ECFieldElement hash2FieldElement ( org.bouncycastle.math.ec.ECCurve curve , byte [ ] hash ) { byte [ ] data = org.bouncycastle.util.Arrays.clone ( hash ) ; org.bouncycastle.crypto.signers.DSTU4145Signer.reverseBytes ( data ) ; java.math.BigInteger num = new java.math.BigInteger ( 1 , data ) ; while ( ( num.bitLength ( ) ) > ( curve.getFieldSize ( ) ) ) { num = num.clearBit ( ( ( num.bitLength ( ) ) - 1 ) ) ; } return curve.fromBigInteger ( num ) ; }

Target:
private static java.math.BigInteger fieldElement2Integer ( java.math.BigInteger n , org.bouncycastle.math.ec.ECFieldElement fe ) { return org.bouncycastle.crypto.signers.DSTU4145Signer.truncate ( fe.toBigInteger ( ) , ( ( n.bitLength ( ) ) - 1 ) ) ; }
Source:
public android.support.v7.widget.RecyclerView.ViewHolder onCreateViewHolder ( android.view.ViewGroup viewGroup , @ com.android.dialer.calllog.ui.NewCallLogAdapter.RowType int viewType ) { switch ( viewType ) { case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_TODAY : case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_OLDER : return new com.android.dialer.calllog.ui.HeaderViewHolder ( android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) . inflate ( R.layout.new_call_log_header , viewGroup , false ) ) ; case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.CALL_LOG_ENTRY : return new com.android.dialer.calllog.ui.NewCallLogViewHolder ( android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) . inflate ( R.layout.new_call_log_entry , viewGroup , false ) , clock ) ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( ( "Unsupported view type: " + viewType ) ) ; } }

Target:
public android.support.v7.widget.RecyclerView.ViewHolder onCreateViewHolder ( android.view.ViewGroup viewGroup , @ com.android.dialer.calllog.ui.NewCallLogAdapter.RowType int viewType ) { switch ( viewType ) { case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_TODAY : case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.HEADER_OLDER : return new com.android.dialer.calllog.ui.HeaderViewHolder ( android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) . inflate ( R.layout.new_call_log_header , viewGroup , false ) ) ; case com.android.dialer.calllog.ui.NewCallLogAdapter.RowType.CALL_LOG_ENTRY : return new com.android.dialer.calllog.ui.NewCallLogViewHolder ( android.view.LayoutInflater.from ( viewGroup.getContext ( ) ) . inflate ( R.layout.new_call_log_entry , viewGroup , false ) , clock , realtimeRowProcessor ) ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( ( "Unsupported view type: " + viewType ) ) ; } }
Source:
public void shouldRequireSupplicantStartupToLeaveInitialState ( ) throws java.lang.Exception { when ( mClientInterface.enableSupplicant ( ) ) . thenReturn ( false ) ; mWsm.setSupplicantRunning ( true ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( "InitialState" , getCurrentState ( ) . getName ( ) ) ; }

Target:
public void canRemoveNetworkConfigInClientMode ( ) throws java.lang.Exception { boolean result ; when ( mWifiConfigManager.removeNetwork ( eq ( 0 ) , anyInt ( ) ) ) . thenReturn ( true ) ; addNetworkAndVerifySuccess ( ) ; mLooper.startAutoDispatch ( ) ; result = mWsm.syncRemoveNetwork ( mWsmAsyncChannel , 0 ) ; mLooper.stopAutoDispatch ( ) ; org.junit.Assert.assertTrue ( result ) ; }
Source:
public void testInstall_withBadlyFormedRulesVersion ( ) throws java.lang.Exception { libcore.tzdata.update2.BundleVersion validBundleVersion = new libcore.tzdata.update2.BundleVersion ( 1 , 1 , libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , 1 ) ; byte [ ] invalidRulesVersionBytes = validBundleVersion.toBytes ( ) ; invalidRulesVersionBytes [ ( ( invalidRulesVersionBytes.length ) - 6 ) ] = 'B' ; libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createTimeZoneBundleWithVersionBytes ( invalidRulesVersionBytes ) ; assertEquals ( TimeZoneBundleInstaller.INSTALL_FAIL_BAD_BUNDLE_STRUCTURE , installer.installWithErrorCode ( bundle.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testInstall_withBadlyFormedRulesVersion ( ) throws java.lang.Exception { libcore.tzdata.update2.DistroVersion validDistroVersion = new libcore.tzdata.update2.DistroVersion ( 1 , 1 , libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , 1 ) ; byte [ ] invalidRulesVersionBytes = validDistroVersion.toBytes ( ) ; invalidRulesVersionBytes [ ( ( invalidRulesVersionBytes.length ) - 6 ) ] = 'B' ; libcore.tzdata.update2.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createTimeZoneDistroWithVersionBytes ( invalidRulesVersionBytes ) ; assertEquals ( TimeZoneBundleInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.installWithErrorCode ( distro.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }
Source:
public void queryRemoteConnectionServices ( com.android.internal.telecom.RemoteServiceCallback callback ) { final android.os.UserHandle callingUserHandle = android.os.Binder.getCallingUserHandle ( ) ; android.telecom.Log.startSession ( "CSW.qRCS" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "queryRemoteConnectionServices %s" , callback ) ; this . queryRemoteConnectionServices ( callingUserHandle , callback ) ; } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }

Target:
public void queryRemoteConnectionServices ( com.android.internal.telecom.RemoteServiceCallback callback , android.telecom.Logging.Session.Info sessionInfo ) { final android.os.UserHandle callingUserHandle = android.os.Binder.getCallingUserHandle ( ) ; android.telecom.Log.startSession ( sessionInfo , "CSW.qRCS" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "queryRemoteConnectionServices %s" , callback ) ; this . queryRemoteConnectionServices ( callingUserHandle , callback ) ; } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
private int parseFormatByte ( byte [ ] atrBytes , int index ) { if ( index >= ( atrBytes.length ) ) { com.android.internal.telephony.uicc.AnswerToReset.loge ( "Failed to read the format byte." ) ; return - 1 ; } mFormatByte = atrBytes [ index ] ; mHistoricalBytes = new byte [ ( mFormatByte ) & ( com.android.internal.telephony.uicc.AnswerToReset.T_MASK ) ] ; if ( com.android.internal.telephony.uicc.AnswerToReset.VDBG ) com.android.internal.telephony.uicc.AnswerToReset.log ( ( "mHistoricalBytesLength: " + ( mHistoricalBytes.length ) ) ) ; return index + 1 ; }

Target:
private int parseHistoricalBytes ( byte [ ] atrBytes , int index ) { int length = ( mFormatByte ) & ( com.android.internal.telephony.uicc.AnswerToReset.T_MASK ) ; if ( ( length + index ) > ( atrBytes.length ) ) { com.android.internal.telephony.uicc.AnswerToReset.loge ( "Failed to read the historical bytes." ) ; return - 1 ; } if ( length > 0 ) { mHistoricalBytes = com.android.internal.telephony.uicc.AnswerToReset.HistoricalBytes.parseHistoricalBytes ( atrBytes , index , length ) ; } return index + length ; }
Source:
public boolean isPaused ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return isPaused ( ) ; } } ) ; return ret ; } return mAwContents.isPaused ( ) ; }

Target:
public java.lang.String getOriginalUrl ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.String ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.String > ( ) { @ java.lang.Override public java.lang.String call ( ) { return getOriginalUrl ( ) ; } } ) ; return ret ; } java.lang.String url = mAwContents.getOriginalUrl ( ) ; if ( ( url == null ) || ( url.trim ( ) . isEmpty ( ) ) ) return null ; return url ; }
Source:
public static final android.icu.util.LocaleData getInstance ( android.icu.util.ULocale locale ) { android.icu.util.LocaleData ld = new android.icu.util.LocaleData ( ) ; ld.bundle = ( ( android.icu.impl.ICUResourceBundle ) ( android.icu.util.UResourceBundle.getBundleInstance ( ICUResourceBundle.ICU_BASE_NAME , locale ) ) ) ; ld.langBundle = ( ( android.icu.impl.ICUResourceBundle ) ( android.icu.util.UResourceBundle.getBundleInstance ( ICUResourceBundle.ICU_LANG_BASE_NAME , locale ) ) ) ; ld.noSubstitute = false ; return ld ; }

Target:
public static final android.icu.util.LocaleData getInstance ( android.icu.util.ULocale locale ) { android.icu.util.LocaleData ld = new android.icu.util.LocaleData ( ) ; ld.bundle = ( ( android.icu.impl.ICUResourceBundle ) ( android.icu.util.UResourceBundle.getBundleInstance ( ICUData.ICU_BASE_NAME , locale ) ) ) ; ld.langBundle = ( ( android.icu.impl.ICUResourceBundle ) ( android.icu.util.UResourceBundle.getBundleInstance ( ICUData.ICU_LANG_BASE_NAME , locale ) ) ) ; ld.noSubstitute = false ; return ld ; }
Source:
public void getImsRegistrationState ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_IMS_REGISTRATION_STATE , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } send ( rr ) ; }

Target:
public void getImsRegistrationState ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_IMS_REGISTRATION_STATE , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } send ( rr ) ; }
Source:
public java.util.Map.Entry < K , java.util.Collection < V > > next ( ) { return com.google.common.collect.Multimaps.unmodifiableAsMapEntry ( iterator.next ( ) ) ; }

Target:
public static < K , V > java.util.Map < K , java.util.Set < V > > asMap ( com.google.common.collect.SetMultimap < K , V > multimap ) { return ( ( java.util.Map < K , java.util.Set < V > > ) ( ( java.util.Map < K , ? > ) ( multimap.asMap ( ) ) ) ) ; }
Source:
public java.lang.String startWpsPinDisplay ( java.lang.String iface , java.lang.String bssid ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.startWpsPinDisplay ( iface , bssid ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doStringCommandNative ( ( ( "IFNAME=" + iface ) + " WPS_PIN any" ) ) ; } else { return doStringCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PIN " ) + bssid ) ) ; } } } }

Target:
public java.lang.String startWpsPinDisplay ( java.lang.String iface , java.lang.String bssid ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.startWpsPinDisplay ( iface , bssid ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doStringCommandNative ( ( ( "IFNAME=" + iface ) + " WPS_PIN any" ) ) ; } else { return doStringCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PIN " ) + bssid ) ) ; } } } }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , long [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 8 ) ) ; }

Target:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , java.lang.Object array , android.support.v8.renderscript.Element.DataType dt , int arrayLen ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , array , ( arrayLen * ( dt.mSize ) ) , dt ) ; }
Source:
private static java.lang.String getNotifTicker ( com.android.internal.location.GpsNetInitiatedHandler.GpsNiNotification notif ) { java.lang.String ticker = java.lang.String.format ( "Position request! ReqId: [%s] ClientName: [%s]" , com.android.internal.location.GpsNetInitiatedHandler.decodeString ( notif.requestorId , com.android.internal.location.GpsNetInitiatedHandler.mIsHexInput , notif.requestorIdEncoding ) , com.android.internal.location.GpsNetInitiatedHandler.decodeString ( notif.text , com.android.internal.location.GpsNetInitiatedHandler.mIsHexInput , notif.textEncoding ) ) ; return ticker ; }

Target:
private static java.lang.String getNotifMessage ( com.android.internal.location.GpsNetInitiatedHandler.GpsNiNotification notif , android.content.Context context ) { java.lang.String message = java.lang.String.format ( context.getString ( R.string.gpsNotifMessage ) , com.android.internal.location.GpsNetInitiatedHandler.decodeString ( notif.requestorId , com.android.internal.location.GpsNetInitiatedHandler.mIsHexInput , notif.requestorIdEncoding ) , com.android.internal.location.GpsNetInitiatedHandler.decodeString ( notif.text , com.android.internal.location.GpsNetInitiatedHandler.mIsHexInput , notif.textEncoding ) ) ; return message ; }
Source:
private static android.view.MotionEvent newTouchUpEvent ( long downTime , int x , int y ) { long eventTime = android.os.SystemClock.uptimeMillis ( ) ; android.view.MotionEvent event = android.view.MotionEvent.obtain ( downTime , eventTime , MotionEvent.ACTION_UP , x , y , 1 ) ; event.setSource ( InputDevice.SOURCE_TOUCHSCREEN ) ; return event ; }

Target:
private static android.view.MotionEvent newTouchUpEvent ( long downTime , int x , int y ) { long eventTime = android.os.SystemClock.uptimeMillis ( ) ; android.view.MotionEvent event = android.view.MotionEvent.obtain ( downTime , eventTime , MotionEvent.ACTION_UP , x , y , 1 ) ; if ( ( Build.VERSION.SDK_INT ) >= ( Build.VERSION_CODES.HONEYCOMB_MR1 ) ) { event.setSource ( InputDevice.SOURCE_TOUCHSCREEN ) ; } return event ; }
Source:
public byte [ ] getEncoded ( ) { try { if ( ( dsaSpec ) == null ) { return new org.bouncycastle.asn1.x509.SubjectPublicKeyInfo ( new org.bouncycastle.asn1.x509.AlgorithmIdentifier ( org.bouncycastle.asn1.x9.X9ObjectIdentifiers.id_dsa ) , new org.bouncycastle.asn1.DERInteger ( y ) ) . getEncoded ( ASN1Encoding.DER ) ; } return new org.bouncycastle.asn1.x509.SubjectPublicKeyInfo ( new org.bouncycastle.asn1.x509.AlgorithmIdentifier ( org.bouncycastle.asn1.x9.X9ObjectIdentifiers.id_dsa , new org.bouncycastle.asn1.x509.DSAParameter ( dsaSpec.getP ( ) , dsaSpec.getQ ( ) , dsaSpec.getG ( ) ) ) , new org.bouncycastle.asn1.DERInteger ( y ) ) . getEncoded ( ASN1Encoding.DER ) ; } catch ( java.io.IOException e ) { return null ; } }

Target:
public byte [ ] getEncoded ( ) { try { if ( ( dsaSpec ) == null ) { return new org.bouncycastle.asn1.x509.SubjectPublicKeyInfo ( new org.bouncycastle.asn1.x509.AlgorithmIdentifier ( org.bouncycastle.asn1.x9.X9ObjectIdentifiers.id_dsa ) , new org.bouncycastle.asn1.ASN1Integer ( y ) ) . getEncoded ( ASN1Encoding.DER ) ; } return new org.bouncycastle.asn1.x509.SubjectPublicKeyInfo ( new org.bouncycastle.asn1.x509.AlgorithmIdentifier ( org.bouncycastle.asn1.x9.X9ObjectIdentifiers.id_dsa , new org.bouncycastle.asn1.x509.DSAParameter ( dsaSpec.getP ( ) , dsaSpec.getQ ( ) , dsaSpec.getG ( ) ) ) , new org.bouncycastle.asn1.ASN1Integer ( y ) ) . getEncoded ( ASN1Encoding.DER ) ; } catch ( java.io.IOException e ) { return null ; } }
Source:
public void close ( ) throws java.io.IOException { synchronized ( closeLock ) { if ( closed ) { return ; } closed = true ; } if ( ( channel ) != null ) { fd.decrementAndGetUseCount ( ) ; channel.close ( ) ; } int useCount = fd.decrementAndGetUseCount ( ) ; if ( useCount <= 0 ) { libcore.io.IoBridge.closeAndSignalBlockedThreads ( fd ) ; } }

Target:
public void close ( ) throws java.io.IOException { synchronized ( closeLock ) { if ( closed ) { return ; } closed = true ; } guard.close ( ) ; if ( ( channel ) != null ) { channel.close ( ) ; } if ( isFdOwner ) { libcore.io.IoBridge.closeAndSignalBlockedThreads ( fd ) ; } }
Source:
public static java.lang.String toString ( @ android.security.KeyStoreKeyConstraints.DigestEnum int digest ) { switch ( digest ) { case android.security.KeyStoreKeyConstraints.Digest.NONE : return "NONE" ; case android.security.KeyStoreKeyConstraints.Digest.SHA256 : return "SHA256" ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown digest: " + digest ) ) ; } }

Target:
public static java.lang.String toString ( @ android.security.KeyStoreKeyConstraints.DigestEnum int digest ) { switch ( digest ) { case android.security.KeyStoreKeyConstraints.Digest.NONE : return "NONE" ; case android.security.KeyStoreKeyConstraints.Digest.MD5 : return "MD5" ; case android.security.KeyStoreKeyConstraints.Digest.SHA1 : return "SHA-1" ; case android.security.KeyStoreKeyConstraints.Digest.SHA224 : return "SHA-224" ; case android.security.KeyStoreKeyConstraints.Digest.SHA256 : return "SHA-256" ; case android.security.KeyStoreKeyConstraints.Digest.SHA384 : return "SHA-384" ; case android.security.KeyStoreKeyConstraints.Digest.SHA512 : return "SHA-512" ; default : throw new java.lang.IllegalArgumentException ( ( "Unknown digest: " + digest ) ) ; } }
Source:
public void setOutgoingCallerIdDisplay ( int clirMode , android.os.Message onComplete ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( "setCLIR action= " + clirMode ) ) ; android.os.Message resp ; resp = obtainMessage ( com.android.internal.telephony.imsphone.ImsPhone.EVENT_SET_CLIR_DONE , clirMode , 0 , onComplete ) ; try { com.android.ims.ImsUtInterface ut = mCT.getUtInterface ( ) ; ut.updateCLIR ( clirMode , resp ) ; } catch ( com.android.ims.ImsException e ) { sendErrorResponse ( onComplete , e ) ; } }

Target:
public void setOutgoingCallerIdDisplay ( int clirMode , android.os.Message onComplete ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) logd ( ( "setCLIR action= " + clirMode ) ) ; android.os.Message resp ; resp = obtainMessage ( com.android.internal.telephony.imsphone.ImsPhone.EVENT_SET_CLIR_DONE , clirMode , 0 , onComplete ) ; try { com.android.ims.ImsUtInterface ut = mCT.getUtInterface ( ) ; ut.updateCLIR ( clirMode , resp ) ; } catch ( com.android.ims.ImsException e ) { sendErrorResponse ( onComplete , e ) ; } }
Source:
public void testReport ( ) { java.lang.String [ ] xmls = android.os.VintfObject.report ( ) ; assertTrue ( ( ( xmls.length ) > 0 ) ) ; assertTrue ( java.lang.String.join ( "" , xmls ) . contains ( "<manifest version=\"1.0\" type=\"framework\">" ) ) ; }

Target:
public void testReport ( ) { java.lang.String [ ] xmls = android.os.VintfObject.report ( ) ; assertTrue ( ( ( xmls.length ) > 0 ) ) ; assertTrue ( java.lang.String.join ( "" , xmls ) . contains ( "<manifest version=\"1.0\" type=\"framework\">" ) ) ; assertTrue ( java.lang.String.join ( "" , xmls ) . contains ( "<compatibility-matrix version=\"1.0\" type=\"framework\">" ) ) ; }
Source:
private org.eclipse.core.runtime.IStatus validateLocation ( ) { if ( ( mValues.projectName ) != null ) { java.io.File dest = org.eclipse.core.runtime.Platform.getLocation ( ) . append ( mValues.projectName ) . toFile ( ) ; if ( dest.exists ( ) ) { return new org.eclipse.core.runtime.Status ( org.eclipse.core.runtime.IStatus.ERROR , com.android.ide.eclipse.adt.AdtPlugin.PLUGIN_ID , java.lang.String.format ( "There is already a file or directory named \"%1$s\" in the selected location." , mValues.projectName ) ) ; } } return null ; }

Target:
private org.eclipse.core.runtime.IStatus validateLocationInWorkspace ( ) { if ( ( mValues.projectName ) != null ) { java.io.File dest = org.eclipse.core.runtime.Platform.getLocation ( ) . append ( mValues.projectName ) . toFile ( ) ; if ( dest.exists ( ) ) { return new org.eclipse.core.runtime.Status ( org.eclipse.core.runtime.IStatus.ERROR , com.android.ide.eclipse.adt.AdtPlugin.PLUGIN_ID , java.lang.String.format ( "There is already a file or directory named \"%1$s\" in the selected location." , mValues.projectName ) ) ; } } return null ; }
Source:
public void testVoicemailCall ( ) { java.lang.String voicemailNumber = "voicemail:18005551234" ; android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_CALL , android.net.Uri.parse ( voicemailNumber ) ) ; intent.putExtra ( TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE , true ) ; int result = processIntent ( intent , true ) ; assertEquals ( DisconnectCause.NOT_DISCONNECTED , result ) ; org.mockito.Mockito.verify ( mCallsManager ) . placeOutgoingCall ( org.mockito.Matchers.eq ( mCall ) , org.mockito.Matchers.eq ( android.net.Uri.parse ( voicemailNumber ) ) , org.mockito.Matchers.any ( android.telecom.GatewayInfo.class ) , org.mockito.Matchers.eq ( true ) , org.mockito.Matchers.eq ( VideoProfile.STATE_AUDIO_ONLY ) ) ; }

Target:
public void testVoicemailCall ( ) { java.lang.String voicemailNumber = "voicemail:18005551234" ; android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_CALL , android.net.Uri.parse ( voicemailNumber ) ) ; intent.putExtra ( TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE , true ) ; int result = processIntent ( intent , true ) ; assertEquals ( DisconnectCause.NOT_DISCONNECTED , result ) ; org.mockito.Mockito.verify ( mCallsManager ) . placeOutgoingCall ( org.mockito.Matchers.eq ( mCall ) , org.mockito.Matchers.eq ( android.net.Uri.parse ( voicemailNumber ) ) , org.mockito.ArgumentMatchers.nullable ( android.telecom.GatewayInfo.class ) , org.mockito.Matchers.eq ( true ) , org.mockito.Matchers.eq ( VideoProfile.STATE_AUDIO_ONLY ) ) ; }
Source:
public void setUninstallBlocked ( @ android.annotation.NonNull android.content.ComponentName admin , java.lang.String packageName , boolean uninstallBlocked ) { throwIfParentInstance ( "setUninstallBlocked" ) ; if ( ( mService ) != null ) { try { mService.setUninstallBlocked ( admin , packageName , uninstallBlocked ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } } }

Target:
public boolean setPermissionGrantState ( @ android.annotation.NonNull android.content.ComponentName admin , java.lang.String packageName , java.lang.String permission , int grantState ) { throwIfParentInstance ( "setPermissionGrantState" ) ; try { return mService.setPermissionGrantState ( admin , mContext.getPackageName ( ) , packageName , permission , grantState ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } }
Source:
private static java.lang.String toKeyString ( byte [ ] bytes ) { try { return java.nio.charset.ModifiedUtf8.decode ( bytes , new char [ bytes.length ] , 0 , bytes.length ) ; } catch ( java.io.UTFDataFormatException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public long getmtime ( java.lang.String key ) { try { return mBinder.getmtime ( key ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return - 1L ; } }
Source:
public void testDeserializeStaticInitializerIsRunEventually ( ) throws java.lang.Exception { final java.lang.String s = "aced0005737200366c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6" + "e5465737424486173537461746963496e697469616c697a6572138aa8ed9e9b660a0200007870" ; java.lang.Class.forName ( libcore.java.io.SerializationTest.HasStaticInitializer.class . getName ( ) , false , java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) ) ; assertNull ( libcore.java.io.SerializationTest.hasStaticInitializerObject ) ; libcore.util.SerializationTester.deserializeHex ( s ) ; assertNotNull ( libcore.java.io.SerializationTest.hasStaticInitializerObject ) ; }

Target:
public void testDeserializeStaticInitializerIsRunEventually ( ) throws java.lang.Exception { final java.lang.String s = "aced0005737200366c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6" + "e5465737424486173537461746963496e697469616c697a6572138aa8ed9e9b660a0200007870" ; java.lang.Class.forName ( libcore.java.io.SerializationTest.HasStaticInitializer.class . getName ( ) , false , java.lang.Thread.currentThread ( ) . getContextClassLoader ( ) ) ; assertNull ( libcore.java.io.SerializationTest.hasStaticInitializerObject ) ; libcore.libcore.util.SerializationTester.deserializeHex ( s ) ; assertNotNull ( libcore.java.io.SerializationTest.hasStaticInitializerObject ) ; }
Source:
private void writePath ( java.io.FileOutputStream fos , java.lang.String path ) throws java.io.IOException { byte [ ] pathBytes = path.getBytes ( com.google.common.base.Charsets.UTF_8 ) ; java.nio.ByteBuffer b = java.nio.ByteBuffer.allocate ( 4 ) ; b.putInt ( pathBytes.length ) ; fos.write ( b.array ( ) ) ; fos.write ( pathBytes ) ; }

Target:
private void writeInt ( java.io.FileOutputStream fos , int value ) throws java.io.IOException { java.nio.ByteBuffer b = java.nio.ByteBuffer.allocate ( 4 ) ; b.putInt ( value ) ; fos.write ( b.array ( ) ) ; }
Source:
public void messageReceived ( java.util.List < com.android.ddmuilib.logcat.LogCatMessage > receivedMessages ) { refreshLogCatTable ( ) ; updateUnreadCount ( receivedMessages ) ; refreshFiltersTable ( ) ; }

Target:
public void messageReceived ( java.util.List < com.android.ddmuilib.logcat.LogCatMessage > receivedMessages ) { refreshLogCatTable ( ) ; if ( mShouldScrollToLatestLog ) { updateUnreadCount ( receivedMessages ) ; refreshFiltersTable ( ) ; } else { com.android.ddmuilib.logcat.LogCatMessageList messageList = mReceiver.getMessages ( ) ; int remainingCapacity = messageList.remainingCapacity ( ) ; if ( remainingCapacity == 0 ) { mRemovedEntriesCount += ( receivedMessages.size ( ) ) - ( mPreviousRemainingCapacity ) ; } mPreviousRemainingCapacity = remainingCapacity ; } }
Source:
public java.lang.String select ( com.ibm.icu.text.PluralRules.FixedDecimal n ) { if ( ( java.lang.Double.isInfinite ( n.source ) ) || ( java.lang.Double.isNaN ( n.source ) ) ) { return com.ibm.icu.text.PluralRules.KEYWORD_OTHER ; } com.ibm.icu.text.PluralRules.Rule r = selectRule ( n ) ; return r.getKeyword ( ) ; }

Target:
public java.lang.String select ( com.ibm.icu.text.PluralRules.IFixedDecimal n ) { if ( ( n.isInfinite ( ) ) || ( n.isNaN ( ) ) ) { return com.ibm.icu.text.PluralRules.KEYWORD_OTHER ; } com.ibm.icu.text.PluralRules.Rule r = selectRule ( n ) ; return r.getKeyword ( ) ; }
Source:
public void test_parkFor_1 ( ) { tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( false , 500 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( 1000 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 500 ) ; }

Target:
public void test_parkFor_1 ( ) { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , false , 500 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( barrier , 1000 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 500 ) ; }
Source:
void unregister ( ) { mCanvas.removeListener ( SWT.Dispose , this ) ; mCanvas.removeListener ( SWT.KeyDown , this ) ; mCanvas.removeListener ( SWT.MouseMove , this ) ; mCanvas.removeListener ( SWT.MouseHover , this ) ; }

Target:
void unregister ( ) { if ( ! ( mCanvas.isDisposed ( ) ) ) { mCanvas.removeListener ( SWT.Dispose , this ) ; mCanvas.removeListener ( SWT.KeyDown , this ) ; mCanvas.removeListener ( SWT.MouseMove , this ) ; mCanvas.removeListener ( SWT.MouseHover , this ) ; } }
Source:
static boolean safeContains ( java.util.Collection < ? > collection , java.lang.Object object ) { try { return collection.contains ( object ) ; } catch ( java.lang.ClassCastException e ) { return false ; } }

Target:
static boolean safeContains ( java.util.Collection < ? > collection , @ javax.annotation.Nullable java.lang.Object object ) { com.google.common.base.Preconditions.checkNotNull ( collection ) ; try { return collection.contains ( object ) ; } catch ( java.lang.ClassCastException e ) { return false ; } catch ( java.lang.NullPointerException e ) { return false ; } }
Source:
public static < T extends java.lang.reflect.Member > T reflectAs ( java.lang.Class < T > expected , java.lang.invoke.MethodHandle target ) { java.lang.SecurityManager smgr = java.lang.System.getSecurityManager ( ) ; if ( smgr != null ) smgr.checkPermission ( java.lang.invoke.MethodHandles.ACCESS_PERMISSION ) ; java.lang.invoke.MethodHandles.Lookup lookup = java.lang.invoke.MethodHandles.Lookup.IMPL_LOOKUP ; return lookup.revealDirect ( target ) . reflectAs ( expected , lookup ) ; }

Target:
public static < T extends java.lang.reflect.Member > T reflectAs ( java.lang.Class < T > expected , java.lang.invoke.MethodHandle target ) { throw new java.lang.UnsupportedOperationException ( "MethodHandles.reflectAs is not implemented." ) ; }
Source:
public final byte [ ] doFinal ( byte [ ] input ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } return spiImpl.engineDoFinal ( input , 0 , input.length ) ; }

Target:
public final int doFinal ( byte [ ] output , int outputOffset ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( outputOffset < 0 ) { throw new java.lang.IllegalArgumentException ( ( "outputOffset < 0. outputOffset=" + outputOffset ) ) ; } return getSpi ( ) . engineDoFinal ( null , 0 , 0 , output , outputOffset ) ; }
Source:
public void run ( ) { final android.widget.cts.GridViewTest.MockGridView mockGridView = new android.widget.cts.GridViewTest.MockGridView ( mActivity ) ; org.junit.Assert.assertFalse ( mockGridView.hasCalledOnFocusChanged ( ) ) ; mockGridView.setAdapter ( new android.widget.cts.GridViewTest.MockGridViewAdapter ( 10 ) ) ; mockGridView.setFocusable ( true ) ; mockGridView.requestFocus ( ) ; org.junit.Assert.assertTrue ( mockGridView.hasCalledOnFocusChanged ( ) ) ; mockGridView.reset ( ) ; org.junit.Assert.assertFalse ( mockGridView.hasCalledOnFocusChanged ( ) ) ; mockGridView.clearFocus ( ) ; org.junit.Assert.assertTrue ( mockGridView.hasCalledOnFocusChanged ( ) ) ; }

Target:
public void testOnFocusChanged ( ) { final android.widget.cts.GridViewTest.MockGridView mockGridView = new android.widget.cts.GridViewTest.MockGridView ( mActivity ) ; assertFalse ( mockGridView.hasCalledOnFocusChanged ( ) ) ; mockGridView.setAdapter ( new android.widget.cts.GridViewTest.MockGridViewAdapter ( 10 ) ) ; mockGridView.setFocusable ( true ) ; mockGridView.requestFocus ( ) ; assertTrue ( mockGridView.hasCalledOnFocusChanged ( ) ) ; mockGridView.reset ( ) ; assertFalse ( mockGridView.hasCalledOnFocusChanged ( ) ) ; mockGridView.clearFocus ( ) ; assertTrue ( mockGridView.hasCalledOnFocusChanged ( ) ) ; }
Source:
synchronized boolean isHearingAidPlaying ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hearingaid.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( com.android.bluetooth.hearingaid.HearingAidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hearingaid.HearingAidService.TAG , ( ( "isHearingAidPlaying(" + device ) + ")" ) ) ; } synchronized ( mStateMachines ) { com.android.bluetooth.hearingaid.HearingAidStateMachine sm = mStateMachines.get ( device ) ; if ( sm == null ) { return false ; } return sm.isPlaying ( ) ; } }

Target:
int getCapabilities ( android.bluetooth.BluetoothDevice device ) { if ( ! ( mDeviceCapabilitiesMap.containsKey ( device ) ) ) { return - 1 ; } return mDeviceCapabilitiesMap.get ( device ) ; }
Source:
public void testSystemTzDataFileMissing ( ) throws java.lang.Exception { com.android.cts.tzdata.TzDataCheckTest.PathPair dataCurrentDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.CURRENT_DIR_NAME ) ; libcore.tzdata.shared2.TimeZoneDistro validDistro = com.android.cts.tzdata.TzDataCheckTest.createValidDistroBuilder ( ) . build ( ) ; com.android.cts.tzdata.TzDataCheckTest.unpackOnHost ( dataCurrentDir , validDistro ) ; pushHostTestDirToDevice ( ) ; assertEquals ( 6 , runTzDataCheckOnDevice ( ) ) ; assertDeviceDirContainsDistro ( dataCurrentDir , validDistro ) ; }

Target:
public void testSystemTzDataFileMissing ( ) throws java.lang.Exception { com.android.cts.tzdata.TzDataCheckTest.PathPair dataCurrentDir = mDataDir.createSubPath ( com.android.cts.tzdata.TzDataCheckTest.CURRENT_DIR_NAME ) ; com.android.timezone.distro.TimeZoneDistro validDistro = com.android.cts.tzdata.TzDataCheckTest.createValidDistroBuilder ( ) . build ( ) ; com.android.cts.tzdata.TzDataCheckTest.unpackOnHost ( dataCurrentDir , validDistro ) ; pushHostTestDirToDevice ( ) ; assertEquals ( 6 , runTzDataCheckOnDevice ( ) ) ; assertDeviceDirContainsDistro ( dataCurrentDir , validDistro ) ; }
Source:
private void saveTranscript ( com.android.incallui.call.DialerCall dialerCall ) { com.android.dialer.common.LogUtil.enterBlock ( "RttCallPresenter.saveTranscript" ) ; com.android.dialer.rtt.RttTranscript.Builder builder = com.android.dialer.rtt.RttTranscript.newBuilder ( ) ; builder.setId ( ( ( dialerCall.getNumber ( ) ) + ( dialerCall.getCreationTimeMillis ( ) ) ) ) . setTimestamp ( dialerCall.getCreationTimeMillis ( ) ) . setNumber ( dialerCall.getNumber ( ) ) . addAllMessages ( rttCallScreen.getRttTranscriptMessageList ( ) ) ; dialerCall.setRttTranscript ( builder.build ( ) ) ; }

Target:
private void saveTranscript ( com.android.incallui.call.DialerCall dialerCall ) { com.android.dialer.common.LogUtil.enterBlock ( "RttCallPresenter.saveTranscript" ) ; com.android.dialer.rtt.RttTranscript.Builder builder = com.android.dialer.rtt.RttTranscript.newBuilder ( ) ; builder.setId ( java.lang.String.valueOf ( dialerCall.getCreationTimeMillis ( ) ) ) . setTimestamp ( dialerCall.getCreationTimeMillis ( ) ) . setNumber ( dialerCall.getNumber ( ) ) . addAllMessages ( rttCallScreen.getRttTranscriptMessageList ( ) ) ; dialerCall.setRttTranscript ( builder.build ( ) ) ; }
Source:
public void testKeyPairGenerator_GenerateKeyPair_Success ( ) throws java.lang.Exception { mGenerator.initialize ( new android.security.AndroidKeyPairGeneratorSpec ( getContext ( ) , android.security.AndroidKeyPairGeneratorTest.TEST_ALIAS_1 , android.security.AndroidKeyPairGeneratorTest.TEST_DN_1 , android.security.AndroidKeyPairGeneratorTest.TEST_SERIAL_1 , android.security.AndroidKeyPairGeneratorTest.NOW , android.security.AndroidKeyPairGeneratorTest.NOW_PLUS_10_YEARS ) ) ; final java.security.KeyPair pair = mGenerator.generateKeyPair ( ) ; assertNotNull ( "The KeyPair returned should not be null" , pair ) ; assertKeyPairCorrect ( pair , android.security.AndroidKeyPairGeneratorTest.TEST_ALIAS_1 , android.security.AndroidKeyPairGeneratorTest.TEST_DN_1 , android.security.AndroidKeyPairGeneratorTest.TEST_SERIAL_1 , android.security.AndroidKeyPairGeneratorTest.NOW , android.security.AndroidKeyPairGeneratorTest.NOW_PLUS_10_YEARS ) ; }

Target:
public void testKeyPairGenerator_Initialize_ParamsAndSecureRandom_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mGenerator.initialize ( new android.security.AndroidKeyPairGeneratorSpec.Builder ( getContext ( ) ) . setAlias ( android.security.AndroidKeyPairGeneratorTest.TEST_ALIAS_1 ) . setSubject ( android.security.AndroidKeyPairGeneratorTest.TEST_DN_1 ) . setSerialNumber ( android.security.AndroidKeyPairGeneratorTest.TEST_SERIAL_1 ) . setStartDate ( android.security.AndroidKeyPairGeneratorTest.NOW ) . setEndDate ( android.security.AndroidKeyPairGeneratorTest.NOW_PLUS_10_YEARS ) . setEncryptionRequired ( ) . build ( ) , new java.security.SecureRandom ( ) ) ; }
Source:
public void test5_findFirst2 ( ) { for ( int i = 0 ; i < 31 ; i ++ ) { assertEquals ( com.android.dx.util._tests.BitsTest.label ( i ) , ( i + 1 ) , com.android.dx.util.Bits.findFirst ( ( 1 << ( i + 1 ) ) , i ) ) ; } }

Target:
public void test5_findFirst2 ( ) { for ( int i = 0 ; i < 31 ; i ++ ) { assertEquals ( com.android.dx.util.BitsTest.label ( i ) , ( i + 1 ) , com.android.dx.util.Bits.findFirst ( ( 1 << ( i + 1 ) ) , i ) ) ; } }
Source:
public void requestImageRef ( android.os.Message msg ) { int contentX = viewToContent ( ( ( ( int ) ( mLastTouchX ) ) + ( mScrollX ) ) ) ; int contentY = viewToContent ( ( ( ( int ) ( mLastTouchY ) ) + ( mScrollY ) ) ) ; java.lang.String ref = nativeImageURI ( contentX , contentY ) ; android.os.Bundle data = msg.getData ( ) ; data.putString ( "url" , ref ) ; msg.setData ( data ) ; msg.sendToTarget ( ) ; }

Target:
public void setInitialScale ( int scaleInPercent ) { mInitialScaleInPercent = scaleInPercent ; }
Source:
public void testApplyingWithCriticalFiles ( ) throws java.lang.Exception { com.intellij.updater.PatchFileCreator.create ( myOlderDir , myNewerDir , myFile , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Arrays.asList ( "lib/annotations.jar" ) , java.util.Collections.< java.lang.String > emptyList ( ) , com.intellij.updater.TEST_UI ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; assertTrue ( com.intellij.updater.PatchFileCreator.apply ( preparationResult , new java.util.HashMap < java.lang.String , com.intellij.updater.ValidationResult.Option > ( ) , com.intellij.updater.TEST_UI ) ) ; assertAppliedCorrectly ( ) ; }

Target:
public void testApplyingWithCriticalFiles ( ) throws java.lang.Exception { com.intellij.updater.PatchFileCreator.create ( "from" , "to" , myOlderDir , myNewerDir , myFile , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Arrays.asList ( "lib/annotations.jar" ) , java.util.Collections.< java.lang.String > emptyList ( ) , com.intellij.updater.TEST_UI ) ; com.intellij.updater.PatchFileCreator.PreparationResult preparationResult = com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ; assertTrue ( com.intellij.updater.PatchFileCreator.apply ( preparationResult , new java.util.HashMap < java.lang.String , com.intellij.updater.ValidationResult.Option > ( ) , com.intellij.updater.TEST_UI ) ) ; assertAppliedCorrectly ( ) ; }
Source:
public static float copySign ( float magnitude , float sign ) { return sun.misc.FpUtils.rawCopySign ( magnitude , sign ) ; }

Target:
public static float copySign ( float magnitude , float sign ) { return java.lang.Float.intBitsToFloat ( ( ( ( java.lang.Float.floatToRawIntBits ( sign ) ) & ( sun.misc.FloatConsts.SIGN_BIT_MASK ) ) | ( ( java.lang.Float.floatToRawIntBits ( magnitude ) ) & ( ( sun.misc.FloatConsts.EXP_BIT_MASK ) | ( sun.misc.FloatConsts.SIGNIF_BIT_MASK ) ) ) ) ) ; }