auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected boolean start ( ) { android.util.Log.i ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , "Starting the AVRCP Target Service" ) ; com.android.bluetooth.avrcp.AvrcpTargetService.sInstance = this ; mCurrentData = new com.android.bluetooth.avrcp.MediaData ( null , null , null ) ; mNativeInterface = com.android.bluetooth.avrcp.AvrcpNativeInterface.getInterface ( ) ; mReceiver = new com.android.bluetooth.avrcp.AvrcpTargetService.AvrcpBroadcastReceiver ( ) ; android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( BluetoothA2dp.ACTION_ACTIVE_DEVICE_CHANGED ) ; registerReceiver ( mReceiver , filter ) ; return true ; }

Target:
protected void setUserUnlocked ( int userId ) { android.util.Log.i ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , "User unlocked, initializing the service" ) ; if ( ! ( android.os.SystemProperties.getBoolean ( com.android.bluetooth.avrcp.AvrcpTargetService.AVRCP_ENABLE_PROPERTY , false ) ) ) { android.util.Log.w ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , "Skipping initialization of the new AVRCP Target Service" ) ; com.android.bluetooth.avrcp.AvrcpTargetService.sInstance = null ; return ; } init ( ) ; com.android.bluetooth.avrcp.AvrcpTargetService.sInstance = this ; }
Source:
public void publish ( int clientId , android.os.Looper looper , android.net.wifi.nan.PublishConfig publishConfig , android.net.wifi.nan.WifiNanDiscoverySessionCallback callback ) { if ( android.net.wifi.nan.WifiNanManager.VDBG ) android.util.Log.v ( android.net.wifi.nan.WifiNanManager.TAG , ( ( ( "publish(): clientId=" + clientId ) + ", config=" ) + publishConfig ) ) ; try { mService.publish ( clientId , publishConfig , new android.net.wifi.nan.WifiNanManager.WifiNanDiscoverySessionCallbackProxy ( this , looper , true , callback , clientId ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void publish ( int clientId , android.os.Looper looper , android.net.wifi.aware.PublishConfig publishConfig , android.net.wifi.aware.WifiAwareDiscoverySessionCallback callback ) { if ( android.net.wifi.aware.WifiAwareManager.VDBG ) android.util.Log.v ( android.net.wifi.aware.WifiAwareManager.TAG , ( ( ( "publish(): clientId=" + clientId ) + ", config=" ) + publishConfig ) ) ; try { mService.publish ( clientId , publishConfig , new android.net.wifi.aware.WifiAwareManager.WifiAwareDiscoverySessionCallbackProxy ( this , looper , true , callback , clientId ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public void run ( ) { com.android.hierarchyviewerlib.device.Window [ ] windows = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindows ( device ) ; com.android.hierarchyviewerlib.models.DeviceSelectionModel.getModel ( ) . updateDevice ( device , windows ) ; }

Target:
public void run ( ) { if ( ! ( com.android.hierarchyviewerlib.device.DeviceBridge.isViewServerRunning ( device ) ) ) { if ( ! ( com.android.hierarchyviewerlib.device.DeviceBridge.startViewServer ( device ) ) ) { com.android.ddmlib.Log.e ( com.android.hierarchyviewerlib.HierarchyViewerDirector.TAG , ( "Unable to debug device " + device ) ) ; return ; } } com.android.hierarchyviewerlib.device.Window [ ] windows = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindows ( device ) ; com.android.hierarchyviewerlib.models.DeviceSelectionModel.getModel ( ) . updateDevice ( device , windows ) ; }
Source:
public static android.renderscript.cts.Floaty sqrt ( android.renderscript.cts.Floaty a ) { android.renderscript.cts.Floaty f = new android.renderscript.cts.Floaty ( ( ( float ) ( java.lang.Math.sqrt ( a.mValue ) ) ) , ( ( float ) ( java.lang.Math.sqrt ( ( ( a.mValue ) - ( a.mError ) ) ) ) ) , ( ( float ) ( java.lang.Math.sqrt ( ( ( a.mValue ) + ( a.mError ) ) ) ) ) , 3 , 10 ) ; return f ; }

Target:
public static android.renderscript.cts.Floaty sqrt ( android.renderscript.cts.Floaty a ) { android.renderscript.cts.Floaty f = new android.renderscript.cts.Floaty ( java.lang.Math.sqrt ( a.mValue ) , java.lang.Math.sqrt ( ( ( a.mValue ) - ( a.mError ) ) ) , java.lang.Math.sqrt ( ( ( a.mValue ) + ( a.mError ) ) ) , 3 , 10 , a.mNumberOfBits ) ; return f ; }
Source:
public final void testLocalSdkTest_getPkgInfo_PlatformTools ( ) { com.android.sdklib.io.MockFileOp fop = new com.android.sdklib.io.MockFileOp ( ) ; com.android.sdklib.local.LocalSdk ls = new com.android.sdklib.local.LocalSdk ( fop ) ; ls.setLocation ( new java.io.File ( "/sdk" ) ) ; assertNull ( ls.getPkgInfo ( LocalSdk.PKG_PLATFORM_TOOLS ) ) ; ls.clearLocalPkg ( LocalSdk.PKG_ALL ) ; fop.recordExistingFolder ( "/sdk/platform-tools" ) ; fop.recordExistingFile ( "/sdk/platform-tools/source.properties" , ( "Pkg.License=Terms and Conditions\n" + ( ( ( ( "Archive.Os=WINDOWS\n" + "Pkg.Revision=18.19.20\n" ) + "Pkg.LicenseRef=android-sdk-license\n" ) + "Archive.Arch=ANY\n" ) + "Pkg.SourceUrl=https\\://dl-ssl.google.com/android/repository/repository-8.xml" ) ) ) ; com.android.sdklib.local.LocalPkgInfo pi = ls.getPkgInfo ( LocalSdk.PKG_PLATFORM_TOOLS ) ; assertNotNull ( pi ) ; assertTrue ( ( pi instanceof com.android.sdklib.local.LocalPlatformToolPkgInfo ) ) ; assertEquals ( new java.io.File ( "/sdk/platform-tools" ) , pi.getLocalDir ( ) ) ; assertSame ( ls , pi.getLocalSdk ( ) ) ; assertEquals ( null , pi.getLoadError ( ) ) ; assertEquals ( new com.android.sdklib.repository.FullRevision ( 18 , 19 , 20 ) , pi.getFullRevision ( ) ) ; assertEquals ( "<LocalPlatformToolPkgInfo FullRev=18.19.20>" , pi.toString ( ) ) ; java.lang.Package pkg = pi.getPackage ( ) ; assertNotNull ( pkg ) ; }

Target:
public final void testLocalSdkTest_getPkgInfo_PlatformTools ( ) { assertNull ( mLS.getPkgInfo ( LocalSdk.PKG_PLATFORM_TOOLS ) ) ; mLS.clearLocalPkg ( LocalSdk.PKG_ALL ) ; mFOp.recordExistingFolder ( "/sdk/platform-tools" ) ; mFOp.recordExistingFile ( "/sdk/platform-tools/source.properties" , ( "Pkg.License=Terms and Conditions\n" + ( ( ( ( "Archive.Os=WINDOWS\n" + "Pkg.Revision=18.19.20\n" ) + "Pkg.LicenseRef=android-sdk-license\n" ) + "Archive.Arch=ANY\n" ) + "Pkg.SourceUrl=https\\://dl-ssl.google.com/android/repository/repository-8.xml" ) ) ) ; com.android.sdklib.local.LocalPkgInfo pi = mLS.getPkgInfo ( LocalSdk.PKG_PLATFORM_TOOLS ) ; assertNotNull ( pi ) ; assertTrue ( ( pi instanceof com.android.sdklib.local.LocalPlatformToolPkgInfo ) ) ; assertEquals ( new java.io.File ( "/sdk/platform-tools" ) , pi.getLocalDir ( ) ) ; assertSame ( mLS , pi.getLocalSdk ( ) ) ; assertEquals ( null , pi.getLoadError ( ) ) ; assertEquals ( new com.android.sdklib.repository.FullRevision ( 18 , 19 , 20 ) , pi.getFullRevision ( ) ) ; assertEquals ( "<LocalPlatformToolPkgInfo FullRev=18.19.20>" , pi.toString ( ) ) ; java.lang.Package pkg = pi.getPackage ( ) ; assertNotNull ( pkg ) ; }
Source:
public void handle ( @ javax.annotation.Nonnull org.simpleframework.http.Request request , @ javax.annotation.Nonnull org.simpleframework.http.Response response ) { com.android.jack.server.JackSimpleServer.logger.log ( java.util.logging.Level.INFO , ( ( "Unknown request for '" + ( request.getPath ( ) . getPath ( ) ) ) + "'" ) ) ; response.setStatus ( Status.NOT_FOUND ) ; }

Target:
public void handle ( @ javax.annotation.Nonnull org.simpleframework.http.Request request , @ javax.annotation.Nonnull org.simpleframework.http.Response response ) { com.android.jack.server.JackSimpleServer.logger.log ( java.util.logging.Level.INFO , ( ( "Unknown request for '" + ( request.getPath ( ) . getPath ( ) ) ) + "'" ) ) ; response.setStatus ( Status.NOT_FOUND ) ; try { response.close ( ) ; } catch ( java.io.IOException e ) { com.android.jack.server.JackSimpleServer.logger.log ( java.util.logging.Level.SEVERE , "Exception during close: " , e ) ; } }
Source:
public void testProcSelfOomScoreAdjSane ( ) { java.io.File f = new java.io.File ( "/proc/self/oom_score_adj" ) ; assertFalse ( f.canWrite ( ) ) ; assertFalse ( f.canExecute ( ) ) ; }

Target:
public void testProcSelfOomAdjSane ( ) throws java.io.IOException { final int OOM_DISABLE = - 17 ; java.io.File f = new java.io.File ( "/proc/self/oom_adj" ) ; assertTrue ( f.canRead ( ) ) ; assertFalse ( f.canExecute ( ) ) ; int oom_adj = android.permission.cts.FileSystemPermissionTest.readInt ( f ) ; assertNotSame ( "unprivileged processes should not be unkillable" , OOM_DISABLE , oom_adj ) ; if ( f.canWrite ( ) ) assertFalse ( "unprivileged processes should not be able to reduce their oom_adj value" , android.permission.cts.FileSystemPermissionTest.writeInt ( f , ( oom_adj - 1 ) ) ) ; }
Source:
private java.lang.String getReportBaseName ( ) { java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat ( "yyyy.MM.dd-HH.mm.ss" , java.util.Locale.ENGLISH ) ; java.lang.String date = dateFormat.format ( new java.util.Date ( ) ) ; return ( ( ( ( ( ( ( ( ( "ctsVerifierReport" + "-" ) + date ) + "-" ) + ( android.os.Build.MANUFACTURER ) ) + "-" ) + ( android.os.Build.PRODUCT ) ) + "-" ) + ( android.os.Build.DEVICE ) ) + "-" ) + ( android.os.Build.ID ) ; }

Target:
private java.lang.String getReportName ( ) { java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat ( "yyyy.MM.dd_HH.mm.ss" , java.util.Locale.ENGLISH ) ; java.lang.String date = dateFormat.format ( new java.util.Date ( ) ) ; return java.lang.String.format ( "%s-%s-%s-%s-%s" , date , Build.MANUFACTURER , Build.PRODUCT , Build.DEVICE , Build.ID ) ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , byte [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , data.length ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , byte [ ] data ) { validateIsInt8 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_8 , data.length ) ; }
Source:
private int getDelayForDisconnect ( com.android.services.telephony.common.Call call ) { com.google.common.base.Preconditions.checkState ( ( ( call.getState ( ) ) == ( Call.State.DISCONNECTED ) ) ) ; final com.android.services.telephony.common.Call.DisconnectCause cause = call.getDisconnectCause ( ) ; final int delay ; switch ( cause ) { case LOCAL : delay = com.android.incallui.CallList.DISCONNECTED_CALL_SHORT_TIMEOUT_MS ; break ; case NORMAL : delay = com.android.incallui.CallList.DISCONNECTED_CALL_MEDIUM_TIMEOUT_MS ; break ; case INCOMING_REJECTED : case INCOMING_MISSED : delay = 0 ; break ; default : delay = com.android.incallui.CallList.DISCONNECTED_CALL_LONG_TIMEOUT_MS ; break ; } return delay ; }

Target:
private int getDelayForDisconnect ( com.android.services.telephony.common.Call call ) { com.google.common.base.Preconditions.checkState ( ( ( call.getState ( ) ) == ( Call.State.DISCONNECTED ) ) ) ; final int cause = call.getDisconnectCause ( ) ; final int delay ; switch ( cause ) { case android.telephony.DisconnectCause.LOCAL : delay = com.android.incallui.CallList.DISCONNECTED_CALL_SHORT_TIMEOUT_MS ; break ; case android.telephony.DisconnectCause.NORMAL : delay = com.android.incallui.CallList.DISCONNECTED_CALL_MEDIUM_TIMEOUT_MS ; break ; case android.telephony.DisconnectCause.INCOMING_REJECTED : case android.telephony.DisconnectCause.INCOMING_MISSED : delay = 0 ; break ; default : delay = com.android.incallui.CallList.DISCONNECTED_CALL_LONG_TIMEOUT_MS ; break ; } return delay ; }
Source:
private static java.lang.String getStringValue ( @ com.android.annotations.NonNull java.io.File file , @ com.android.annotations.NonNull java.lang.String xPath ) { javax.xml.xpath.XPath xpath = com.android.xml.AndroidXPathFactory.newXPath ( ) ; java.io.FileInputStream fis = null ; try { fis = new java.io.FileInputStream ( file ) ; return xpath.evaluate ( xPath , new org.xml.sax.InputSource ( fis ) ) ; } catch ( javax.xml.xpath.XPathExpressionException e ) { } catch ( java.io.FileNotFoundException e ) { throw new java.lang.RuntimeException ( e ) ; } finally { com.google.common.io.Closeables.closeQuietly ( fis ) ; } return null ; }

Target:
private static java.lang.String getStringValue ( @ com.android.annotations.NonNull java.io.File file , @ com.android.annotations.NonNull java.lang.String xPath ) { javax.xml.xpath.XPath xpath = com.android.xml.AndroidXPathFactory.newXPath ( ) ; try { org.xml.sax.InputSource source = new org.xml.sax.InputSource ( com.android.utils.XmlUtils.getUtfReader ( file ) ) ; return xpath.evaluate ( xPath , source ) ; } catch ( javax.xml.xpath.XPathExpressionException e ) { } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } return null ; }
Source:
public void onCreate ( android.os.Bundle icicle ) { super . onCreate ( icicle ) ; setUpUi ( getIntent ( ) ) ; }

Target:
protected void onCreate ( android.os.Bundle icicle ) { super . onCreate ( icicle ) ; mTheme = android.theme.app.HoloDeviceActivity.THEMES [ getIntent ( ) . getIntExtra ( android.theme.app.HoloDeviceActivity.EXTRA_THEME , 0 ) ] ; setTheme ( mTheme.mId ) ; setContentView ( R.layout.holo_test ) ; mViewGroup = ( ( android.theme.app.ReferenceViewGroup ) ( findViewById ( R.id.reference_view_group ) ) ) ; }
Source:
private void notifySessionTerminatedDuringMerge ( ) { com.android.ims.ImsCall.Listener listener ; boolean notifyFailure = false ; com.android.ims.ImsReasonInfo notifyFailureReasonInfo = null ; synchronized ( this ) { listener = mListener ; if ( mSessionEndDuringMerge ) { if ( com.android.ims.ImsCall.CONF_DBG ) { logi ( "notifySessionTerminatedDuringMerge ::reporting terminate during merge" ) ; } notifyFailure = true ; notifyFailureReasonInfo = mSessionEndDuringMergeReasonInfo ; } clearSessionTerminationFlags ( ) ; } if ( ( listener != null ) && notifyFailure ) { try { processCallTerminated ( notifyFailureReasonInfo ) ; } catch ( java.lang.Throwable t ) { loge ( "notifySessionTerminatedDuringMerge :: " , t ) ; } } }

Target:
private void notifySessionTerminatedDuringMerge ( ) { com.android.ims.ImsCall.Listener listener ; boolean notifyFailure = false ; android.telephony.ims.ImsReasonInfo notifyFailureReasonInfo = null ; synchronized ( this ) { listener = mListener ; if ( mSessionEndDuringMerge ) { if ( com.android.ims.ImsCall.CONF_DBG ) { logi ( "notifySessionTerminatedDuringMerge ::reporting terminate during merge" ) ; } notifyFailure = true ; notifyFailureReasonInfo = mSessionEndDuringMergeReasonInfo ; } clearSessionTerminationFlags ( ) ; } if ( ( listener != null ) && notifyFailure ) { try { processCallTerminated ( notifyFailureReasonInfo ) ; } catch ( java.lang.Throwable t ) { loge ( "notifySessionTerminatedDuringMerge :: " , t ) ; } } }
Source:
public void testConnectFailureDueToNetworkAddFailure ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( ) ; setupMocksForConnectSequence ( false ) ; org.mockito.Mockito.doAnswer ( new android.app.test.MockAnswerUtil.AnswerWithArguments ( ) { public void answer ( ISupplicantStaIface.addNetworkCallback cb ) throws android.os.RemoteException { cb.onValues ( mStatusFailure , org.mockito.Mockito.mock ( android.hardware.wifi.supplicant.V1_0.ISupplicantStaNetwork.class ) ) ; return ; } } ) . when ( mISupplicantStaIfaceMock ) . addNetwork ( org.mockito.Matchers.any ( ISupplicantStaIface.addNetworkCallback.class ) ) ; assertFalse ( mDut.connectToNetwork ( new android.net.wifi.WifiConfiguration ( ) , false ) ) ; }

Target:
public void testConnectFailureDueToNetworkSaveFailure ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( ) ; setupMocksForConnectSequence ( true ) ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.saveWifiConfiguration ( org.mockito.Matchers.any ( android.net.wifi.WifiConfiguration.class ) ) ) . thenReturn ( false ) ; assertFalse ( mDut.connectToNetwork ( new android.net.wifi.WifiConfiguration ( ) ) ) ; org.mockito.Mockito.verify ( mISupplicantStaIfaceMock , org.mockito.Mockito.times ( 2 ) ) . removeNetwork ( org.mockito.Matchers.anyInt ( ) ) ; }
Source:
public void sendMessage ( int peerId , int messageId , @ android.annotation.Nullable byte [ ] message , int retryCount ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.nan.WifiNanDiscoveryBaseSession.TAG , "sendMessage: 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.WifiNanDiscoveryBaseSession.TAG , "sendMessage: called post GC on WifiNanManager" ) ; return ; } mgr.sendMessage ( mClientId , mSessionId , peerId , message , messageId , retryCount ) ; } }

Target:
public void sendMessage ( java.lang.Object peerHandle , int messageId , @ android.annotation.Nullable byte [ ] message , int retryCount ) { if ( mTerminated ) { android.util.Log.w ( android.net.wifi.nan.WifiNanDiscoveryBaseSession.TAG , "sendMessage: 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.WifiNanDiscoveryBaseSession.TAG , "sendMessage: called post GC on WifiNanManager" ) ; return ; } mgr.sendMessage ( mClientId , mSessionId , peerHandle , message , messageId , retryCount ) ; } }
Source:
public void init ( org.eclipse.ui.IWorkbench workbench , org.eclipse.jface.viewers.IStructuredSelection selection ) { super . init ( workbench , selection ) ; setWindowTitle ( "New Activity" ) ; mValues = new com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectWizardState ( ) ; mActivityPage = new com.android.ide.eclipse.adt.internal.wizards.templates.ActivityPage ( mValues ) ; mActivityValues = mValues.activityValues ; java.util.List < org.eclipse.core.resources.IProject > projects = com.android.ide.eclipse.adt.AdtUtils.getSelectedProjects ( selection ) ; if ( ( projects.size ( ) ) == 1 ) { mActivityValues.project = projects.get ( 0 ) ; } }

Target:
public void init ( org.eclipse.ui.IWorkbench workbench , org.eclipse.jface.viewers.IStructuredSelection selection ) { super . init ( workbench , selection ) ; setWindowTitle ( ( mOnlyActivities ? "New Activity" : "New Android Object" ) ) ; mValues = new com.android.ide.eclipse.adt.internal.wizards.templates.NewProjectWizardState ( ) ; mActivityPage = new com.android.ide.eclipse.adt.internal.wizards.templates.ActivityPage ( mValues , mOnlyActivities , false ) ; mActivityValues = mValues.activityValues ; java.util.List < org.eclipse.core.resources.IProject > projects = com.android.ide.eclipse.adt.AdtUtils.getSelectedProjects ( selection ) ; if ( ( projects.size ( ) ) == 1 ) { mActivityValues.project = projects.get ( 0 ) ; } }
Source:
public void addIfAbsent ( java.lang.CharSequence variant , java.lang.String template ) { int idx = com.ibm.icu.text.PluralRules.StandardPluralCategories.getIndex ( variant ) ; if ( ( templates [ idx ] ) != null ) { return ; } templates [ idx ] = com.ibm.icu.impl.SimplePatternFormatter.compileMinMaxPlaceholders ( template , 0 , 1 ) ; }

Target:
public void addIfAbsent ( java.lang.CharSequence variant , java.lang.String template ) { int idx = com.ibm.icu.impl.StandardPlural.indexFromString ( variant ) ; if ( ( templates [ idx ] ) != null ) { return ; } templates [ idx ] = com.ibm.icu.impl.SimplePatternFormatter.compileMinMaxPlaceholders ( template , 0 , 1 ) ; }
Source:
public boolean onKeyDown ( final int keyCode , final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onKeyDown ( keyCode , event ) ; } } ) ; return ret ; } com.android.webview.chromium.UnimplementedWebViewApi.invoke ( ) ; return false ; }

Target:
public boolean onKeyUp ( final int keyCode , final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onKeyUp ( keyCode , event ) ; } } ) ; return ret ; } return mAwContents.onKeyUp ( keyCode , event ) ; }
Source:
public com.google.common.collect.ImmutableMultimap < java.lang.Integer , com.android.manifmerger.Actions.Record > getResultingSourceMapping ( com.android.manifmerger.XmlDocument xmlDocument ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.manifmerger.XmlLoader.SourceLocation inMemory = XmlLoader.UNKNOWN ; com.android.manifmerger.XmlDocument loadedWithLineNumbers = com.android.manifmerger.XmlLoader.load ( xmlDocument.getSelectors ( ) , inMemory , xmlDocument.prettyPrint ( ) ) ; com.google.common.collect.ImmutableMultimap.Builder < java.lang.Integer , com.android.manifmerger.Actions.Record > mappingBuilder = com.google.common.collect.ImmutableMultimap.builder ( ) ; for ( com.android.manifmerger.XmlElement xmlElement : loadedWithLineNumbers.getRootNode ( ) . getMergeableElements ( ) ) { parse ( xmlElement , mappingBuilder ) ; } return mappingBuilder.build ( ) ; }

Target:
public com.google.common.collect.ImmutableMultimap < java.lang.Integer , com.android.manifmerger.Actions.Record > getResultingSourceMapping ( com.android.manifmerger.XmlDocument xmlDocument ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.manifmerger.XmlLoader.SourceLocation inMemory = XmlLoader.UNKNOWN ; com.android.manifmerger.XmlDocument loadedWithLineNumbers = com.android.manifmerger.XmlLoader.load ( xmlDocument.getSelectors ( ) , xmlDocument.getSystemPropertyResolver ( ) , inMemory , xmlDocument.prettyPrint ( ) ) ; com.google.common.collect.ImmutableMultimap.Builder < java.lang.Integer , com.android.manifmerger.Actions.Record > mappingBuilder = com.google.common.collect.ImmutableMultimap.builder ( ) ; for ( com.android.manifmerger.XmlElement xmlElement : loadedWithLineNumbers.getRootNode ( ) . getMergeableElements ( ) ) { parse ( xmlElement , mappingBuilder ) ; } return mappingBuilder.build ( ) ; }
Source:
private static void checkNumber ( java.lang.String s ) throws java.lang.Exception { if ( s == null ) { java.lang.System.out.println ( "Got null string" ) ; return ; } long n = java.lang.Long.valueOf ( s ) ; if ( n < 0 ) { java.lang.System.out.println ( ( "Got negative number " + n ) ) ; } }

Target:
private static void checkNumber ( java.lang.String s ) throws java.lang.Exception { if ( s == null ) { java.lang.System.out.println ( "Got null string" ) ; return ; } long n = java.lang.Long.parseLong ( s ) ; if ( n < 0 ) { java.lang.System.out.println ( ( "Got negative number " + n ) ) ; } }
Source:
public void tearDown ( com.android.tradefed.invoker.IInvocationContext context , java.lang.Throwable e ) throws com.android.tradefed.device.DeviceNotAvailableException { if ( ( mVenvDir ) != null ) { try { com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.recursiveDelete ( mVenvDir.toPath ( ) ) ; com.android.tradefed.log.LogUtil.CLog.i ( "Deleted the virtual env's temp working dir, %s." , mVenvDir ) ; } catch ( java.io.IOException exception ) { com.android.tradefed.log.LogUtil.CLog.e ( "Failed to delete %s: %s" , mVenvDir , exception ) ; } mVenvDir = null ; } }

Target:
public void tearDown ( com.android.tradefed.invoker.IInvocationContext context , java.lang.Throwable e ) throws com.android.tradefed.device.DeviceNotAvailableException { if ( ( ( mVenvDir ) != null ) && ( mIsDirCreator ) ) { try { com.android.tradefed.targetprep.VtsPythonVirtualenvPreparer.recursiveDelete ( mVenvDir.toPath ( ) ) ; com.android.tradefed.log.LogUtil.CLog.i ( "Deleted the virtual env's temp working dir, %s." , mVenvDir ) ; } catch ( java.io.IOException exception ) { com.android.tradefed.log.LogUtil.CLog.e ( "Failed to delete %s: %s" , mVenvDir , exception ) ; } mVenvDir = null ; } }
Source:
private float calcFit ( float v ) { float ret = 0 ; float t = v ; for ( int i = 0 ; i < ( com.android.systemui.statusbar.phone.SignalDrawable.FIT.length ) ; i ++ ) { ret += ( com.android.systemui.statusbar.phone.SignalDrawable.FIT [ i ] ) * t ; t *= v ; } return ret ; }

Target:
private float calcFit ( float v ) { float ret = 0 ; float t = v ; for ( int i = 0 ; i < ( com.android.settingslib.graph.SignalDrawable.FIT.length ) ; i ++ ) { ret += ( com.android.settingslib.graph.SignalDrawable.FIT [ i ] ) * t ; t *= v ; } return ret ; }
Source:
public void invokeZoomPicker ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { invokeZoomPicker ( ) ; } } ) ; return ; } mAwContents.invokeZoomPicker ( ) ; }

Target:
public void requestFocusNodeHref ( final android.os.Message hrefMsg ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { requestFocusNodeHref ( hrefMsg ) ; } } ) ; return ; } mAwContents.requestFocusNodeHref ( hrefMsg ) ; }
Source:
public void removeUpdatesPI ( android.app.PendingIntent intent , java.lang.String packageName ) { try { synchronized ( mLock ) { removeUpdatesLocked ( getReceiver ( intent , packageName ) ) ; } } catch ( java.lang.SecurityException se ) { throw se ; } catch ( java.lang.IllegalArgumentException iae ) { throw iae ; } catch ( java.lang.Exception e ) { android.util.Slog.e ( com.android.server.LocationManagerService.TAG , "removeUpdates got exception:" , e ) ; } }

Target:
private boolean doesPackageHaveUid ( int uid , java.lang.String packageName ) { if ( packageName == null ) { return false ; } try { android.content.pm.ApplicationInfo appInfo = mPackageManager.getApplicationInfo ( packageName , 0 ) ; if ( ( appInfo.uid ) != uid ) { return false ; } } catch ( android.content.pm.PackageManager.NameNotFoundException e ) { return false ; } return true ; }
Source:
private ResultDataProto.Result retrieveResultData ( ) throws com.android.tradefed.device.DeviceNotAvailableException { java.io.File resultFile = getDevice ( ) . pullFileFromExternal ( ResultData.RESULT_FILE_LOCATION ) ; if ( resultFile != null ) { try ( java.io.InputStream inputStream = new java.io.FileInputStream ( resultFile ) ) { com.android.graphics.benchmark.proto.ResultDataProto.Result data = ResultDataProto.Result.parseFrom ( inputStream ) ; return data ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } } return null ; }

Target:
private ResultDataProto.Result retrieveResultData ( ) throws com.android.tradefed.device.DeviceNotAvailableException { java.io.File resultFile = getDevice ( ) . pullFileFromExternal ( ResultData.RESULT_FILE_LOCATION ) ; if ( resultFile != null ) { try ( java.io.InputStream inputStream = new java.io.FileInputStream ( resultFile ) ) { com.android.game.qualification.proto.ResultDataProto.Result data = ResultDataProto.Result.parseFrom ( inputStream ) ; return data ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( e ) ; } } return null ; }
Source:
public void onCharacteristicReadRequest ( android.bluetooth.BluetoothDevice device , int requestId , int offset , android.bluetooth.BluetoothGattCharacteristic characteristic ) { if ( ( mGattServer ) == null ) { if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "GattServer is null, return" ) ; return ; } if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "onCharacteristicReadRequest()" ) ; notifyCharacteristicReadRequest ( ) ; mGattServer.sendResponse ( device , requestId , BluetoothGatt.GATT_SUCCESS , 0 , characteristic.getValue ( ) ) ; }

Target:
public void onDestroy ( ) { super . onDestroy ( ) ; cancelNotificationTaskOfSecureTestStartFailure ( ) ; stopAdvertise ( ) ; if ( ( mGattServer ) == null ) { return ; } if ( ( mDevice ) != null ) { mGattServer.cancelConnection ( mDevice ) ; } mGattServer.clearServices ( ) ; mGattServer.close ( ) ; }
Source:
java.lang.String [ ] load ( android.icu.impl.ICUResourceBundle zoneStrings , java.lang.String key ) { if ( ( ( zoneStrings == null ) || ( key == null ) ) || ( ( key.length ( ) ) == 0 ) ) { return null ; } try { zoneStrings.getAllTableItemsWithFallback ( key , this ) ; } catch ( java.util.MissingResourceException e ) { return null ; } return getNames ( ) ; }

Target:
void loadTimeZone ( android.icu.impl.ICUResourceBundle zoneStrings , java.lang.String tzID ) { java.lang.String key = tzID.replace ( '/' , ':' ) ; loadNames ( zoneStrings , key ) ; }
Source:
public com.google.common.collect.ImmutableList < java.lang.String > digits ( ) { return com.google.common.collect.ImmutableList.of ( 0 , 2 ) . stream ( ) . map ( ( i ) -> i == 0 ? com.google.devtools.build.android.desugar.testdata.java8.ConcreteDefaultInterfaceWithLambda.ONE : java.lang.String.valueOf ( i ) ) . collect ( com.google.common.collect.ImmutableList.toImmutableList ( com.google.common.collect.ImmutableList ) ) ; }

Target:
public java.util.List < java.lang.String > digits ( ) { return com.google.common.collect.ImmutableList.of ( 0 , 2 ) . stream ( ) . map ( ( i ) -> i == 0 ? com.google.devtools.build.android.desugar.testdata.java8.ConcreteDefaultInterfaceWithLambda.ONE : java.lang.String.valueOf ( i ) ) . collect ( java.util.stream.Collectors.toList ( ) ) ; }
Source:
public void writeContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0003.io.JayceInternalWriterImpl out ) throws java.io.IOException { out.writeInt ( modifiers ) ; out.writeId ( signature ) ; out.writeIds ( superInterfaces ) ; out.writeId ( enclosingType ) ; out.writeIds ( inners ) ; out.writeNodes ( fields ) ; out.writeNodes ( methods ) ; out.writeNodes ( annotations ) ; out.writeNodes ( markers ) ; }

Target:
public void writeContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0003.io.JayceInternalWriterImpl out ) throws java.io.IOException { out.writeInt ( modifiers ) ; out.writeId ( signature ) ; out.writeIds ( superInterfaces ) ; out.writeId ( enclosingType ) ; out.writeIds ( inners ) ; out.writeNodes ( getFields ( ) ) ; out.writeNodes ( getMethods ( ) ) ; out.writeNodes ( annotations ) ; out.writeNodes ( markers ) ; }
Source:
public void timeReadNetworkStatsDetailNative ( int reps ) { for ( int i = 0 ; i < reps ; i ++ ) { final android.net.NetworkStats stats = new android.net.NetworkStats ( android.os.SystemClock.elapsedRealtime ( ) , 0 ) ; com.android.internal.net.NetworkStatsFactory.nativeReadNetworkStatsDetail ( stats , mStats.getAbsolutePath ( ) , NetworkStats.UID_ALL ) ; } }

Target:
public void timeReadNetworkStatsDetailNative ( int reps ) { for ( int i = 0 ; i < reps ; i ++ ) { final android.net.NetworkStats stats = new android.net.NetworkStats ( android.os.SystemClock.elapsedRealtime ( ) , 0 ) ; com.android.internal.net.NetworkStatsFactory.nativeReadNetworkStatsDetail ( stats , mStats.getAbsolutePath ( ) , NetworkStats.UID_ALL , new java.lang.String [ 0 ] , 999 ) ; } }
Source:
public void TestSentMonkey ( ) { int loopCount = 500 ; int seed = 1 ; if ( ( params.inclusion ) >= 9 ) { loopCount = 3000 ; } logln ( "Sentence Break Monkey Test" ) ; android.icu.dev.test.rbbi.RBBITestMonkey.RBBISentenceMonkey m = new android.icu.dev.test.rbbi.RBBITestMonkey.RBBISentenceMonkey ( ) ; android.icu.text.BreakIterator bi = android.icu.text.BreakIterator.getSentenceInstance ( java.util.Locale.US ) ; if ( ( params ) == null ) { loopCount = 30 ; } RunMonkey ( bi , m , "sent" , seed , loopCount ) ; }

Target:
public void TestSentMonkey ( ) { int loopCount = 500 ; int seed = 1 ; if ( ( android.icu.dev.test.TestFmwk.getExhaustiveness ( ) ) >= 9 ) { loopCount = 3000 ; } logln ( "Sentence Break Monkey Test" ) ; android.icu.dev.test.rbbi.RBBITestMonkey.RBBISentenceMonkey m = new android.icu.dev.test.rbbi.RBBITestMonkey.RBBISentenceMonkey ( ) ; android.icu.text.BreakIterator bi = android.icu.text.BreakIterator.getSentenceInstance ( java.util.Locale.US ) ; RunMonkey ( bi , m , "sent" , seed , loopCount ) ; }
Source:
public java.lang.reflect.Type getGenericSuperclass ( ) { java.lang.reflect.Type superClass = getSuperclass ( ) ; if ( superClass == null ) { return null ; } java.lang.String signature = getSignatureAttribute ( ) ; if ( signature != null ) { libcore.reflect.GenericSignatureParser parser = new libcore.reflect.GenericSignatureParser ( getClassLoader ( ) ) ; parser.parseForClass ( this , getSignatureAttribute ( ) ) ; superClass = parser.superclassType ; } return libcore.reflect.Types.getType ( superClass ) ; }

Target:
public java.lang.reflect.Type getGenericSuperclass ( ) { java.lang.reflect.Type genericSuperclass = getSuperclass ( ) ; if ( genericSuperclass == null ) { return null ; } java.lang.String annotationSignature = getSignatureAttribute ( ) ; if ( annotationSignature != null ) { libcore.reflect.GenericSignatureParser parser = new libcore.reflect.GenericSignatureParser ( getClassLoader ( ) ) ; parser.parseForClass ( this , annotationSignature ) ; genericSuperclass = parser.superclassType ; } return libcore.reflect.Types.getType ( genericSuperclass ) ; }
Source:
public android.net.NetworkStats addValues ( java.lang.String iface , int uid , int set , int tag , int metered , int roaming , long rxBytes , long rxPackets , long txBytes , long txPackets , long operations ) { return addValues ( new android.net.NetworkStats.Entry ( iface , uid , set , tag , metered , roaming , rxBytes , rxPackets , txBytes , txPackets , operations ) ) ; }

Target:
public android.net.NetworkStats addValues ( java.lang.String iface , int uid , int set , int tag , int metered , int roaming , int defaultNetwork , long rxBytes , long rxPackets , long txBytes , long txPackets , long operations ) { return addValues ( new android.net.NetworkStats.Entry ( iface , uid , set , tag , metered , roaming , defaultNetwork , rxBytes , rxPackets , txBytes , txPackets , operations ) ) ; }
Source:
public void add ( java.lang.Runnable runnable , java.util.concurrent.Executor executor ) { com.google.common.base.Preconditions.checkNotNull ( runnable , "Runnable was null." ) ; com.google.common.base.Preconditions.checkNotNull ( executor , "Executor was null." ) ; boolean executeImmediate = false ; synchronized ( runnables ) { if ( ! ( executed ) ) { runnables.add ( new com.google.common.util.concurrent.ExecutionList.RunnableExecutorPair ( runnable , executor ) ) ; } else { executeImmediate = true ; } } if ( executeImmediate ) { new com.google.common.util.concurrent.ExecutionList.RunnableExecutorPair ( runnable , executor ) . execute ( ) ; } }

Target:
public void add ( java.lang.Runnable runnable , java.util.concurrent.Executor executor ) { com.google.common.base.Preconditions.checkNotNull ( runnable , "Runnable was null." ) ; com.google.common.base.Preconditions.checkNotNull ( executor , "Executor was null." ) ; synchronized ( this ) { if ( ! ( executed ) ) { runnables = new com.google.common.util.concurrent.ExecutionList.RunnableExecutorPair ( runnable , executor , runnables ) ; return ; } } com.google.common.util.concurrent.ExecutionList.executeListener ( runnable , executor ) ; }
Source:
private boolean isDeviceOnline ( android.net.Uri uri ) { try ( java.net.Socket socket = new java.net.Socket ( ) ) { java.net.InetSocketAddress a = new java.net.InetSocketAddress ( uri.getHost ( ) , uri.getPort ( ) ) ; socket.connect ( a , ( ( int ) ( mTimeout ) ) ) ; return true ; } catch ( java.io.IOException e ) { return false ; } }

Target:
private boolean isDeviceOnline ( android.net.Uri uri ) { try ( java.net.Socket socket = new java.net.Socket ( ) ) { mSocket = socket ; java.net.InetSocketAddress a = new java.net.InetSocketAddress ( uri.getHost ( ) , uri.getPort ( ) ) ; socket.connect ( a , ( ( int ) ( mTimeout ) ) ) ; return true ; } catch ( java.io.IOException e ) { return false ; } finally { mSocket = null ; } }
Source:
public static java.lang.String getMd5Path ( java.lang.String bitstreamPath ) { java.lang.String base = bitstreamPath.split ( "\\." ) [ 0 ] ; java.lang.String codec = bitstreamPath.split ( "/" , 2 ) [ 0 ] ; java.lang.String md5Path = java.lang.String.format ( "%s_%s_md5" , base , codec ) ; return md5Path ; }

Target:
public static java.lang.String getMd5Path ( java.lang.String bitstreamPath ) { java.lang.String base = bitstreamPath.replaceAll ( ".mp4$|.webm$" , "" ) ; java.lang.String codec = bitstreamPath.split ( "/" , 2 ) [ 0 ] ; java.lang.String md5Path = java.lang.String.format ( "%s_%s_md5" , base , codec ) ; return md5Path ; }
Source:
private void updateChangePin ( ) { if ( ! ( voicemailClient.isVoicemailEnabled ( getContext ( ) , phoneAccountHandle ) ) ) { voicemailChangePinPreference.setSummary ( R.string.voicemail_change_pin_preference_summary_disable ) ; voicemailChangePinPreference.setEnabled ( false ) ; } else if ( ! ( voicemailClient.isActivated ( getContext ( ) , phoneAccountHandle ) ) ) { voicemailChangePinPreference.setSummary ( R.string.voicemail_change_pin_preference_summary_not_activated ) ; voicemailChangePinPreference.setEnabled ( false ) ; } else { voicemailChangePinPreference.setSummary ( null ) ; voicemailChangePinPreference.setEnabled ( true ) ; } }

Target:
private void updateChangePinPreference ( ) { if ( ! ( voicemailClient.isVoicemailEnabled ( getContext ( ) , phoneAccountHandle ) ) ) { voicemailChangePinPreference.setSummary ( R.string.voicemail_change_pin_preference_summary_disable ) ; voicemailChangePinPreference.setEnabled ( false ) ; } else if ( ! ( voicemailClient.isActivated ( getContext ( ) , phoneAccountHandle ) ) ) { voicemailChangePinPreference.setSummary ( R.string.voicemail_change_pin_preference_summary_not_activated ) ; voicemailChangePinPreference.setEnabled ( false ) ; } else { voicemailChangePinPreference.setSummary ( null ) ; voicemailChangePinPreference.setEnabled ( true ) ; } }
Source:
public void testValidateNoPackagesFail ( ) { try { intento.internalIntended ( android.support.test.espresso.intent.matcher.IntentMatchers.toPackage ( "com.google.some.package" ) , android.support.test.espresso.intent.Intents.times ( 1 ) , new java.util.ArrayList < android.support.test.espresso.intent.VerifiableIntent > ( ) ) ; throw new java.lang.IllegalStateException ( "Expected to fail on previous line." ) ; } catch ( junit.framework.AssertionFailedError e ) { } }

Target:
public void validateNoPackagesFail ( ) { expectedException.expect ( junit.framework.AssertionFailedError.class ) ; intento.internalIntended ( android.support.test.espresso.intent.matcher.IntentMatchers.toPackage ( "com.google.some.package" ) , android.support.test.espresso.intent.Intents.times ( 1 ) , new java.util.ArrayList < android.support.test.espresso.intent.VerifiableIntent > ( ) ) ; }
Source:
public void testDebugContextK ( ) { setupDebugContext ( ) ; Soob.forEach_write_k ( AUnused ) ; for ( int i = 0 ; i < 100 ; i ++ ) { Soob.invoke_write_i ( 9 , 0 ) ; mRS.finish ( ) ; } Soob.destroy ( ) ; assertTrue ( mRanErrorHandler ) ; checkForErrors ( ) ; }

Target:
public void testDebugContextK ( ) { setupDebugContext ( ) ; Soob.forEach_write_k ( AUnused ) ; for ( int i = 0 ; i < 100 ; i ++ ) { Soob.invoke_write_i ( 9 , 0 ) ; mRS.finish ( ) ; } Soob.invoke_send_msg ( ) ; waitForMessage ( ) ; Soob.destroy ( ) ; assertTrue ( mRanErrorHandler ) ; checkForErrors ( ) ; }
Source:
private void addImsServiceFeature ( android.util.Pair < java.lang.Integer , java.lang.Integer > featurePair ) throws android.os.RemoteException { if ( ( ( mIImsServiceController ) == null ) || ( ( mCallbacks ) == null ) ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , "addImsServiceFeature called with null values." ) ; return ; } com.android.internal.telephony.ims.ImsServiceController.ImsFeatureStatusCallback c = new com.android.internal.telephony.ims.ImsServiceController.ImsFeatureStatusCallback ( featurePair.first , featurePair.second ) ; mFeatureStatusCallbacks.add ( c ) ; mIImsServiceController.createImsFeature ( featurePair.first , featurePair.second , c.getCallback ( ) ) ; mCallbacks.imsServiceFeatureCreated ( featurePair.first , featurePair.second , this ) ; sendImsFeatureCreatedCallback ( featurePair.first , featurePair.second ) ; }

Target:
private android.os.IInterface createImsFeature ( int slotId , int featureType , com.android.ims.internal.IImsFeatureStatusCallback c ) throws android.os.RemoteException { switch ( featureType ) { case android.telephony.ims.feature.ImsFeature.EMERGENCY_MMTEL : { return mIImsServiceController.createEmergencyMMTelFeature ( slotId , c ) ; } case android.telephony.ims.feature.ImsFeature.MMTEL : { return mIImsServiceController.createMMTelFeature ( slotId , c ) ; } case android.telephony.ims.feature.ImsFeature.RCS : { return mIImsServiceController.createRcsFeature ( slotId , c ) ; } default : return null ; } }
Source:
public java.nio.ByteBuffer putShort ( int index , short value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.SHORT ) ; this . block.pokeShort ( ( ( offset ) + index ) , value , order ) ; return this ; }

Target:
public java.nio.ByteBuffer putShort ( int index , short value ) { checkIsAccessible ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.SHORT ) ; this . block.pokeShort ( ( ( offset ) + index ) , value , order ) ; return this ; }
Source:
public com.google.common.collect.Multiset.Entry < K > get ( int index ) { java.util.Map.Entry < K , ? extends java.util.Collection < V > > entry = mapEntries.get ( index ) ; return com.google.common.collect.Multisets.immutableEntry ( entry.getKey ( ) , entry.getValue ( ) . size ( ) ) ; }

Target:
com.google.common.collect.Multiset.Entry < K > getEntry ( int index ) { java.util.Map.Entry < K , ? extends java.util.Collection < V > > entry = map.entrySet ( ) . asList ( ) . get ( index ) ; return com.google.common.collect.Multisets.immutableEntry ( entry.getKey ( ) , entry.getValue ( ) . size ( ) ) ; }
Source:
public com.android.jack.load.PackageLoader getLoaderForSubPackage ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage loading , @ javax.annotation.Nonnull java.lang.String simpleName ) throws com.android.jack.ir.ast.JPackageLookupException { com.android.sched.vfs.VPath subPackagePath = getPathFromPackage ( simpleName ) ; try { inputJackLibrary.getDir ( FileType.JAYCE , subPackagePath ) ; } catch ( com.android.jack.library.FileTypeDoesNotExistException e ) { throw new com.android.jack.ir.ast.JPackageLookupException ( simpleName , loading ) ; } return new com.android.jack.jayce.JaycePackageLoader ( inputJackLibrary , subPackagePath , lookup , defaultLoadLevel ) ; }

Target:
public com.android.jack.load.PackageLoader getLoaderForSubPackage ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage loading , @ javax.annotation.Nonnull java.lang.String simpleName ) throws com.android.jack.ir.ast.JPackageLookupException { for ( com.android.sched.vfs.InputVElement sub : packageVDir.list ( ) ) { if ( ( sub.isVDir ( ) ) && ( sub.getName ( ) . equals ( simpleName ) ) ) { return new com.android.jack.jayce.JaycePackageLoader ( inputJackLibrary , ( ( com.android.sched.vfs.InputVDir ) ( sub ) ) , lookup , defaultLoadLevel ) ; } } throw new com.android.jack.ir.ast.JPackageLookupException ( simpleName , loading ) ; }
Source:
private void createSettingsGradle ( @ com.android.annotations.NonNull java.io.File file ) throws java.io.IOException { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( com.android.tools.gradle.eclipse.ImportModule module : mModules ) { sb.append ( "include '" ) ; sb.append ( module.getModuleReference ( ) ) ; sb.append ( "'" ) ; sb.append ( com.android.tools.gradle.eclipse.GradleImport.NL ) ; } com.google.common.io.Files.write ( sb.toString ( ) , file , com.google.common.base.Charsets.UTF_8 ) ; }

Target:
private void createSettingsGradle ( @ com.android.annotations.NonNull java.io.File file ) throws java.io.IOException { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; for ( com.android.tools.gradle.eclipse.ImportModule module : mRootModules ) { sb.append ( "include '" ) ; sb.append ( module.getModuleReference ( ) ) ; sb.append ( "'" ) ; sb.append ( com.android.tools.gradle.eclipse.GradleImport.NL ) ; } com.google.common.io.Files.write ( sb.toString ( ) , file , com.google.common.base.Charsets.UTF_8 ) ; }
Source:
static android.view.ActionProvider getActionProvider ( @ android.support.annotation.NonNull android.content.Context context ) { return new com.android.dialer.simulator.impl.SimulatorSubMenu ( context ) . addItem ( "Incoming call" , ( ) -> new com.android.dialer.simulator.impl.SimulatorVoiceCall ( context ) . addNewIncomingCall ( false ) ) . addItem ( "Outgoing call" , ( ) -> new com.android.dialer.simulator.impl.SimulatorVoiceCall ( context ) . addNewOutgoingCall ( ) ) . addItem ( "Spam call" , ( ) -> new com.android.dialer.simulator.impl.SimulatorVoiceCall ( context ) . addNewIncomingCall ( true ) ) ; }

Target:
static android.view.ActionProvider getActionProvider ( @ android.support.annotation.NonNull android.content.Context context ) { return new com.android.dialer.simulator.impl.SimulatorSubMenu ( context ) . addItem ( "Incoming call" , ( ) -> new com.android.dialer.simulator.impl.SimulatorVoiceCall ( context ) . addNewIncomingCall ( false ) ) . addItem ( "Outgoing call" , ( ) -> new com.android.dialer.simulator.impl.SimulatorVoiceCall ( context ) . addNewOutgoingCall ( ) ) . addItem ( "Spam call" , ( ) -> new com.android.dialer.simulator.impl.SimulatorVoiceCall ( context ) . addNewIncomingCall ( true ) ) . addItem ( "GSM conference" , ( ) -> new com.android.dialer.simulator.impl.SimulatorConferenceCreator ( context , Simulator.CONFERENCE_TYPE_GSM ) . start ( 5 ) ) ; }
Source:
public void reject ( boolean rejectWithMessage , java.lang.String textMessage , java.lang.String callingPackage ) { if ( isRinging ( "reject" ) ) { mVideoStateHistory |= mVideoState ; if ( ( mConnectionService ) != null ) { mConnectionService.reject ( this , rejectWithMessage , textMessage ) ; } else { android.telecom.Log.e ( this , new java.lang.NullPointerException ( ) , "reject call failed due to null CS callId=%s" , getId ( ) ) ; } android.telecom.Log.addEvent ( this , LogUtils.Events.REQUEST_REJECT , callingPackage ) ; } }

Target:
public void reject ( boolean rejectWithMessage , java.lang.String textMessage , java.lang.String reason ) { if ( isRinging ( "reject" ) ) { mVideoStateHistory |= mVideoState ; if ( ( mConnectionService ) != null ) { mConnectionService.reject ( this , rejectWithMessage , textMessage ) ; } else { android.telecom.Log.e ( this , new java.lang.NullPointerException ( ) , "reject call failed due to null CS callId=%s" , getId ( ) ) ; } android.telecom.Log.addEvent ( this , LogUtils.Events.REQUEST_REJECT , reason ) ; } }
Source:
public boolean refresh ( boolean reload ) { if ( reload ) { try { mAvdManager.reloadAvds ( com.android.utils.NullLogger.getLogger ( ) ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { return false ; } } com.android.sdklib.internal.avd.AvdInfo selected = getSelected ( ) ; fillTable ( mTable ) ; setSelection ( selected ) ; return true ; }

Target:
public boolean refresh ( boolean reload ) { if ( ! ( mInternalRefresh ) ) { try { mInternalRefresh = true ; if ( reload ) { try { mAvdManager.reloadAvds ( com.android.utils.NullLogger.getLogger ( ) ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { return false ; } } com.android.sdklib.internal.avd.AvdInfo selected = getSelected ( ) ; fillTable ( mTable ) ; setSelection ( selected ) ; return true ; } finally { mInternalRefresh = false ; } } return false ; }
Source:
public java.io.PrintStream getPrintStream ( ) { if ( ( printer ) != null ) { return new com.android.sched.util.stream.UncloseablePrintStream ( printer ) ; } else { clearRemover ( ) ; try { return new java.io.PrintStream ( file ) ; } catch ( java.io.FileNotFoundException e ) { throw new com.android.sched.util.ConcurrentIOException ( e ) ; } } }

Target:
public java.io.PrintStream getPrintStream ( ) { if ( ( printer ) == null ) { printer = new java.io.PrintStream ( getOutputStream ( ) ) ; } return printer ; }