auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void mouseMove ( org.eclipse.swt.events.MouseEvent e ) { mLastMouseX = e.x ; mLastMouseY = e.y ; mLastStateMask = e.stateMask ; if ( ( ( e.stateMask ) & ( org.eclipse.swt.SWT.BUTTON_MASK ) ) != 0 ) { if ( ( mCurrentGesture ) != null ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint controlPoint = com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( mCanvas , e ) ; updateMouse ( controlPoint , e ) ; mCanvas.redraw ( ) ; } } else { mCanvas.hover ( e ) ; } }

Target:
public void mouseMove ( org.eclipse.swt.events.MouseEvent e ) { mLastMouseX = e.x ; mLastMouseY = e.y ; mLastStateMask = e.stateMask ; if ( ( ( e.stateMask ) & ( org.eclipse.swt.SWT.BUTTON_MASK ) ) != 0 ) { if ( ( mCurrentGesture ) != null ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint controlPoint = com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( mCanvas , e ) ; updateMouse ( controlPoint , e ) ; mCanvas.redraw ( ) ; } } else { updateCursor ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.ControlPoint.create ( mCanvas , e ) ) ; mCanvas.hover ( e ) ; } }
Source:
void dispatchMediaKeyWithWakeLockToAudioService ( android.view.KeyEvent event ) { if ( android.app.ActivityManagerNative.isSystemReady ( ) ) { android.media.IAudioService audioService = com.android.internal.policy.impl.PhoneWindowManager.getAudioService ( ) ; if ( audioService != null ) { try { audioService.dispatchMediaKeyEventUnderWakelock ( event ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.internal.policy.impl.PhoneWindowManager.TAG , ( "dispatchMediaKeyEvent threw exception " + e ) ) ; } } } }

Target:
private boolean shouldDispatchInputWhenNonInteractive ( ) { return ( ( keyguardIsShowingTq ( ) ) && ( ( mDisplay ) != null ) ) && ( ( mDisplay.getState ( ) ) != ( android.view.Display.STATE_OFF ) ) ; }
Source:
private void setupMocks ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; mAlarmManager = new android.app.test.TestAlarmManager ( ) ; mLooper = new android.os.test.TestLooper ( ) ; when ( mContext.getSystemService ( Context.ALARM_SERVICE ) ) . thenReturn ( mAlarmManager.getAlarmManager ( ) ) ; mUserStore = new com.android.server.wifi.WifiConfigStoreTest.MockStoreFile ( ) ; mSharedStore = new com.android.server.wifi.WifiConfigStoreTest.MockStoreFile ( ) ; }

Target:
private void setupMocks ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; mAlarmManager = new android.app.test.TestAlarmManager ( ) ; mLooper = new android.os.test.TestLooper ( ) ; when ( mContext.getSystemService ( Context.ALARM_SERVICE ) ) . thenReturn ( mAlarmManager.getAlarmManager ( ) ) ; mUserStore = new com.android.server.wifi.WifiConfigStoreTest.MockStoreFile ( ) ; mSharedStore = new com.android.server.wifi.WifiConfigStoreTest.MockStoreFile ( ) ; mStoreData = new com.android.server.wifi.WifiConfigStoreTest.MockStoreData ( ) ; }
Source:
public final void visitCode ( ) { }

Target:
public void visitParameter ( java.lang.String name , int access ) { org.xml.sax.helpers.AttributesImpl attrs = new org.xml.sax.helpers.AttributesImpl ( ) ; if ( name != null ) { attrs.addAttribute ( "" , "name" , "name" , "" , name ) ; } java.lang.StringBuffer sb = new java.lang.StringBuffer ( ) ; org.objectweb.asm.xml.SAXClassAdapter.appendAccess ( access , sb ) ; attrs.addAttribute ( "" , "access" , "access" , "" , sb.toString ( ) ) ; sa.addElement ( "parameter" , attrs ) ; }
Source:
private com.android.internal.telephony.gsm.stk.CommandDetails processCommandDetails ( java.util.List < com.android.internal.telephony.gsm.stk.ComprehensionTlv > ctlvs ) { com.android.internal.telephony.gsm.stk.CommandDetails cmdDet = null ; if ( ctlvs != null ) { com.android.internal.telephony.gsm.stk.ComprehensionTlv ctlvCmdDet = searchForTag ( ComprehensionTlvTag.COMMAND_DETAILS , ctlvs ) ; if ( ctlvCmdDet != null ) { try { cmdDet = com.android.internal.telephony.gsm.stk.ValueParser.retrieveCommandDetails ( ctlvCmdDet ) ; } catch ( com.android.internal.telephony.gsm.stk.ResultException e ) { com.android.internal.telephony.gsm.stk.StkLog.d ( this , "Failed to procees command details" ) ; } } } return cmdDet ; }

Target:
private com.android.internal.telephony.cat.CommandDetails processCommandDetails ( java.util.List < com.android.internal.telephony.cat.ComprehensionTlv > ctlvs ) { com.android.internal.telephony.cat.CommandDetails cmdDet = null ; if ( ctlvs != null ) { com.android.internal.telephony.cat.ComprehensionTlv ctlvCmdDet = searchForTag ( ComprehensionTlvTag.COMMAND_DETAILS , ctlvs ) ; if ( ctlvCmdDet != null ) { try { cmdDet = com.android.internal.telephony.cat.ValueParser.retrieveCommandDetails ( ctlvCmdDet ) ; } catch ( com.android.internal.telephony.cat.ResultException e ) { com.android.internal.telephony.cat.CatLog.d ( this , "Failed to procees command details" ) ; } } } return cmdDet ; }
Source:
public void setUp ( ) throws java.lang.Exception { mMockConnection = new com.android.volley.mock.MockHttpURLConnection ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; org.mockito.Mockito.when ( mMockConnection.getOutputStream ( ) ) . thenReturn ( new java.io.ByteArrayOutputStream ( ) ) ; mHurlStack = new com.android.volley.toolbox.HurlStack ( ) { @ java.lang.Override protected java.net.HttpURLConnection createConnection ( java.net.URL url ) { return mMockConnection ; } } ; }
Source:
public void testSuccessfulFollowOnUpdate ( ) throws java.lang.Exception { libcore.tzdata.update2.ConfigBundle tzData1 = createValidTzDataBundle ( "2030a" ) ; assertTrue ( install ( tzData1 ) ) ; assertTzDataInstalled ( tzData1 ) ; libcore.tzdata.update2.ConfigBundle tzData2 = createValidTzDataBundle ( "2030b" ) ; assertTrue ( install ( tzData2 ) ) ; assertTzDataInstalled ( tzData2 ) ; }

Target:
public void testMissingRequiredBundleFile ( ) throws java.lang.Exception { libcore.tzdata.update2.ConfigBundle installedConfigBundle = createValidTzDataBundle ( libcore.tzdata.update2.TzDataBundleInstallerTest.NEW_RULES_VERSION ) ; assertTrue ( installer.install ( installedConfigBundle.getBundleBytes ( ) ) ) ; assertTzDataInstalled ( installedConfigBundle ) ; libcore.tzdata.update2.ConfigBundle incompleteUpdate = createValidTzDataBundleBuilder ( libcore.tzdata.update2.TzDataBundleInstallerTest.NEWER_RULES_VERSION ) . clearBionicTzData ( ) . buildUnvalidated ( ) ; assertFalse ( installer.install ( incompleteUpdate.getBundleBytes ( ) ) ) ; assertTzDataInstalled ( installedConfigBundle ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { IsDefaultTest.test ( ) ; AnnotationTest.testAnnotationsByType ( ) ; AnnotationTest.testDeclaredAnnotation ( ) ; AnnotationTest.testDeclaredAnnotationsByType ( ) ; AnnotationTest.testMethodAnnotationsByType ( ) ; AnnotationTest.testMethodDeclaredAnnotations ( ) ; AnnotationTest.testMethodDeclaredAnnotationsByType ( ) ; }

Target:
public void sayHi ( ) { java.lang.System.out.println ( "hello specific" ) ; }
Source:
public void testLibProguard ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "libProguard" ) ; java.io.File fileOutput = new java.io.File ( project , ( ( "build/" + ( com.android.builder.model.AndroidProject.FD_OUTPUTS ) ) + "/proguard/release" ) ) ; runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_TEST_VERSION , project , java.util.Collections.< java.lang.String > emptyList ( ) , "clean" , "build" ) ; com.android.build.gradle.ManualBuildTest.checkFile ( fileOutput , "mapping.txt" , new java.lang.String [ ] { "int proguardInt -> a" } ) ; }

Target:
public void testLibProguard ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "libProguard" ) ; java.io.File fileOutput = new java.io.File ( project , ( ( "build/" + ( com.android.builder.model.AndroidProject.FD_OUTPUTS ) ) + "/proguard/release" ) ) ; runTasksOn ( project , BasePlugin.GRADLE_TEST_VERSION , "clean" , "build" ) ; com.android.build.gradle.ManualBuildTest.checkFile ( fileOutput , "mapping.txt" , new java.lang.String [ ] { "int proguardInt -> a" } ) ; }
Source:
public void addSignalCallback ( com.android.systemui.statusbar.policy.SignalCallback cb ) { mCallbackHandler.setListening ( cb , true ) ; mCallbackHandler.setSubs ( mCurrentSubscriptions ) ; mCallbackHandler.setIsAirplaneMode ( new com.android.systemui.statusbar.policy.IconState ( mAirplaneMode , TelephonyIcons.FLIGHT_MODE_ICON , R.string.accessibility_airplane_mode , mContext ) ) ; mCallbackHandler.setNoSims ( mHasNoSims ) ; mWifiSignalController.notifyListeners ( ) ; mEthernetSignalController.notifyListeners ( ) ; for ( com.android.systemui.statusbar.policy.MobileSignalController mobileSignalController : mMobileSignalControllers.values ( ) ) { mobileSignalController.notifyListeners ( ) ; } }

Target:
public void removeEmergencyListener ( com.android.systemui.statusbar.policy.EmergencyListener listener ) { mCallbackHandler.setListening ( listener , false ) ; }
Source:
public void onClick ( android.view.View v ) { java.lang.String input = null ; switch ( v.getId ( ) ) { case com.android.stk.StkDialogActivity.OK_BUTTON : com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkDialogActivity.LOG_TAG , ( "OK Clicked!, mSlotId: " + ( mSlotId ) ) ) ; cancelTimeOut ( ) ; sendResponse ( StkAppService.RES_ID_CONFIRM , true ) ; break ; case com.android.stk.StkDialogActivity.CANCEL_BUTTON : com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkDialogActivity.LOG_TAG , ( "Cancel Clicked!, mSlotId: " + ( mSlotId ) ) ) ; cancelTimeOut ( ) ; sendResponse ( StkAppService.RES_ID_CONFIRM , false ) ; break ; } finish ( ) ; }

Target:
public void onClick ( android.content.DialogInterface dialog , int id ) { com.android.internal.telephony.cat.CatLog.d ( com.android.stk.StkDialogActivity.LOG_TAG , ( "Cancel Clicked!, mSlotId: " + ( mSlotId ) ) ) ; cancelTimeOut ( ) ; sendResponse ( StkAppService.RES_ID_CONFIRM , false ) ; finish ( ) ; }
Source:
private void expectNetworkState ( android.net.NetworkState ... state ) throws java.lang.Exception { org.easymock.EasyMock.expect ( mConnManager.getAllNetworkState ( ) ) . andReturn ( state ) . atLeastOnce ( ) ; final android.net.LinkProperties linkProp = ( ( state.length ) > 0 ) ? state [ 0 ] . linkProperties : null ; org.easymock.EasyMock.expect ( mConnManager.getActiveLinkProperties ( ) ) . andReturn ( linkProp ) . atLeastOnce ( ) ; }

Target:
private void expectNetworkState ( android.net.NetworkState ... state ) throws java.lang.Exception { org.mockito.Mockito.when ( mConnManager.getAllNetworkState ( ) ) . thenReturn ( state ) ; final android.net.LinkProperties linkProp = ( ( state.length ) > 0 ) ? state [ 0 ] . linkProperties : null ; org.mockito.Mockito.when ( mConnManager.getActiveLinkProperties ( ) ) . thenReturn ( linkProp ) ; }
Source:
public void loadContactPhoto ( android.widget.ImageView imageView , com.android.dialer.glidephotomanager.PhotoInfo photoInfo ) { com.android.dialer.common.Assert.isMainThread ( ) ; com.android.dialer.glide.GlideRequest < android.graphics.drawable.Drawable > request = buildRequest ( com.android.dialer.glide.GlideApp.with ( imageView ) , photoInfo ) ; request.into ( imageView ) ; }

Target:
public void loadContactPhoto ( android.widget.ImageView imageView , com.android.dialer.glidephotomanager.PhotoInfo photoInfo ) { com.android.dialer.common.Assert.isMainThread ( ) ; imageView.setContentDescription ( appContext.getString ( com.android.dialer.contactphoto.R.string.description_quick_contact_for , photoInfo.getName ( ) ) ) ; com.android.dialer.glide.GlideRequest < android.graphics.drawable.Drawable > request = buildRequest ( com.android.dialer.glide.GlideApp.with ( imageView ) , photoInfo ) ; request.into ( imageView ) ; }
Source:
public void testAppInstallAndLaunch ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = getInstrumentation ( ) ; android.support.test.uiautomator.UiDevice device = android.support.test.uiautomator.UiDevice.getInstance ( instrumentation ) ; com.android.devtools.systemimage.uitest.utils.TestUtils.disableHomeOverlayItems ( device ) ; com.android.devtools.systemimage.uitest.utils.AppManager.installApp ( instrumentation , "HelloCompute.apk" ) ; com.android.devtools.systemimage.uitest.utils.TestUtils.disableAppsOverlayItems ( device ) ; com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "RsHelloCompute" ) ; com.android.devtools.systemimage.uitest.utils.AppManager.uninstallApp ( instrumentation , "RsHelloCompute" , null ) ; }

Target:
public void testAppInstallAndLaunch ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; com.android.devtools.systemimage.uitest.utils.AppManager.installApp ( instrumentation , "HelloCompute.apk" ) ; com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "RsHelloCompute" ) ; com.android.devtools.systemimage.uitest.utils.AppManager.uninstallApp ( instrumentation , "RsHelloCompute" , null ) ; }
Source:
private static native int nativeForkAndSpecialize ( int uid , int gid , int [ ] gids , int runtimeFlags , int [ ] [ ] rlimits , int mountExternal , java.lang.String seInfo , java.lang.String niceName , int [ ] fdsToClose , int [ ] fdsToIgnore , java.lang.String instructionSet , java.lang.String appDataDir ) ;

Target:
private static native int nativeForkAndSpecialize ( int uid , int gid , int [ ] gids , int runtimeFlags , int [ ] [ ] rlimits , int mountExternal , java.lang.String seInfo , java.lang.String niceName , int [ ] fdsToClose , int [ ] fdsToIgnore , boolean startChildZygote , java.lang.String instructionSet , java.lang.String appDataDir ) ;
Source:
public static android.support.v8.renderscript.ScriptIntrinsicBlend create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { long id = rs.nScriptIntrinsicCreate ( 7 , e.getID ( rs ) ) ; return new android.support.v8.renderscript.ScriptIntrinsicBlend ( id , rs ) ; }

Target:
public static android.support.v8.renderscript.ScriptIntrinsicBlend create ( android.support.v8.renderscript.RenderScript rs , android.support.v8.renderscript.Element e ) { long id ; boolean mUseIncSupp = ( rs.isUseNative ( ) ) && ( ( android.os.Build.VERSION.SDK_INT ) < ( android.support.v8.renderscript.ScriptIntrinsicBlend.INTRINSIC_API_LEVEL ) ) ; id = rs.nScriptIntrinsicCreate ( 7 , e.getID ( rs ) , mUseIncSupp ) ; android.support.v8.renderscript.ScriptIntrinsicBlend si = new android.support.v8.renderscript.ScriptIntrinsicBlend ( id , rs ) ; si.setIncSupp ( mUseIncSupp ) ; return si ; }
Source:
void setBody ( com.google.mockwebserver.MockResponse response , byte [ ] content , int chunkSize ) throws java.io.IOException { }

Target:
void setBody ( com.google.mockwebserver.MockResponse response , byte [ ] content , int chunkSize ) { response.setBody ( content ) ; response.setSocketPolicy ( com.google.mockwebserver.SocketPolicy.DISCONNECT_AT_END ) ; for ( java.util.Iterator < java.lang.String > h = response.getHeaders ( ) . iterator ( ) ; h.hasNext ( ) ; ) { if ( h.next ( ) . startsWith ( "Content-Length:" ) ) { h.remove ( ) ; break ; } } }
Source:
public void enablingVerboseLoggingIncreasesLogRecSize ( ) { org.junit.Assert.assertTrue ( ( ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE ) > ( WifiStateMachine.NUM_LOG_RECS_NORMAL ) ) ) ; mWsm.enableVerboseLogging ( 1 ) ; for ( int i = 0 ; i < ( ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE ) * 2 ) ; i ++ ) { mWsm.sendMessage ( WifiStateMachine.CMD_DISCONNECT ) ; } mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE , mWsm.getLogRecSize ( ) ) ; }

Target:
public void disablingVerboseLoggingUpdatesLogRecSize ( ) { mWsm.enableVerboseLogging ( 1 ) ; mWsm.enableVerboseLogging ( 0 ) ; org.junit.Assert.assertEquals ( WifiStateMachine.NUM_LOG_RECS_NORMAL , mWsm.getLogRecMaxSize ( ) ) ; }
Source:
public void exit ( ) { if ( android.net.wifi.WifiStateMachine.DBG ) log ( ( ( getName ( ) ) + "\n" ) ) ; mIsRunning = false ; updateBatteryWorkSource ( null ) ; mScanResults = null ; }

Target:
public void exit ( ) { if ( android.net.wifi.WifiStateMachine.DBG ) log ( ( ( getName ( ) ) + "\n" ) ) ; mIsRunning = false ; updateBatteryWorkSource ( null ) ; mScanResults = null ; if ( mP2pSupported ) mWifiP2pChannel.sendMessage ( android.net.wifi.WifiStateMachine.CMD_DISABLE_P2P ) ; mContext.unregisterReceiver ( mScreenReceiver ) ; }
Source:
public boolean isPossibleShortNumberForRegion ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number , java.lang.String regionDialingFrom ) { if ( ! ( regionDialingFromMatchesNumber ( number , regionDialingFrom ) ) ) { return false ; } com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionDialingFrom ) ; if ( phoneMetadata == null ) { return false ; } return matcherApi.matchesPossibleNumber ( com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) , phoneMetadata.generalDesc ) ; }

Target:
public boolean isPossibleShortNumberForRegion ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number , java.lang.String regionDialingFrom ) { if ( ! ( regionDialingFromMatchesNumber ( number , regionDialingFrom ) ) ) { return false ; } com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionDialingFrom ) ; if ( phoneMetadata == null ) { return false ; } return matcherApi.matchesPossibleNumber ( com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) , phoneMetadata.getGeneralDesc ( ) ) ; }
Source:
public void traverse ( @ javax.annotation.Nonnull com.android.sched.scheduler.ScheduleInstance < ? super com.android.sched.item.Component > schedule ) throws java.lang.Exception { schedule.process ( this ) ; lhs.traverse ( schedule ) ; for ( com.android.jack.ir.ast.JSsaVariableRef var : rhs.values ( ) ) { var.traverse ( schedule ) ; } }

Target:
public void traverse ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JVisitor visitor ) { if ( visitor.visit ( this ) ) { visitor.accept ( lhs ) ; for ( int i = 0 ; i < ( rhs.length ) ; i ++ ) { visitor.accept ( rhs [ i ] ) ; } } visitor.endVisit ( this ) ; }
Source:
public void testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall ( ) { if ( ! ( mShouldTestTelecom ) ) { return ; } android.media.AudioManager am = ( ( android.media.AudioManager ) ( mContext.getSystemService ( Context.AUDIO_SERVICE ) ) ) ; int expectedRoute = ( am.isWiredHeadsetOn ( ) ) ? android.telecom.CallAudioState.ROUTE_WIRED_HEADSET : android.telecom.CallAudioState.ROUTE_EARPIECE ; final android.os.Bundle extras = new android.os.Bundle ( ) ; extras.putBoolean ( TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE , false ) ; placeAndVerifyCall ( extras ) ; verifyConnectionForOutgoingCall ( ) ; assertAudioRoute ( mInCallCallbacks.getService ( ) , expectedRoute ) ; }

Target:
public void testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall ( ) { if ( ! ( mShouldTestTelecom ) ) { return ; } final android.os.Bundle extras = new android.os.Bundle ( ) ; extras.putBoolean ( TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE , false ) ; placeAndVerifyCall ( extras ) ; verifyConnectionForOutgoingCall ( ) ; assertNotAudioRoute ( mInCallCallbacks.getService ( ) , CallAudioState.ROUTE_SPEAKER ) ; }
Source:
private static boolean isValidCharsetNameCharacter ( char c ) { return ( ( ( ( ( ( ( c >= 'A' ) && ( c <= 'Z' ) ) || ( ( c >= 'a' ) && ( c <= 'z' ) ) ) || ( ( c >= '0' ) && ( c <= '9' ) ) ) || ( c == '-' ) ) || ( c == '.' ) ) || ( c == ':' ) ) || ( c == '_' ) ; }

Target:
private static boolean isValidCharsetNamePart ( char c ) { return ( ( ( ( ( ( ( c >= 'A' ) && ( c <= 'Z' ) ) || ( ( c >= 'a' ) && ( c <= 'z' ) ) ) || ( ( c >= '0' ) && ( c <= '9' ) ) ) || ( c == '-' ) ) || ( c == '.' ) ) || ( c == ':' ) ) || ( c == '_' ) ; }
Source:
java.lang.String getUserDataUCS2 ( int byteCount ) { java.lang.String ret ; try { ret = new java.lang.String ( pdu , cur , byteCount , "utf-16" ) ; } catch ( java.io.UnsupportedEncodingException ex ) { ret = "" ; android.util.Log.e ( com.android.internal.telephony.gsm.SmsMessage.LOG_TAG , "implausible UnsupportedEncodingException" , ex ) ; } cur += byteCount ; return ret ; }

Target:
java.lang.String getUserDataUCS2 ( int byteCount ) { java.lang.String ret ; try { ret = new java.lang.String ( pdu , cur , byteCount , "utf-16" ) ; } catch ( java.io.UnsupportedEncodingException ex ) { ret = "" ; android.telephony.Rlog.e ( com.android.internal.telephony.gsm.SmsMessage.LOG_TAG , "implausible UnsupportedEncodingException" , ex ) ; } cur += byteCount ; return ret ; }
Source:
java.lang.String formatNsnUsingPattern ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.nano.Phonemetadata.NumberFormat formattingPattern , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat numberFormat ) { return formatNsnUsingPattern ( nationalNumber , formattingPattern , numberFormat , null ) ; }

Target:
public com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType getNumberType ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.lang.String regionCode = getRegionCodeForNumber ( number ) ; com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata = getMetadataForRegionOrCallingCode ( number.getCountryCode ( ) , regionCode ) ; if ( metadata == null ) { return com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.UNKNOWN ; } java.lang.String nationalSignificantNumber = getNationalSignificantNumber ( number ) ; return getNumberTypeHelper ( nationalSignificantNumber , metadata ) ; }
Source:
private void appendToIdeLog ( java.lang.Throwable throwable , int severity , java.lang.String description ) { com.android.ide.common.rendering.RenderSecurityManager renderSecurityManager = com.android.ide.common.rendering.RenderSecurityManager.getCurrent ( ) ; if ( renderSecurityManager != null ) { renderSecurityManager.setActive ( false ) ; } try { if ( throwable != null ) { com.android.ide.eclipse.adt.AdtPlugin.log ( throwable , "%1$s: %2$s" , mName , description ) ; } else { com.android.ide.eclipse.adt.AdtPlugin.log ( severity , "%1$s: %2$s" , mName , description ) ; } } finally { if ( renderSecurityManager != null ) { renderSecurityManager.setActive ( true ) ; } } }

Target:
private void appendToIdeLog ( java.lang.Throwable throwable , int severity , java.lang.String description ) { boolean token = com.android.ide.common.rendering.RenderSecurityManager.enterSafeRegion ( mCredential ) ; try { if ( throwable != null ) { com.android.ide.eclipse.adt.AdtPlugin.log ( throwable , "%1$s: %2$s" , mName , description ) ; } else { com.android.ide.eclipse.adt.AdtPlugin.log ( severity , "%1$s: %2$s" , mName , description ) ; } } finally { com.android.ide.common.rendering.RenderSecurityManager.exitSafeRegion ( token ) ; } }
Source:
protected java.util.List < com.android.tools.lint.detector.api.Issue > getIssues ( ) { java.util.List < com.android.tools.lint.detector.api.Issue > issues = new java.util.ArrayList < com.android.tools.lint.detector.api.Issue > ( ) ; java.lang.Class < ? extends com.android.tools.lint.detector.api.Detector > detectorClass = getDetector ( ) . getClass ( ) ; java.util.List < com.android.tools.lint.detector.api.Issue > candidates = new com.android.tools.lint.checks.BuiltinIssueRegistry ( ) . getIssues ( ) ; for ( com.android.tools.lint.detector.api.Issue issue : candidates ) { if ( ( issue.getDetectorClass ( ) ) == detectorClass ) { issues.add ( issue ) ; } } return issues ; }

Target:
protected java.util.List < com.android.tools.lint.detector.api.Issue > getIssues ( ) { java.util.List < com.android.tools.lint.detector.api.Issue > issues = new java.util.ArrayList < com.android.tools.lint.detector.api.Issue > ( ) ; java.lang.Class < ? extends com.android.tools.lint.detector.api.Detector > detectorClass = getDetectorInstance ( ) . getClass ( ) ; java.util.List < com.android.tools.lint.detector.api.Issue > candidates = new com.android.tools.lint.checks.BuiltinIssueRegistry ( ) . getIssues ( ) ; for ( com.android.tools.lint.detector.api.Issue issue : candidates ) { if ( ( issue.getDetectorClass ( ) ) == detectorClass ) { issues.add ( issue ) ; } } return issues ; }
Source:
public void onUnhandledKeyEvent ( android.view.KeyEvent event ) { org.chromium.base.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onUnhandledKeyEvent" ) ; mWebViewClient.onUnhandledKeyEvent ( mWebView , event ) ; org.chromium.base.TraceEvent.end ( ) ; }

Target:
public void onUnhandledKeyEvent ( android.view.KeyEvent event ) { try { org.chromium.base.TraceEvent.begin ( "WebViewContentsClientAdapter.onUnhandledKeyEvent" ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onUnhandledKeyEvent" ) ; mWebViewClient.onUnhandledKeyEvent ( mWebView , event ) ; } finally { org.chromium.base.TraceEvent.end ( "WebViewContentsClientAdapter.onUnhandledKeyEvent" ) ; } }
Source:
protected void updateSync ( ) { boolean isSync = mySynchronizeWithBuildGradleCheckBox.isSelected ( ) ; if ( isSync ) { syncWithBuildFile ( ) ; } myWarPathField.setEditable ( ( ! isSync ) ) ; myServerAddressField.setEditable ( ( ! isSync ) ) ; myServerPortField.setEditable ( ( ! isSync ) ) ; myAppEngineSdkField.setEditable ( ( ! isSync ) ) ; myVmArgsField.setEditable ( ( ! isSync ) ) ; }

Target:
protected void updateSync ( ) { boolean isSync = mySynchronizeWithBuildGradleCheckBox.isSelected ( ) ; if ( isSync ) { syncWithBuildFileViaFacet ( ) ; } myWarPathField.setEditable ( ( ! isSync ) ) ; myServerAddressField.setEditable ( ( ! isSync ) ) ; myServerPortField.setEditable ( ( ! isSync ) ) ; myAppEngineSdkField.setEditable ( ( ! isSync ) ) ; myVmArgsField.setEditable ( ( ! isSync ) ) ; myUpdateCheckCheckBox.setEnabled ( ( ! isSync ) ) ; }
Source:
public void afterHandshake ( long session , long ssl , long context , java.net.Socket socket , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; assertEquals ( "ALPN should not enable cutthrough on the client" , 0 , ( ( org.conscrypt.NativeCrypto.SSL_get_mode ( ssl ) ) & ( org.conscrypt.NativeCrypto.SSL_MODE_HANDSHAKE_CUTTHROUGH ) ) ) ; super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long ssl , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; assertEquals ( "ALPN should not enable cutthrough on the server" , 0 , ( ( org.conscrypt.NativeCrypto.SSL_get_mode ( ssl ) ) & ( org.conscrypt.NativeCrypto.SSL_MODE_HANDSHAKE_CUTTHROUGH ) ) ) ; super . afterHandshake ( session , ssl , c , sock , fd , callback ) ; }
Source:
public void testConfigurationUpdatesWhenRotatingToSideFromDocked ( ) throws java.lang.Exception { if ( ! ( supportsScreenRotation ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no rotation support" ) ; return ; } if ( ! ( supportsSplitScreenMultiWindow ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } setDeviceRotation ( 0 ) ; launchActivityInDockStack ( android.server.cts.LAUNCHING_ACTIVITY ) ; launchActivityToSide ( false , false , android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; final android.server.cts.ReportedSizes initialSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; rotateAndCheckSizes ( initialSizes ) ; }

Target:
public void testConfigurationUpdatesWhenRotatingToSideFromDocked ( ) throws java.lang.Exception { if ( ! ( supportsScreenRotation ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no rotation support" ) ; return ; } if ( ( ! ( supportsSplitScreenMultiWindow ( ) ) ) || ( ! ( supportsMultiWindowMode ( ) ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } setDeviceRotation ( 0 ) ; launchActivityInDockStack ( android.server.cts.LAUNCHING_ACTIVITY ) ; launchActivityToSide ( false , false , android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; final android.server.cts.ReportedSizes initialSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME ) ; rotateAndCheckSizes ( initialSizes ) ; }
Source:
public static com.android.dialer.app.calllog.PhoneCallDetailsViews createForTest ( android.content.Context context ) { return new com.android.dialer.app.calllog.PhoneCallDetailsViews ( new android.widget.TextView ( context ) , new android.view.View ( context ) , new com.android.dialer.calllogutils.CallTypeIconsView ( context ) , new android.widget.TextView ( context ) , new android.view.View ( context ) , new android.widget.TextView ( context ) , new android.widget.TextView ( context ) , new android.view.View ( context ) , new android.widget.TextView ( context ) ) ; }

Target:
public static com.android.dialer.app.calllog.PhoneCallDetailsViews createForTest ( android.content.Context context ) { return new com.android.dialer.app.calllog.PhoneCallDetailsViews ( new com.android.dialer.widget.BidiTextView ( context ) , new android.view.View ( context ) , new com.android.dialer.calllogutils.CallTypeIconsView ( context ) , new android.widget.TextView ( context ) , new android.view.View ( context ) , new android.widget.TextView ( context ) , new android.widget.TextView ( context ) , new android.view.View ( context ) , new android.widget.TextView ( context ) ) ; }
Source:
public void flingScroll ( final int vx , final int vy ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { flingScroll ( vx , vy ) ; } } ) ; return ; } mAwContents.flingScroll ( vx , vy ) ; }

Target:
public void setOverScrollMode ( final int mode ) { if ( ( mAwContents ) == null ) return ; if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setOverScrollMode ( mode ) ; } } ) ; return ; } mAwContents.setOverScrollMode ( mode ) ; }
Source:
public void idmap ( java.lang.String targetApkPath , java.lang.String overlayApkPath , int uid ) throws com.android.internal.os.InstallerConnection.InstallerException { mInstaller.execute ( "idmap" , targetApkPath , overlayApkPath , uid ) ; }

Target:
public boolean dumpProfiles ( int uid , java.lang.String packageName , java.lang.String codePaths ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { return mInstalld.dumpProfiles ( uid , packageName , codePaths ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public synchronized V get ( java.lang.Object key ) { java.util.Hashtable.HashtableEntry [ ] tab = table ; int hash = hash ( key ) ; int index = ( hash & 2147483647 ) % ( tab.length ) ; for ( java.util.Hashtable.HashtableEntry < K , V > e = tab [ index ] ; e != null ; e = e.next ) { if ( ( ( e.hash ) == hash ) && ( e.key.equals ( key ) ) ) { return e.value ; } } return null ; }

Target:
public synchronized V get ( java.lang.Object key ) { java.util.Hashtable.HashtableEntry [ ] tab = table ; int hash = java.util.Hashtable.hash ( key ) ; int index = ( hash & 2147483647 ) % ( tab.length ) ; for ( java.util.Hashtable.HashtableEntry < K , V > e = tab [ index ] ; e != null ; e = e.next ) { if ( ( ( e.hash ) == hash ) && ( e.key.equals ( key ) ) ) { return e.value ; } } return null ; }
Source:
private void interceptScreenshotChord ( ) { if ( ( ( ( mScreenshotChordEnabled ) && ( mVolumeDownKeyTriggered ) ) && ( mPowerKeyTriggered ) ) && ( ! ( mVolumeUpKeyTriggered ) ) ) { final long now = android.os.SystemClock.uptimeMillis ( ) ; if ( ( now <= ( ( mVolumeDownKeyTime ) + ( com.android.internal.policy.impl.PhoneWindowManager.SCREENSHOT_CHORD_DEBOUNCE_DELAY_MILLIS ) ) ) && ( now <= ( ( mPowerKeyTime ) + ( com.android.internal.policy.impl.PhoneWindowManager.SCREENSHOT_CHORD_DEBOUNCE_DELAY_MILLIS ) ) ) ) { mVolumeDownKeyConsumedByScreenshotChord = true ; cancelPendingPowerKeyAction ( ) ; mHandler.postDelayed ( mScreenshotChordLongPress , android.view.ViewConfiguration.getGlobalActionKeyTimeout ( ) ) ; } } }

Target:
private long getScreenshotChordLongPressDelay ( ) { if ( mKeyguardMediator.isShowing ( ) ) { return ( ( long ) ( ( com.android.internal.policy.impl.PhoneWindowManager.KEYGUARD_SCREENSHOT_CHORD_DELAY_MULTIPLIER ) * ( android.view.ViewConfiguration.getGlobalActionKeyTimeout ( ) ) ) ) ; } else { return android.view.ViewConfiguration.getGlobalActionKeyTimeout ( ) ; } }
Source:
private void disconnect ( ) { if ( ( mSession ) != null ) { try { mSession.disconnect ( null ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.bluetooth.mapclient.MasClient.TAG , ( "Caught an exception while disconnecting:" + ( e.toString ( ) ) ) ) ; } try { mSession.close ( ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.bluetooth.mapclient.MasClient.TAG , ( "Caught an exception while closing:" + ( e.toString ( ) ) ) ) ; } } mConnected = false ; mCallback.obtainMessage ( MceStateMachine.MSG_MAS_DISCONNECTED ) . sendToTarget ( ) ; }

Target:
private void disconnect ( ) { if ( ( mSession ) != null ) { try { mSession.disconnect ( null ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.bluetooth.mapclient.MasClient.TAG , ( "Caught an exception while disconnecting:" + ( e.toString ( ) ) ) ) ; } try { mSession.close ( ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( com.android.bluetooth.mapclient.MasClient.TAG , ( "Caught an exception while closing:" + ( e.toString ( ) ) ) ) ; } } mConnected = false ; mCallback.sendMessage ( MceStateMachine.MSG_MAS_DISCONNECTED ) ; }
Source:
private void addWarning ( java.lang.String description ) { if ( ( mWarnings ) == null ) { mWarnings = new java.util.ArrayList < java.lang.String > ( ) ; } else if ( mWarnings.contains ( description ) ) { return ; } mWarnings.add ( description ) ; }

Target:
private void addWarning ( java.lang.String tag , java.lang.String description ) { if ( ( mWarnings ) == null ) { mWarnings = new java.util.ArrayList < java.lang.String > ( ) ; } else if ( mWarnings.contains ( description ) ) { return ; } mWarnings.add ( description ) ; addTag ( tag ) ; }
Source:
private android.database.Cursor getAllMessagesFromSim ( ) { android.telephony.gsm.SmsManager smsManager = android.telephony.gsm.SmsManager.getDefault ( ) ; java.util.ArrayList < android.telephony.gsm.SmsMessage > messages = smsManager.getAllMessagesFromSim ( ) ; java.util.ArrayList < java.util.ArrayList > rows = new java.util.ArrayList < java.util.ArrayList > ( ) ; for ( int count = messages.size ( ) , i = 0 ; i < count ; i ++ ) { rows.add ( convertSimToSms ( messages.get ( i ) ) ) ; } return withSimNotificationUri ( new com.android.internal.database.ArrayListCursor ( com.android.providers.telephony.SmsProvider.SIM_COLUMNS , rows ) ) ; }

Target:
private android.database.Cursor getAllMessagesFromIcc ( ) { android.telephony.SmsManager smsManager = android.telephony.SmsManager.getDefault ( ) ; java.util.ArrayList < android.telephony.SmsMessage > messages = smsManager.getAllMessagesFromIcc ( ) ; java.util.ArrayList < java.util.ArrayList > rows = new java.util.ArrayList < java.util.ArrayList > ( ) ; for ( int count = messages.size ( ) , i = 0 ; i < count ; i ++ ) { rows.add ( convertIccToSms ( messages.get ( i ) ) ) ; } return withIccNotificationUri ( new com.android.internal.database.ArrayListCursor ( com.android.providers.telephony.SmsProvider.ICC_COLUMNS , rows ) ) ; }
Source:
public final byte get ( int index ) { checkIndex ( index ) ; return this . block.peekByte ( ( ( offset ) + index ) ) ; }

Target:
final void get ( char [ ] dst , int dstOffset , int charCount ) { int byteCount = checkGetBounds ( SizeOf.CHAR , dst.length , dstOffset , charCount ) ; this . block.peekCharArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , charCount , order.needsSwap ) ; position += byteCount ; }
Source:
public void restartInput ( android.view.View view ) { checkFocus ( ) ; synchronized ( mH ) { if ( ( ( mServedView ) != view ) && ( ( ( mServedView ) == null ) || ( ! ( mServedView.checkInputConnectionProxy ( view ) ) ) ) ) { return ; } mServedConnecting = true ; } startInputInner ( null , 0 , 0 , 0 ) ; }

Target:
public void restartInput ( android.view.View view ) { checkFocus ( ) ; synchronized ( mH ) { if ( ( ( mServedView ) != view ) && ( ( ( mServedView ) == null ) || ( ! ( mServedView.checkInputConnectionProxy ( view ) ) ) ) ) { return ; } mServedConnecting = true ; } startInputInner ( InputMethodClient.START_INPUT_REASON_APP_CALLED_RESTART_INPUT_API , null , 0 , 0 , 0 ) ; }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; android.content.Intent intent = new android.content.Intent ( NotificationService.ACTION_CREATE ) ; intent.setComponent ( new android.content.ComponentName ( this , com.android.example.notificationshowcase.NotificationService.class ) ) ; startService ( intent ) ; finish ( ) ; }

Target:
public void doPost ( android.view.View v ) { android.content.Intent intent = new android.content.Intent ( NotificationService.ACTION_CREATE ) ; intent.setComponent ( new android.content.ComponentName ( this , com.android.example.notificationshowcase.NotificationService.class ) ) ; startService ( intent ) ; }
Source:
private java.lang.String getWatchedString ( long watchedPositionMs , long durationMs ) { if ( durationMs > ( com.android.tv.dvr.ui.SeriesDeletionFragment.WATCHED_TIME_UNIT_THRESHOLD ) ) { return getResources ( ) . getString ( R.string.dvr_series_watched_info_minutes , java.lang.Math.max ( 1 , java.util.concurrent.TimeUnit.MILLISECONDS.toMinutes ( watchedPositionMs ) ) , java.util.concurrent.TimeUnit.MILLISECONDS.toMinutes ( durationMs ) ) ; } else { return getResources ( ) . getString ( R.string.dvr_series_watched_info_seconds , java.lang.Math.max ( 1 , java.util.concurrent.TimeUnit.MILLISECONDS.toSeconds ( watchedPositionMs ) ) , java.util.concurrent.TimeUnit.MILLISECONDS.toSeconds ( durationMs ) ) ; } }

Target:
private java.lang.String getWatchedString ( long watchedPositionMs , long durationMs ) { if ( durationMs > ( com.android.tv.dvr.ui.DvrSeriesDeletionFragment.WATCHED_TIME_UNIT_THRESHOLD ) ) { return getResources ( ) . getString ( R.string.dvr_series_watched_info_minutes , java.lang.Math.max ( 1 , com.android.tv.util.Utils.getRoundOffMinsFromMs ( watchedPositionMs ) ) , com.android.tv.util.Utils.getRoundOffMinsFromMs ( durationMs ) ) ; } else { return getResources ( ) . getString ( R.string.dvr_series_watched_info_seconds , java.lang.Math.max ( 1 , java.util.concurrent.TimeUnit.MILLISECONDS.toSeconds ( watchedPositionMs ) ) , java.util.concurrent.TimeUnit.MILLISECONDS.toSeconds ( durationMs ) ) ; } }
Source:
public void setNetworkSelectionModeAutomatic ( int subId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) telephony.setNetworkSelectionModeAutomatic ( subId ) ; } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeAutomatic RemoteException" , ex ) ; } catch ( java.lang.NullPointerException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeAutomatic NPE" , ex ) ; } }

Target:
public void setNetworkSelectionModeAutomatic ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.setNetworkSelectionModeAutomatic ( getSubId ( ) ) ; } } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeAutomatic RemoteException" , ex ) ; } catch ( java.lang.NullPointerException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeAutomatic NPE" , ex ) ; } }
Source:
public java.security.Principal getIssuerDN ( ) { if ( ( info ) == null ) return null ; try { java.security.Principal issuer = ( ( java.security.Principal ) ( info.get ( ( ( ( sun.security.x509.CertificateIssuerName.NAME ) + ( sun.security.x509.X509CertImpl.DOT ) ) + ( sun.security.x509.CertificateIssuerName.DN_NAME ) ) ) ) ) ; return issuer ; } catch ( java.lang.Exception e ) { return null ; } }

Target:
public java.security.Principal getIssuerDN ( ) { if ( ( info ) == null ) return null ; try { java.security.Principal issuer = ( ( java.security.Principal ) ( info.get ( ( ( ( sun.security.x509.X509CertInfo.ISSUER ) + ( sun.security.x509.X509CertImpl.DOT ) ) + ( sun.security.x509.X509CertInfo.DN_NAME ) ) ) ) ) ; return issuer ; } catch ( java.lang.Exception e ) { return null ; } }
Source:
public void testE4_2 ( ) { dot.junit.opcodes.invoke_interface.d.T_invoke_interface_11 t = new dot.junit.opcodes.invoke_interface.d.T_invoke_interface_11 ( ) ; try { t.run ( ) ; fail ( "expected IncompatibleClassChangeError" ) ; } catch ( java.lang.IncompatibleClassChangeError expected ) { } try { t.run ( ) ; fail ( "expected IncompatibleClassChangeError" ) ; } catch ( java.lang.IncompatibleClassChangeError expected ) { } }

Target:
public void testE4_2 ( ) { loadAndRun ( "dot.junit.opcodes.invoke_interface.d.T_invoke_interface_11" , java.lang.IncompatibleClassChangeError.class ) ; loadAndRun ( "dot.junit.opcodes.invoke_interface.d.T_invoke_interface_11" , java.lang.IncompatibleClassChangeError.class ) ; }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , float [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFromUnchecked" ) ; int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 4 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize , Element.DataType.FLOAT_32 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , short [ ] d ) { validateIsInt16 ( ) ; copy1DRangeFromUnchecked ( off , count , d , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
public void testUnlockWallpaper ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } launchActivity ( "WallpaperActivity" ) ; gotoKeyguard ( ) ; unlockDevice ( ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "WallpaperActivity" } ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_KEYGUARD_GOING_AWAY_ON_WALLPAPER , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }

Target:
public void testUnlockWallpaper ( ) throws java.lang.Exception { if ( ! ( supportsKeyguard ( ) ) ) { return ; } launchActivity ( "WallpaperActivity" ) ; gotoKeyguard ( ) ; unlockDevice ( ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "WallpaperActivity" } ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_KEYGUARD_GOING_AWAY_ON_WALLPAPER , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }
Source:
public void onClick ( android.view.View v ) { try { this . startActivity ( test.getManualTestIntent ( ) ) ; } catch ( android.content.ActivityNotFoundException e ) { android.widget.Toast.makeText ( this , ( "Cannot start " + ( test.getManualTestIntent ( ) ) ) , Toast.LENGTH_LONG ) . show ( ) ; setTestResult ( test , com.android.cts.verifier.managedprovisioning.ByodFlowTestActivity.TestResult.Failed ) ; dialog.dismiss ( ) ; } }

Target:
public void onFail ( ) { clearRemainingState ( mTest ) ; setTestResult ( mTest , com.android.cts.verifier.managedprovisioning.ByodFlowTestActivity.TestResult.Failed ) ; }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int baseAddress = ( in.cursor ( ) ) - 1 ; int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.nibble2 ( opcodeUnit ) ; int b = com.android.jack.dx.io.instructions.InstructionCodec.nibble3 ( opcodeUnit ) ; int target = ( ( short ) ( in.read ( ) ) ) ; return new com.android.jack.dx.io.instructions.TwoRegisterDecodedInstruction ( this , opcode , 0 , null , ( baseAddress + target ) , 0L , a , b ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int baseAddress = ( in.cursor ( ) ) - 1 ; int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.nibble2 ( opcodeUnit ) ; int b = com.android.jack.dx.io.instructions.InstructionCodec.nibble3 ( opcodeUnit ) ; int target = ( ( short ) ( in.read ( ) ) ) ; return new com.android.jack.dx.io.instructions.TwoRegisterDecodedInstruction ( this , opcode , 0 , com.android.jack.dx.io.IndexType.NONE , ( baseAddress + target ) , 0L , a , b ) ; }
Source:
private java.util.List < java.awt.Rectangle > getHorizontalRectangles ( java.util.List < com.android.ninepatch.NinePatch.Pair < java.lang.Integer > > leftPairs ) { java.util.List < java.awt.Rectangle > rectangles = new java.util.ArrayList < java.awt.Rectangle > ( ) ; for ( com.android.ninepatch.NinePatch.Pair < java.lang.Integer > left : leftPairs ) { int y = left.mFirst ; int height = ( left.mSecond ) - ( left.mFirst ) ; rectangles.add ( new java.awt.Rectangle ( 1 , y , ( ( mImage.getWidth ( ) ) - 2 ) , height ) ) ; } return rectangles ; }

Target:
public com.android.ninepatch.NinePatchChunk getChunk ( ) { return mChunk ; }
Source:
public static java.lang.String getFragmentClass ( @ com.android.annotations.NonNull org.w3c.dom.Element element ) { java.lang.String fqcn = element.getAttribute ( com.android.ide.common.layout.LayoutConstants.ATTR_CLASS ) ; if ( ( fqcn == null ) || ( ( fqcn.length ( ) ) == 0 ) ) { fqcn = element.getAttributeNS ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_NAME ) ; } if ( ( fqcn != null ) && ( ( fqcn.length ( ) ) > 0 ) ) { return fqcn ; } else { return null ; } }

Target:
public static java.lang.String getFragmentClass ( @ com.android.annotations.NonNull org.w3c.dom.Element element ) { java.lang.String fqcn = element.getAttribute ( com.android.ide.common.layout.LayoutConstants.ATTR_CLASS ) ; if ( ( fqcn == null ) || ( ( fqcn.length ( ) ) == 0 ) ) { fqcn = element.getAttributeNS ( com.android.utils.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_NAME ) ; } if ( ( fqcn != null ) && ( ( fqcn.length ( ) ) > 0 ) ) { return fqcn ; } else { return null ; } }
Source:
public int onStartCommand ( android.content.Intent intent , int flags , int startId ) { return START_NOT_STICKY ; }

Target:
public int onStartCommand ( final android.content.Intent intent , int flags , int startId ) { if ( ! ( mBluetoothAdapter.isEnabled ( ) ) ) { notifyBluetoothDisabled ( ) ; } else { mTaskQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onTestFinish ( intent.getAction ( ) ) ; } } , 1500 ) ; } return START_NOT_STICKY ; }