auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private java.util.List < com.android.tv.dvr.ScheduledRecording > filterEndTimeIsPast ( java.util.List < com.android.tv.dvr.ScheduledRecording > originals ) { java.util.List < com.android.tv.dvr.ScheduledRecording > results = new java.util.ArrayList ( originals.size ( ) ) ; for ( com.android.tv.dvr.ScheduledRecording r : originals ) { if ( ( r.getEndTimeMs ( ) ) > ( mClock.currentTimeMillis ( ) ) ) { results.add ( r ) ; } } return results ; }

Target:
private java.util.List < com.android.tv.dvr.data.ScheduledRecording > filterEndTimeIsPast ( java.util.List < com.android.tv.dvr.data.ScheduledRecording > originals ) { java.util.List < com.android.tv.dvr.data.ScheduledRecording > results = new java.util.ArrayList ( originals.size ( ) ) ; for ( com.android.tv.dvr.data.ScheduledRecording r : originals ) { if ( ( r.getEndTimeMs ( ) ) > ( mClock.currentTimeMillis ( ) ) ) { results.add ( r ) ; } } return results ; }
Source:
public void onHostCardEmulationActivated ( ) { mHostEmulationManager.onHostEmulationActivated ( ) ; mPreferredServices.onHostEmulationActivated ( ) ; }

Target:
public void onHostCardEmulationActivated ( int technology ) { if ( technology == ( com.android.nfc.cardemulation.CardEmulationManager.NFC_HCE_APDU ) ) { mHostEmulationManager.onHostEmulationActivated ( ) ; mPreferredServices.onHostEmulationActivated ( ) ; } else if ( technology == ( com.android.nfc.cardemulation.CardEmulationManager.NFC_HCE_NFCF ) ) { mHostNfcFEmulationManager.onHostEmulationActivated ( ) ; mNfcFServicesCache.onHostEmulationActivated ( ) ; mEnabledNfcFServices.onHostEmulationActivated ( ) ; } }
Source:
public void requestImageRef ( android.os.Message msg ) { int contentX = viewToContent ( ( ( ( int ) ( mLastTouchX ) ) + ( mScrollX ) ) ) ; int contentY = viewToContent ( ( ( ( int ) ( mLastTouchY ) ) + ( mScrollY ) ) ) ; java.lang.String ref = nativeImageURI ( contentX , contentY ) ; android.os.Bundle data = msg.getData ( ) ; data.putString ( "url" , ref ) ; msg.setData ( data ) ; msg.sendToTarget ( ) ; }

Target:
private void clearTextEntry ( ) { if ( inEditingMode ( ) ) { mWebTextView.remove ( ) ; } }
Source:
synchronized void nAllocationRead2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationRead2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes , dt.mID ) ; }

Target:
synchronized void nAllocationRead3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt , int mSize , boolean usePadding ) { validate ( ) ; rsnAllocationRead3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID , mSize , usePadding ) ; }
Source:
public void test_getDisplayName_GMT_short_names ( ) throws java.lang.Exception { java.util.TimeZone tz = java.util.TimeZone.getTimeZone ( "America/Santiago" ) ; assertEquals ( "Chile Summer Time" , tz.getDisplayName ( true , java.util.TimeZone.LONG , java.util.Locale.US ) ) ; assertEquals ( "Chile Standard Time" , tz.getDisplayName ( false , java.util.TimeZone.LONG , java.util.Locale.US ) ) ; assertEquals ( "GMT-03:00" , tz.getDisplayName ( true , java.util.TimeZone.SHORT , java.util.Locale.US ) ) ; assertEquals ( "GMT-03:00" , tz.getDisplayName ( false , java.util.TimeZone.SHORT , java.util.Locale.US ) ) ; }

Target:
public void test_getDisplayName_GMT_short_names ( ) throws java.lang.Exception { java.util.TimeZone tz = java.util.TimeZone.getTimeZone ( "Asia/Seoul" ) ; assertEquals ( "Korean Daylight Time" , tz.getDisplayName ( true , java.util.TimeZone.LONG , java.util.Locale.US ) ) ; assertEquals ( "Korean Standard Time" , tz.getDisplayName ( false , java.util.TimeZone.LONG , java.util.Locale.US ) ) ; assertEquals ( "GMT+09:00" , tz.getDisplayName ( true , java.util.TimeZone.SHORT , java.util.Locale.US ) ) ; assertEquals ( "GMT+09:00" , tz.getDisplayName ( false , java.util.TimeZone.SHORT , java.util.Locale.US ) ) ; }
Source:
public java.lang.String getPackageFromManifest ( ) { com.google.common.base.Preconditions.checkState ( ( ! ( mType.isForTesting ( ) ) ) ) ; java.io.File manifestLocation = mDefaultSourceProvider.getManifestFile ( ) ; java.lang.String packageName = sManifestParser.getPackage ( manifestLocation ) ; if ( packageName == null ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "Cannot read packageName from %1$s" , mDefaultSourceProvider.getManifestFile ( ) . getAbsolutePath ( ) ) ) ; } return packageName ; }

Target:
public java.lang.String getOriginalApplicationId ( ) { if ( mType.isForTesting ( ) ) { return getApplicationId ( ) ; } return getPackageFromManifest ( ) ; }
Source:
public void loadBoundProfilePackage ( byte [ ] boundProfilePackage , android.telephony.euicc.EuiccCardManager.ResultCallback < byte [ ] > callback ) { try { getIEuiccCardController ( ) . loadBoundProfilePackage ( mContext.getOpPackageName ( ) , boundProfilePackage , new com.android.internal.telephony.euicc.ILoadBoundProfilePackageCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , byte [ ] response ) { callback.onComplete ( resultCode , response ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling loadBoundProfilePackage" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void loadBoundProfilePackage ( java.lang.String cardId , byte [ ] boundProfilePackage , android.telephony.euicc.EuiccCardManager.ResultCallback < byte [ ] > callback ) { try { getIEuiccCardController ( ) . loadBoundProfilePackage ( mContext.getOpPackageName ( ) , cardId , boundProfilePackage , new com.android.internal.telephony.euicc.ILoadBoundProfilePackageCallback.Stub ( ) { @ java.lang.Override public void onComplete ( int resultCode , byte [ ] response ) { callback.onComplete ( resultCode , response ) ; } } ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.euicc.EuiccCardManager.TAG , "Error calling loadBoundProfilePackage" , e ) ; throw e.rethrowFromSystemServer ( ) ; } }
Source:
public com.android.internal.telephony.cdma.DataActivityState getDataActivityState ( ) { com.android.internal.telephony.cdma.DataActivityState ret = DataActivityState.NONE ; if ( ( mSST.getCurrentDataConnectionState ( ) ) == ( android.telephony.ServiceState.STATE_IN_SERVICE ) ) { switch ( mDataConnectionTracker.getActivity ( ) ) { case DATAIN : ret = DataActivityState.DATAIN ; break ; case DATAOUT : ret = DataActivityState.DATAOUT ; break ; case DATAINANDOUT : ret = DataActivityState.DATAINANDOUT ; break ; case DORMANT : ret = DataActivityState.DORMANT ; break ; } } return ret ; }

Target:
public com.android.internal.telephony.cdma.DataActivityState getDataActivityState ( ) { com.android.internal.telephony.cdma.DataActivityState ret = DataActivityState.NONE ; if ( ( mSST.getCurrentDataConnectionState ( ) ) == ( android.telephony.ServiceState.STATE_IN_SERVICE ) ) { switch ( mDcTracker.getActivity ( ) ) { case DATAIN : ret = DataActivityState.DATAIN ; break ; case DATAOUT : ret = DataActivityState.DATAOUT ; break ; case DATAINANDOUT : ret = DataActivityState.DATAINANDOUT ; break ; case DORMANT : ret = DataActivityState.DORMANT ; break ; default : ret = DataActivityState.NONE ; break ; } } return ret ; }
Source:
public final void update ( byte input ) throws java.lang.IllegalStateException { if ( ! ( isInitMac ) ) { throw new java.lang.IllegalStateException ( ) ; } spiImpl.engineUpdate ( input ) ; }

Target:
public final byte [ ] doFinal ( byte [ ] input ) throws java.lang.IllegalStateException { if ( ! ( isInitMac ) ) { throw new java.lang.IllegalStateException ( ) ; } javax.crypto.MacSpi spi = getSpi ( ) ; if ( input != null ) { spi.engineUpdate ( input , 0 , input.length ) ; } return spi.engineDoFinal ( ) ; }
Source:
public java.util.List < java.security.cert.X509Certificate > checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType , java.lang.String host ) throws java.security.cert.CertificateException { return checkTrusted ( chain , authType , host , false ) ; }

Target:
public 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 static javax.net.ssl.X509TrustManager findX509TrustManager ( javax.net.ssl.TrustManager [ ] tms ) throws java.security.KeyManagementException { for ( javax.net.ssl.TrustManager tm : tms ) { if ( tm instanceof javax.net.ssl.X509TrustManager ) { return ( ( javax.net.ssl.X509TrustManager ) ( tm ) ) ; } } throw new java.security.KeyManagementException ( ( "Failed to find an X509TrustManager in " + ( java.util.Arrays.toString ( tms ) ) ) ) ; }

Target:
private static javax.net.ssl.X509ExtendedTrustManager findFirstX509TrustManager ( javax.net.ssl.TrustManager [ ] tms ) throws java.security.KeyManagementException { for ( javax.net.ssl.TrustManager tm : tms ) { if ( tm instanceof javax.net.ssl.X509ExtendedTrustManager ) { return ( ( javax.net.ssl.X509ExtendedTrustManager ) ( tm ) ) ; } if ( tm instanceof javax.net.ssl.X509TrustManager ) { return new org.conscrypt.X509ExtendedTrustManagerWrapper ( ( ( javax.net.ssl.X509TrustManager ) ( tm ) ) ) ; } } return null ; }
Source:
public void onBootPhase ( int phase ) { if ( phase == ( com.android.server.SystemService.PHASE_SYSTEM_SERVICES_READY ) ) { if ( com.android.server.connectivity.IpConnectivityMetrics.DBG ) android.util.Log.d ( com.android.server.connectivity.IpConnectivityMetrics.TAG , "onBootPhase" ) ; mNetdListener = new com.android.server.connectivity.NetdEventListenerService ( getContext ( ) ) ; publishBinderService ( com.android.server.connectivity.IpConnectivityMetrics.SERVICE_NAME , impl ) ; publishBinderService ( mNetdListener.SERVICE_NAME , mNetdListener ) ; } }

Target:
public void onBootPhase ( int phase ) { if ( phase == ( com.android.server.SystemService.PHASE_SYSTEM_SERVICES_READY ) ) { if ( com.android.server.connectivity.IpConnectivityMetrics.DBG ) android.util.Log.d ( com.android.server.connectivity.IpConnectivityMetrics.TAG , "onBootPhase" ) ; mNetdListener = new com.android.server.connectivity.NetdEventListenerService ( getContext ( ) ) ; publishBinderService ( com.android.server.connectivity.IpConnectivityMetrics.SERVICE_NAME , impl ) ; publishBinderService ( mNetdListener.SERVICE_NAME , mNetdListener ) ; com.android.server.LocalServices.addService ( com.android.server.connectivity.IpConnectivityMetrics.Logger.class , new com.android.server.connectivity.IpConnectivityMetrics.LoggerImpl ( ) ) ; } }
Source:
private java.lang.Integer getDynamicId ( java.lang.String name ) { synchronized ( mDynamicIds ) { java.lang.Integer value = mDynamicIds.get ( name ) ; if ( value == null ) { value = new java.lang.Integer ( ( ++ ( mDynamicSeed ) ) ) ; mDynamicIds.put ( name , value ) ; } return value ; } }

Target:
private java.lang.Integer getDynamicId ( java.lang.String name ) { synchronized ( mDynamicIds ) { java.lang.Integer value = mDynamicIds.get ( name ) ; if ( value == null ) { value = new java.lang.Integer ( ( ++ ( mDynamicSeed ) ) ) ; mDynamicIds.put ( name , value ) ; mRevDynamicIds.put ( value , name ) ; } return value ; } }
Source:
public static void main ( java.lang.String [ ] args ) { Main.testFindClassOnAttachedNativeThread ( ) ; Main.testFindFieldOnAttachedNativeThread ( ) ; Main.testCallStaticVoidMethodOnSubClass ( ) ; Main.testGetMirandaMethod ( ) ; Main.testZeroLengthByteBuffers ( ) ; Main.testByteMethod ( ) ; Main.testShortMethod ( ) ; Main.testBooleanMethod ( ) ; Main.testCharMethod ( ) ; Main.testEnvironment ( ) ; Main.testNewStringObject ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { Main.testFindClassOnAttachedNativeThread ( ) ; Main.testFindFieldOnAttachedNativeThread ( ) ; Main.testCallStaticVoidMethodOnSubClass ( ) ; Main.testGetMirandaMethod ( ) ; Main.testZeroLengthByteBuffers ( ) ; Main.testByteMethod ( ) ; Main.testShortMethod ( ) ; Main.testBooleanMethod ( ) ; Main.testCharMethod ( ) ; Main.testEnvironment ( ) ; Main.testNewStringObject ( ) ; Main.testSignalHandler ( ) ; }
Source:
public boolean isTrue ( ) throws java.lang.Exception { device.openNotification ( ) ; device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( Res.NOTIFICATION_BAR_EXPAND_RES ) . className ( "android.widget.ImageView" ) ) . click ( ) ; return device.hasObject ( android.support.test.uiautomator.By.text ( com.android.devtools.systemimage.uitest.smoke.VpnTest.NETWORK_MONITORED_TEXT ) ) ; }

Target:
public boolean isTrue ( ) throws java.lang.Exception { device.openNotification ( ) ; device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . resourceId ( Res.NOTIFICATION_BAR_EXPAND_RES ) . className ( "android.widget.ImageView" ) ) . click ( ) ; return ( device.hasObject ( android.support.test.uiautomator.By.text ( com.android.devtools.systemimage.uitest.smoke.VpnTest.NETWORK_MONITORED_TEXT ) ) ) || ( device.hasObject ( android.support.test.uiautomator.By.text ( com.android.devtools.systemimage.uitest.smoke.VpnTest.DEVICE_CONNECTED_TEXT ) ) ) ; }
Source:
private void verifyUpdateNetworkWithCredentialChangeHasEverConnectedFalse ( android.net.wifi.WifiConfiguration network ) { com.android.server.wifi.NetworkUpdateResult result = verifyUpdateNetworkToWifiConfigManagerWithoutIpChange ( network ) ; android.net.wifi.WifiConfiguration retrievedNetwork = mWifiConfigManager.getConfiguredNetwork ( result.getNetworkId ( ) ) ; assertFalse ( "Updating network credentials config should clear hasEverConnected." , retrievedNetwork.getNetworkSelectionStatus ( ) . getHasEverConnected ( ) ) ; }

Target:
private void verifyUpdateNetworkWithCredentialChangeHasEverConnectedFalse ( android.net.wifi.WifiConfiguration network ) { com.android.server.wifi.NetworkUpdateResult result = verifyUpdateNetworkToWifiConfigManagerWithoutIpChange ( network ) ; android.net.wifi.WifiConfiguration retrievedNetwork = mWifiConfigManager.getConfiguredNetwork ( result.getNetworkId ( ) ) ; assertFalse ( "Updating network credentials config should clear hasEverConnected." , retrievedNetwork.getNetworkSelectionStatus ( ) . getHasEverConnected ( ) ) ; assertTrue ( result.hasCredentialChanged ( ) ) ; }
Source:
public void testNotifySecondaryForeign ( ) { java.util.List < java.lang.String > barSecondaries = mBarUser0.getSecondaryDexPaths ( ) ; notifyDexLoad ( mFooUser0 , barSecondaries , mUser0 ) ; com.android.server.pm.dex.PackageDexUsage.PackageUseInfo pui = getPackageUseInfo ( mBarUser0 ) ; org.junit.Assert.assertFalse ( pui.isUsedByOtherApps ( ) ) ; org.junit.Assert.assertEquals ( barSecondaries.size ( ) , pui.getDexUseInfoMap ( ) . size ( ) ) ; assertSecondaryUse ( mFooUser0 , pui , barSecondaries , true , mUser0 ) ; }

Target:
public void testNotifySecondaryForeign ( ) { java.util.List < java.lang.String > barSecondaries = mBarUser0.getSecondaryDexPaths ( ) ; notifyDexLoad ( mFooUser0 , barSecondaries , mUser0 ) ; com.android.server.pm.dex.PackageDexUsage.PackageUseInfo pui = getPackageUseInfo ( mBarUser0 ) ; assertIsUsedByOtherApps ( mBarUser0 , pui , false ) ; org.junit.Assert.assertEquals ( barSecondaries.size ( ) , pui.getDexUseInfoMap ( ) . size ( ) ) ; assertSecondaryUse ( mFooUser0 , pui , barSecondaries , true , mUser0 ) ; }
Source:
public boolean isPotentialEmergencyCallback ( ) { if ( hasProperty ( Details.PROPERTY_EMERGENCY_CALLBACK_MODE ) ) { return true ; } if ( ( ( getExtras ( ) ) != null ) && ( ( getExtras ( ) . getLong ( TelecomManagerCompat.EXTRA_LAST_EMERGENCY_CALLBACK_TIME_MILLIS , 0 ) ) > 0 ) ) { long lastEmergencyCallMillis = getExtras ( ) . getLong ( TelecomManagerCompat.EXTRA_LAST_EMERGENCY_CALLBACK_TIME_MILLIS , 0 ) ; if ( isInEmergencyCallbackWindow ( lastEmergencyCallMillis ) ) { return true ; } } return false ; }

Target:
public boolean isPotentialEmergencyCallback ( ) { if ( hasProperty ( Details.PROPERTY_EMERGENCY_CALLBACK_MODE ) ) { return true ; } if ( ( ( getExtras ( ) ) != null ) && ( ( getExtras ( ) . getLong ( Call.EXTRA_LAST_EMERGENCY_CALLBACK_TIME_MILLIS , 0 ) ) > 0 ) ) { long lastEmergencyCallMillis = getExtras ( ) . getLong ( Call.EXTRA_LAST_EMERGENCY_CALLBACK_TIME_MILLIS , 0 ) ; if ( isInEmergencyCallbackWindow ( lastEmergencyCallMillis ) ) { return true ; } } return false ; }
Source:
public void setHs20 ( boolean hs20 ) { if ( hs20 ) { doBooleanCommand ( "SET HS20 1" ) ; } else { doBooleanCommand ( "SET HS20 0" ) ; } }

Target:
public void startTdls ( java.lang.String macAddr , boolean enable ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { if ( enable ) { mSupplicantStaIfaceHal.initiateTdlsDiscover ( macAddr ) ; mSupplicantStaIfaceHal.initiateTdlsSetup ( macAddr ) ; } else { mSupplicantStaIfaceHal.initiateTdlsTeardown ( macAddr ) ; } } else { if ( enable ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { doBooleanCommand ( ( "TDLS_DISCOVER " + macAddr ) ) ; doBooleanCommand ( ( "TDLS_SETUP " + macAddr ) ) ; } } else { doBooleanCommand ( ( "TDLS_TEARDOWN " + macAddr ) ) ; } } }
Source:
public static void promptToLogIn ( final java.lang.String message ) { if ( ! ( com.google.gct.login.GoogleLogin.instance.isLoggedIn ( ) ) ) { com.intellij.openapi.application.Application application = com.intellij.openapi.application.ApplicationManager.getApplication ( ) ; java.lang.Runnable promptToLoginTask = new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.google.gct.login.GoogleLogin.getInstance ( ) . logIn ( message ) ; } } ; if ( application.isDispatchThread ( ) ) { promptToLoginTask.run ( ) ; } else { application.invokeAndWait ( promptToLoginTask , com.intellij.openapi.application.ModalityState.defaultModalityState ( ) ) ; } } }

Target:
public static void promptToLogIn ( final java.lang.String message ) throws com.google.gct.login.InvalidThreadTypeException { if ( ! ( com.google.gct.login.GoogleLogin.instance.isLoggedIn ( ) ) ) { if ( com.intellij.openapi.application.ApplicationManager.getApplication ( ) . isDispatchThread ( ) ) { com.google.gct.login.GoogleLogin.getInstance ( ) . logIn ( message ) ; } else { throw new com.google.gct.login.InvalidThreadTypeException ( "promptToLogin" ) ; } } }
Source:
private void createTunnel ( ) throws java.io.IOException , java.lang.InterruptedException { while ( true ) { final com.google.mockwebserver.SocketPolicy socketPolicy = dispatcher.peekSocketPolicy ( ) ; if ( ! ( processOneRequest ( raw , raw.getInputStream ( ) , raw.getOutputStream ( ) ) ) ) { throw new java.lang.IllegalStateException ( "Tunnel without any CONNECT!" ) ; } if ( socketPolicy == ( SocketPolicy.UPGRADE_TO_SSL_AT_END ) ) { return ; } } }

Target:
private void createTunnel ( ) throws java.io.IOException , java.lang.InterruptedException { while ( true ) { com.google.mockwebserver.SocketPolicy socketPolicy = dispatcher.peek ( ) . getSocketPolicy ( ) ; if ( ! ( processOneRequest ( raw , raw.getInputStream ( ) , raw.getOutputStream ( ) ) ) ) { throw new java.lang.IllegalStateException ( "Tunnel without any CONNECT!" ) ; } if ( socketPolicy == ( SocketPolicy.UPGRADE_TO_SSL_AT_END ) ) return ; } }
Source:
public void testGetMergedDocument ( ) { com.android.manifmerger.XmlDocument xmlDocument = new com.android.manifmerger.XmlDocument ( new com.android.utils.PositionXmlParser ( ) , mSourceLocation , mKeyResolver , mPropertyResolver , mElement ) ; com.android.manifmerger.MergingReport mergingReport = new com.android.manifmerger.MergingReport.Builder ( mLoggerMock ) . setMergedDocument ( xmlDocument ) . build ( ) ; assertTrue ( mergingReport.getMergedDocument ( ) . isPresent ( ) ) ; assertEquals ( xmlDocument , mergingReport.getMergedDocument ( ) . get ( ) ) ; }

Target:
public void testGetMergedDocument ( ) { com.android.manifmerger.XmlDocument xmlDocument = new com.android.manifmerger.XmlDocument ( new com.android.utils.PositionXmlParser ( ) , mSourceLocation , mKeyResolver , mPropertyResolver , mElement , XmlDocument.Type.MAIN ) ; com.android.manifmerger.MergingReport mergingReport = new com.android.manifmerger.MergingReport.Builder ( mLoggerMock ) . setMergedDocument ( xmlDocument ) . build ( ) ; assertTrue ( mergingReport.getMergedDocument ( ) . isPresent ( ) ) ; assertEquals ( xmlDocument , mergingReport.getMergedDocument ( ) . get ( ) ) ; }
Source:
private com.android.server.LocationManagerService.Receiver getReceiver ( android.app.PendingIntent intent , java.lang.String packageName ) { com.android.server.LocationManagerService.Receiver receiver = mReceivers.get ( intent ) ; if ( receiver == null ) { receiver = new com.android.server.LocationManagerService.Receiver ( intent , packageName ) ; mReceivers.put ( intent , receiver ) ; } return receiver ; }

Target:
private com.android.server.LocationManagerService.Receiver getReceiver ( android.app.PendingIntent intent , int pid , int uid , java.lang.String packageName ) { com.android.server.LocationManagerService.Receiver receiver = mReceivers.get ( intent ) ; if ( receiver == null ) { receiver = new com.android.server.LocationManagerService.Receiver ( null , intent , pid , uid , packageName ) ; mReceivers.put ( intent , receiver ) ; } return receiver ; }
Source:
public java.lang.Object getParent ( java.lang.Object child ) { if ( child instanceof com.android.sdkuilib.internal.repository.SdkUpdaterChooserDialog.LicenseEntry ) { return ( ( com.android.sdkuilib.internal.repository.SdkUpdaterChooserDialog.LicenseEntry ) ( child ) ) . getRoot ( ) ; } else if ( ( child instanceof com.android.sdkuilib.internal.repository.ArchiveInfo ) && ( ( mInput ) != null ) ) { for ( com.android.sdkuilib.internal.repository.SdkUpdaterChooserDialog.LicenseEntry entry : mInput ) { if ( entry.getArchives ( ) . contains ( child ) ) { return entry ; } } } return null ; }

Target:
public java.lang.Object getParent ( java.lang.Object child ) { if ( child instanceof com.android.sdkuilib.internal.repository.SdkUpdaterChooserDialog.LicenseEntry ) { return ( ( com.android.sdkuilib.internal.repository.SdkUpdaterChooserDialog.LicenseEntry ) ( child ) ) . getRoot ( ) ; } else if ( ( child instanceof com.android.sdklib.internal.repository.updater.ArchiveInfo ) && ( ( mInput ) != null ) ) { for ( com.android.sdkuilib.internal.repository.SdkUpdaterChooserDialog.LicenseEntry entry : mInput ) { if ( entry.getArchives ( ) . contains ( child ) ) { return entry ; } } } return null ; }
Source:
public java.util.List < com.android.jack.ir.ast.cfg.JBasicBlock > getAllBlocksUnordered ( ) { java.util.ArrayList < com.android.jack.ir.ast.cfg.JBasicBlock > result = new java.util.ArrayList < > ( ) ; result.add ( this . getEntryBlock ( ) ) ; result.add ( this . getExitBlock ( ) ) ; java.util.Set < com.android.jack.ir.ast.cfg.JBasicBlock > internalBlocks = getInternalBasicBlocks ( ) ; assert ! ( internalBlocks.contains ( this . getEntryBlock ( ) ) ) ; assert ! ( internalBlocks.contains ( this . getExitBlock ( ) ) ) ; result.addAll ( internalBlocks ) ; return result ; }

Target:
public java.util.List < com.android.jack.ir.ast.cfg.JBasicBlock > getInternalBlocksUnordered ( ) { return com.google.common.collect.Lists.newArrayList ( getInternalBasicBlocks ( true ) ) ; }
Source:
public int get ( int index ) { if ( index >= ( mSize ) ) { throw new java.lang.ArrayIndexOutOfBoundsException ( mSize , index ) ; } return mValues [ index ] ; }

Target:
public void resize ( int newSize ) { com.android.internal.util.Preconditions.checkArgumentNonnegative ( newSize ) ; if ( newSize <= ( mValues.length ) ) { java.util.Arrays.fill ( mValues , newSize , mValues.length , 0 ) ; } else { ensureCapacity ( ( newSize - ( mSize ) ) ) ; } mSize = newSize ; }
Source:
public static android.icu.util.UResourceBundle getBundleInstance ( java.lang.String baseName , android.icu.util.ULocale locale ) { if ( baseName == null ) { baseName = android.icu.impl.ICUResourceBundle.ICU_BASE_NAME ; } if ( locale == null ) { locale = android.icu.util.ULocale.getDefault ( ) ; } return android.icu.util.UResourceBundle.getBundleInstance ( baseName , locale.toString ( ) , ICUResourceBundle.ICU_DATA_CLASS_LOADER , false ) ; }

Target:
public static android.icu.util.UResourceBundle getBundleInstance ( java.lang.String baseName , android.icu.util.ULocale locale ) { if ( baseName == null ) { baseName = android.icu.impl.ICUData.ICU_BASE_NAME ; } if ( locale == null ) { locale = android.icu.util.ULocale.getDefault ( ) ; } return android.icu.util.UResourceBundle.getBundleInstance ( baseName , locale.getBaseName ( ) , ICUResourceBundle.ICU_DATA_CLASS_LOADER , false ) ; }
Source:
public void testConfigurationUpdatesWhenResizedFromDockedStack ( ) throws java.lang.Exception { launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes dockedSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; moveActivityToStack ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes fullscreenSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesAreSane ( fullscreenSizes , dockedSizes ) ; }

Target:
public void testConfigurationUpdatesWhenResizedFromDockedStack ( ) throws java.lang.Exception { if ( ! ( supportsMultiWindowMode ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes dockedSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; moveActivityToStack ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes fullscreenSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.TEST_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesAreSane ( fullscreenSizes , dockedSizes ) ; }
Source:
private static com.android.jack.dx.rop.cst.CstNat createSignature ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( method.getName ( ) ) ; com.android.jack.dx.rop.cst.CstString descriptor = new com.android.jack.dx.rop.cst.CstString ( com.android.jack.backend.dex.rop.RopHelper.formatterWithClosure.getName ( method ) ) ; com.android.jack.dx.rop.cst.CstNat signature = new com.android.jack.dx.rop.cst.CstNat ( name , descriptor ) ; return signature ; }

Target:
private static com.android.jack.dx.rop.cst.CstNat createSignature ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( method.getName ( ) ) ; com.android.jack.dx.rop.cst.CstString descriptor = new com.android.jack.dx.rop.cst.CstString ( com.android.jack.backend.dex.rop.RopHelper.formatter.getName ( method ) ) ; com.android.jack.dx.rop.cst.CstNat signature = new com.android.jack.dx.rop.cst.CstNat ( name , descriptor ) ; return signature ; }
Source:
public boolean isConnected ( android.bluetooth.BluetoothDevice device ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "isConnected(): not allowed for non-active user" ) ; return false ; } enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; return ( ( mState ) == ( android.bluetooth.BluetoothPbap.STATE_CONNECTED ) ) && ( mRemoteDevice.equals ( device ) ) ; }

Target:
protected void disconnect ( ) { synchronized ( this ) { if ( ( mState ) == ( android.bluetooth.BluetoothPbap.STATE_CONNECTED ) ) { if ( ( mServerSession ) != null ) { mServerSession.close ( ) ; mServerSession = null ; } closeConnectionSocket ( ) ; setState ( BluetoothPbap.STATE_DISCONNECTED , BluetoothPbap.RESULT_CANCELED ) ; } } }
Source:
public static java.lang.String toString ( android.hardware.tests.baz.V1_0.IBase.StringMatrix3x5 M ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( ) ; builder.append ( "[" ) ; for ( int i = 0 ; i < 3 ; ++ i ) { if ( i > 0 ) { builder.append ( ", " ) ; } builder.append ( com.android.commands.hidl_test_java.HidlTestJava.toString ( M.s [ i ] ) ) ; } builder.append ( "]" ) ; return builder.toString ( ) ; }

Target:
public static java.lang.String toString ( android.hardware.tests.baz.V1_0.IBase.StringMatrix5x3 M ) { return com.android.commands.hidl_test_java.HidlTestJava.toString ( M.s ) ; }
Source:
public com.android.ide.common.rendering.api.RenderSession render ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiDocumentNode model , int width , int height , java.util.Set < com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > explodeNodes , boolean transparentBackground ) { if ( ! ( ensureFileValid ( ) ) ) { return null ; } if ( ! ( ensureModelValid ( model ) ) ) { return null ; } com.android.ide.common.rendering.LayoutLibrary layoutLib = getReadyLayoutLib ( true ) ; org.eclipse.core.resources.IProject iProject = mEditedFile.getProject ( ) ; return renderWithBridge ( iProject , model , layoutLib , width , height , explodeNodes , transparentBackground ) ; }

Target:
public com.android.ide.common.rendering.api.RenderSession render ( com.android.ide.eclipse.adt.internal.editors.uimodel.UiDocumentNode model , int width , int height , java.util.Set < com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > explodeNodes , boolean transparentBackground ) { if ( ! ( ensureFileValid ( ) ) ) { return null ; } if ( ! ( ensureModelValid ( model ) ) ) { return null ; } com.android.ide.common.rendering.LayoutLibrary layoutLib = getReadyLayoutLib ( true ) ; org.eclipse.core.resources.IProject iProject = mEditedFile.getProject ( ) ; return renderWithBridge ( iProject , model , layoutLib , width , height , explodeNodes , transparentBackground , new com.android.ide.common.rendering.api.LayoutLog ( ) ) ; }
Source:
private com.android.jack.ir.ast.JExpressionStatement makeResetCall ( com.android.jack.ir.sourceinfo.SourceInfo info ) { assert ( ( ( lockClass ) != null ) && ( ( resetClass ) != null ) ) && ( ( resetMethodId ) != null ) ; return new com.android.jack.ir.ast.JExpressionStatement ( info , new com.android.jack.ir.ast.JMethodCall ( info , null , resetClass , resetMethodId , false ) ) ; }

Target:
private com.android.jack.ir.ast.JExpressionStatement makeRequestCall ( int lockIndex , com.android.jack.ir.sourceinfo.SourceInfo info ) { assert ( ( ( lockClass [ lockIndex ] ) != null ) && ( ( requestClass [ lockIndex ] ) != null ) ) && ( ( requestMethodId [ lockIndex ] ) != null ) ; return new com.android.jack.ir.ast.JExpressionStatement ( info , new com.android.jack.ir.ast.JMethodCall ( info , null , requestClass [ lockIndex ] , requestMethodId [ lockIndex ] , false ) ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; startTestActivity ( ) ; mContext = getInstrumentation ( ) . getTargetContext ( ) ; mReceiver = new android.voiceinteraction.cts.VoiceInteractionTest.TestResultsReceiver ( ) ; mContext.registerReceiver ( mReceiver , new android.content.IntentFilter ( android.voiceinteraction.common.Utils.BROADCAST_INTENT ) ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; startTestActivity ( ) ; mContext = getInstrumentation ( ) . getTargetContext ( ) ; mHasFeature = mContext.getPackageManager ( ) . hasSystemFeature ( android.voiceinteraction.cts.VoiceInteractionTest.FEATURE_VOICE_RECOGNIZERS ) ; if ( mHasFeature ) { mReceiver = new android.voiceinteraction.cts.VoiceInteractionTest.TestResultsReceiver ( ) ; mContext.registerReceiver ( mReceiver , new android.content.IntentFilter ( android.voiceinteraction.common.Utils.BROADCAST_INTENT ) ) ; } }
Source:
public com.android.ide.common.layoutlib.LayoutLibrary getLayoutLibrary ( ) { com.android.sdklib.IAndroidTarget target = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) . getTarget ( mEditedFile.getProject ( ) ) ; if ( target != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) . getTargetData ( target ) ; if ( data != null ) { return data.getLayoutLibrary ( ) ; } } return null ; }

Target:
private com.android.sdklib.IAndroidTarget getRenderingTarget ( ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk == null ) { return null ; } com.android.sdklib.IAndroidTarget renderingTarget = mConfigComposite.getRenderingTarget ( ) ; if ( renderingTarget != null ) { return renderingTarget ; } if ( ( mEditedFile ) != null ) { return currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; } return null ; }
Source:
private static void printUsage ( ) { java.lang.System.out.println ( "Usage: cts-api-coverage [OPTION]... [APK]..." ) ; java.lang.System.out.println ( ) ; java.lang.System.out.println ( "Generates a report about what Android framework methods are called " ) ; java.lang.System.out.println ( "from the given APKs." ) ; java.lang.System.out.println ( ) ; java.lang.System.out.println ( "Use the Makefiles rules in CtsTestCoverage.mk to generate the report " ) ; java.lang.System.out.println ( "rather than executing this directly. If you still want to run this " ) ; java.lang.System.out.println ( "directly, then this must be used from the $ANDROID_BUILD_TOP " ) ; java.lang.System.out.println ( "directory and dexdeps must be built via \"make dexdeps\"." ) ; java.lang.System.out.println ( ) ; java.lang.System.out.println ( "Options:" ) ; java.lang.System.out.println ( " -o FILE output file or standard out if not given" ) ; java.lang.System.out.println ( " -f [txt|xml] format of output either text or xml" ) ; java.lang.System.out.println ( " -d PATH path to dexdeps or expected to be in $PATH" ) ; java.lang.System.out.println ( ) ; java.lang.System.exit ( 1 ) ; }

Target:
private static void printUsage ( ) { java.lang.System.out.println ( "Usage: cts-api-coverage [OPTION]... [APK]..." ) ; java.lang.System.out.println ( ) ; java.lang.System.out.println ( "Generates a report about what Android framework methods are called " ) ; java.lang.System.out.println ( "from the given APKs." ) ; java.lang.System.out.println ( ) ; java.lang.System.out.println ( "Use the Makefiles rules in CtsTestCoverage.mk to generate the report " ) ; java.lang.System.out.println ( "rather than executing this directly. If you still want to run this " ) ; java.lang.System.out.println ( "directly, then this must be used from the $ANDROID_BUILD_TOP " ) ; java.lang.System.out.println ( "directory and dexdeps must be built via \"make dexdeps\"." ) ; java.lang.System.out.println ( ) ; java.lang.System.out.println ( "Options:" ) ; java.lang.System.out.println ( " -o FILE output file or standard out if not given" ) ; java.lang.System.out.println ( " -f [txt|xml|html] format of output" ) ; java.lang.System.out.println ( " -d PATH path to dexdeps or expected to be in $PATH" ) ; java.lang.System.out.println ( ) ; java.lang.System.exit ( 1 ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { try { Main.testInstanceOf ( ) ; } catch ( java.lang.IllegalAccessError e ) { java.lang.System.out.println ( "Got expected error instanceof" ) ; } try { Main.testInstanceOfNull ( ) ; } catch ( java.lang.IllegalAccessError e ) { java.lang.System.out.println ( "Got expected error instanceof null" ) ; } try { Main.testCheckCastNull ( ) ; } catch ( java.lang.IllegalAccessError e ) { java.lang.System.out.println ( "Got expected error checkcast null" ) ; } }

Target:
public static void main ( java.lang.String [ ] args ) { try { Main.testInstanceOf ( ) ; } catch ( java.lang.IllegalAccessError e ) { java.lang.System.out.println ( "Got expected error instanceof" ) ; } try { Main.testInstanceOfNull ( ) ; } catch ( java.lang.IllegalAccessError e ) { java.lang.System.out.println ( "Got expected error instanceof null" ) ; } try { Main.testCheckCastNull ( ) ; } catch ( java.lang.IllegalAccessError e ) { java.lang.System.out.println ( "Got expected error checkcast null" ) ; } try { Main.testDontGvnLoadClassWithAccessChecks ( new java.lang.Object ( ) ) ; } catch ( java.lang.IllegalAccessError e ) { java.lang.System.out.println ( "Got expected error instanceof (keep LoadClass with access check)" ) ; } }
Source:
private void testInterruptOutputStream ( final java.io.OutputStream out ) throws java.lang.Exception { interruptMeLater ( ) ; try { while ( true ) { out.write ( new byte [ libcore.java.io.InterruptedStreamTest.BUFFER_SIZE ] ) ; } } catch ( java.io.InterruptedIOException expected ) { } }

Target:
private void testInterruptOutputStream ( final java.io.OutputStream out ) throws java.lang.Exception { java.lang.Thread thread = interruptMeLater ( ) ; try { while ( true ) { out.write ( new byte [ libcore.java.io.InterruptedStreamTest.BUFFER_SIZE ] ) ; } } catch ( java.io.InterruptedIOException expected ) { } finally { libcore.java.io.InterruptedStreamTest.confirmInterrupted ( thread ) ; } }
Source:
public void test_parkUntil_1 ( ) { tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( true , 500 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( 1000 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 500 ) ; }

Target:
public void test_parkUntil_1 ( ) { java.util.concurrent.CyclicBarrier barrier = new java.util.concurrent.CyclicBarrier ( 2 ) ; tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker parker = new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.Parker ( barrier , true , 500 ) ; java.lang.Thread parkerThread = new java.lang.Thread ( parker ) ; java.lang.Thread waiterThread = new java.lang.Thread ( new tests.api.org.apache.harmony.kernel.dalvik.ThreadsTest.WaitAndUnpark ( barrier , 1000 , parkerThread ) ) ; parkerThread.start ( ) ; waiterThread.start ( ) ; parker.assertDurationIsInRange ( 500 ) ; }
Source:
private void testRSA_ECB_NoPadding_GetIV_Success ( java.lang.String provider ) throws java.lang.Exception { java.security.KeyFactory kf = java.security.KeyFactory.getInstance ( "RSA" ) ; java.security.spec.RSAPublicKeySpec pubKeySpec = new java.security.spec.RSAPublicKeySpec ( libcore.javax.crypto.CipherTest.RSA_2048_modulus , libcore.javax.crypto.CipherTest.RSA_2048_publicExponent ) ; final java.security.PublicKey pubKey = kf.generatePublic ( pubKeySpec ) ; javax.crypto.Cipher c = javax.crypto.Cipher.getInstance ( "RSA/ECB/NoPadding" , provider ) ; assertNull ( "ECB mode has no IV and should be null" , c.getIV ( ) ) ; c.init ( javax.crypto.Cipher.ENCRYPT_MODE , pubKey ) ; assertNull ( "ECB mode has no IV and should be null" , c.getIV ( ) ) ; }

Target:
private void testRSA_ECB_NoPadding_GetIV_Success ( java.lang.String provider ) throws java.lang.Exception { final java.security.PublicKey pubKey = ( ( java.security.PublicKey ) ( libcore.javax.crypto.CipherTest.getEncryptKey ( "RSA" ) ) ) ; javax.crypto.Cipher c = javax.crypto.Cipher.getInstance ( "RSA/ECB/NoPadding" , provider ) ; assertNull ( "ECB mode has no IV and should be null" , c.getIV ( ) ) ; c.init ( javax.crypto.Cipher.ENCRYPT_MODE , pubKey ) ; assertNull ( "ECB mode has no IV and should be null" , c.getIV ( ) ) ; }
Source:
public static boolean isAppEngineModule ( com.intellij.openapi.project.Project project , com.intellij.openapi.module.Module module ) throws java.io.FileNotFoundException { final com.intellij.openapi.vfs.VirtualFile buildFile = com.android.tools.idea.gradle.util.GradleUtil.getGradleBuildFile ( module ) ; if ( buildFile == null ) { throw new java.io.FileNotFoundException ( ( ( "Cannot find gradle build file for module \"" + ( module.getName ( ) ) ) + "\"" ) ) ; } final com.android.tools.idea.gradle.parser.GradleBuildFile gradleBuildFile = new com.android.tools.idea.gradle.parser.GradleBuildFile ( buildFile , project ) ; java.util.List < java.lang.String > allPlugins = gradleBuildFile.getPlugins ( ) ; return allPlugins.contains ( com.google.gct.idea.appengine.util.AppEngineUtils.APP_ENGINE_PLUGIN ) ; }

Target:
public static boolean isAppEngineModule ( @ org.jetbrains.annotations.Nullable com.intellij.openapi.module.Module module ) { if ( module == null ) { return false ; } return ( com.google.gct.idea.appengine.gradle.facet.AppEngineGradleFacet.getAppEngineFacetByModule ( module ) ) != null ; }
Source:
public void updatePublish ( @ android.annotation.NonNull android.net.wifi.nan.PublishConfig publishConfig ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.nan.WifiNanPublishDiscoverySession.TAG , "updatePublish: called on terminated session" ) ; return ; } else { android.net.wifi.nan.WifiNanManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.nan.WifiNanPublishDiscoverySession.TAG , "updatePublish: called post GC on WifiNanManager" ) ; return ; } mgr.updatePublish ( mClientId , mSessionId , publishConfig ) ; } }

Target:
public void updatePublish ( @ android.annotation.NonNull android.net.wifi.aware.PublishConfig publishConfig ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.aware.WifiAwarePublishDiscoverySession.TAG , "updatePublish: called on terminated session" ) ; return ; } else { android.net.wifi.aware.WifiAwareManager mgr = mMgr.get ( ) ; if ( mgr == null ) { android.util.Log.w ( android.net.wifi.aware.WifiAwarePublishDiscoverySession.TAG , "updatePublish: called post GC on WifiAwareManager" ) ; return ; } mgr.updatePublish ( mClientId , mSessionId , publishConfig ) ; } }
Source:
private void updateDeviceName ( android.content.Context context ) { if ( ( mLocalAdapter.isEnabled ( ) ) && ( ( mMyDevicePreference ) != null ) ) { mMyDevicePreference.setSummary ( context.getResources ( ) . getString ( R.string.bluetooth_is_visible_message , mLocalAdapter.getName ( ) ) ) ; } }

Target:
private void updateDeviceName ( android.content.Context context ) { if ( ( mLocalAdapter.isEnabled ( ) ) && ( ( mMyDevicePreference ) != null ) ) { final android.content.res.Resources res = context.getResources ( ) ; final java.util.Locale locale = res.getConfiguration ( ) . getLocales ( ) . get ( 0 ) ; final android.text.BidiFormatter bidiFormatter = android.text.BidiFormatter.getInstance ( locale ) ; mMyDevicePreference.setSummary ( res.getString ( R.string.bluetooth_is_visible_message , bidiFormatter.unicodeWrap ( mLocalAdapter.getName ( ) ) ) ) ; } }
Source:
public org.objectweb.asm.tree.analysis.SourceValue copyOperation ( org.objectweb.asm.tree.AbstractInsnNode insn , org.objectweb.asm.tree.analysis.SourceValue value ) { return value ; }

Target:
public void afterVisitConstructorInvocation ( @ com.android.annotations.NonNull lombok.ast.ConstructorInvocation node ) { com.android.tools.lint.client.api.JavaParser.ResolvedNode resolved = mContext.resolve ( node ) ; if ( resolved instanceof com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) { com.android.tools.lint.client.api.JavaParser.ResolvedMethod method = ( ( com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) ( resolved ) ) ; mTypes.put ( node , method.getContainingClass ( ) ) ; } else { com.android.tools.lint.client.api.JavaParser.TypeDescriptor type = mContext.getType ( node ) ; if ( type != null ) { com.android.tools.lint.client.api.JavaParser.ResolvedClass typeClass = type.getTypeClass ( ) ; if ( typeClass != null ) { mTypes.put ( node , typeClass ) ; } } } }
Source:
public synchronized com.android.ide.common.rendering.LayoutLibrary getLayoutLibrary ( ) { if ( ( ( mLayoutBridgeInit ) == false ) && ( ( mLayoutLibrary.getStatus ( ) ) == ( com.android.ide.common.sdk.LoadStatus.LOADED ) ) ) { mLayoutLibrary.init ( new java.io.File ( mTarget.getPath ( IAndroidTarget.FONTS ) ) , getEnumValueMap ( ) ) ; mLayoutBridgeInit = true ; } return mLayoutLibrary ; }

Target:
public void error ( java.lang.String tag , java.lang.String message , java.lang.Throwable throwable ) { com.android.ide.eclipse.adt.AdtPlugin.log ( throwable , message ) ; }
Source:
private static void onPublishTerminated ( int publishId , int status ) { if ( com.android.server.wifi.aware.WifiAwareNative.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNative.TAG , ( ( ( "onPublishTerminated: publishId=" + publishId ) + ", status=" ) + status ) ) ; com.android.server.wifi.aware.WifiAwareStateManager.getInstance ( ) . onSessionTerminatedNotification ( publishId , com.android.server.wifi.aware.WifiAwareNative.translateHalStatusToAwareSessionCallbackTerminate ( status ) , true ) ; }

Target:
private static void onPublishTerminated ( int publishId , int status ) { if ( com.android.server.wifi.aware.WifiAwareNative.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNative.TAG , ( ( ( "onPublishTerminated: publishId=" + publishId ) + ", status=" ) + status ) ) ; com.android.server.wifi.aware.WifiAwareStateManager.getInstance ( ) . onSessionTerminatedNotification ( publishId , ( status == ( com.android.server.wifi.aware.WifiAwareNative.AWARE_STATUS_SUCCESS ) ? android.net.wifi.aware.WifiAwareDiscoverySessionCallback.TERMINATE_REASON_DONE : android.net.wifi.aware.WifiAwareDiscoverySessionCallback.TERMINATE_REASON_FAIL ) , true ) ; }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.unittest.ScriptC_convert s = new com.android.rs.unittest.ScriptC_convert ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; s.invoke_convert_test ( ) ; pRS.finish ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = createRenderScript ( true ) ; com.android.rs.unittest.ScriptC_convert s = new com.android.rs.unittest.ScriptC_convert ( pRS ) ; s.invoke_convert_test ( ) ; pRS.finish ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }
Source:
public void TestRTCharMonkey ( ) { int loopCount = 200 ; int seed = 1 ; if ( ( params.inclusion ) >= 9 ) { loopCount = 2000 ; } android.icu.dev.test.rbbi.RBBITestMonkey.RBBICharMonkey m = new android.icu.dev.test.rbbi.RBBITestMonkey.RBBICharMonkey ( ) ; android.icu.text.BreakIterator bi = android.icu.text.BreakIterator.getCharacterInstance ( java.util.Locale.US ) ; java.lang.String rules = bi.toString ( ) ; android.icu.text.BreakIterator rtbi = new android.icu.text.RuleBasedBreakIterator ( rules ) ; RunMonkey ( rtbi , m , "char" , seed , loopCount ) ; }

Target:
public void TestRTCharMonkey ( ) { int loopCount = 200 ; int seed = 1 ; if ( ( android.icu.dev.test.TestFmwk.getExhaustiveness ( ) ) >= 9 ) { loopCount = 2000 ; } android.icu.dev.test.rbbi.RBBITestMonkey.RBBICharMonkey m = new android.icu.dev.test.rbbi.RBBITestMonkey.RBBICharMonkey ( ) ; android.icu.text.BreakIterator bi = android.icu.text.BreakIterator.getCharacterInstance ( java.util.Locale.US ) ; java.lang.String rules = bi.toString ( ) ; android.icu.text.BreakIterator rtbi = new android.icu.text.RuleBasedBreakIterator ( rules ) ; RunMonkey ( rtbi , m , "char" , seed , loopCount ) ; }