auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private boolean bbHasOnlyDefinitions ( @ javax.annotation.Nonnull com.android.jack.cfg.BasicBlock bb , @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariable var , @ javax.annotation.Nonnull java.util.List < com.android.jack.analysis.DefinitionMarker > defsToFound ) { int nbDef = 0 ; for ( com.android.jack.analysis.DefinitionMarker def : com.android.jack.util.OptimizationTools.getReachingDefs ( bb ) ) { if ( ( def.getDefinedVariable ( ) ) == var ) { if ( defsToFound.contains ( def ) ) { nbDef ++ ; } else { return false ; } } } return ( defsToFound.size ( ) ) == nbDef ; }

Target:
private boolean bbHasOnlyDefinitions ( @ javax.annotation.Nonnull com.android.jack.cfg.BasicBlock bb , @ javax.annotation.Nonnull com.android.jack.ir.ast.JVariable var , @ javax.annotation.Nonnull java.util.List < com.android.jack.analysis.DefinitionMarker > defsToFound ) { int nbDef = 0 ; for ( com.android.jack.analysis.DefinitionMarker def : com.android.jack.util.UseDefHelper.getReachingDefs ( bb ) ) { if ( ( def.getDefinedVariable ( ) ) == var ) { if ( defsToFound.contains ( def ) ) { nbDef ++ ; } else { return false ; } } } return ( defsToFound.size ( ) ) == nbDef ; }
Source:
public void installAppAndLaunch ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "RsHelloCompute" ) ; assertTrue ( testFramework.getDevice ( ) . findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( Res.APP_IMAGE_VIEW_ID ) ) . exists ( ) ) ; }

Target:
public void installAppAndLaunch ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; com.android.devtools.systemimage.uitest.utils.AppLauncher.launch ( instrumentation , "RsHelloCompute" ) ; org.junit.Assert.assertTrue ( testFramework.getDevice ( ) . findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( Res.APP_IMAGE_VIEW_ID ) ) . exists ( ) ) ; }
Source:
protected void finalize ( ) { _finalize ( mUniqueId ) ; }

Target:
public void release ( ) { if ( mReleased ) { android.util.Log.w ( android.drm.DrmManagerClient.TAG , "You have already called release()" ) ; return ; } mReleased = true ; if ( ( mEventHandler ) != null ) { mEventThread.quit ( ) ; mEventThread = null ; } if ( ( mInfoHandler ) != null ) { mInfoThread.quit ( ) ; mInfoThread = null ; } mEventHandler = null ; mInfoHandler = null ; mOnEventListener = null ; mOnInfoListener = null ; mOnErrorListener = null ; _release ( mUniqueId ) ; }
Source:
private void verifyNoCodecConfigIntent ( int timeoutMs ) { android.content.Intent intent = waitForNoIntent ( timeoutMs , mCodecConfigChangedQueue ) ; org.junit.Assert.assertNull ( intent ) ; }

Target:
private void verifyCodecConfigIntent ( int timeoutMs , android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothCodecStatus codecStatus ) { android.content.Intent intent = com.android.bluetooth.TestUtils.waitForIntent ( timeoutMs , mCodecConfigChangedQueue ) ; org.junit.Assert.assertNotNull ( intent ) ; org.junit.Assert.assertEquals ( BluetoothA2dp.ACTION_CODEC_CONFIG_CHANGED , intent.getAction ( ) ) ; org.junit.Assert.assertEquals ( device , intent.getParcelableExtra ( BluetoothDevice.EXTRA_DEVICE ) ) ; org.junit.Assert.assertEquals ( codecStatus , intent.getParcelableExtra ( BluetoothCodecStatus.EXTRA_CODEC_STATUS ) ) ; }
Source:
public void setDiscoverableTimeout ( int timeout ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return ; try { synchronized ( mManagerCallback ) { if ( ( mService ) != null ) mService.setDiscoverableTimeout ( timeout ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } }

Target:
public boolean setScanMode ( @ android.bluetooth.BluetoothAdapter.ScanMode int mode , int duration ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return false ; try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) return mService.setScanMode ( mode , duration ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } return false ; }
Source:
synchronized long nClosureCreate ( long kernelID , long returnValue , long [ ] fieldIDs , long [ ] values , int [ ] sizes , long [ ] depClosures , long [ ] depFieldIDs ) { validate ( ) ; return rsnClosureCreate ( mContext , kernelID , returnValue , fieldIDs , values , sizes , depClosures , depFieldIDs ) ; }

Target:
synchronized long nClosureCreate ( long kernelID , long returnValue , long [ ] fieldIDs , long [ ] values , int [ ] sizes , long [ ] depClosures , long [ ] depFieldIDs ) { validate ( ) ; long c = rsnClosureCreate ( mContext , kernelID , returnValue , fieldIDs , values , sizes , depClosures , depFieldIDs ) ; if ( c == 0 ) { throw new android.support.v8.renderscript.RSRuntimeException ( "Failed creating closure." ) ; } return c ; }
Source:
private boolean needFullBuild ( ) { return true ; }

Target:
private boolean needFullBuild ( ) { com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; return ( ( ( incrementalInputLibrary ) == null ) || ( ! ( libraryDependencies.hasSameLibraryOnClasspath ( session.getLibraryDependencies ( ) ) ) ) ) || ( ! ( libraryDependencies.hasSameImportedLibrary ( session.getLibraryDependencies ( ) ) ) ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.loadLibrary ( args [ 1 ] ) ; Main.doTest ( ) ; Main.doTestOtherThreadWait ( ) ; Main.doTestOtherThreadBusyLoop ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.loadLibrary ( args [ 1 ] ) ; Main.doTest ( ) ; Main.doTestOtherThreadWait ( ) ; Main.doTestOtherThreadBusyLoop ( ) ; Main.doTestAllStackTraces ( ) ; java.lang.System.out.println ( "Done" ) ; }
Source:
public void testHandleUserUnlockAfterBootupBeforeLegacyStoreMigration ( ) throws java.lang.Exception { int user1 = com.android.server.wifi.WifiConfigManagerTest.TEST_DEFAULT_USER ; mWifiConfigManager.handleUserUnlock ( user1 ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . switchUserStoreAndRead ( any ( WifiConfigStore.StoreFile.class ) ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . write ( anyBoolean ( ) , any ( com.android.server.wifi.WifiConfigStoreData.class ) ) ; }

Target:
public void testHandleUserSwitchAfterBootupBeforeLegacyStoreMigration ( ) throws java.lang.Exception { int user2 = ( com.android.server.wifi.WifiConfigManagerTest.TEST_DEFAULT_USER ) + 1 ; when ( mUserManager.isUserUnlockingOrUnlocked ( user2 ) ) . thenReturn ( false ) ; mWifiConfigManager.handleUserSwitch ( user2 ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . switchUserStoreAndRead ( any ( WifiConfigStore.StoreFile.class ) ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . write ( anyBoolean ( ) ) ; }
Source:
public int getAllowScansWithTraffic ( ) { return mWifiConfigManager.mAlwaysEnableScansWhileAssociated.get ( ) ; }

Target:
private boolean connectToUserSelectNetwork ( int netId , int uid ) { if ( ! ( setUserSelectNetwork ( netId , uid ) ) ) { return false ; } if ( ! ( mWifiConfigManager.checkAndUpdateLastConnectUid ( netId , uid ) ) ) { loge ( ( ( ( "connectToUserSelectNetwork uid " + uid ) + " did not have the permissions to connect=" ) + netId ) ) ; return false ; } startConnectToNetwork ( netId , com.android.server.wifi.WifiStateMachine.SUPPLICANT_BSSID_ANY ) ; return true ; }
Source:
public boolean p2pGroupAdd ( boolean persistent ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.groupAdd ( persistent ) ; } else { if ( persistent ) { return doBooleanCommand ( "P2P_GROUP_ADD persistent" ) ; } return doBooleanCommand ( "P2P_GROUP_ADD" ) ; } }

Target:
public boolean p2pStopFind ( ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.stopFind ( ) ; } else { return doBooleanCommand ( "P2P_STOP_FIND" ) ; } }
Source:
public final byte [ ] doFinal ( byte [ ] input , int inputOffset , int inputLen ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } javax.crypto.Cipher.checkInputOffsetAndCount ( input.length , inputOffset , inputLen ) ; return spiImpl.engineDoFinal ( input , inputOffset , inputLen ) ; }

Target:
public final int update ( java.nio.ByteBuffer input , java.nio.ByteBuffer output ) throws javax.crypto.ShortBufferException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( input == output ) { throw new java.lang.IllegalArgumentException ( "input == output" ) ; } return getSpi ( ) . engineUpdate ( input , output ) ; }
Source:
private void updatePassButton ( ) { getPassButton ( ) . setEnabled ( mAdapter.allTestsPassed ( ) ) ; }

Target:
boolean startTestIntent ( final com.android.cts.verifier.DialogTestListActivity.DialogTestListItem test ) { final android.content.Intent intent = test.intent ; try { startActivity ( intent ) ; } catch ( android.content.ActivityNotFoundException e ) { android.util.Log.w ( TAG , "Cannot start activity." , e ) ; android.widget.Toast.makeText ( this , ( "Cannot start " + intent ) , Toast.LENGTH_LONG ) . show ( ) ; setTestResult ( test , TestResult.TEST_RESULT_FAILED ) ; return false ; } return true ; }
Source:
public void makeOptionsObjects ( ) { cfOptions = new com.android.dx.dex.cf.CfOptions ( ) ; cfOptions.positionInfo = positionInfo ; cfOptions.localInfo = localInfo ; cfOptions.strictNameCheck = strictNameCheck ; cfOptions.optimize = optimize ; cfOptions.optimizeListFile = optimizeListFile ; cfOptions.dontOptimizeListFile = dontOptimizeListFile ; cfOptions.statistics = statistics ; if ( warnings ) { cfOptions.warn = context.err ; } else { cfOptions.warn = context.noop ; } dexOptions = new com.android.dx.dex.DexOptions ( ) ; dexOptions.forceJumbo = forceJumbo ; }

Target:
public void makeOptionsObjects ( ) { cfOptions = new com.android.dx.dex.cf.CfOptions ( ) ; cfOptions.positionInfo = positionInfo ; cfOptions.localInfo = localInfo ; cfOptions.strictNameCheck = strictNameCheck ; cfOptions.optimize = optimize ; cfOptions.optimizeListFile = optimizeListFile ; cfOptions.dontOptimizeListFile = dontOptimizeListFile ; cfOptions.statistics = statistics ; if ( warnings ) { cfOptions.warn = context.err ; } else { cfOptions.warn = context.noop ; } dexOptions = new com.android.dx.dex.DexOptions ( ) ; dexOptions.minSdkVersion = minSdkVersion ; dexOptions.forceJumbo = forceJumbo ; }
Source:
public android.telephony.CellLocation getCellLocation ( ) { return mSST.cellLoc ; }

Target:
public android.telephony.CellLocation getCellLocation ( ) { android.telephony.cdma.CdmaCellLocation loc = mSST.mCellLoc ; int mode = Settings.Secure.getInt ( getContext ( ) . getContentResolver ( ) , Settings.Secure.LOCATION_MODE , Settings.Secure.LOCATION_MODE_OFF ) ; if ( mode == ( Settings.Secure.LOCATION_MODE_OFF ) ) { android.telephony.cdma.CdmaCellLocation privateLoc = new android.telephony.cdma.CdmaCellLocation ( ) ; privateLoc.setCellLocationData ( loc.getBaseStationId ( ) , CdmaCellLocation.INVALID_LAT_LONG , CdmaCellLocation.INVALID_LAT_LONG , loc.getSystemId ( ) , loc.getNetworkId ( ) ) ; loc = privateLoc ; } return loc ; }
Source:
boolean virtualUnplug ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; if ( com.android.bluetooth.hid.HidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , ( "virtualUnplug: " + ( device.getAddress ( ) ) ) ) ; } int state = this . getConnectionState ( device ) ; if ( state != ( android.bluetooth.BluetoothHidHost.STATE_CONNECTED ) ) { return false ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_VIRTUAL_UNPLUG , device ) ; mHandler.sendMessage ( msg ) ; return true ; }

Target:
boolean virtualUnplug ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hid.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; if ( com.android.bluetooth.hid.HidHostService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidHostService.TAG , ( "virtualUnplug: " + ( device.getAddress ( ) ) ) ) ; } int state = this . getConnectionState ( device ) ; if ( state != ( android.bluetooth.BluetoothHidHost.STATE_CONNECTED ) ) { return false ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidHostService.MESSAGE_VIRTUAL_UNPLUG , device ) ; mHandler.sendMessage ( msg ) ; return true ; }
Source:
protected org.eclipse.swt.widgets.Control createDialogArea ( org.eclipse.swt.widgets.Composite parent ) { org.eclipse.swt.widgets.Composite contents = ( ( org.eclipse.swt.widgets.Composite ) ( super . createDialogArea ( parent ) ) ) ; createRadioControl ( contents ) ; createFilterText ( contents ) ; createFilteredList ( contents ) ; chooseNode ( mChosenRootNode ) ; setInitialSelection ( mChosenRootNode ) ; return contents ; }

Target:
protected org.eclipse.swt.widgets.Control createDialogArea ( org.eclipse.swt.widgets.Composite parent ) { org.eclipse.swt.widgets.Composite contents = ( ( org.eclipse.swt.widgets.Composite ) ( super . createDialogArea ( parent ) ) ) ; createRadioControl ( contents ) ; createFilterText ( contents ) ; createFilteredList ( contents ) ; org.eclipse.swt.widgets.Label label = createMessageArea ( contents ) ; if ( label != null ) { org.eclipse.swt.layout.GridData data = ( ( org.eclipse.swt.layout.GridData ) ( label.getLayoutData ( ) ) ) ; data.exclude = true ; } chooseNode ( mChosenRootNode ) ; setInitialSelection ( mChosenRootNode ) ; return contents ; }
Source:
public java.lang.String toString ( ) { java.lang.String toString = mSourceLocation.print ( true ) ; if ( ( mPosition ) != null ) { toString += ( ( ":" + ( mPosition.getLine ( ) ) ) + ":" ) + ( mPosition.getColumn ( ) ) ; } return toString ; }

Target:
public com.google.common.collect.ImmutableList < com.android.manifmerger.Actions.NodeRecord > getNodeRecords ( com.android.manifmerger.XmlNode.NodeKey key ) { return mRecords.containsKey ( key ) ? mRecords.get ( key ) . getNodeRecords ( ) : com.google.common.collect.ImmutableList.< com.android.manifmerger.Actions.NodeRecord > of ( ) ; }
Source:
private void sortPackages ( boolean updateButtons ) { if ( ( ( ( mCheckSortApi ) != null ) && ( ! ( mCheckSortApi.isDisposed ( ) ) ) ) && ( mCheckSortApi.getSelection ( ) ) ) { sortByAPI ( ) ; } else { sortBySource ( ) ; } if ( updateButtons ) { updateButtonsState ( ) ; } }

Target:
private void sortPackages ( boolean updateButtons ) { if ( ( ( ( mCheckSortApi ) != null ) && ( ! ( mCheckSortApi.isDisposed ( ) ) ) ) && ( mCheckSortApi.getSelection ( ) ) ) { sortByApiLevel ( ) ; } else { sortBySource ( ) ; } if ( updateButtons ) { updateButtonsState ( ) ; updateMenuCheckmarks ( ) ; } }
Source:
protected void enableService ( ) { android.autofillservice.cts.Helper.enableAutofillService ( android.autofillservice.cts.Helper.getContext ( ) , android.autofillservice.cts.InstrumentedAutoFillService.SERVICE_NAME ) ; android.autofillservice.cts.InstrumentedAutoFillService.setIgnoreUnexpectedRequests ( false ) ; }

Target:
public void disableService ( ) { if ( ! ( android.autofillservice.cts.Helper.hasAutofillFeature ( ) ) ) return ; if ( ! ( android.autofillservice.cts.AutoFillServiceTestCase.isServiceEnabled ( ) ) ) return ; final android.autofillservice.cts.OneTimeSettingsListener observer = new android.autofillservice.cts.OneTimeSettingsListener ( android.autofillservice.cts.AutoFillServiceTestCase.getContext ( ) , android.provider.Settings.Secure.AUTOFILL_SERVICE ) ; android.autofillservice.cts.Helper.runShellCommand ( "settings delete secure %s" , android.provider.Settings.Secure.AUTOFILL_SERVICE ) ; observer.assertCalled ( ) ; android.autofillservice.cts.AutoFillServiceTestCase.assertServiceDisabled ( ) ; android.autofillservice.cts.InstrumentedAutoFillService.setIgnoreUnexpectedRequests ( false ) ; }
Source:
public int migrateNetworksFromSupplicant ( java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > configs , android.util.SparseArray < java.util.Map < java.lang.String , java.lang.String > > networkExtras ) { return mWifiSupplicantControl.loadNetworks ( configs , networkExtras ) ; }

Target:
public boolean migrateNetworksFromSupplicant ( java.util.Map < java.lang.String , android.net.wifi.WifiConfiguration > configs , android.util.SparseArray < java.util.Map < java.lang.String , java.lang.String > > networkExtras ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.loadNetworks ( configs , networkExtras ) ; } else { mWifiSupplicantControl.loadNetworks ( configs , networkExtras ) ; return true ; } }
Source:
public boolean setWfdEnable ( boolean enable ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.enableWfd ( enable ) ; } else { return doBooleanCommand ( ( "SET wifi_display " + ( enable ? "1" : "0" ) ) ) ; } }

Target:
public boolean p2pServiceFlush ( ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.serviceFlush ( ) ; } else { return doBooleanCommand ( "P2P_SERVICE_FLUSH" ) ; } }
Source:
private void adjustOtherHeadsetPriorities ( com.android.bluetooth.hfp.HeadsetService hsService , java.util.List < android.bluetooth.BluetoothDevice > connectedDeviceList ) { for ( android.bluetooth.BluetoothDevice device : mAdapterService.getBondedDevices ( ) ) { if ( ( ( hsService.getPriority ( device ) ) >= ( android.bluetooth.BluetoothProfile.PRIORITY_AUTO_CONNECT ) ) && ( ! ( connectedDeviceList.contains ( device ) ) ) ) { hsService.setPriority ( device , BluetoothProfile.PRIORITY_ON ) ; } } }

Target:
private void adjustOtherHeadsetPriorities ( com.android.bluetooth.hfp.HeadsetService hsService , java.util.List < android.bluetooth.BluetoothDevice > connectedDeviceList ) { for ( android.bluetooth.BluetoothDevice device : mAdapterService.getBondedDevices ( ) ) { if ( ( ( hsService.getPriority ( device ) ) >= ( android.bluetooth.BluetoothProfile.PRIORITY_AUTO_CONNECT ) ) && ( ! ( connectedDeviceList.contains ( device ) ) ) ) { com.android.bluetooth.btservice.PhonePolicy.debugLog ( ( ( "adjustOtherHeadsetPriorities, device " + device ) + " PRIORITY_ON" ) ) ; hsService.setPriority ( device , BluetoothProfile.PRIORITY_ON ) ; } } }
Source:
public void onCreate ( android.database.sqlite.SQLiteDatabase db ) { db.execSQL ( ( ( ( ( ( ( ( ( "CREATE TABLE " + ( com.android.cts.verifier.TestResultsProvider.TABLE_NAME ) ) + " (" ) + ( com.android.cts.verifier.TestResultsProvider._ID ) ) + " INTEGER PRIMARY KEY AUTOINCREMENT, " ) + ( com.android.cts.verifier.TestResultsProvider.COLUMN_TEST_NAME ) ) + " TEXT, " ) + ( com.android.cts.verifier.TestResultsProvider.COLUMN_TEST_RESULT ) ) + " INTEGER);" ) ) ; }

Target:
public void onCreate ( android.database.sqlite.SQLiteDatabase db ) { db.execSQL ( ( ( ( ( ( ( ( ( ( ( "CREATE TABLE " + ( com.android.cts.verifier.TestResultsProvider.TABLE_NAME ) ) + " (" ) + ( com.android.cts.verifier.TestResultsProvider._ID ) ) + " INTEGER PRIMARY KEY AUTOINCREMENT, " ) + ( com.android.cts.verifier.TestResultsProvider.COLUMN_TEST_NAME ) ) + " TEXT, " ) + ( com.android.cts.verifier.TestResultsProvider.COLUMN_TEST_RESULT ) ) + " INTEGER," ) + ( com.android.cts.verifier.TestResultsProvider.COLUMN_TEST_INFO_SEEN ) ) + " INTEGER DEFAULT 0);" ) ) ; }
Source:
void prepareEngines ( ) throws java.lang.Exception { java.nio.channels.Pipe clientSendPipe = java.nio.channels.Pipe.open ( ) ; java.nio.channels.Pipe serverSendPipe = java.nio.channels.Pipe.open ( ) ; java.nio.channels.Pipe.SinkChannel clientSink = clientSendPipe.sink ( ) ; java.nio.channels.Pipe.SourceChannel serverSource = clientSendPipe.source ( ) ; java.nio.channels.Pipe.SinkChannel serverSink = serverSendPipe.sink ( ) ; java.nio.channels.Pipe.SourceChannel clientSource = serverSendPipe.source ( ) ; clientEngine = new tests.api.javax.net.ssl.SSLEngineTest.HandshakeHandler ( true , clientSource , clientSink ) ; serverEngine = new tests.api.javax.net.ssl.SSLEngineTest.HandshakeHandler ( false , serverSource , serverSink ) ; }

Target:
void prepareEngines ( ) throws java.lang.Exception { java.nio.channels.Pipe clientSendPipe = java.nio.channels.Pipe.open ( ) ; java.nio.channels.Pipe serverSendPipe = java.nio.channels.Pipe.open ( ) ; java.nio.channels.Pipe.SinkChannel clientSink = clientSendPipe.sink ( ) ; java.nio.channels.Pipe.SourceChannel serverSource = clientSendPipe.source ( ) ; java.nio.channels.Pipe.SinkChannel serverSink = serverSendPipe.sink ( ) ; java.nio.channels.Pipe.SourceChannel clientSource = serverSendPipe.source ( ) ; clientEngine = new org.apache.harmony.tests.javax.net.ssl.SSLEngineTest.HandshakeHandler ( true , clientSource , clientSink ) ; serverEngine = new org.apache.harmony.tests.javax.net.ssl.SSLEngineTest.HandshakeHandler ( false , serverSource , serverSink ) ; }
Source:
public boolean markRead ( boolean read ) { boolean changed = false ; for ( com.android.mail.providers.ParticipantInfo pi : participantInfos ) { changed |= pi.markRead ( read ) ; } if ( read ) { firstSnippet = lastSnippet ; } else { firstSnippet = firstUnreadSnippet ; } return changed ; }

Target:
public boolean markRead ( boolean read ) { boolean changed = false ; for ( com.android.mail.providers.ParticipantInfo pi : participantInfos ) { changed |= pi.markRead ( read ) ; } if ( ( messageCount ) > 0 ) { if ( read ) { firstSnippet = lastSnippet ; } else { firstSnippet = firstUnreadSnippet ; } } return changed ; }
Source:
com.android.internal.telephony.gsm.GsmSmsAddress getAddress ( ) { com.android.internal.telephony.gsm.GsmSmsAddress ret ; int addressLength = ( pdu [ cur ] ) & 255 ; int lengthBytes = 2 + ( ( addressLength + 1 ) / 2 ) ; ret = new com.android.internal.telephony.gsm.GsmSmsAddress ( pdu , cur , lengthBytes ) ; cur += lengthBytes ; return ret ; }

Target:
com.android.internal.telephony.gsm.GsmSmsAddress getAddress ( ) { com.android.internal.telephony.gsm.GsmSmsAddress ret ; int addressLength = ( pdu [ cur ] ) & 255 ; int lengthBytes = 2 + ( ( addressLength + 1 ) / 2 ) ; try { ret = new com.android.internal.telephony.gsm.GsmSmsAddress ( pdu , cur , lengthBytes ) ; } catch ( java.text.ParseException e ) { android.util.Log.e ( com.android.internal.telephony.gsm.SmsMessage.LOG_TAG , e.getMessage ( ) ) ; ret = null ; } cur += lengthBytes ; return ret ; }
Source:
public static void computeLdexp ( android.renderscript.cts.TestLdexp.ArgumentsFloatIntFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 1 , 1 , false ) ; android.renderscript.cts.Target.Floaty inX = t.new32 ( args.inX ) ; args.out = t.new32 ( android.renderscript.cts.CoreMathVerifier.ldexp ( inX.mid32 ( ) , args.inY ) , android.renderscript.cts.CoreMathVerifier.ldexp ( inX.min32 ( ) , args.inY ) , android.renderscript.cts.CoreMathVerifier.ldexp ( inX.max32 ( ) , args.inY ) ) ; }

Target:
public static void computeFabs ( android.renderscript.cts.TestFabs.ArgumentsFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 0 , 0 , false ) ; android.renderscript.cts.Target.Floaty in = t.new32 ( args.inX ) ; args.out = t.new32 ( java.lang.Math.abs ( args.inX ) , java.lang.Math.abs ( in.min32 ( ) ) , java.lang.Math.abs ( in.max32 ( ) ) ) ; }
Source:
public boolean isCarrierSpecific ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.util.List < java.lang.String > regionCodes = getRegionCodesForCountryCode ( number.getCountryCode ( ) ) ; java.lang.String regionCode = getRegionCodeForShortNumberFromRegionList ( number , regionCodes ) ; java.lang.String nationalNumber = com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) ; com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionCode ) ; return ( phoneMetadata != null ) && ( matchesPossibleNumberAndNationalNumber ( nationalNumber , phoneMetadata.carrierSpecific ) ) ; }

Target:
public boolean isCarrierSpecific ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.util.List < java.lang.String > regionCodes = getRegionCodesForCountryCode ( number.getCountryCode ( ) ) ; java.lang.String regionCode = getRegionCodeForShortNumberFromRegionList ( number , regionCodes ) ; java.lang.String nationalNumber = com.google.i18n.phonenumbers.ShortNumberInfo.getNationalSignificantNumber ( number ) ; com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata phoneMetadata = com.google.i18n.phonenumbers.MetadataManager.getShortNumberMetadataForRegion ( regionCode ) ; return ( phoneMetadata != null ) && ( matchesPossibleNumberAndNationalNumber ( nationalNumber , phoneMetadata.getCarrierSpecific ( ) ) ) ; }
Source:
private void transformAnnotationSetRefList ( com.android.dx.merge.IndexMap indexMap , com.android.dx.io.DexBuffer.Section refListIn ) { ( contentsOut.annotationSetRefLists.size ) ++ ; annotationSetRefListOut.assertFourByteAligned ( ) ; indexMap.putAnnotationSetRefListOffset ( refListIn.getPosition ( ) , annotationSetRefListOut.getPosition ( ) ) ; int parameterCount = refListIn.readInt ( ) ; annotationSetRefListOut.writeInt ( parameterCount ) ; for ( int p = 0 ; p < parameterCount ; p ++ ) { annotationSetRefListOut.writeInt ( indexMap.adjustAnnotationSet ( refListIn.readInt ( ) ) ) ; } }

Target:
private void transformAnnotationSetRefList ( com.android.dx.merge.IndexMap indexMap , com.android.dex.Dex.Section refListIn ) { ( contentsOut.annotationSetRefLists.size ) ++ ; annotationSetRefListOut.assertFourByteAligned ( ) ; indexMap.putAnnotationSetRefListOffset ( refListIn.getPosition ( ) , annotationSetRefListOut.getPosition ( ) ) ; int parameterCount = refListIn.readInt ( ) ; annotationSetRefListOut.writeInt ( parameterCount ) ; for ( int p = 0 ; p < parameterCount ; p ++ ) { annotationSetRefListOut.writeInt ( indexMap.adjustAnnotationSet ( refListIn.readInt ( ) ) ) ; } }
Source:
private boolean needFullRebuild ( ) { if ( ! ( options.isAutomaticFullRebuildEnabled ( ) ) ) { return false ; } long timestamp = new java.io.File ( options.getOutputDir ( ) , com.android.jack.backend.dex.DexFileWriter.DEX_FILENAME ) . lastModified ( ) ; for ( java.io.File lib : options.getClasspath ( ) ) { if ( isModifiedLibrary ( lib , timestamp ) ) { return true ; } } for ( java.io.File importedJackFiles : options.getJayceImport ( ) ) { if ( isModifiedLibrary ( importedJackFiles , timestamp ) ) { return true ; } } return false ; }

Target:
private boolean needFullRebuild ( ) { if ( ! ( options.isAutomaticFullRebuildEnabled ( ) ) ) { return false ; } long timestamp = new java.io.File ( options.getOutputDir ( ) , com.android.jack.backend.dex.DexFileWriter.DEX_FILENAME ) . lastModified ( ) ; for ( java.io.File lib : options.getClasspath ( ) ) { if ( isModifiedLibrary ( lib , timestamp ) ) { return true ; } } for ( java.io.File importedJackFiles : options.getImportedLibraries ( ) ) { if ( isModifiedLibrary ( importedJackFiles , timestamp ) ) { return true ; } } return false ; }
Source:
public V get ( java.lang.Object k ) { K key = ( ( K ) ( k ) ) ; V value = compute ( key ) ; com.google.common.base.Preconditions.checkNotNull ( value , ( ( ( ( computingFunction ) + " returned null for key " ) + key ) + "." ) ) ; notifyRemoval ( key , value ) ; return value ; }

Target:
public V get ( java.lang.Object k ) { K key = ( ( K ) ( k ) ) ; V value = compute ( key ) ; com.google.common.base.Preconditions.checkNotNull ( value , "%s returned null for key %s." , computingFunction , key ) ; notifyRemoval ( key , value ) ; return value ; }
Source:
synchronized void nAllocationElementData1D ( long id , int xoff , int mip , int compIdx , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationElementData1D ( mContext , id , xoff , mip , compIdx , d , sizeBytes ) ; }

Target:
synchronized void nAllocationElementRead ( long id , int xoff , int yoff , int zoff , int mip , int compIdx , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationElementRead ( mContext , id , xoff , yoff , zoff , mip , compIdx , d , sizeBytes , dt.mID ) ; }
Source:
public java.io.InputStream getInputStream ( ) throws java.io.IOException { checkOpen ( ) ; synchronized ( this ) { if ( ( is ) == null ) { is = new org.conscrypt.OpenSSLSocketImpl.SSLInputStream ( ) ; } return is ; } }

Target:
public java.io.InputStream getInputStream ( ) throws java.io.IOException { checkOpen ( ) ; java.io.InputStream returnVal ; synchronized ( stateLock ) { if ( ( state ) == ( org.conscrypt.OpenSSLSocketImpl.STATE_CLOSED ) ) { throw new java.net.SocketException ( "Socket is closed." ) ; } if ( ( is ) == null ) { is = new org.conscrypt.OpenSSLSocketImpl.SSLInputStream ( ) ; } returnVal = is ; } waitForHandshake ( ) ; return returnVal ; }
Source:
android.content.pm.ActivityInfo getActivityInfoForUser ( android.content.pm.ActivityInfo aInfo , int userId ) { if ( ( aInfo == null ) || ( ( userId < 1 ) && ( ( aInfo.applicationInfo.uid ) < ( android.os.UserId.PER_USER_RANGE ) ) ) ) { return aInfo ; } android.content.pm.ActivityInfo info = new android.content.pm.ActivityInfo ( aInfo ) ; info.applicationInfo = getAppInfoForUser ( info.applicationInfo , userId ) ; return info ; }

Target:
android.content.pm.ActivityInfo getActivityInfoForUser ( android.content.pm.ActivityInfo aInfo , int userId ) { if ( ( aInfo == null ) || ( ( userId < 1 ) && ( ( aInfo.applicationInfo.uid ) < ( android.os.UserHandle.PER_USER_RANGE ) ) ) ) { return aInfo ; } android.content.pm.ActivityInfo info = new android.content.pm.ActivityInfo ( aInfo ) ; info.applicationInfo = getAppInfoForUser ( info.applicationInfo , userId ) ; return info ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( action.equals ( AppInterface.STK_CMD_ACTION ) ) { handleCommandMessage ( context , intent ) ; } else if ( action.equals ( AppInterface.STK_SESSION_END_ACTION ) ) { handleSessionEnd ( context , intent ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( action.equals ( AppInterface.CAT_CMD_ACTION ) ) { handleCommandMessage ( context , intent ) ; } else if ( action.equals ( AppInterface.CAT_SESSION_END_ACTION ) ) { handleSessionEnd ( context , intent ) ; } }
Source:
private java.lang.String getVersionCodeString ( int versionCode , com.android.sdklib.internal.export.ApkData apkData ) { int trueVersionCode = versionCode * ( com.android.ant.MultiApkExportTask.OFFSET_VERSION_CODE ) ; trueVersionCode += ( apkData.getBuildInfo ( ) ) * ( com.android.ant.MultiApkExportTask.OFFSET_BUILD_INFO ) ; trueVersionCode += apkData.getMinor ( ) ; return java.lang.Integer.toString ( trueVersionCode ) ; }

Target:
private java.lang.String getVersionCodeString ( int versionCode , com.android.sdklib.internal.export.ApkData apkData ) { int trueVersionCode = versionCode * ( com.android.sdklib.internal.export.MultiApkExportHelper.OFFSET_VERSION_CODE ) ; trueVersionCode += ( apkData.getBuildInfo ( ) ) * ( com.android.sdklib.internal.export.MultiApkExportHelper.OFFSET_BUILD_INFO ) ; trueVersionCode += apkData.getMinor ( ) ; return java.lang.Integer.toString ( trueVersionCode ) ; }
Source:
private static java.lang.ClassLoader createClassLoader ( com.google.devtools.build.android.desugar.CoreLibraryRewriter rewriter , java.util.List < java.nio.file.Path > bootclasspath , com.google.devtools.build.android.desugar.IndexedJars appAndClasspathIndexedJars ) throws java.io.IOException { java.lang.ClassLoader parent = new com.google.devtools.build.android.desugar.Desugar.ThrowingClassLoader ( ) ; if ( ! ( bootclasspath.isEmpty ( ) ) ) { parent = new com.google.devtools.build.android.desugar.HeaderClassLoader ( new com.google.devtools.build.android.desugar.IndexedJars ( bootclasspath ) , rewriter , parent ) ; } return new com.google.devtools.build.android.desugar.HeaderClassLoader ( appAndClasspathIndexedJars , rewriter , parent ) ; }

Target:
private static java.lang.ClassLoader createClassLoader ( com.google.devtools.build.android.desugar.CoreLibraryRewriter rewriter , java.util.List < com.google.devtools.build.android.desugar.InputFileProvider > bootclasspath , com.google.devtools.build.android.desugar.IndexedInputs appAndClasspathIndexedInputs ) throws java.io.IOException { java.lang.ClassLoader parent = new com.google.devtools.build.android.desugar.Desugar.ThrowingClassLoader ( ) ; if ( ! ( bootclasspath.isEmpty ( ) ) ) { parent = new com.google.devtools.build.android.desugar.HeaderClassLoader ( new com.google.devtools.build.android.desugar.IndexedInputs ( bootclasspath ) , rewriter , parent ) ; } return new com.google.devtools.build.android.desugar.HeaderClassLoader ( appAndClasspathIndexedInputs , rewriter , parent ) ; }
Source:
private static android.os.ParcelFileDescriptor getDistroParcelFileDescriptor ( android.content.Context context ) { android.os.ParcelFileDescriptor inputFileDescriptor ; try { inputFileDescriptor = context.getContentResolver ( ) . openFileDescriptor ( TimeZoneRulesDataContract.DATA_URI , "r" ) ; if ( inputFileDescriptor == null ) { throw new java.io.FileNotFoundException ( "ContentProvider returned null" ) ; } } catch ( java.io.FileNotFoundException e ) { android.util.Log.e ( com.android.timezone.updater.RulesCheckReceiver.TAG , ( "Unable to open file descriptor" + ( android.provider.TimeZoneRulesDataContract.DATA_URI ) ) , e ) ; return null ; } return inputFileDescriptor ; }

Target:
private static android.os.ParcelFileDescriptor getDistroParcelFileDescriptor ( android.content.Context context ) { android.os.ParcelFileDescriptor inputFileDescriptor ; try { inputFileDescriptor = context.getContentResolver ( ) . openFileDescriptor ( TimeZoneRulesDataContract.Data.CONTENT_URI , "r" ) ; if ( inputFileDescriptor == null ) { throw new java.io.FileNotFoundException ( "ContentProvider returned null" ) ; } } catch ( java.io.FileNotFoundException e ) { android.util.Log.e ( com.android.timezone.updater.RulesCheckReceiver.TAG , ( "Unable to open file descriptor" + ( TimeZoneRulesDataContract.Data.CONTENT_URI ) ) , e ) ; return null ; } return inputFileDescriptor ; }
Source:
public void endElement ( java.lang.String uri , java.lang.String localName , java.lang.String qName ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( ) ; sb.append ( uri ) ; sb.append ( tests.api.javax.xml.parsers.SAXParserTestSupport.SEPARATOR_STRING ) ; sb.append ( localName ) ; sb.append ( tests.api.javax.xml.parsers.SAXParserTestSupport.SEPARATOR_STRING ) ; sb.append ( qName ) ; data_endElement.append ( sb ) ; data_endElement.append ( tests.api.javax.xml.parsers.SAXParserTestSupport.SEPARATOR_ELEMENT ) ; }

Target:
public void endElement ( java.lang.String uri , java.lang.String localName , java.lang.String qName ) { java.lang.StringBuffer sb = new java.lang.StringBuffer ( ) ; sb.append ( uri ) ; sb.append ( org.apache.harmony.tests.javax.xml.parsers.SAXParserTestSupport.SEPARATOR_STRING ) ; sb.append ( localName ) ; sb.append ( org.apache.harmony.tests.javax.xml.parsers.SAXParserTestSupport.SEPARATOR_STRING ) ; sb.append ( qName ) ; data_endElement.append ( sb ) ; data_endElement.append ( org.apache.harmony.tests.javax.xml.parsers.SAXParserTestSupport.SEPARATOR_ELEMENT ) ; }
Source:
public boolean factoryReset ( ) { try { if ( ( mService ) != null ) { return mService.factoryReset ( ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public boolean factoryReset ( ) { try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) { return mService.factoryReset ( ) ; } android.os.SystemProperties.set ( "persist.bluetooth.factoryreset" , "true" ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } return false ; }
Source:
public static com.android.dialer.historyitemactions.IntentModule newVideoCallModule ( android.content.Context context , java.lang.String number , @ android.support.annotation.Nullable android.telecom.PhoneAccountHandle phoneAccountHandle , com.android.dialer.callintent.CallInitiationType.Type initiationType ) { return new com.android.dialer.historyitemactions.IntentModule ( context , com.android.dialer.precall.PreCall.getIntent ( context , new com.android.dialer.callintent.CallIntentBuilder ( number , initiationType ) . setPhoneAccountHandle ( phoneAccountHandle ) . setIsVideoCall ( true ) ) , R.string.video_call , R.drawable.quantum_ic_videocam_vd_white_24 ) ; }

Target:
public static com.android.dialer.historyitemactions.IntentModule newCarrierVideoCallModule ( android.content.Context context , java.lang.String number , @ android.support.annotation.Nullable android.telecom.PhoneAccountHandle phoneAccountHandle , com.android.dialer.callintent.CallInitiationType.Type initiationType ) { return new com.android.dialer.historyitemactions.IntentModule ( context , com.android.dialer.precall.PreCall.getIntent ( context , new com.android.dialer.callintent.CallIntentBuilder ( number , initiationType ) . setPhoneAccountHandle ( phoneAccountHandle ) . setIsVideoCall ( true ) ) , R.string.video_call , R.drawable.quantum_ic_videocam_vd_white_24 ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( androidMinApiLevel ) < ( com.android.jack.transformations.BridgeInInterfaceRemover.N_API_LEVEL ) ) { if ( ( ( method.getEnclosingType ( ) ) instanceof com.android.jack.ir.ast.JInterface ) && ( method.isBridge ( ) ) ) { com.android.jack.transformations.request.TransformationRequest tr = new com.android.jack.transformations.request.TransformationRequest ( method.getEnclosingType ( ) ) ; tr.append ( new com.android.jack.transformations.request.Remove ( method ) ) ; tr.commit ( ) ; } } }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( androidMinApiLevel ) < ( com.android.jack.backend.dex.compatibility.AndroidCompatibilityChecker.N_API_LEVEL ) ) { if ( ( ( method.getEnclosingType ( ) ) instanceof com.android.jack.ir.ast.JInterface ) && ( method.isBridge ( ) ) ) { com.android.jack.transformations.request.TransformationRequest tr = new com.android.jack.transformations.request.TransformationRequest ( method.getEnclosingType ( ) ) ; tr.append ( new com.android.jack.transformations.request.Remove ( method ) ) ; tr.commit ( ) ; } } }
Source:
private java.lang.String getDeviceTimeZoneState ( com.android.timezone.xts.TimeZoneUpdateHostTest.StateType stateType ) throws java.lang.Exception { java.lang.String output = getDevice ( ) . executeAdbCommand ( "shell" , "dumpsys" , "timezone" , "-format_state" , stateType.getFormatStateChar ( ) ) ; assertNotNull ( output ) ; java.lang.String value = output.split ( ":" ) [ 1 ] ; return value.substring ( 1 , ( ( value.length ( ) ) - 1 ) ) ; }

Target:
private java.lang.String getDeviceTimeZoneState ( com.android.timezone.xts.TimeZoneUpdateHostTest.StateType stateType ) throws java.lang.Exception { java.lang.String output = getDevice ( ) . executeShellCommand ( ( "dumpsys timezone -format_state " + ( stateType.getFormatStateChar ( ) ) ) ) ; assertNotNull ( output ) ; java.lang.String value = output.split ( ":" ) [ 1 ] ; return value.substring ( 1 , ( ( value.length ( ) ) - 1 ) ) ; }
Source:
private void expectNetworkStatsUidDetail ( android.net.NetworkStats detail , java.lang.String [ ] tetherIfacePairs , android.net.NetworkStats tetherStats ) throws java.lang.Exception { org.easymock.EasyMock.expect ( mNetManager.getNetworkStatsUidDetail ( org.easymock.EasyMock.eq ( android.net.NetworkStats.UID_ALL ) ) ) . andReturn ( detail ) . atLeastOnce ( ) ; org.easymock.EasyMock.expect ( mNetManager.getNetworkStatsTethering ( ) ) . andReturn ( tetherStats ) . atLeastOnce ( ) ; }

Target:
private void expectNetworkStatsUidDetail ( android.net.NetworkStats detail , java.lang.String [ ] tetherIfacePairs , android.net.NetworkStats tetherStats ) throws java.lang.Exception { org.mockito.Mockito.when ( mNetManager.getNetworkStatsUidDetail ( android.net.NetworkStats.UID_ALL ) ) . thenReturn ( detail ) ; org.mockito.Mockito.when ( mNetManager.getNetworkStatsTethering ( ) ) . thenReturn ( tetherStats ) ; }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.SuperReference x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.ast.JClass superClass ; assert ( ( superClass = curClass.classType.getSuperClass ( ) ) == null ) || ( getTypeMap ( ) . get ( x.resolvedType ) . isSameType ( superClass ) ) ; push ( makeThisRef ( makeSourceInfo ( x ) ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.SuperReference x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.ast.JClass superClass ; assert ( ( superClass = curClass.classType.getSuperClass ( ) ) == null ) || ( getTypeMap ( ) . get ( x.resolvedType ) . isSameType ( superClass ) ) ; push ( makeThisRef ( makeSourceInfo ( x ) ) ) ; } catch ( com.android.jack.ir.ast.JTypeLookupException e ) { throw translateException ( x , e ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public void setReporter ( @ javax.annotation.Nonnull com.android.jack.api.v01.ReporterKind arg0 , @ javax.annotation.Nonnull java.io.OutputStream arg1 ) throws com.android.jack.api.v01.ConfigurationException { }

Target:
public void setReporter ( @ javax.annotation.Nonnull com.android.jack.api.v01.ReporterKind reporterKind , @ javax.annotation.Nonnull java.io.OutputStream reporterStream ) throws com.android.jack.api.v01.ConfigurationException { java.lang.String reporterKindAsString = null ; switch ( reporterKind ) { case DEFAULT : { reporterKindAsString = "default" ; break ; } case SDK : { reporterKindAsString = "sdk" ; break ; } default : { throw new com.android.jack.api.v01.ConfigurationException ( ( ( "Reporter kind '" + reporterKind ) + "' is unsupported" ) ) ; } } options.addProperty ( Reporter.REPORTER.getName ( ) , reporterKindAsString ) ; options.setReporterStream ( reporterStream ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case com.android.phone.CallFeaturesSetting.EVENT_CLIR_EXECUTED : handleSetCLIRMessage ( ) ; break ; case com.android.phone.CallFeaturesSetting.EVENT_CW_EXECUTED : handleSetCWMessage ( ) ; break ; case com.android.phone.CallFeaturesSetting.EVENT_CF_EXECUTED : handleSetCFMessage ( msg.arg1 , ( ( android.os.AsyncResult ) ( msg.obj ) ) ) ; break ; case com.android.phone.CallFeaturesSetting.EVENT_VOICEMAIL_CHANGED : handleSetVMMessage ( ( ( android.os.AsyncResult ) ( msg.obj ) ) ) ; break ; case com.android.phone.CallFeaturesSetting.EVENT_ENHANCED_VP_EXECUTED : if ( com.android.phone.CallFeaturesSetting.DBG ) android.util.Log.d ( com.android.phone.CallFeaturesSetting.LOG_TAG , "setOptionComplete: Received event EVENT_ENHANCED_VP_EXECUTED" ) ; handleSetVPMessage ( ) ; break ; default : } }

Target:
private int handleQueryVPModeMessage ( android.os.AsyncResult ar ) { if ( ( ar.exception ) != null ) { if ( com.android.phone.CallFeaturesSetting.DBG ) { com.android.phone.CallFeaturesSetting.log ( "handleQueryVPModeMessage: Error getting VoicePrivacy enable state." ) ; } return com.android.phone.CallFeaturesSetting.MSG_EXCEPTION ; } else { if ( com.android.phone.CallFeaturesSetting.DBG ) { com.android.phone.CallFeaturesSetting.log ( "handleQueryVPModeMessage: VoicePrivacy enable state successfully queried." ) ; } syncVPState ( ( ( int [ ] ) ( ar.result ) ) ) ; android.provider.Settings.System.putInt ( mPhone.getContext ( ) . getContentResolver ( ) , android.provider.Settings.System.ENHANCED_VOICE_PRIVACY_ENABLED , com.android.phone.CallFeaturesSetting.preferredVPMode ) ; } return com.android.phone.CallFeaturesSetting.MSG_OK ; }
Source:
protected void setUp ( ) throws java.lang.Exception { mAndroidKeyStore = android.security.android.security.KeyStore.getInstance ( ) ; assertTrue ( mAndroidKeyStore.reset ( ) ) ; assertFalse ( mAndroidKeyStore.isUnlocked ( ) ) ; assertTrue ( mAndroidKeyStore.password ( "1111" ) ) ; assertTrue ( mAndroidKeyStore.isUnlocked ( ) ) ; assertEquals ( 0 , mAndroidKeyStore.saw ( "" ) . length ) ; mKeyStore = java.security.KeyStore.getInstance ( AndroidKeyStore.NAME ) ; }

Target:
private void setupPassword ( ) { assertTrue ( mAndroidKeyStore.password ( "1111" ) ) ; assertTrue ( mAndroidKeyStore.isUnlocked ( ) ) ; assertEquals ( 0 , mAndroidKeyStore.saw ( "" ) . length ) ; }
Source:
public void testEnvironment ( ) throws java.lang.Exception { java.lang.ProcessBuilder pb = new java.lang.ProcessBuilder ( libcore.java.lang.ProcessBuilderTest.shell ( ) , "-c" , "echo $A" ) ; pb.environment ( ) . put ( "A" , "android" ) ; tests.support.Support_Exec.execAndCheckOutput ( pb , "android\n" , "" ) ; }

Target:
public void testEnvironment ( ) throws java.lang.Exception { java.lang.ProcessBuilder pb = new java.lang.ProcessBuilder ( libcore.java.lang.ProcessBuilderTest.shell ( ) , "-c" , "echo $A" ) ; pb.environment ( ) . put ( "A" , "android" ) ; libcore.java.lang.ProcessBuilderTest.checkProcessExecution ( pb , libcore.java.lang.ProcessBuilderTest.ResultCodes.ZERO , "" , "android\n" , "" ) ; }
Source:
public void test_getSerialVersionUID_inner_private_class ( ) { java.io.ObjectStreamClass osc1 = java.io.ObjectStreamClass.lookup ( tests.api.java.io.ObjectStreamClassTest.SyntheticTest.class ) ; assertEquals ( ( - 4332969662791850406L ) , osc1.getSerialVersionUID ( ) ) ; java.io.ObjectStreamClass osc2 = java.io.ObjectStreamClass.lookup ( tests.api.java.io.ObjectStreamClassTest.SyntheticTest.X.class ) ; assertEquals ( ( - 3926212872029449440L ) , osc2.getSerialVersionUID ( ) ) ; }

Target:
public void test_lookupLjava_lang_Class ( ) { java.io.ObjectStreamClass osc = java.io.ObjectStreamClass.lookup ( tests.api.java.io.ObjectStreamClassTest.DummyClass.class ) ; assertEquals ( ( "lookup returned wrong class: " + ( osc.getName ( ) ) ) , "tests.api.java.io.ObjectStreamClassTest$DummyClass" , osc.getName ( ) ) ; }
Source:
private void responseSms ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.SendSmsResult sms ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.SmsResponse ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = new com.android.internal.telephony.SmsResponse ( sms.messageRef , sms.ackPDU , sms.errorCode ) ; sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseSms ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , android.hardware.radio.V1_0.SendSmsResult sms ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.SmsResponse ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = new com.android.internal.telephony.SmsResponse ( sms.messageRef , sms.ackPDU , sms.errorCode ) ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }