auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void getDataRegistrationStateResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.DataRegStateResult var2 ) { }

Target:
public void getDataRegistrationStateResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.DataRegStateResult dataRegResponse ) { responseStrings ( responseInfo , java.lang.Integer.toString ( dataRegResponse.regState ) , java.lang.Integer.toString ( dataRegResponse.lac ) , java.lang.Integer.toString ( dataRegResponse.cid ) , java.lang.Integer.toString ( dataRegResponse.rat ) , java.lang.Integer.toString ( dataRegResponse.reasonDataDenied ) , java.lang.Integer.toString ( dataRegResponse.maxDataCalls ) , java.lang.Integer.toString ( dataRegResponse.tac ) , java.lang.Integer.toString ( dataRegResponse.phyCid ) , java.lang.Integer.toString ( dataRegResponse.eci ) , java.lang.Integer.toString ( dataRegResponse.csgid ) , java.lang.Integer.toString ( dataRegResponse.tadv ) ) ; }
Source:
protected void setUserUnlocked ( int userId ) { android.util.Log.i ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , "User unlocked, initializing the service" ) ; if ( ! ( android.os.SystemProperties.getBoolean ( com.android.bluetooth.avrcp.AvrcpTargetService.AVRCP_ENABLE_PROPERTY , false ) ) ) { android.util.Log.w ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , "Skipping initialization of the new AVRCP Target Service" ) ; com.android.bluetooth.avrcp.AvrcpTargetService.sInstance = null ; return ; } init ( ) ; com.android.bluetooth.avrcp.AvrcpTargetService.sInstance = this ; }

Target:
protected void setUserUnlocked ( int userId ) { android.util.Log.i ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , "User unlocked, initializing the service" ) ; if ( ! ( android.os.SystemProperties.getBoolean ( com.android.bluetooth.avrcp.AvrcpTargetService.AVRCP_ENABLE_PROPERTY , false ) ) ) { android.util.Log.w ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , "Skipping initialization of the new AVRCP Target Player List" ) ; com.android.bluetooth.avrcp.AvrcpTargetService.sInstance = null ; return ; } if ( ( mMediaPlayerList ) != null ) { mMediaPlayerList.init ( new com.android.bluetooth.avrcp.AvrcpTargetService.ListCallback ( ) ) ; } }
Source:
public void testDupResourceSet ( ) throws java.lang.Exception { java.io.File root = getRoot ( "dupResourceSet" ) ; com.android.builder.resources.ResourceSet set = new com.android.builder.resources.ResourceSet ( "main" ) ; set.addSource ( new java.io.File ( root , "res1" ) ) ; set.addSource ( new java.io.File ( root , "res2" ) ) ; boolean gotException = false ; try { set.loadFromFiles ( ) ; } catch ( com.android.builder.resources.DuplicateResourceException e ) { gotException = true ; } assertTrue ( gotException ) ; }

Target:
public void testDupResourceSet ( ) throws java.lang.Exception { java.io.File root = com.android.builder.TestUtils.getRoot ( "dupResourceSet" ) ; com.android.builder.resources.ResourceSet set = new com.android.builder.resources.ResourceSet ( "main" ) ; set.addSource ( new java.io.File ( root , "res1" ) ) ; set.addSource ( new java.io.File ( root , "res2" ) ) ; boolean gotException = false ; try { set.loadFromFiles ( ) ; } catch ( com.android.builder.resources.DuplicateResourceException e ) { gotException = true ; } assertTrue ( gotException ) ; }
Source:
public boolean onPreferenceChange ( android.support.v7.preference.Preference preference , java.lang.Object newValue ) { android.content.ComponentName name = new android.content.ComponentName ( getContext ( ) , com.android.traceur.QsService.class ) ; getContext ( ) . getPackageManager ( ) . setComponentEnabledSetting ( name , ( ( ( java.lang.Boolean ) ( newValue ) ) ? android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED : android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED ) , PackageManager.DONT_KILL_APP ) ; return true ; }

Target:
public boolean onPreferenceClick ( android.support.v7.preference.Preference preference ) { com.android.traceur.Receiver.updateQuickswitch ( getContext ( ) ) ; return true ; }
Source:
public static com.android.dialer.contactsfragment.ContactsCursorLoader createInstanceDisplayNameAlternative ( android.content.Context context , java.lang.String sortKey ) { return new com.android.dialer.contactsfragment.ContactsCursorLoader ( context , com.android.dialer.contactsfragment.ContactsCursorLoader.CONTACTS_PROJECTION_DISPLAY_NAME_ALTERNATIVE , sortKey ) ; }

Target:
private static android.net.Uri buildUri ( java.lang.String query ) { android.net.Uri.Builder baseUri ; if ( android.text.TextUtils.isEmpty ( query ) ) { baseUri = Contacts.CONTENT_URI.buildUpon ( ) ; } else { baseUri = Contacts.CONTENT_FILTER_URI.buildUpon ( ) . appendPath ( query ) ; } return baseUri.appendQueryParameter ( Contacts.EXTRA_ADDRESS_BOOK_INDEX , "true" ) . build ( ) ; }
Source:
public final void testPkgTypeSource ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_SOURCES ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertFalse ( p.hasPath ( ) ) ; assertFalse ( p.hasVendorId ( ) ) ; assertFalse ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }

Target:
public final void testPkgTypeSource ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_SOURCES ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertFalse ( p.hasPath ( ) ) ; assertFalse ( p.hasVendor ( ) ) ; assertFalse ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }
Source:
public Main forKeepTest ( int count ) { Main a = new Main ( ) ; Main m = new Main ( ) ; for ( int i = 0 ; i < count ; i ++ ) { if ( ( i % 2 ) == 0 ) { m = a ; } else { m = null ; } } return m.g ( ) ; }

Target:
static boolean isShorter ( ListElement x , ListElement y ) { ListElement xTail = x ; ListElement yTail = y ; while ( yTail != null ) { if ( xTail == null ) return true ; xTail = xTail.next ; yTail = yTail.next ; } return false ; }
Source:
public static void testSendCmasSevereAlert ( android.app.Activity activity ) { android.telephony.SmsCbMessage cbMessage = com.android.cellbroadcastreceiver.tests.SendCdmaCmasMessages.createCmasSmsMessage ( SmsEnvelope.SERVICE_CATEGORY_CMAS_SEVERE_THREAT , 34567 , "en" , com.android.cellbroadcastreceiver.tests.SendCdmaCmasMessages.SEVERE_ALERT , SmsCbCmasInfo.CMAS_CATEGORY_HEALTH , SmsCbCmasInfo.CMAS_RESPONSE_TYPE_AVOID , SmsCbCmasInfo.CMAS_SEVERITY_SEVERE , SmsCbCmasInfo.CMAS_URGENCY_IMMEDIATE , SmsCbCmasInfo.CMAS_CERTAINTY_LIKELY ) ; android.content.Intent intent = new android.content.Intent ( Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , cbMessage ) ; activity.sendOrderedBroadcast ( intent , "android.permission.RECEIVE_SMS" ) ; }

Target:
public static void testSendCmasSevereAlert ( android.app.Activity activity , int messageId ) { android.telephony.SmsCbMessage cbMessage = com.android.cellbroadcastreceiver.tests.SendCdmaCmasMessages.createCmasSmsMessage ( SmsEnvelope.SERVICE_CATEGORY_CMAS_SEVERE_THREAT , messageId , "en" , com.android.cellbroadcastreceiver.tests.SendCdmaCmasMessages.SEVERE_ALERT , SmsCbCmasInfo.CMAS_CATEGORY_HEALTH , SmsCbCmasInfo.CMAS_RESPONSE_TYPE_AVOID , SmsCbCmasInfo.CMAS_SEVERITY_SEVERE , SmsCbCmasInfo.CMAS_URGENCY_IMMEDIATE , SmsCbCmasInfo.CMAS_CERTAINTY_LIKELY ) ; android.content.Intent intent = new android.content.Intent ( Telephony.Sms.Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION ) ; intent.putExtra ( "message" , cbMessage ) ; activity.sendOrderedBroadcast ( intent , "android.permission.RECEIVE_SMS" ) ; }
Source:
public long insert ( com.android.dialer.speeddial.database.SpeedDialEntry entry ) { long updateRowId ; try ( android.database.sqlite.SQLiteDatabase db = getWritableDatabase ( ) ) { updateRowId = db.insert ( com.android.dialer.speeddial.database.SpeedDialEntryDatabaseHelper.TABLE_NAME , null , buildContentValues ( entry ) ) ; } if ( updateRowId == ( - 1 ) ) { throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( "Attempted to insert a row that already exists." ) ; } return updateRowId ; }

Target:
public long insert ( com.android.dialer.speeddial.database.SpeedDialEntry entry ) { long updateRowId ; try ( android.database.sqlite.SQLiteDatabase db = getWritableDatabase ( ) ) { updateRowId = db.insert ( com.android.dialer.speeddial.database.SpeedDialEntryDatabaseHelper.TABLE_NAME , null , buildContentValuesWithoutId ( entry ) ) ; } if ( updateRowId == ( - 1 ) ) { throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( "Attempted to insert a row that already exists." ) ; } return updateRowId ; }
Source:
private void responseVoid ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { java.lang.Object ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseLastCallFailCauseInfo ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.LastCallFailCauseInfo fcInfo ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.LastCallFailCause ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = new com.android.internal.telephony.LastCallFailCause ( ) ; ret.causeCode = fcInfo.causeCode ; ret.vendorCause = fcInfo.vendorCause ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { mMockDevice = new com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.MockDevice ( ) ; mRunner = new com.android.ddmlib.testrunner.RemoteAndroidTestRunner ( com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.TEST_PACKAGE , com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.TEST_RUNNER , mMockDevice ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { mMockDevice = org.easymock.EasyMock.createMock ( com.android.ddmlib.IDevice.class ) ; org.easymock.EasyMock.expect ( mMockDevice.getSerialNumber ( ) ) . andStubReturn ( "serial" ) ; mMockListener = org.easymock.EasyMock.createNiceMock ( com.android.ddmlib.testrunner.ITestRunListener.class ) ; mRunner = new com.android.ddmlib.testrunner.RemoteAndroidTestRunner ( com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.TEST_PACKAGE , com.android.ddmlib.testrunner.RemoteAndroidTestRunnerTest.TEST_RUNNER , mMockDevice ) ; }
Source:
void setScale ( double scale , boolean redraw ) { mHScale.setScale ( scale ) ; mVScale.setScale ( scale ) ; if ( redraw ) { redraw ( ) ; } }

Target:
void setScale ( double scale , boolean redraw ) { if ( scale == ( getScale ( ) ) ) { return ; } mHScale.setScale ( scale ) ; mVScale.setScale ( scale ) ; if ( redraw ) { redraw ( ) ; } java.lang.String zoomValue = ( ( java.lang.Math.abs ( ( scale - 1.0 ) ) ) < 1.0E-4 ) ? null : java.lang.Double.toString ( scale ) ; com.android.ide.eclipse.adt.AdtPlugin.setFileProperty ( mLayoutEditor.getInputFile ( ) , com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas.NAME_ZOOM , zoomValue ) ; }
Source:
private static void waitFor ( com.android.server.ConnectivityServiceTest.Criteria criteria ) { int delays = 0 ; while ( ! ( criteria.get ( ) ) ) { try { java.lang.Thread.sleep ( 50 ) ; } catch ( java.lang.InterruptedException e ) { } if ( ( ++ delays ) == 10 ) fail ( ) ; } }

Target:
private static void waitFor ( com.android.server.ConnectivityServiceTest.Criteria criteria ) { int delays = 0 ; while ( ! ( criteria.get ( ) ) ) { com.android.server.ConnectivityServiceTest.sleepFor ( 50 ) ; if ( ( ++ delays ) == 10 ) fail ( ) ; } }
Source:
public void run ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.progress.ProgressIndicator indicator ) { indicator.setText ( com.google.gct.idea.util.GctBundle.message ( "sample.index.downloading" ) ) ; try { sampleList.set ( samplesService.samples ( ) . listSamples ( ) . set ( "technology" , "android" ) . execute ( ) ) ; } catch ( java.io.IOException ex ) { com.google.gct.idea.samples.SampleImportAction.LOG.error ( com.google.gct.idea.util.GctBundle.message ( "sample.index.download.failed" ) ) ; sampleList.set ( null ) ; } }

Target:
public void run ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.progress.ProgressIndicator indicator ) { indicator.setText ( com.google.gct.idea.util.GctBundle.message ( "sample.index.downloading" ) ) ; try { sampleList.set ( samplesService.samples ( ) . listSamples ( ) . set ( "technology" , "android" ) . execute ( ) ) ; } catch ( java.io.IOException ex ) { com.google.gct.idea.samples.SampleImportAction.LOG.warn ( com.google.gct.idea.util.GctBundle.message ( "sample.index.download.failed" ) ) ; sampleList.set ( null ) ; } }
Source:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , android.bluetooth.le.AdvertisingSetCallback callback ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , 0 , 0 , callback , new android.os.Handler ( android.os.Looper.getMainLooper ( ) ) ) ; }

Target:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , android.bluetooth.le.AdvertisingSetCallback callback , android.os.Handler handler ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , 0 , callback , handler ) ; }
Source:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodBody methodBody ) { forwardBranchResolver.resolve ( ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodBody methodBody ) { assert currentStmts.isEmpty ( ) ; if ( ! ( virtualStmts.isEmpty ( ) ) ) { com.android.jack.cfg.BasicBlockMarker marker = new com.android.jack.cfg.BasicBlockMarker ( exitBlock ) ; for ( com.android.jack.ir.ast.JStatement statement : virtualStmts ) { statement.addMarker ( marker ) ; } } forwardBranchResolver.resolve ( ) ; }
Source:
public static void set ( java.lang.String key , java.lang.String val ) { if ( ( key.length ( ) ) > ( android.os.SystemProperties.PROP_NAME_MAX ) ) { throw new java.lang.IllegalArgumentException ( ( "key.length > " + ( android.os.SystemProperties.PROP_NAME_MAX ) ) ) ; } if ( ( val != null ) && ( ( val.length ( ) ) > ( android.os.SystemProperties.PROP_VALUE_MAX ) ) ) { throw new java.lang.IllegalArgumentException ( ( "val.length > " + ( android.os.SystemProperties.PROP_VALUE_MAX ) ) ) ; } android.os.SystemProperties.native_set ( key , val ) ; }

Target:
public static void set ( java.lang.String key , java.lang.String val ) { if ( ( key.length ( ) ) > ( android.os.SystemProperties.PROP_NAME_MAX ) ) { throw new java.lang.IllegalArgumentException ( ( "key.length > " + ( android.os.SystemProperties.PROP_NAME_MAX ) ) ) ; } if ( ( val != null ) && ( ( val.length ( ) ) > ( android.os.SystemProperties.PROP_VALUE_MAX ) ) ) { throw new java.lang.IllegalArgumentException ( ( "val.length > " + ( android.os.SystemProperties.PROP_VALUE_MAX ) ) ) ; } if ( android.os.SystemProperties.TRACK_KEY_ACCESS ) android.os.SystemProperties.onKeyAccess ( key ) ; android.os.SystemProperties.native_set ( key , val ) ; }
Source:
public void run ( ) { android.os.IPowerManager pm = IPowerManager.Stub.asInterface ( android.os.ServiceManager.getService ( Context.POWER_SERVICE ) ) ; try { if ( mReboot ) { pm.reboot ( mConfirm , null , false ) ; } else { pm.shutdown ( mConfirm , false ) ; } } catch ( android.os.RemoteException e ) { } }

Target:
public void run ( ) { android.os.IPowerManager pm = IPowerManager.Stub.asInterface ( android.os.ServiceManager.getService ( Context.POWER_SERVICE ) ) ; try { if ( mReboot ) { pm.reboot ( mConfirm , null , false ) ; } else { pm.shutdown ( mConfirm , ( mUserRequested ? android.os.PowerManager.SHUTDOWN_USER_REQUESTED : null ) , false ) ; } } catch ( android.os.RemoteException e ) { } }
Source:
private void checkWorldReadAccess ( java.lang.String path ) throws java.io.FileNotFoundException { try { libcore.io.StructStat stat = Libcore.os.stat ( path ) ; int accessBits = libcore.io.OsConstants.S_IROTH ; if ( ( libcore.io.OsConstants.S_ISREG ( stat.st_mode ) ) && ( ( ( stat.st_mode ) & accessBits ) == accessBits ) ) { checkLeadingPathComponentsWorldExecutable ( path ) ; return ; } } catch ( libcore.io.ErrnoException e ) { } throw new java.io.FileNotFoundException ( ( "Can't access " + path ) ) ; }

Target:
private void checkWorldReadAccess ( java.lang.String path ) throws java.io.FileNotFoundException { try { android.system.StructStat stat = android.system.Os.stat ( path ) ; int accessBits = android.system.OsConstants.S_IROTH ; if ( ( android.system.OsConstants.S_ISREG ( stat.st_mode ) ) && ( ( ( stat.st_mode ) & accessBits ) == accessBits ) ) { checkLeadingPathComponentsWorldExecutable ( path ) ; return ; } } catch ( android.system.ErrnoException e ) { } throw new java.io.FileNotFoundException ( ( "Can't access " + path ) ) ; }
Source:
synchronized boolean sendReport ( android.bluetooth.BluetoothDevice device , int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "sendReport(): device=" + device ) + " id=" ) + id ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return sendReportNative ( id , data ) ; }

Target:
synchronized boolean sendReport ( android.bluetooth.BluetoothDevice device , int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( "sendReport(): device=" + device ) + " id=" ) + id ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return mHidDeviceNativeInterface.sendReport ( id , data ) ; }
Source:
private void unregisterUiccCardEvents ( ) { if ( ( mUiccCard ) != null ) mUiccCard.unregisterForCarrierPrivilegeRulesLoaded ( this ) ; if ( ( mUiccApplication ) != null ) { mUiccApplication.unregisterForReady ( this ) ; mUiccApplication.unregisterForNetworkLocked ( this ) ; } if ( ( mIccRecords ) != null ) { mIccRecords.unregisterForRecordsLoaded ( this ) ; mIccRecords.unregisterForLockedRecordsLoaded ( this ) ; mIccRecords.unregisterForRecordsEvents ( this ) ; } }

Target:
private void unregisterUiccCardEvents ( ) { if ( ( mUiccCard ) != null ) mUiccCard.unregisterForCarrierPrivilegeRulesLoaded ( this ) ; if ( ( mUiccApplication ) != null ) { mUiccApplication.unregisterForReady ( this ) ; } if ( ( mIccRecords ) != null ) { mIccRecords.unregisterForRecordsLoaded ( this ) ; mIccRecords.unregisterForLockedRecordsLoaded ( this ) ; mIccRecords.unregisterForNetworkLockedRecordsLoaded ( this ) ; mIccRecords.unregisterForRecordsEvents ( this ) ; } }
Source:
protected void _initWith ( @ com.android.annotations.NonNull com.android.builder.model.BaseConfig that ) { setBuildConfigFields ( that.getBuildConfigFields ( ) ) ; setResValues ( that.getResValues ( ) ) ; mProguardFiles.clear ( ) ; mProguardFiles.addAll ( that.getProguardFiles ( ) ) ; mConsumerProguardFiles.clear ( ) ; mConsumerProguardFiles.addAll ( that.getConsumerProguardFiles ( ) ) ; }

Target:
protected void _initWith ( @ com.android.annotations.NonNull com.android.builder.model.BaseConfig that ) { setBuildConfigFields ( that.getBuildConfigFields ( ) ) ; setResValues ( that.getResValues ( ) ) ; mProguardFiles.clear ( ) ; mProguardFiles.addAll ( that.getProguardFiles ( ) ) ; mConsumerProguardFiles.clear ( ) ; mConsumerProguardFiles.addAll ( that.getConsumerProguardFiles ( ) ) ; mManifestPlaceholders.clear ( ) ; mManifestPlaceholders.putAll ( that.getManifestPlaceholders ( ) ) ; }
Source:
public void testHasReturnType ( ) throws java.lang.Exception { assertTrue ( com.android.tools.lint.checks.CleanupDetector.hasReturnType ( "android/app/FragmentTransaction" , "(Landroid/app/Fragment;)Landroid/app/FragmentTransaction;" ) ) ; assertTrue ( com.android.tools.lint.checks.CleanupDetector.hasReturnType ( "android/app/FragmentTransaction" , "()Landroid/app/FragmentTransaction;" ) ) ; assertFalse ( com.android.tools.lint.checks.CleanupDetector.hasReturnType ( "android/app/FragmentTransaction" , "()Landroid/app/FragmentTransactions;" ) ) ; assertFalse ( com.android.tools.lint.checks.CleanupDetector.hasReturnType ( "android/app/FragmentTransaction" , "()Landroid/app/FragmentTransactions" ) ) ; assertFalse ( com.android.tools.lint.checks.CleanupDetector.hasReturnType ( "android/app/FragmentTransaction" , "()android/app/FragmentTransaction;" ) ) ; }

Target:
public void testCommit4 ( ) throws java.lang.Exception { assertEquals ( ( "" + ( ( ( "src/test/pkg/CommitTest3.java:35: Warning: This transaction should be completed with a commit() call [CommitTransaction]\n" + " getCompatFragmentManager().beginTransaction();\n" ) + " ~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "apicheck/classpath=>.classpath" , "apicheck/minsdk4.xml=>AndroidManifest.xml" , "project.properties19=>project.properties" , "bytecode/CommitTest3.java.txt=>src/test/pkg/CommitTest3.java" , "bytecode/CommitTest3.class.data=>bin/classes/test/pkg/CommitTest3.class" , "bytecode/CommitTest3$MyDialogFragment.class.data=>bin/classes/test/pkg/CommitTest3$MyDialogFragment.class" , "bytecode/CommitTest3$MyCompatDialogFragment.class.data=>bin/classes/test/pkg/CommitTest3$MyCompatDialogFragment.class" , "appcompat/Fragment.java.txt=>src/android/support/v4/app/Fragment.java" , "appcompat/DialogFragment.java.txt=>src/android/support/v4/app/DialogFragment.java" , "appcompat/FragmentTransaction.java.txt=>src/android/support/v4/app/FragmentTransaction.java" , "appcompat/FragmentManager.java.txt=>src/android/support/v4/app/FragmentManager.java" ) ) ; }
Source:
protected void buildToolbar ( @ org.jetbrains.annotations.Nullable java.util.List < com.intellij.diff.impl.AnAction > viewerActions ) { com.intellij.diff.impl.ActionGroup group = collectToolbarActions ( viewerActions ) ; com.intellij.diff.impl.ActionToolbar toolbar = com.intellij.diff.impl.ActionManager.getInstance ( ) . createActionToolbar ( ActionPlaces.DIFF_TOOLBAR , group , true ) ; toolbar.setTargetComponent ( myMainPanel ) ; myToolbarPanel.setContent ( toolbar.getComponent ( ) ) ; for ( com.intellij.diff.impl.AnAction action : group.getChildren ( null ) ) { action.registerCustomShortcutSet ( action.getShortcutSet ( ) , myMainPanel ) ; } }

Target:
protected void buildToolbar ( @ org.jetbrains.annotations.Nullable java.util.List < com.intellij.diff.impl.AnAction > viewerActions ) { com.intellij.diff.impl.ActionGroup group = collectToolbarActions ( viewerActions ) ; com.intellij.diff.impl.ActionToolbar toolbar = com.intellij.diff.impl.ActionManager.getInstance ( ) . createActionToolbar ( ActionPlaces.DIFF_TOOLBAR , group , true ) ; com.intellij.ide.DataManager.registerDataProvider ( toolbar.getComponent ( ) , myMainPanel ) ; toolbar.setTargetComponent ( toolbar.getComponent ( ) ) ; myToolbarPanel.setContent ( toolbar.getComponent ( ) ) ; for ( com.intellij.diff.impl.AnAction action : group.getChildren ( null ) ) { action.registerCustomShortcutSet ( action.getShortcutSet ( ) , myMainPanel ) ; } }
Source:
public void testGetValues005_Int2 ( ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointInt2" , StackTrace002Debuggee.INT_METHOD2_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointInt2" ) ; methodInfo.addVariable ( "param" , new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.INT_PARAM_VALUE ) ) ; methodInfo.addVariable ( "local" , new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.INT_PARAM_VALUE ) ) ; runStackFrameTest ( tester ) ; }

Target:
public void testGetValues004_Short ( ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.SHORT_SIGNAL ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value oldValue = new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.SHORT_PARAM_VALUE ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointShort" ) ; suspensionMethodInfo.addVariable ( "param" , oldValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointShort" ) ; methodInfo.addVariable ( "param" , oldValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
synchronized void nScriptForEach ( int id , int slot , int ain , int aout , byte [ ] params ) { validate ( ) ; if ( params == null ) { rsnScriptForEach ( mContext , id , slot , ain , aout ) ; } else { rsnScriptForEach ( mContext , id , slot , ain , aout , params ) ; } }

Target:
synchronized void nAllocationResize1D ( long id , int dimX ) { validate ( ) ; rsnAllocationResize1D ( mContext , id , dimX ) ; }
Source:
public void checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType ) throws java.security.cert.CertificateException { checkTrusted ( chain , authType , null , false ) ; }

Target:
public void checkClientTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType , javax.net.ssl.SSLEngine engine ) throws java.security.cert.CertificateException { javax.net.ssl.SSLSession session = engine.getHandshakeSession ( ) ; if ( session == null ) { throw new java.security.cert.CertificateException ( "Not in handshake; no session available" ) ; } checkTrusted ( chain , authType , session , engine.getSSLParameters ( ) , true ) ; }
Source:
private void disconnectProfiles ( android.bluetooth.BluetoothDevice device , java.lang.String deviceID ) { com.googlecode.android_scripting.Log.d ( ( "Disconnecting device " + device ) ) ; mA2dpProfile.a2dpDisconnect ( device ) ; mA2dpSinkProfile.a2dpSinkDisconnect ( device ) ; mHidProfile.hidDisconnect ( device ) ; mHspProfile.hspDisconnect ( device ) ; mHfpClientProfile.hfpClientDisconnect ( device ) ; mPanProfile.panDisconnect ( device ) ; }

Target:
private void disconnectProfiles ( android.bluetooth.BluetoothDevice device , java.lang.String deviceID ) { com.googlecode.android_scripting.Log.d ( ( "Disconnecting device " + device ) ) ; mA2dpProfile.a2dpDisconnect ( device ) ; mA2dpSinkProfile.a2dpSinkDisconnect ( device ) ; mHidProfile.hidDisconnect ( device ) ; mHspProfile.hspDisconnect ( device ) ; mHfpClientProfile.hfpClientDisconnect ( device ) ; mPanProfile.panDisconnect ( device ) ; mPbapClientProfile.pbapClientDisconnect ( device ) ; }
Source:
public java.nio.ByteBuffer putFloat ( int index , float value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.FLOAT ) ; this . block.pokeInt ( ( ( offset ) + index ) , java.lang.Float.floatToRawIntBits ( value ) , order ) ; return this ; }

Target:
public java.nio.ByteBuffer putFloat ( int index , float value ) { checkIsAccessible ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.FLOAT ) ; this . block.pokeInt ( ( ( offset ) + index ) , java.lang.Float.floatToRawIntBits ( value ) , order ) ; return this ; }
Source:
public static android.hardware.cts.helpers.SensorVerificationHelper.VerificationResult verifyFrequency ( android.hardware.cts.helpers.TestSensorEvent [ ] events , double expected , double threshold ) { android.hardware.cts.helpers.SensorVerificationHelper.VerificationResult result = new android.hardware.cts.helpers.SensorVerificationHelper.VerificationResult ( ) ; java.util.List < java.lang.Long > timestampDelayValues = android.hardware.cts.helpers.SensorCtsHelper.getTimestampDelayValues ( events ) ; double frequency = android.hardware.cts.helpers.SensorCtsHelper.getFrequency ( android.hardware.cts.helpers.SensorCtsHelper.getMean ( timestampDelayValues ) , java.util.concurrent.TimeUnit.NANOSECONDS ) ; result.putValue ( "frequency" , frequency ) ; if ( ( java.lang.Math.abs ( ( frequency - expected ) ) ) > threshold ) { result.fail ( "Frequency out of range: frequency=%.2fHz, expected=%.2f+/-%.2fHz" , frequency , expected , threshold ) ; } return result ; }

Target:
public static android.hardware.cts.helpers.SensorVerificationHelper.VerificationResult verifyFrequency ( android.hardware.cts.helpers.TestSensorEvent [ ] events , double expected , double threshold ) { android.hardware.cts.helpers.SensorVerificationHelper.VerificationResult result = new android.hardware.cts.helpers.SensorVerificationHelper.VerificationResult ( ) ; java.util.List < java.lang.Long > timestampDelayValues = android.hardware.cts.helpers.SensorCtsHelper.getTimestampDelayValues ( events ) ; double frequency = android.hardware.cts.helpers.SensorCtsHelper.getFrequency ( android.hardware.cts.helpers.SensorCtsHelper.getMean ( timestampDelayValues ) , java.util.concurrent.TimeUnit.NANOSECONDS ) ; result.putValue ( android.hardware.cts.helpers.SensorVerificationHelper.FREQUENCY_KEY , frequency ) ; if ( ( java.lang.Math.abs ( ( frequency - expected ) ) ) > threshold ) { result.fail ( "Frequency out of range: frequency=%.2fHz, expected=%.2f+/-%.2fHz" , frequency , expected , threshold ) ; } return result ; }
Source:
public java.lang.String getGradleBuildscript ( ) { return ( ( ( ( ( ( ( ( ( ( ( ( "buildscript {\n" + ( " repositories {\n" + " maven { url '" ) ) + ( getRepoDir ( ) . toString ( ) ) ) + "\' }\n" ) + " }\n" ) + " dependencies {\n" ) + " classpath \"com.android.tools.build:gradle:" ) + ( com.android.build.gradle.integration.common.fixture.GradleTestProject.ANDROID_GRADLE_VERSION ) ) + "\"\n" ) + " classpath \"com.android.tools.build:gradle-experimental:" ) + ( com.android.build.gradle.integration.common.fixture.GradleTestProject.ANDROID_GRADLE_VERSION ) ) + "\"\n" ) + " }\n" ) + "}\n" ; }

Target:
public java.lang.String getGradleBuildscript ( ) { return ( ( ( ( ( ( ( ( ( ( ( "buildscript {\n" + ( " repositories {\n" + " maven { url '" ) ) + ( getRepoDir ( ) . toString ( ) ) ) + "\' }\n" ) + " }\n" ) + " dependencies {\n" ) + " classpath \"com.android.tools.build:gradle" ) + ( experimentalMode ? "-experimental" : "" ) ) + ":" ) + ( com.android.build.gradle.integration.common.fixture.GradleTestProject.ANDROID_GRADLE_VERSION ) ) + "\"\n" ) + " }\n" ) + "}\n" ; }
Source:
public void modifyText ( org.eclipse.swt.events.ModifyEvent e ) { java.lang.Object source = e.getSource ( ) ; if ( source == ( mNameText ) ) { mNameModified = true ; updateResourceLabel ( ) ; } validatePage ( ) ; }

Target:
public void modifyText ( org.eclipse.swt.events.ModifyEvent e ) { java.lang.Object source = e.getSource ( ) ; if ( source == ( mNameText ) ) { mNameModified = true ; mValues.outputName = mNameText.getText ( ) . trim ( ) ; updateResourceLabel ( ) ; } validatePage ( ) ; }
Source:
public void testConnectsToEmergencyNumber_US ( ) { assertTrue ( shortInfo.connectsToEmergencyNumber ( "911" , RegionCode.US ) ) ; assertTrue ( shortInfo.connectsToEmergencyNumber ( "112" , RegionCode.US ) ) ; assertFalse ( shortInfo.connectsToEmergencyNumber ( "999" , RegionCode.US ) ) ; }

Target:
public void testGetExampleShortNumberForCost ( ) { assertEquals ( "3010" , com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.getExampleShortNumberForCost ( RegionCode.FR , ShortNumberInfo.ShortNumberCost.TOLL_FREE ) ) ; assertEquals ( "1023" , com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.getExampleShortNumberForCost ( RegionCode.FR , ShortNumberInfo.ShortNumberCost.STANDARD_RATE ) ) ; assertEquals ( "42000" , com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.getExampleShortNumberForCost ( RegionCode.FR , ShortNumberInfo.ShortNumberCost.PREMIUM_RATE ) ) ; assertEquals ( "" , com.android.i18n.phonenumbers.ShortNumberInfoTest.shortInfo.getExampleShortNumberForCost ( RegionCode.FR , ShortNumberInfo.ShortNumberCost.UNKNOWN_COST ) ) ; }
Source:
public void testGetOpacity ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { }

Target:
public void testGetOpacity ( ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { android.graphics.drawable.VectorDrawable vectorDrawable = new android.graphics.drawable.VectorDrawable ( ) ; org.junit.Assert.assertEquals ( "Default alpha should be 255" , 255 , vectorDrawable.getAlpha ( ) ) ; org.junit.Assert.assertEquals ( "Default opacity should be TRANSLUCENT" , PixelFormat.TRANSLUCENT , vectorDrawable.getOpacity ( ) ) ; vectorDrawable.setAlpha ( 0 ) ; org.junit.Assert.assertEquals ( "Alpha should be 0 now" , 0 , vectorDrawable.getAlpha ( ) ) ; org.junit.Assert.assertEquals ( "Opacity should be TRANSPARENT now" , PixelFormat.TRANSPARENT , vectorDrawable.getOpacity ( ) ) ; }
Source:
public void run ( ) { try { mDevice.executeShellCommand ( cmd , receiver ) ; } catch ( java.io.IOException e ) { com.android.cts.Log.e ( "" , e ) ; } }

Target:
public void run ( ) { try { mDevice.executeShellCommand ( cmd , receiver ) ; } catch ( java.io.IOException e ) { com.android.cts.Log.e ( "" , e ) ; } catch ( com.android.ddmlib.TimeoutException e ) { com.android.cts.Log.e ( "" , e ) ; } catch ( com.android.ddmlib.AdbCommandRejectedException e ) { com.android.cts.Log.e ( "" , e ) ; } catch ( com.android.ddmlib.ShellCommandUnresponsiveException e ) { com.android.cts.Log.e ( "" , e ) ; } }
Source:
protected void createTestItems ( ) { mGoToSetupItem = createUserItem ( R.string.tv_input_discover_test_go_to_setup , R.string.tv_launch_tv_app , this ) ; setButtonEnabled ( mGoToSetupItem , true ) ; mVerifySetupItem = createAutoItem ( R.string.tv_input_discover_test_verify_setup ) ; mTuneToChannelItem = createUserItem ( R.string.tv_input_discover_test_tune_to_channel , R.string.tv_launch_tv_app , this ) ; mVerifyTuneItem = createAutoItem ( R.string.tv_input_discover_test_verify_tune ) ; mVerifyOverlayViewItem = createAutoItem ( R.string.tv_input_discover_test_verify_overlay_view ) ; mGoToEpgItem = createUserItem ( R.string.tv_input_discover_test_go_to_epg , R.string.tv_launch_epg , this ) ; mVerifyEpgItem = createUserItem ( R.string.tv_input_discover_test_verify_epg , R.string.tv_input_discover_test_yes , this ) ; }

Target:
protected void createTestItems ( ) { mGoToSetupItem = createUserItem ( R.string.tv_input_discover_test_go_to_setup , R.string.tv_launch_tv_app , this ) ; setButtonEnabled ( mGoToSetupItem , true ) ; mVerifySetupItem = createAutoItem ( R.string.tv_input_discover_test_verify_setup ) ; mTuneToChannelItem = createUserItem ( R.string.tv_input_discover_test_tune_to_channel , R.string.tv_launch_tv_app , this ) ; mVerifyTuneItem = createAutoItem ( R.string.tv_input_discover_test_verify_tune ) ; mVerifyOverlayViewItem = createAutoItem ( R.string.tv_input_discover_test_verify_overlay_view ) ; mVerifyGlobalSearchItem = createAutoItem ( R.string.tv_input_discover_test_verify_global_search ) ; mGoToEpgItem = createUserItem ( R.string.tv_input_discover_test_go_to_epg , R.string.tv_launch_epg , this ) ; mVerifyEpgItem = createUserItem ( R.string.tv_input_discover_test_verify_epg , R.string.tv_input_discover_test_yes , this ) ; }
Source:
public int getState ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getState " + ( mState ) ) ) ; if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "getState(): not allowed for non-active user" ) ; return android.bluetooth.BluetoothPbap.STATE_DISCONNECTED ; } enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; return mState ; }

Target:
public android.bluetooth.BluetoothDevice getClient ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.DEBUG ) android.util.Log.d ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "getClient = " + ( mService.getRemoteDevice ( ) ) ) ) ; com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM ) ; if ( service == null ) return null ; return service.getRemoteDevice ( ) ; }
Source:
public void dump ( java.io.FileDescriptor fd , java.io.PrintWriter pw , java.lang.String [ ] args ) { pw.println ( "Dump of WifiConnectivityManager" ) ; pw.println ( "WifiConnectivityManager - Log Begin ----" ) ; pw.println ( ( "WifiConnectivityManager - Number of connectivity attempts rate limited: " + ( mTotalConnectivityAttemptsRateLimited ) ) ) ; mLocalLog.dump ( fd , pw , args ) ; pw.println ( "WifiConnectivityManager - Log End ----" ) ; }

Target:
private void localLog ( java.lang.String log ) { if ( ( mLocalLog ) != null ) { mLocalLog.log ( log ) ; } }
Source:
private void startDtmfSession ( com.android.server.telecom.Call call ) { if ( call == null ) { return ; } final android.content.Context context = call.getContext ( ) ; final boolean areLocalTonesEnabled ; if ( context.getResources ( ) . getBoolean ( R.bool.allow_local_dtmf_tones ) ) { areLocalTonesEnabled = ( Settings.System.getInt ( context.getContentResolver ( ) , Settings.System.DTMF_TONE_WHEN_DIALING , 1 ) ) == 1 ; } else { areLocalTonesEnabled = false ; } mCall = call ; if ( areLocalTonesEnabled ) { com.android.server.telecom.Log.d ( this , "Posting create." ) ; postMessage ( com.android.server.telecom.DtmfLocalTonePlayer.EVENT_CREATE_OBJECT ) ; } }

Target:
private void startDtmfSession ( com.android.server.telecom.Call call ) { if ( call == null ) { return ; } final android.content.Context context = call.getContext ( ) ; final boolean areLocalTonesEnabled ; if ( context.getResources ( ) . getBoolean ( R.bool.allow_local_dtmf_tones ) ) { areLocalTonesEnabled = ( Settings.System.getInt ( context.getContentResolver ( ) , Settings.System.DTMF_TONE_WHEN_DIALING , 1 ) ) == 1 ; } else { areLocalTonesEnabled = false ; } mCall = call ; if ( areLocalTonesEnabled ) { android.telecom.Log.d ( this , "Posting create." ) ; postMessage ( com.android.server.telecom.DtmfLocalTonePlayer.EVENT_CREATE_OBJECT ) ; } }
Source:
public void writeSmsToRuim ( int status , java.lang.String pdu , android.os.Message response ) { status = translateStatus ( status ) ; com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_WRITE_SMS_TO_RUIM , response ) ; rr.mParcel.writeInt ( status ) ; rr.mParcel.writeString ( pdu ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGV ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + status ) ) ; send ( rr ) ; }

Target:
public void cancelPendingUssd ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_CANCEL_USSD , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } try { radioProxy.cancelPendingUssd ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "cancelPendingUssd" , e ) ; } } }
Source:
public void test_cs_CZ ( ) throws java.lang.Exception { libcore.icu.LocaleData l = libcore.icu.LocaleData.get ( new java.util.Locale ( "cs" , "CZ" ) ) ; assertEquals ( "ledna" , l.longMonthNames [ 0 ] ) ; assertEquals ( "Led" , l.shortMonthNames [ 0 ] ) ; assertEquals ( "1" , l.tinyMonthNames [ 0 ] ) ; assertEquals ( "leden" , l.longStandAloneMonthNames [ 0 ] ) ; assertEquals ( "1." , l.shortStandAloneMonthNames [ 0 ] ) ; assertEquals ( "l" , l.tinyStandAloneMonthNames [ 0 ] ) ; }

Target:
public void test_cs_CZ ( ) throws java.lang.Exception { libcore.icu.LocaleData l = libcore.icu.LocaleData.get ( new java.util.Locale ( "cs" , "CZ" ) ) ; assertEquals ( "ledna" , l.longMonthNames [ 0 ] ) ; assertEquals ( "led" , l.shortMonthNames [ 0 ] ) ; assertEquals ( "1" , l.tinyMonthNames [ 0 ] ) ; assertEquals ( "leden" , l.longStandAloneMonthNames [ 0 ] ) ; assertEquals ( "led" , l.shortStandAloneMonthNames [ 0 ] ) ; assertEquals ( "l" , l.tinyStandAloneMonthNames [ 0 ] ) ; }
Source:
public com.android.tv.InputSessionManager.RecordingSession createRecordingSession ( java.lang.String inputId , java.lang.String tag , android.media.tv.TvRecordingClient.RecordingCallback callback , android.os.Handler handler , long endTimeMs ) { com.android.tv.InputSessionManager.RecordingSession session = new com.android.tv.InputSessionManager.RecordingSession ( inputId , tag , callback , handler , endTimeMs ) ; mRecordingSessions.add ( session ) ; if ( com.android.tv.InputSessionManager.DEBUG ) android.util.Log.d ( com.android.tv.InputSessionManager.TAG , ( "Recording session created: " + session ) ) ; return session ; }

Target:
public com.android.tv.InputSessionManager.RecordingSession createRecordingSession ( java.lang.String inputId , java.lang.String tag , android.media.tv.TvRecordingClient.RecordingCallback callback , android.os.Handler handler , long endTimeMs ) { com.android.tv.InputSessionManager.RecordingSession session = new com.android.tv.InputSessionManager.RecordingSession ( inputId , tag , callback , handler , endTimeMs ) ; mRecordingSessions.add ( session ) ; if ( com.android.tv.InputSessionManager.DEBUG ) android.util.Log.d ( com.android.tv.InputSessionManager.TAG , ( "Recording session created: " + session ) ) ; for ( com.android.tv.InputSessionManager.OnRecordingSessionChangeListener listener : mOnRecordingSessionChangeListeners ) { listener.onRecordingSessionChange ( true , mRecordingSessions.size ( ) ) ; } return session ; }
Source:
protected boolean preferenceTreeClick ( android.preference.Preference preference ) { if ( mEnableNewManualSelectNetworkUI ) { logd ( "enable New AutoSelectNetwork UI" ) ; if ( preference == ( mChooseNetwork ) ) { openChooseNetworkPage ( ) ; } return ( preference == ( mAutoSelect ) ) || ( preference == ( mChooseNetwork ) ) ; } else { return ( preference == ( mAutoSelect ) ) || ( preference == ( mNetworkSelect ) ) ; } }

Target:
protected boolean preferenceTreeClick ( android.preference.Preference preference ) { if ( mEnableNewManualSelectNetworkUI ) { if ( com.android.phone.NetworkOperators.DBG ) logd ( "enable New AutoSelectNetwork UI" ) ; if ( preference == ( mChooseNetwork ) ) { openChooseNetworkPage ( ) ; } return ( preference == ( mAutoSelect ) ) || ( preference == ( mChooseNetwork ) ) ; } else { return ( preference == ( mAutoSelect ) ) || ( preference == ( mNetworkSelect ) ) ; } }
Source:
private void createParameters ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method , @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration x , @ javax.annotation.Nonnull com.android.jack.ir.impl.CudInfo cuInfo ) throws com.android.jack.ir.ast.JTypeLookupException { if ( ( x.arguments ) != null ) { for ( org.eclipse.jdt.internal.compiler.ast.Argument argument : x.arguments ) { com.android.jack.ir.sourceinfo.SourceInfo info = com.android.jack.ir.impl.ReferenceMapper.makeSourceInfo ( cuInfo , argument , sourceInfoFactory ) ; org.eclipse.jdt.internal.compiler.lookup.LocalVariableBinding binding = argument.binding ; createParameter ( info , method , com.android.jack.ir.impl.ReferenceMapper.intern ( binding.name ) , binding.type , ( ( getFinalModifier ( binding ) ) | ( com.android.jack.ir.ast.JModifier.NAME_PRESENT ) ) ) ; } } }

Target:
private void createParameters ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method , @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration x , @ javax.annotation.Nonnull com.android.jack.ir.impl.CudInfo cuInfo ) throws com.android.jack.ir.ast.JTypeLookupException { if ( ( x.arguments ) != null ) { for ( org.eclipse.jdt.internal.compiler.ast.Argument argument : x.arguments ) { com.android.jack.ir.sourceinfo.SourceInfo info = com.android.jack.ir.impl.ReferenceMapper.makeSourceInfo ( cuInfo , argument , sourceInfoFactory ) ; org.eclipse.jdt.internal.compiler.lookup.LocalVariableBinding binding = argument.binding ; createParameter ( info , method , com.android.jack.ir.impl.ReferenceMapper.intern ( binding.name ) , binding.type , getModifier ( binding ) ) ; } } }
Source:
final void removeCecDevice ( int address ) { assertRunOnServiceThread ( ) ; android.hardware.hdmi.HdmiDeviceInfo info = removeDeviceInfo ( android.hardware.hdmi.HdmiDeviceInfo.idForCecDevice ( address ) ) ; mCecMessageCache.flushMessagesFrom ( address ) ; invokeDeviceEventListener ( info , HdmiControlManager.DEVICE_EVENT_REMOVE_DEVICE ) ; }

Target:
final void removeCecDevice ( int address ) { assertRunOnServiceThread ( ) ; android.hardware.hdmi.HdmiDeviceInfo avr = getAvrDeviceInfo ( ) ; if ( ( avr != null ) && ( address == ( avr.getLogicalAddress ( ) ) ) ) { removeAction ( com.android.server.hdmi.RequestShortAudioDescriptorAction.class ) ; com.android.server.hdmi.RequestShortAudioDescriptorAction.removeAudioFormat ( ) ; } android.hardware.hdmi.HdmiDeviceInfo info = removeDeviceInfo ( android.hardware.hdmi.HdmiDeviceInfo.idForCecDevice ( address ) ) ; mCecMessageCache.flushMessagesFrom ( address ) ; invokeDeviceEventListener ( info , HdmiControlManager.DEVICE_EVENT_REMOVE_DEVICE ) ; }
Source:
public static < K , V > com.google.common.collect.ImmutableBiMap < K , V > of ( K k1 , V v1 , K k2 , V v2 ) { return new com.google.common.collect.RegularImmutableBiMap < K , V > ( com.google.common.collect.ImmutableMap.of ( k1 , v1 , k2 , v2 ) ) ; }

Target:
public static < K , V > com.google.common.collect.ImmutableBiMap < K , V > of ( K k1 , V v1 , K k2 , V v2 ) { return new com.google.common.collect.RegularImmutableBiMap < K , V > ( com.google.common.collect.ImmutableMap.entryOf ( k1 , v1 ) , com.google.common.collect.ImmutableMap.entryOf ( k2 , v2 ) ) ; }
Source:
public void tesNoSplitDelegateLast ( ) { android.content.pm.ApplicationInfo ai = createMockApplicationInfo ( com.android.server.pm.dex.DexoptUtilsTest.DELEGATE_LAST_CLASS_LOADER_NAME , false , false ) ; java.lang.String [ ] sharedLibrary = new java.lang.String [ ] { "a.dex" , "b.dex" } ; java.lang.String [ ] contexts = com.android.server.pm.dex.DexoptUtils.getClassLoaderContexts ( ai , sharedLibrary ) ; org.junit.Assert.assertEquals ( 1 , contexts.length ) ; org.junit.Assert.assertEquals ( "DLC[a.dex:b.dex]" , contexts [ 0 ] ) ; }

Target:
public void tesNoSplitDelegateLast ( ) { android.content.pm.ApplicationInfo ai = createMockApplicationInfo ( com.android.server.pm.dex.DexoptUtilsTest.DELEGATE_LAST_CLASS_LOADER_NAME , false , false ) ; java.lang.String [ ] sharedLibrary = new java.lang.String [ ] { "a.dex" , "b.dex" } ; java.lang.String [ ] contexts = com.android.server.pm.dex.DexoptUtils.getClassLoaderContexts ( ai , sharedLibrary ) ; org.junit.Assert.assertEquals ( 1 , contexts.length ) ; org.junit.Assert.assertEquals ( "PCL[a.dex:b.dex]" , contexts [ 0 ] ) ; }
Source:
public com.google.common.hash.Hasher putString ( java.lang.CharSequence charSequence , java.nio.charset.Charset charset ) { return putBytes ( charSequence.toString ( ) . getBytes ( charset ) ) ; }

Target:
public com.google.common.hash.HashCode hash ( ) { checkNotDone ( ) ; done = true ; return ( bytes ) == ( digest.getDigestLength ( ) ) ? com.google.common.hash.HashCode.fromBytesNoCopy ( digest.digest ( ) ) : com.google.common.hash.HashCode.fromBytesNoCopy ( java.util.Arrays.copyOf ( digest.digest ( ) , bytes ) ) ; }