auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String [ ] setPackagesSuspended ( @ android.annotation.NonNull android.content.ComponentName admin , java.lang.String [ ] packageNames , boolean suspended ) { throwIfParentInstance ( "setPackagesSuspended" ) ; if ( ( mService ) != null ) { try { return mService.setPackagesSuspended ( admin , packageNames , suspended ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } } return packageNames ; }

Target:
public java.lang.String [ ] setPackagesSuspended ( @ android.annotation.NonNull android.content.ComponentName admin , @ android.annotation.NonNull java.lang.String [ ] packageNames , boolean suspended ) { throwIfParentInstance ( "setPackagesSuspended" ) ; if ( ( mService ) != null ) { try { return mService.setPackagesSuspended ( admin , mContext.getPackageName ( ) , packageNames , suspended ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } } return packageNames ; }
Source:
public void activateDeactivatePolicy ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; if ( checkStatusOfPolicy ( instrumentation , "Sample Device Admin" ) ) { com.android.devtools.systemimage.uitest.utils.SettingsUtil.deactivate ( instrumentation , "Sample Device Admin" ) ; } assertFalse ( checkStatusOfPolicy ( instrumentation , "Sample Device Admin" ) ) ; com.android.devtools.systemimage.uitest.utils.SettingsUtil.activate ( instrumentation , "Sample Device Admin" ) ; assertTrue ( checkStatusOfPolicy ( instrumentation , "Sample Device Admin" ) ) ; com.android.devtools.systemimage.uitest.utils.SettingsUtil.deactivate ( instrumentation , "Sample Device Admin" ) ; assertFalse ( checkStatusOfPolicy ( instrumentation , "Sample Device Admin" ) ) ; }

Target:
public void activateDeactivatePolicy ( ) throws java.lang.Exception { boolean isAPIDemoInstalled = com.android.devtools.systemimage.uitest.utils.PackageInstallationUtil.isPackageInstalled ( instrumentation , "com.example.android.apis" ) ; if ( isAPIDemoInstalled ) { if ( checkStatusOfPolicy ( ) ) { com.android.devtools.systemimage.uitest.utils.SettingsUtil.deactivate ( instrumentation , "Sample Device Admin" ) ; } assertFalse ( checkStatusOfPolicy ( ) ) ; com.android.devtools.systemimage.uitest.utils.SettingsUtil.activate ( instrumentation , "Sample Device Admin" ) ; assertTrue ( checkStatusOfPolicy ( ) ) ; com.android.devtools.systemimage.uitest.utils.SettingsUtil.deactivate ( instrumentation , "Sample Device Admin" ) ; assertFalse ( checkStatusOfPolicy ( ) ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAssertStatement x ) { print ( com.android.jack.ir.impl.ToStringGenerationVisitor.CHARS_ASSERT ) ; accept ( x.getTestExpr ( ) ) ; if ( ( x.getArg ( ) ) != null ) { print ( " : " ) ; accept ( x.getArg ( ) ) ; } return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedInterface x ) { printTypeFlags ( x ) ; print ( com.android.jack.ir.impl.CHARS_INTERFACE ) ; printTypeName ( x ) ; return false ; }
Source:
public void setNetworkSelectionModeAutomatic ( android.os.Message response ) { com.android.internal.telephony.gsm.GSMPhone.NetworkSelectMessage nsm = new com.android.internal.telephony.gsm.GSMPhone.NetworkSelectMessage ( ) ; nsm.message = response ; nsm.operatorNumeric = "" ; nsm.operatorAlphaLong = "" ; android.os.Message msg = obtainMessage ( com.android.internal.telephony.gsm.EVENT_SET_NETWORK_AUTOMATIC_COMPLETE , nsm ) ; if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "wrapping and sending message to connect automatically" ) ; mCM.setNetworkSelectionModeAutomatic ( msg ) ; }

Target:
public void setNetworkSelectionModeAutomatic ( android.os.Message response ) { com.android.internal.telephony.gsm.GSMPhone.NetworkSelectMessage nsm = new com.android.internal.telephony.gsm.GSMPhone.NetworkSelectMessage ( ) ; nsm.message = response ; nsm.operatorNumeric = "" ; nsm.operatorAlphaLong = "" ; android.os.Message msg = obtainMessage ( com.android.internal.telephony.gsm.EVENT_SET_NETWORK_AUTOMATIC_COMPLETE , nsm ) ; if ( com.android.internal.telephony.gsm.GSMPhone.LOCAL_DEBUG ) android.telephony.Rlog.d ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "wrapping and sending message to connect automatically" ) ; mCi.setNetworkSelectionModeAutomatic ( msg ) ; }
Source:
protected void fillRtTestInfos ( ) { rtTestInfos.add ( EXPLICIT001 ) ; rtTestInfos.add ( IMPLICIT001 ) ; rtTestInfos.add ( IMPLICIT002 ) ; rtTestInfos.add ( IMPLICIT003 ) ; rtTestInfos.add ( IMPLICIT004 ) ; rtTestInfos.add ( USELESS001 ) ; rtTestInfos.add ( USELESS002 ) ; }

Target:
protected void fillRtTestInfos ( ) { rtTestInfos.add ( EXPLICIT001 ) ; rtTestInfos.add ( EXPLICIT002 ) ; rtTestInfos.add ( IMPLICIT001 ) ; rtTestInfos.add ( IMPLICIT002 ) ; rtTestInfos.add ( IMPLICIT003 ) ; rtTestInfos.add ( IMPLICIT004 ) ; rtTestInfos.add ( USELESS001 ) ; rtTestInfos.add ( USELESS002 ) ; }
Source:
public void testConfigRequestBuilderDefaults ( ) { android.net.wifi.nan.ConfigRequest configRequest = new android.net.wifi.nan.ConfigRequest.Builder ( ) . build ( ) ; collector.checkThat ( "mClusterHigh" , ConfigRequest.CLUSTER_ID_MAX , org.hamcrest.core.IsEqual.equalTo ( configRequest.mClusterHigh ) ) ; collector.checkThat ( "mClusterLow" , ConfigRequest.CLUSTER_ID_MIN , org.hamcrest.core.IsEqual.equalTo ( configRequest.mClusterLow ) ) ; collector.checkThat ( "mMasterPreference" , 0 , org.hamcrest.core.IsEqual.equalTo ( configRequest.mMasterPreference ) ) ; collector.checkThat ( "mSupport5gBand" , false , org.hamcrest.core.IsEqual.equalTo ( configRequest.mSupport5gBand ) ) ; }

Target:
public void testConfigRequestBuilderDefaults ( ) { android.net.wifi.aware.ConfigRequest configRequest = new android.net.wifi.aware.ConfigRequest.Builder ( ) . build ( ) ; collector.checkThat ( "mClusterHigh" , ConfigRequest.CLUSTER_ID_MAX , org.hamcrest.core.IsEqual.equalTo ( configRequest.mClusterHigh ) ) ; collector.checkThat ( "mClusterLow" , ConfigRequest.CLUSTER_ID_MIN , org.hamcrest.core.IsEqual.equalTo ( configRequest.mClusterLow ) ) ; collector.checkThat ( "mMasterPreference" , 0 , org.hamcrest.core.IsEqual.equalTo ( configRequest.mMasterPreference ) ) ; collector.checkThat ( "mSupport5gBand" , false , org.hamcrest.core.IsEqual.equalTo ( configRequest.mSupport5gBand ) ) ; }
Source:
private boolean hasCaCertInstalled ( byte [ ] caCert ) throws java.security.cert.CertificateException { boolean result = mDevicePolicyManager.hasCaCertInstalled ( getWho ( ) , caCert ) ; assertEquals ( result , com.android.cts.deviceowner.CaCertManagementTest.containsCertificate ( mDevicePolicyManager.getInstalledCaCerts ( getWho ( ) ) , caCert ) ) ; return result ; }

Target:
private void assertInstalled ( byte [ ] caBytes ) throws java.security.GeneralSecurityException , java.security.cert.CertificateException { java.security.cert.Certificate caCert = com.android.cts.deviceowner.CaCertManagementTest.readCertificate ( caBytes ) ; assertTrue ( isCaCertInstalledAndTrusted ( caCert ) ) ; }
Source:
public void onIdentityChanged ( byte [ ] mac ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "sessionId" , mSessionId ) ; mResults.putString ( "mac" , java.lang.String.valueOf ( libcore.util.HexEncoding.encode ( mac ) ) ) ; mEventFacade.postEvent ( "WifiNanOnIdentityChanged" , mResults ) ; }

Target:
public void onIdentityChanged ( byte [ ] mac ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "sessionId" , mSessionId ) ; mResults.putString ( "mac" , java.lang.String.valueOf ( libcore.util.HexEncoding.encode ( mac ) ) ) ; mResults.putLong ( "timestampMs" , java.lang.System.currentTimeMillis ( ) ) ; mEventFacade.postEvent ( "WifiNanOnIdentityChanged" , mResults ) ; }
Source:
public void testSendToClient1 ( ) { outArray [ 0 ] = 0 ; int Id = android.renderscript.cts.SendToClient.random.nextInt ( 100 ) ; mRS.setMessageHandler ( mRsMessage ) ; android.renderscript.cts.ScriptC_send_to_client_1 mScript ; mScript = new android.renderscript.cts.ScriptC_send_to_client_1 ( mRS ) ; mScript.invoke_callback ( Id ) ; try { android.renderscript.cts.SendToClient.mSync.acquire ( ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } assertEquals ( createErrorMsgF ( 1 , Id , outArray [ 0 ] ) , Id , outArray [ 0 ] ) ; }

Target:
public void testSendToClient1 ( ) { outArray [ 0 ] = 0 ; int Id = android.renderscript.cts.SendToClient.random.nextInt ( 100 ) ; mRS.setMessageHandler ( mRsMessage ) ; android.renderscript.cts.ScriptC_send_to_client_1 mScript ; mScript = new android.renderscript.cts.ScriptC_send_to_client_1 ( mRS ) ; mScript.invoke_callback ( Id ) ; try { android.renderscript.cts.SendToClient.mSync.acquire ( ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } mScript.destroy ( ) ; assertEquals ( createErrorMsgF ( 1 , Id , outArray [ 0 ] ) , Id , outArray [ 0 ] ) ; }
Source:
private boolean evaluateResults ( android.hardware.cts.helpers.sensorverification.ISensorVerification verification , java.lang.StringBuilder sb ) { try { verification.verify ( mStats ) ; } catch ( java.lang.AssertionError e ) { if ( ( sb.length ( ) ) > 0 ) { sb.append ( ", " ) ; } sb.append ( e.getMessage ( ) ) ; return true ; } return false ; }

Target:
private boolean evaluateResults ( android.hardware.cts.helpers.sensorverification.ISensorVerification verification , java.lang.StringBuilder sb ) { try { verification.verify ( getStats ( ) ) ; } catch ( java.lang.AssertionError e ) { if ( ( sb.length ( ) ) > 0 ) { sb.append ( ", " ) ; } sb.append ( e.getMessage ( ) ) ; return true ; } return false ; }
Source:
public void keyPressed ( java.awt.event.KeyEvent e ) { int key = e.getKeyCode ( ) ; if ( ( ( key == ( java.awt.event.KeyEvent.VK_ENTER ) ) || ( key == ( java.awt.event.KeyEvent.VK_SPACE ) ) ) || ( key == ( java.awt.event.KeyEvent.VK_RIGHT ) ) ) { expandIfEllipsis ( ) ; } }

Target:
protected boolean onDoubleClick ( java.awt.event.MouseEvent e ) { return expandIfEllipsis ( ) ; }
Source:
private static com.android.dialer.calldetails.CallDetailsHeaderInfo createCallDetailsHeaderInfoFromRow ( android.content.Context context , com.android.dialer.calllog.model.CoalescedRow row ) { return com.android.dialer.calldetails.CallDetailsHeaderInfo.newBuilder ( ) . setDialerPhoneNumber ( row.getNumber ( ) ) . setPhotoInfo ( com.android.dialer.calllog.ui.menu.Modules.createPhotoInfoFromRow ( row ) ) . setPrimaryText ( com.android.dialer.calllogutils.CallLogEntryText.buildPrimaryText ( context , row ) . toString ( ) ) . setSecondaryText ( com.android.dialer.calllogutils.CallLogEntryText.buildSecondaryTextForBottomSheet ( context , row ) . toString ( ) ) . build ( ) ; }

Target:
private static com.android.dialer.calldetails.CallDetailsHeaderInfo createCallDetailsHeaderInfoFromRow ( android.content.Context context , com.android.dialer.calllog.model.CoalescedRow row ) { return com.android.dialer.calldetails.CallDetailsHeaderInfo.newBuilder ( ) . setDialerPhoneNumber ( row.getNumber ( ) ) . setPhotoInfo ( com.android.dialer.calllogutils.PhotoInfoBuilder.fromCoalescedRow ( row ) ) . setPrimaryText ( com.android.dialer.calllogutils.CallLogEntryText.buildPrimaryText ( context , row ) . toString ( ) ) . setSecondaryText ( com.android.dialer.calllogutils.CallLogEntryText.buildSecondaryTextForBottomSheet ( context , row ) . toString ( ) ) . build ( ) ; }
Source:
private void startLightbringerActivity ( android.content.Intent intent ) { try { android.app.Activity activity = ( ( android.app.Activity ) ( mContext ) ) ; activity.startActivityForResult ( intent , ActivityRequestCodes.DIALTACTS_LIGHTBRINGER ) ; } catch ( android.content.ActivityNotFoundException e ) { android.widget.Toast.makeText ( mContext , R.string.activity_not_available , Toast.LENGTH_SHORT ) . show ( ) ; } }

Target:
private void startDuoActivity ( android.content.Intent intent ) { try { android.app.Activity activity = ( ( android.app.Activity ) ( mContext ) ) ; activity.startActivityForResult ( intent , ActivityRequestCodes.DIALTACTS_DUO ) ; } catch ( android.content.ActivityNotFoundException e ) { android.widget.Toast.makeText ( mContext , R.string.activity_not_available , Toast.LENGTH_SHORT ) . show ( ) ; } }
Source:
private void verifyTimeServiceTimeZoneWasSet ( java.lang.String timeZoneId ) { org.mockito.Mockito.verify ( mTimeServiceHelper , org.mockito.Mockito.times ( 1 ) ) . setDeviceTimeZone ( timeZoneId ) ; }

Target:
private void verifyTimeServiceTimeWasSet ( long expectedTimeMillis ) { org.mockito.ArgumentCaptor < java.lang.Long > timeServiceTimeCaptor = org.mockito.ArgumentCaptor.forClass ( java.lang.Long.TYPE ) ; org.mockito.Mockito.verify ( mTimeServiceHelper , org.mockito.Mockito.times ( 1 ) ) . setDeviceTime ( timeServiceTimeCaptor.capture ( ) ) ; org.junit.Assert.assertEquals ( expectedTimeMillis , ( ( long ) ( timeServiceTimeCaptor.getValue ( ) ) ) ) ; }
Source:
public void setFocusData ( com.android.ddmlib.RawImage image , com.android.hierarchyviewerlib.device.ViewNode viewNode ) { synchronized ( this ) { this . image = image ; this . viewNode = viewNode ; this . selected = null ; } notifyFocusChanged ( ) ; }

Target:
public void setFocusData ( final org.eclipse.swt.graphics.Image image , final com.android.hierarchyviewerlib.device.ViewNode viewNode ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { synchronized ( com.android.hierarchyviewerlib.models.PixelPerfectModel.this ) { if ( ( com.android.hierarchyviewerlib.models.PixelPerfectModel.this . image ) != null ) { com.android.hierarchyviewerlib.models.PixelPerfectModel.this . image.dispose ( ) ; } com.android.hierarchyviewerlib.models.PixelPerfectModel.this . image = image ; com.android.hierarchyviewerlib.models.PixelPerfectModel.this . viewNode = viewNode ; com.android.hierarchyviewerlib.models.PixelPerfectModel.this . selected = null ; } } } ) ; notifyFocusChanged ( ) ; }
Source:
public boolean isInputValid ( java.lang.String newName , com.intellij.psi.PsiElement element , com.intellij.util.ProcessingContext context ) { return ( ( ( newName != null ) && ( ( newName.length ( ) ) > 0 ) ) && ( ( newName.indexOf ( '\\' ) ) < 0 ) ) && ( ( newName.indexOf ( '/' ) ) < 0 ) ; }

Target:
public boolean isInputValid ( java.lang.String newName , com.intellij.psi.PsiElement element , com.intellij.util.ProcessingContext context ) { return ( ( ( ( newName != null ) && ( ( newName.length ( ) ) > 0 ) ) && ( ( newName.indexOf ( '\\' ) ) < 0 ) ) && ( ( newName.indexOf ( '/' ) ) < 0 ) ) && ( ( newName.indexOf ( '\n' ) ) < 0 ) ; }
Source:
public static java.lang.String [ ] getCNs ( java.security.cert.X509Certificate cert ) { javax.net.ssl.DistinguishedNameParser dnParser = new javax.net.ssl.DistinguishedNameParser ( cert.getSubjectX500Principal ( ) ) ; java.util.List < java.lang.String > cnList = dnParser.getAllMostSpecificFirst ( "cn" ) ; if ( ! ( cnList.isEmpty ( ) ) ) { java.lang.String [ ] cns = new java.lang.String [ cnList.size ( ) ] ; cnList.toArray ( cns ) ; return cns ; } else { return null ; } }

Target:
public static java.lang.String [ ] getCNs ( java.security.cert.X509Certificate cert ) { org.apache.http.conn.ssl.DistinguishedNameParser dnParser = new org.apache.http.conn.ssl.DistinguishedNameParser ( cert.getSubjectX500Principal ( ) ) ; java.util.List < java.lang.String > cnList = dnParser.getAllMostSpecificFirst ( "cn" ) ; if ( ! ( cnList.isEmpty ( ) ) ) { java.lang.String [ ] cns = new java.lang.String [ cnList.size ( ) ] ; cnList.toArray ( cns ) ; return cns ; } else { return null ; } }
Source:
public void maybeMarkCapabilitiesRestricted ( ) { if ( ( ( ( mNetworkCapabilities ) & ( ~ ( ( android.net.NetworkCapabilities.DEFAULT_CAPABILITIES ) | ( android.net.NetworkCapabilities.RESTRICTED_CAPABILITIES ) ) ) ) == 0 ) && ( ( ( mNetworkCapabilities ) & ( android.net.NetworkCapabilities.RESTRICTED_CAPABILITIES ) ) != 0 ) ) { removeCapability ( android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED ) ; } }

Target:
public void maybeMarkCapabilitiesRestricted ( ) { final boolean hasUnrestrictedCapabilities = ( ( mNetworkCapabilities ) & ( android.net.NetworkCapabilities.UNRESTRICTED_CAPABILITIES ) ) != 0 ; final boolean hasRestrictedCapabilities = ( ( mNetworkCapabilities ) & ( android.net.NetworkCapabilities.RESTRICTED_CAPABILITIES ) ) != 0 ; if ( hasRestrictedCapabilities && ( ! hasUnrestrictedCapabilities ) ) { removeCapability ( android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED ) ; } }
Source:
public void onCreate ( android.database.sqlite.SQLiteDatabase db ) { if ( com.android.providers.telephony.TelephonyProvider.DBG ) com.android.providers.telephony.TelephonyProvider.log ( ( "dbh.onCreate:+ db=" + db ) ) ; createSimInfoTable ( db ) ; createCarriersTable ( db , com.android.providers.telephony.TelephonyProvider.CARRIERS_TABLE ) ; if ( com.android.providers.telephony.TelephonyProvider.apnSourceServiceExists ( mContext ) ) { com.android.providers.telephony.TelephonyProvider.log ( "dbh.onCreate: Skipping apply APNs from xml." ) ; } else { com.android.providers.telephony.TelephonyProvider.log ( "dbh.onCreate: Apply apns from xml." ) ; initDatabase ( db ) ; } if ( com.android.providers.telephony.TelephonyProvider.DBG ) com.android.providers.telephony.TelephonyProvider.log ( ( "dbh.onCreate:- db=" + db ) ) ; }

Target:
public void onCreate ( android.database.sqlite.SQLiteDatabase db ) { if ( com.android.providers.telephony.TelephonyProvider.DBG ) com.android.providers.telephony.TelephonyProvider.log ( ( "dbh.onCreate:+ db=" + db ) ) ; createSimInfoTable ( db , com.android.providers.telephony.TelephonyProvider.SIMINFO_TABLE ) ; createCarriersTable ( db , com.android.providers.telephony.TelephonyProvider.CARRIERS_TABLE ) ; if ( com.android.providers.telephony.TelephonyProvider.apnSourceServiceExists ( mContext ) ) { com.android.providers.telephony.TelephonyProvider.log ( "dbh.onCreate: Skipping apply APNs from xml." ) ; } else { com.android.providers.telephony.TelephonyProvider.log ( "dbh.onCreate: Apply apns from xml." ) ; initDatabase ( db ) ; } if ( com.android.providers.telephony.TelephonyProvider.DBG ) com.android.providers.telephony.TelephonyProvider.log ( ( "dbh.onCreate:- db=" + db ) ) ; }
Source:
public void enter ( ) { super . enter ( ) ; android.telecom.Log.addEvent ( mCallsManager.getForegroundCall ( ) , LogUtils.Events.AUDIO_ROUTE , ( "Entering state " + ( getName ( ) ) ) ) ; }

Target:
public void enter ( ) { super . enter ( ) ; android.telecom.Log.addEvent ( mCallsManager.getForegroundCall ( ) , LogUtils.Events.AUDIO_ROUTE , ( "Entering state " + ( getName ( ) ) ) ) ; if ( isActive ( ) ) { android.telecom.Log.addEvent ( mCallsManager.getForegroundCall ( ) , com.android.server.telecom.CallAudioRouteStateMachine.AUDIO_ROUTE_TO_LOG_EVENT.get ( getRouteCode ( ) , LogUtils.Events.AUDIO_ROUTE ) ) ; } }
Source:
public proguard.evaluation.value.FloatValue createFloatValue ( float value ) { return ( value == 0.0F ) && ( ( java.lang.Float.floatToIntBits ( value ) ) == ( proguard.evaluation.value.SpecificValueFactory.POS_ZERO_FLOAT_BITS ) ) ? proguard.evaluation.value.SpecificValueFactory.FLOAT_VALUE_0 : value == 1.0F ? proguard.evaluation.value.SpecificValueFactory.FLOAT_VALUE_1 : value == 2.0F ? proguard.evaluation.value.SpecificValueFactory.FLOAT_VALUE_2 : new proguard.evaluation.value.ParticularFloatValue ( value ) ; }

Target:
public proguard.evaluation.value.FloatValue createFloatValue ( float value ) { return ( value == 0.0F ) && ( ( java.lang.Float.floatToIntBits ( value ) ) == ( proguard.evaluation.value.ParticularValueFactory.POS_ZERO_FLOAT_BITS ) ) ? proguard.evaluation.value.ParticularValueFactory.FLOAT_VALUE_0 : value == 1.0F ? proguard.evaluation.value.ParticularValueFactory.FLOAT_VALUE_1 : value == 2.0F ? proguard.evaluation.value.ParticularValueFactory.FLOAT_VALUE_2 : new proguard.evaluation.value.ParticularFloatValue ( value ) ; }
Source:
public android.net.wifi.nan.WifiNanManager createService ( android.app.ContextImpl ctx ) { android.os.IBinder b = android.os.ServiceManager.getService ( Context.WIFI_NAN_SERVICE ) ; android.net.wifi.nan.IWifiNanManager service = IWifiNanManager.Stub.asInterface ( b ) ; if ( service == null ) { return null ; } return new android.net.wifi.nan.WifiNanManager ( ctx.getOuterContext ( ) , service ) ; }

Target:
public android.net.wifi.aware.WifiAwareManager createService ( android.app.ContextImpl ctx ) { android.os.IBinder b = android.os.ServiceManager.getService ( Context.WIFI_AWARE_SERVICE ) ; android.net.wifi.aware.IWifiAwareManager service = IWifiAwareManager.Stub.asInterface ( b ) ; if ( service == null ) { return null ; } return new android.net.wifi.aware.WifiAwareManager ( ctx.getOuterContext ( ) , service ) ; }
Source:
public void test_getBondedDevices ( ) { android.bluetooth.BluetoothAdapter adapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; enable ( adapter ) ; java.util.Set < android.bluetooth.BluetoothDevice > devices = adapter.getBondedDevices ( ) ; assertNotNull ( devices ) ; for ( android.bluetooth.BluetoothDevice device : devices ) { assertTrue ( android.bluetooth.BluetoothAdapter.checkBluetoothAddress ( device.getAddress ( ) ) ) ; } }

Target:
public void test_getBondedDevices ( ) { if ( ! ( mHasBluetooth ) ) { return ; } android.bluetooth.BluetoothAdapter adapter = android.bluetooth.BluetoothAdapter.getDefaultAdapter ( ) ; enable ( adapter ) ; java.util.Set < android.bluetooth.BluetoothDevice > devices = adapter.getBondedDevices ( ) ; assertNotNull ( devices ) ; for ( android.bluetooth.BluetoothDevice device : devices ) { assertTrue ( android.bluetooth.BluetoothAdapter.checkBluetoothAddress ( device.getAddress ( ) ) ) ; } }
Source:
public void close ( ) throws java.io.IOException { try { mService.closeUdpEncapsulationSocket ( mResourceId ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } try { mPfd.close ( ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( android.net.IpSecManager.TAG , ( "Failed to close UDP Encapsulation Socket with Port= " + ( mPort ) ) ) ; throw e ; } mCloseGuard.close ( ) ; }

Target:
public void close ( ) throws java.io.IOException { try { mService.closeUdpEncapsulationSocket ( mResourceId ) ; mResourceId = android.net.IpSecManager.INVALID_RESOURCE_ID ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } try { mPfd.close ( ) ; } catch ( java.io.IOException e ) { android.util.Log.e ( android.net.IpSecManager.TAG , ( "Failed to close UDP Encapsulation Socket with Port= " + ( mPort ) ) ) ; throw e ; } mCloseGuard.close ( ) ; }
Source:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { assert parent != null ; mPropertyTable = new org.eclipse.wb.internal.core.model.property.table.PropertyTable ( parent , org.eclipse.swt.SWT.NONE ) ; mPropertyTable.setExceptionHandler ( new org.eclipse.wb.internal.core.model.property.table.IPropertyExceptionHandler ( ) { @ java.lang.Override public void handle ( java.lang.Throwable e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , null ) ; } } ) ; mPropertyTable.setDefaultCollapsedNames ( java.util.Arrays.asList ( "Deprecated" , "Layout Parameters|Margins" ) ) ; createActions ( ) ; setPropertyTableContextMenu ( ) ; }

Target:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { assert parent != null ; mPropertyTable = new org.eclipse.wb.internal.core.model.property.table.PropertyTable ( parent , org.eclipse.swt.SWT.NONE ) ; mPropertyTable.setExceptionHandler ( new org.eclipse.wb.internal.core.model.property.table.IPropertyExceptionHandler ( ) { @ java.lang.Override public void handle ( java.lang.Throwable e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , null ) ; } } ) ; mPropertyTable.setDefaultCollapsedNames ( java.util.Arrays.asList ( "Deprecated" , "Layout Parameters" , "Layout Parameters|Margins" ) ) ; createActions ( ) ; setPropertyTableContextMenu ( ) ; }
Source:
public boolean setP2pPowerSave ( java.lang.String iface , boolean enabled ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.setPowerSave ( iface , enabled ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( enabled ) { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " P2P_SET ps 1" ) ) ; } else { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " P2P_SET ps 0" ) ) ; } } } }

Target:
public java.lang.String p2pServDiscReq ( java.lang.String addr , java.lang.String query ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.requestServiceDiscovery ( addr , query ) ; } else { java.lang.String command = "P2P_SERV_DISC_REQ" ; command += " " + addr ; command += " " + query ; return doStringCommand ( command ) ; } }
Source:
public void removeAllRights ( ) { if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } _removeAllRights ( mUniqueId ) ; }

Target:
public void installDrmEngine ( java.lang.String engineFilePath ) { if ( ( null == engineFilePath ) || ( engineFilePath.equals ( "" ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( "Given engineFilePath: " + engineFilePath ) + "is not valid" ) ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } _installDrmEngine ( mUniqueId , engineFilePath ) ; }
Source:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { com.android.sdklib.resources.DockMode mode = com.android.sdklib.resources.DockMode.getEnum ( value ) ; if ( mode != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier ( mode ) ; config.setDockModeQualifier ( qualifier ) ; return true ; } return false ; }

Target:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { com.android.resources.DockMode mode = com.android.resources.DockMode.getEnum ( value ) ; if ( mode != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier ( mode ) ; config.setDockModeQualifier ( qualifier ) ; return true ; } return false ; }
Source:
public final int doFinal ( java.nio.ByteBuffer input , java.nio.ByteBuffer output ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { checkCipherState ( ) ; if ( ( input == null ) || ( output == null ) ) { throw new java.lang.IllegalArgumentException ( "Buffers must not be null" ) ; } if ( input == output ) { throw new java.lang.IllegalArgumentException ( ( "Input and output buffers must " + "not be the same object, consider using buffer.duplicate()" ) ) ; } if ( output.isReadOnly ( ) ) { throw new java.nio.ReadOnlyBufferException ( ) ; } chooseFirstProvider ( ) ; return spi.engineDoFinal ( input , output ) ; }

Target:
public final int doFinal ( java.nio.ByteBuffer input , java.nio.ByteBuffer output ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { checkCipherState ( ) ; if ( ( input == null ) || ( output == null ) ) { throw new java.lang.IllegalArgumentException ( "Buffers must not be null" ) ; } if ( input == output ) { throw new java.lang.IllegalArgumentException ( ( "Input and output buffers must " + "not be the same object, consider using buffer.duplicate()" ) ) ; } if ( output.isReadOnly ( ) ) { throw new java.nio.ReadOnlyBufferException ( ) ; } updateProviderIfNeeded ( ) ; return spi.engineDoFinal ( input , output ) ; }
Source:
public void testCropColor ( ) throws java.lang.Exception { java.awt.image.BufferedImage image = new java.awt.image.BufferedImage ( 100 , 100 , java.awt.image.BufferedImage.TYPE_INT_ARGB_PRE ) ; java.awt.Graphics g = image.getGraphics ( ) ; g.setColor ( new java.awt.Color ( - 16711936 , true ) ) ; g.fillRect ( 0 , 0 , image.getWidth ( ) , image.getHeight ( ) ) ; g.dispose ( ) ; java.awt.image.BufferedImage crop = com.android.ide.eclipse.adt.internal.editors.layout.gle2.SwtUtils.cropColor ( image , - 16711936 ) ; assertNull ( crop ) ; }

Target:
public void testCropBlankPre ( ) throws java.lang.Exception { java.awt.image.BufferedImage image = new java.awt.image.BufferedImage ( 100 , 100 , java.awt.image.BufferedImage.TYPE_INT_ARGB_PRE ) ; java.awt.Graphics g = image.getGraphics ( ) ; g.setColor ( new java.awt.Color ( 0 , true ) ) ; g.fillRect ( 0 , 0 , image.getWidth ( ) , image.getHeight ( ) ) ; g.dispose ( ) ; java.awt.image.BufferedImage crop = com.android.ide.eclipse.adt.internal.editors.layout.gle2.SwtUtils.cropBlank ( image , new com.android.ide.common.api.Rect ( 5 , 5 , 80 , 80 ) ) ; assertNull ( crop ) ; }
Source:
protected void done ( ) { try { showImageEditor ( get ( ) , file.getAbsolutePath ( ) ) ; this . setTitle ( java.lang.String.format ( "Draw 9-patch: %s" , file.getAbsolutePath ( ) ) ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } catch ( java.util.concurrent.ExecutionException e ) { e.printStackTrace ( ) ; } }

Target:
protected void done ( ) { try { showImageEditor ( get ( ) , file.getAbsolutePath ( ) ) ; setTitle ( java.lang.String.format ( com.android.draw9patch.ui.MainFrame.TITLE_FORMAT , file.getAbsolutePath ( ) ) ) ; } catch ( java.lang.InterruptedException e ) { e.printStackTrace ( ) ; } catch ( java.util.concurrent.ExecutionException e ) { e.printStackTrace ( ) ; } }
Source:
public void copyFromUnchecked ( int [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFromUnchecked" ) ; mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , d ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
private void validateIsFloat64 ( ) { if ( ( mType.mElement.mType ) == ( Element.DataType.FLOAT_64 ) ) { return ; } throw new android.renderscript.RSIllegalArgumentException ( ( "64 bit float source does not match allocation type " + ( mType.mElement.mType ) ) ) ; }
Source:
public com.android.ims.ImsMultiEndpoint getMultiEndpointInterface ( ) throws com.android.ims.ImsException { if ( ( ( mMultiEndpoint ) != null ) && ( mMultiEndpoint.isBinderAlive ( ) ) ) { return mMultiEndpoint ; } checkAndThrowExceptionIfServiceUnavailable ( ) ; try { com.android.ims.internal.IImsMultiEndpoint iImsMultiEndpoint = mMmTelFeatureConnection.getMultiEndpointInterface ( ) ; if ( iImsMultiEndpoint == null ) { throw new com.android.ims.ImsException ( "getMultiEndpointInterface()" , ImsReasonInfo.CODE_MULTIENDPOINT_NOT_SUPPORTED ) ; } mMultiEndpoint = new com.android.ims.ImsMultiEndpoint ( iImsMultiEndpoint ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getMultiEndpointInterface()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } return mMultiEndpoint ; }

Target:
public void onSmsReady ( ) throws com.android.ims.ImsException { try { mMmTelFeatureConnection.onSmsReady ( ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "onSmsReady()" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }
Source:
java.security.MessageDigest getMessageDigest ( ) { try { return java.security.MessageDigest.getInstance ( digestAlgorithmName ) ; } catch ( java.security.NoSuchAlgorithmException e ) { fail ( ( "failed to get digest instance: " + e ) ) ; return null ; } }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; this . source3 = getLongMessage ( 1000000 ) ; this . digest = java.security.MessageDigest.getInstance ( digestAlgorithmName ) ; this . sourceData = getSourceData ( ) ; this . checkDigest = getCheckDigest ( ) ; }
Source:
public void getLastDataCallFailCause ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_LAST_DATA_CALL_FAIL_CAUSE , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void getLastDataCallFailCause ( android.os.Message result ) { throw new java.lang.RuntimeException ( "getLastDataCallFailCause not expected to be called" ) ; }
Source:
public void testMaxLengthExtra_zip64 ( ) throws java.lang.Exception { byte [ ] maxLengthExtra = new byte [ 65530 ] ; java.io.File f = libcore.java.util.zip.ZipEntryTest.createTemporaryZipFile ( ) ; java.util.zip.ZipOutputStream out = libcore.java.util.zip.ZipEntryTest.createZipOutputStream ( f ) ; java.util.zip.ZipEntry ze = new java.util.zip.ZipEntry ( "x" ) ; ze.setExtra ( maxLengthExtra ) ; try { out.putNextEntry ( ze ) ; fail ( ) ; } catch ( java.util.zip.ZipException expected ) { } }

Target:
public void testMaxLengthExtra_zip64 ( ) throws java.lang.Exception { byte [ ] maxLengthExtra = new byte [ 65530 ] ; java.io.File f = libcore.java.util.zip.ZipEntryTest.createTemporaryZipFile ( ) ; java.util.zip.ZipOutputStream out = new java.util.zip.ZipOutputStream ( new java.io.BufferedOutputStream ( new java.io.FileOutputStream ( f ) ) , true ) ; java.util.zip.ZipEntry ze = new java.util.zip.ZipEntry ( "x" ) ; ze.setExtra ( maxLengthExtra ) ; try { out.putNextEntry ( ze ) ; fail ( ) ; } catch ( java.util.zip.ZipException expected ) { } }
Source:
public void deactivateDataCall ( int cid , boolean reasonRadioShutDown , boolean isHandover , android.telephony.data.IDataServiceCallback callback ) { mHandler.obtainMessage ( android.telephony.data.DataService.DATA_SERVICE_REQUEST_DEACTIVATE_DATA_CALL , mSlotId , 0 , new android.telephony.data.DataService.DeactivateDataCallRequest ( cid , reasonRadioShutDown , isHandover , callback ) ) . sendToTarget ( ) ; }

Target:
public void setupDataCall ( int accessNetworkType , android.telephony.data.DataProfile dataProfile , boolean isRoaming , boolean allowRoaming , int reason , android.net.LinkProperties linkProperties , android.telephony.data.IDataServiceCallback callback ) { mHandler.obtainMessage ( android.telephony.data.DataService.DATA_SERVICE_REQUEST_SETUP_DATA_CALL , mSlotId , 0 , new android.telephony.data.DataService.SetupDataCallRequest ( accessNetworkType , dataProfile , isRoaming , allowRoaming , reason , linkProperties , callback ) ) . sendToTarget ( ) ; }
Source:
public boolean remove ( java.lang.Object o ) { java.util.Iterator < java.util.Map.Entry < K , V > > iterator = unfiltered.entrySet ( ) . iterator ( ) ; while ( iterator.hasNext ( ) ) { java.util.Map.Entry < K , V > entry = iterator.next ( ) ; if ( ( com.google.common.base.Objects.equal ( o , entry.getValue ( ) ) ) && ( predicate.apply ( entry ) ) ) { iterator.remove ( ) ; return true ; } } return false ; }

Target:
static < V > com.google.common.base.Predicate < java.util.Map.Entry < ? , V > > valuePredicateOnEntries ( com.google.common.base.Predicate < ? super V > valuePredicate ) { return com.google.common.base.Predicates.compose ( valuePredicate , com.google.common.collect.Maps.< V > valueFunction ( ) ) ; }
Source:
public void testInstallId ( ) throws java.lang.Exception { java.util.Properties props1 = createExpectedProps ( true ) ; com.android.sdklib.internal.repository.packages.BuildToolPackage p1 = new com.android.sdklib.internal.repository.packages.BuildToolPackageTest.BuildToolPackageFakeArchive ( props1 ) ; assertEquals ( "build-tools-1.2.3_rc4" , p1.installId ( ) ) ; java.util.Properties props2 = createExpectedProps ( false ) ; com.android.sdklib.internal.repository.packages.BuildToolPackage p2 = new com.android.sdklib.internal.repository.packages.BuildToolPackageTest.BuildToolPackageFakeArchive ( props2 ) ; assertEquals ( "build-tools-1.2.3" , p2.installId ( ) ) ; }

Target:
public void testInstallId ( ) throws java.lang.Exception { java.util.Properties props1 = createExpectedProps ( true ) ; com.android.sdklib.internal.repository.packages.BuildToolPackage p1 = new com.android.sdklib.internal.repository.packages.BuildToolPackageTest.BuildToolPackageFakeArchive ( props1 ) ; assertEquals ( "build-tools-1.2.3-preview" , p1.installId ( ) ) ; java.util.Properties props2 = createExpectedProps ( false ) ; com.android.sdklib.internal.repository.packages.BuildToolPackage p2 = new com.android.sdklib.internal.repository.packages.BuildToolPackageTest.BuildToolPackageFakeArchive ( props2 ) ; assertEquals ( "build-tools-1.2.3" , p2.installId ( ) ) ; }
Source:
public android.net.LinkQualityInfo getLinkQualityInfo ( int networkType ) { try { android.net.LinkQualityInfo li = mService.getLinkQualityInfo ( networkType ) ; return li ; } catch ( android.os.RemoteException e ) { return null ; } }

Target:
public android.net.ProxyInfo getDefaultProxy ( ) { final android.net.Network network = android.net.ConnectivityManager.getProcessDefaultNetwork ( ) ; if ( network != null ) { final android.net.ProxyInfo globalProxy = getGlobalProxy ( ) ; if ( globalProxy != null ) return globalProxy ; final android.net.LinkProperties lp = getLinkProperties ( network ) ; if ( lp != null ) return lp.getHttpProxy ( ) ; return null ; } try { return mService.getDefaultProxy ( ) ; } catch ( android.os.RemoteException e ) { return null ; } }
Source:
public int getBondState ( ) { if ( ( android.bluetooth.BluetoothDevice.sService ) == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot get bond state" ) ; return android.bluetooth.BluetoothDevice.BOND_NONE ; } try { return android.bluetooth.BluetoothDevice.sService.getBondState ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } catch ( java.lang.NullPointerException npe ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , ( ( "NullPointerException for getBondState() of device (" + ( getAddress ( ) ) ) + ")" ) , npe ) ; } return android.bluetooth.BluetoothDevice.BOND_NONE ; }

Target:
public boolean isEncrypted ( ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { return false ; } try { return ( service.getConnectionState ( this ) ) > ( android.bluetooth.BluetoothDevice.CONNECTION_STATE_CONNECTED ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; return false ; } }
Source:
public void stop ( ) throws android.os.RemoteException { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.stopNetworkScan ( mSubId , mScanId ) ; } else { throw new android.os.RemoteException ( "Failed to get the ITelephony instance." ) ; } } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.NetworkScan.TAG , "stopNetworkScan RemoteException" , ex ) ; throw new android.os.RemoteException ( ( "Failed to stop the network scan with id " + ( mScanId ) ) ) ; } }

Target:
public void stop ( ) throws android.os.RemoteException { try { stopScan ( ) ; } catch ( java.lang.RuntimeException ex ) { throw new android.os.RemoteException ( ( "Failed to stop the network scan with id " + ( mScanId ) ) ) ; } }
Source:
private void applyConstraint ( com.android.ide.common.api.INode n , java.lang.String constraint ) { assert constraint.contains ( "=" ) : constraint ; java.lang.String name = constraint.substring ( 0 , constraint.indexOf ( '=' ) ) ; java.lang.String value = constraint.substring ( ( ( constraint.indexOf ( '=' ) ) + 1 ) ) ; n.setAttribute ( com.android.util.XmlUtils.ANDROID_URI , name , value ) ; }

Target:
private void applyConstraint ( com.android.ide.common.api.INode n , java.lang.String constraint ) { assert constraint.contains ( "=" ) : constraint ; java.lang.String name = constraint.substring ( 0 , constraint.indexOf ( '=' ) ) ; java.lang.String value = constraint.substring ( ( ( constraint.indexOf ( '=' ) ) + 1 ) ) ; n.setAttribute ( com.android.utils.XmlUtils.ANDROID_URI , name , value ) ; }
Source:
public boolean canConnectToDevice ( android.bluetooth.BluetoothDevice device ) { int connected = 0 ; synchronized ( mStateMachines ) { for ( com.android.bluetooth.a2dp.A2dpStateMachine sm : mStateMachines.values ( ) ) { switch ( sm.getConnectionState ( ) ) { case android.bluetooth.BluetoothProfile.STATE_CONNECTING : case android.bluetooth.BluetoothProfile.STATE_CONNECTED : if ( java.util.Objects.equals ( device , sm.getDevice ( ) ) ) { return true ; } connected ++ ; break ; default : break ; } } } return connected < ( mMaxConnectedAudioDevices ) ; }

Target:
private boolean connectionAllowedCheckMaxDevices ( android.bluetooth.BluetoothDevice device ) { int connected = 0 ; synchronized ( mStateMachines ) { for ( com.android.bluetooth.a2dp.A2dpStateMachine sm : mStateMachines.values ( ) ) { switch ( sm.getConnectionState ( ) ) { case android.bluetooth.BluetoothProfile.STATE_CONNECTING : case android.bluetooth.BluetoothProfile.STATE_CONNECTED : if ( java.util.Objects.equals ( device , sm.getDevice ( ) ) ) { return true ; } connected ++ ; break ; default : break ; } } } return connected < ( mMaxConnectedAudioDevices ) ; }
Source:
public void enter ( ) { super . enter ( ) ; setSpeakerphoneOn ( false ) ; setBluetoothOff ( ) ; android.telecom.CallAudioState newState = new android.telecom.CallAudioState ( mIsMuted , com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_WIRED_HEADSET , mAvailableRoutes ) ; setSystemAudioState ( newState , true ) ; updateInternalCallAudioState ( ) ; }

Target:
public void enter ( ) { super . enter ( ) ; setSpeakerphoneOn ( false ) ; setBluetoothOff ( ) ; android.telecom.CallAudioState newState = new android.telecom.CallAudioState ( mIsMuted , com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_WIRED_HEADSET , mAvailableRoutes , null , mBluetoothRouteManager.getConnectedDevices ( ) ) ; setSystemAudioState ( newState , true ) ; updateInternalCallAudioState ( ) ; }
Source:
private static java.util.Properties loadLibraryProperties ( @ javax.annotation.Nonnull com.android.sched.vfs.InputVFS vfs ) throws com.android.jack.library.NotJackLibraryException { java.util.Properties libraryProperties = new java.util.Properties ( ) ; try { com.android.sched.vfs.InputVFile libProp = vfs.getRootInputVDir ( ) . getInputVFile ( JackLibrary.LIBRARY_PROPERTIES_VPATH ) ; libraryProperties.load ( libProp.openRead ( ) ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.NotJackLibraryException ( vfs.getLocation ( ) ) ; } return libraryProperties ; }

Target:
private static java.util.Properties loadLibraryProperties ( @ javax.annotation.Nonnull com.android.sched.vfs.InputVFS vfs ) throws com.android.jack.library.NotJackLibraryException { java.util.Properties libraryProperties = new java.util.Properties ( ) ; try { com.android.sched.vfs.InputVFile libProp = vfs.getRootInputVDir ( ) . getInputVFile ( JackLibrary.LIBRARY_PROPERTIES_VPATH ) ; libraryProperties.load ( libProp.getInputStream ( ) ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.NotJackLibraryException ( vfs.getLocation ( ) ) ; } return libraryProperties ; }
Source:
android.content.ComponentName startServiceInPackage ( int uid , android.content.Intent service , java.lang.String resolvedType , java.lang.String callingPackage , int userId ) throws android.os.TransactionTooLargeException { synchronized ( this ) { if ( DEBUG_SERVICE ) android.util.Slog.v ( com.android.server.am.ActivityManagerService.TAG_SERVICE , ( ( ( "startServiceInPackage: " + service ) + " type=" ) + resolvedType ) ) ; final long origId = android.os.Binder.clearCallingIdentity ( ) ; android.content.ComponentName res = mServices.startServiceLocked ( null , service , resolvedType , ( - 1 ) , uid , callingPackage , userId ) ; android.os.Binder.restoreCallingIdentity ( origId ) ; return res ; } }

Target:
android.content.ComponentName startServiceInPackage ( int uid , android.content.Intent service , java.lang.String resolvedType , java.lang.String callingPackage , int userId ) throws android.os.TransactionTooLargeException { synchronized ( this ) { if ( com.android.server.am.ActivityManagerDebugConfig.DEBUG_SERVICE ) android.util.Slog.v ( com.android.server.am.ActivityManagerService.TAG_SERVICE , ( ( ( "startServiceInPackage: " + service ) + " type=" ) + resolvedType ) ) ; final long origId = android.os.Binder.clearCallingIdentity ( ) ; android.content.ComponentName res = mServices.startServiceLocked ( null , service , resolvedType , ( - 1 ) , uid , callingPackage , userId ) ; android.os.Binder.restoreCallingIdentity ( origId ) ; return res ; } }
Source:
protected void run ( ) throws java.lang.Throwable { java.util.Map < java.lang.String , com.google.gct.idea.appengine.gradle.project.IdeaAppEngineProject > importModulesMap = com.google.gct.idea.appengine.gradle.service.AppEngineGradleProjectDataService.indexByModuleName ( toImport ) ; for ( com.intellij.openapi.module.Module module : com.intellij.openapi.module.ModuleManager.getInstance ( project ) . getModules ( ) ) { if ( importModulesMap.containsKey ( module.getName ( ) ) ) { com.google.gct.idea.appengine.gradle.service.AppEngineGradleProjectDataService.addAppEngineGradleFacet ( importModulesMap.get ( module.getName ( ) ) , module ) ; } } }

Target:
protected void run ( ) throws java.lang.Throwable { java.util.Map < java.lang.String , com.google.gct.idea.appengine.gradle.project.IdeaAppEngineProject > importModulesMap = com.google.gct.idea.appengine.gradle.service.AppEngineGradleProjectDataService.indexByModuleName ( toImport ) ; for ( com.intellij.openapi.module.Module module : com.intellij.openapi.module.ModuleManager.getInstance ( project ) . getModules ( ) ) { if ( importModulesMap.containsKey ( module.getName ( ) ) ) { com.google.gct.idea.appengine.gradle.service.AppEngineGradleProjectDataService.addAppEngineGradleFacet ( importModulesMap.get ( module.getName ( ) ) , module ) ; com.android.tools.idea.stats.UsageTracker.getInstance ( ) . trackEvent ( GctTracking.CATEGORY , GctTracking.GRADLE_IMPORT , null , null ) ; } } }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.unittest.ScriptC_math_conformance s = new com.android.rs.unittest.ScriptC_math_conformance ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; s.invoke_math_conformance_test ( ) ; pRS.finish ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; passTest ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = createRenderScript ( true ) ; com.android.rs.unittest.ScriptC_math_conformance s = new com.android.rs.unittest.ScriptC_math_conformance ( pRS ) ; s.invoke_math_conformance_test ( ) ; pRS.finish ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; passTest ( ) ; }
Source:
public boolean visit ( org.eclipse.jdt.internal.compiler.ast.ClassLiteralAccess x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { parsed = new com.android.jack.ir.ast.JClassLiteral ( makeSourceInfo ( x ) , getTypeMap ( ) . get ( x.targetType ) , javaLangClass ) ; return false ; }

Target:
public boolean visit ( org.eclipse.jdt.internal.compiler.ast.ClassLiteralAccess x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { parsed = new com.android.jack.ir.ast.JClassLiteral ( makeSourceInfo ( x ) , getTypeMap ( ) . get ( x.targetType ) , javaLangClass ) ; return false ; } catch ( com.android.jack.ir.ast.JTypeLookupException e ) { throw translateException ( x , e ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }