auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void init ( org.eclipse.ui.IWorkbench workbench , org.eclipse.jface.viewers.IStructuredSelection selection ) { setHelpAvailable ( false ) ; setWindowTitle ( "New Android XML File" ) ; setImageDescriptor ( ) ; mValues = new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileWizard.Values ( ) ; mMainPage = createMainPage ( mValues ) ; mMainPage.setTitle ( "New Android XML File" ) ; mMainPage.setDescription ( "Creates a new Android XML file." ) ; mMainPage.setInitialSelection ( selection ) ; mConfigPage = new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ChooseConfigurationPage ( mValues ) ; }

Target:
public void init ( org.eclipse.ui.IWorkbench workbench , org.eclipse.jface.viewers.IStructuredSelection selection ) { setHelpAvailable ( false ) ; setWindowTitle ( "New Android XML File" ) ; setImageDescriptor ( ) ; mValues = new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.NewXmlFileWizard.Values ( ) ; mMainPage = createMainPage ( mValues ) ; mMainPage.setTitle ( "New Android XML File" ) ; mMainPage.setDescription ( "Creates a new Android XML file." ) ; mMainPage.setInitialSelection ( selection ) ; mConfigPage = new com.android.ide.eclipse.adt.internal.wizards.newxmlfile.ChooseConfigurationPage ( mValues ) ; com.android.ide.eclipse.adt.AdtPlugin.getDefault ( ) . refreshSdk ( ) ; }
Source:
public void testHasSchemeSpecificPart ( ) { android.net.Uri schemeUri = android.net.Uri.parse ( "tel:123456789" ) ; org.hamcrest.Matcher < android.net.Uri > hasSchemeMatcher = android.support.test.espresso.intent.matcher.UriMatchers.hasSchemeSpecificPart ( org.hamcrest.CoreMatchers.equalTo ( "tel" ) , org.hamcrest.CoreMatchers.equalTo ( "123456789" ) ) ; assertTrue ( "HasScheme didn't match" , android.support.test.espresso.intent.matcher.UriMatchers.hasSchemeSpecificPart ( "tel" , "123456789" ) . matches ( schemeUri ) ) ; assertTrue ( "HasScheme didn't match" , hasSchemeMatcher.matches ( schemeUri ) ) ; }

Target:
public void hasSchemeSpecificPartTesting ( ) { android.net.Uri schemeUri = android.net.Uri.parse ( "tel:123456789" ) ; org.hamcrest.Matcher < android.net.Uri > hasSchemeMatcher = android.support.test.espresso.intent.matcher.UriMatchers.hasSchemeSpecificPart ( org.hamcrest.CoreMatchers.equalTo ( "tel" ) , org.hamcrest.CoreMatchers.equalTo ( "123456789" ) ) ; org.junit.Assert.assertTrue ( "HasScheme didn't match" , android.support.test.espresso.intent.matcher.UriMatchers.hasSchemeSpecificPart ( "tel" , "123456789" ) . matches ( schemeUri ) ) ; org.junit.Assert.assertTrue ( "HasScheme didn't match" , hasSchemeMatcher.matches ( schemeUri ) ) ; }
Source:
public int getBytesSize ( ) { return ( mType.getCount ( ) ) * ( mType.getElement ( ) . getBytesSize ( ) ) ; }

Target:
public int getBytesSize ( ) { if ( ( mType.mDimYuv ) != 0 ) { return ( ( int ) ( java.lang.Math.ceil ( ( ( ( mType.getCount ( ) ) * ( mType.getElement ( ) . getBytesSize ( ) ) ) * 1.5 ) ) ) ) ; } return ( mType.getCount ( ) ) * ( mType.getElement ( ) . getBytesSize ( ) ) ; }
Source:
public void invokeOemRilRequestRaw ( byte [ ] data , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_OEM_HOOK_RAW , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + "[" ) + ( com.android.internal.telephony.uicc.IccUtils.bytesToHexString ( data ) ) ) + "]" ) ) ; rr.mParcel.writeByteArray ( data ) ; send ( rr ) ; }

Target:
public void invokeOemRilRequestRaw ( byte [ ] data , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_OEM_HOOK_RAW , response , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + "[" ) + ( com.android.internal.telephony.uicc.IccUtils.bytesToHexString ( data ) ) ) + "]" ) ) ; rr.mParcel.writeByteArray ( data ) ; send ( rr ) ; }
Source:
protected void handleAddRequest ( android.net.NetworkRequest request , int score ) { if ( ( ( mExpectations ) != null ) && ( ! ( mExpectingAdditions ) ) ) { fail ( "Can't add requests while expecting requests to be removed" ) ; } super . handleAddRequest ( request , score ) ; if ( mExpectingAdditions ) { assertTrue ( "Added more requests than expected" , ( ( mExpectations.getCount ( ) ) > 0 ) ) ; mExpectations.countDown ( ) ; } }

Target:
protected void handleAddRequest ( android.net.NetworkRequest request , int score ) { if ( ( ( mExpectations ) != null ) && ( ! ( mExpectingAdditions ) ) ) { org.junit.Assert.fail ( "Can't add requests while expecting requests to be removed" ) ; } super . handleAddRequest ( request , score ) ; if ( mExpectingAdditions ) { org.junit.Assert.assertTrue ( "Added more requests than expected" , ( ( mExpectations.getCount ( ) ) > 0 ) ) ; mExpectations.countDown ( ) ; } }
Source:
public com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback callOnDropEnter ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.eclipse.adt.editors.layout.gscripts.IDragElement [ ] elements ) { com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { return rule.onDropEnter ( targetNode , elements ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDropEnter() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } return null ; }

Target:
public com.android.ide.common.api.DropFeedback callOnDropEnter ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.common.api.IDragElement [ ] elements ) { com.android.ide.common.api.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { return rule.onDropEnter ( targetNode , elements ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDropEnter() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } return null ; }
Source:
public void dump ( java.lang.StringBuilder sb ) { sb.append ( ( ( "Browsable Package Name: " + ( mPackageName ) ) + "\n" ) ) ; sb.append ( " Cached Media ID's: " ) ; for ( java.lang.String id : mCachedFolders.keySet ( ) ) { sb.append ( ( id + " " ) ) ; } sb.append ( "\n\n" ) ; }

Target:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( ( ( "Browsable Package Name: " + ( mPackageName ) ) + "\n" ) ) ; sb.append ( " Cached Media ID's: " ) ; for ( java.lang.String id : mCachedFolders.keySet ( ) ) { sb.append ( ( ( "\"" + id ) + "\", " ) ) ; } sb.append ( "\n" ) ; return sb.toString ( ) ; }
Source:
private boolean selectDevice ( @ com.android.annotations.Nullable com.android.ide.eclipse.adt.internal.sdk.LayoutDevice device ) { mDeviceCombo.setData ( device ) ; if ( device != null ) { mDeviceCombo.setText ( getDeviceLabel ( device , true ) ) ; } else { mDeviceCombo.setText ( "Device" ) ; } resizeToolBar ( ) ; return false ; }

Target:
private boolean selectDevice ( @ com.android.annotations.Nullable com.android.sdklib.devices.Device device ) { mDeviceCombo.setData ( device ) ; if ( device != null ) { mDeviceCombo.setText ( getDeviceLabel ( device , true ) ) ; } else { mDeviceCombo.setText ( "Device" ) ; } resizeToolBar ( ) ; return false ; }
Source:
public int valueOfBasicConstrains ( ) { org.apache.harmony.security.x509.Extension extension = getExtensionByOID ( "2.5.29.19" ) ; org.apache.harmony.security.x509.BasicConstraints bc ; if ( ( extension == null ) || ( ( bc = extension.getBasicConstraintsValue ( ) ) == null ) ) { return java.lang.Integer.MAX_VALUE ; } return bc.getPathLenConstraint ( ) ; }

Target:
public int valueOfBasicConstraints ( ) { org.apache.harmony.security.x509.Extension extension = getExtensionByOID ( "2.5.29.19" ) ; if ( extension == null ) { return - 1 ; } org.apache.harmony.security.x509.BasicConstraints bc = extension.getBasicConstraintsValue ( ) ; if ( ( bc == null ) || ( ! ( bc.getCa ( ) ) ) ) { return - 1 ; } return bc.getPathLenConstraint ( ) ; }
Source:
public void testRange2 ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences prefs = com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences.create ( ) ; prefs.removeEmptyLines = true ; checkFormat ( prefs , "res/layout-xlarge/layout.xml" , "<foo><bar><baz1></baz1><baz2></baz2></bar><bar2></bar2><bar3><baz12></baz12></bar3></foo>" , ( " <baz1>\n" + ( ( ( ( ( ( ( ( " </baz1>\n" + " <baz2>\n" ) + " </baz2>\n" ) + " </bar>\n" ) + " <bar2>\n" ) + " </bar2>\n" ) + " <bar3>\n" ) + " <baz12>\n" ) + " </baz12>\n" ) ) , "\n" , "baz1" , false , "baz12" ) ; }

Target:
public void testRange2 ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences prefs = com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences.create ( ) ; prefs.removeEmptyLines = true ; checkFormat ( prefs , "res/layout-xlarge/layout.xml" , "<foo><bar><baz1></baz1><baz2></baz2></bar><bar2></bar2><bar3><baz12></baz12></bar3></foo>" , ( " <baz1>\n" + ( ( ( ( ( ( ( ( " </baz1>\n" + " <baz2>\n" ) + " </baz2>\n" ) + " </bar>\n" ) + " <bar2>\n" ) + " </bar2>\n" ) + " <bar3>\n" ) + " <baz12>\n" ) + " </baz12>\n" ) ) , "\n" , "baz1" , false , "baz12" ) ; }
Source:
public void log ( java.util.logging.Level level , java.lang.String msg , java.lang.Object param1 ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; java.lang.Object [ ] params = new java.lang.Object [ ] { param1 } ; lr.setParameters ( params ) ; doLog ( lr ) ; }

Target:
public void log ( java.util.logging.Level level , java.lang.String msg , java.lang.Object [ ] params ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setParameters ( params ) ; doLog ( lr ) ; }
Source:
private void createContents ( ) { mAvdPage = new com.android.sdkuilib.internal.repository.ui.AvdManagerPage ( mShell , org.eclipse.swt.SWT.NONE , mUpdaterData , mDeviceManager ) ; mAvdPage.setLayoutData ( new org.eclipse.swt.layout.GridData ( org.eclipse.swt.SWT.FILL , org.eclipse.swt.SWT.FILL , true , true , 2 , 1 ) ) ; }

Target:
private void createContents ( ) { org.eclipse.swt.widgets.TabFolder tabFolder = new org.eclipse.swt.widgets.TabFolder ( mShell , org.eclipse.swt.SWT.NONE ) ; com.android.sdkuilib.ui.GridDataBuilder.create ( tabFolder ) . fill ( ) . grab ( ) . hSpan ( 2 ) ; org.eclipse.swt.widgets.TabItem avdTabItem = new org.eclipse.swt.widgets.TabItem ( tabFolder , org.eclipse.swt.SWT.NONE ) ; avdTabItem.setText ( "Android Virtual Devices" ) ; createAvdTab ( tabFolder , avdTabItem ) ; org.eclipse.swt.widgets.TabItem devTabItem = new org.eclipse.swt.widgets.TabItem ( tabFolder , org.eclipse.swt.SWT.NONE ) ; devTabItem.setText ( "Device Definitions" ) ; createDeviceTab ( tabFolder , devTabItem ) ; }
Source:
public static java.io.File createTempFolder ( ) { java.io.File folder = null ; try { folder = java.io.File.createTempFile ( "hyts_resources" , "" , null ) ; folder.delete ( ) ; folder.mkdirs ( ) ; } catch ( java.io.IOException e ) { e.printStackTrace ( ) ; } folder.deleteOnExit ( ) ; return folder ; }

Target:
public static java.io.File createTempFolder ( ) { java.io.File folder = null ; try { folder = java.io.File.createTempFile ( "hyts_resources" , "" , null ) ; folder.delete ( ) ; folder.mkdirs ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( ( "Unable to create temp folder: " + folder ) , e ) ; } folder.deleteOnExit ( ) ; return folder ; }
Source:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , byte [ ] data ) { validateIsInt8 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data ) ; }

Target:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , java.lang.Object array , android.support.v8.renderscript.Element.DataType dt , int arrayLen ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , array , ( arrayLen * ( dt.mSize ) ) , dt ) ; }
Source:
public java.lang.Iterable < java.lang.String > getLdFlags ( ) { if ( stl.equals ( "system" ) ) { return java.util.Collections.emptyList ( ) ; } java.util.List < java.lang.String > flags = com.google.common.collect.Lists.newArrayList ( ) ; flags.add ( getStlLib ( ) . toString ( ) ) ; return flags ; }

Target:
public java.lang.Iterable < java.lang.String > getLdFlags ( ) { if ( stl.equals ( "system" ) ) { return java.util.Collections.emptyList ( ) ; } java.util.List < java.lang.String > flags = com.google.common.collect.Lists.newArrayList ( ) ; flags.add ( getStlLib ( platform.getName ( ) ) . toString ( ) ) ; return flags ; }
Source:
private java.util.concurrent.Future < java.lang.Void > expectRulesChanged ( int uid , int policy ) throws java.lang.Exception { final com.android.server.NetworkPolicyManagerServiceTest.FutureAnswer future = new com.android.server.NetworkPolicyManagerServiceTest.FutureAnswer ( ) ; mPolicyListener.onUidRulesChanged ( org.easymock.EasyMock.eq ( uid ) , org.easymock.EasyMock.eq ( policy ) ) ; org.easymock.EasyMock.expectLastCall ( ) . andAnswer ( future ) ; return future ; }

Target:
private < T > T addLocalServiceMock ( java.lang.Class < T > clazz ) { final T mock = org.mockito.Mockito.mock ( clazz ) ; return addLocalServiceMock ( clazz , mock ) ; }
Source:
public void stop ( ) { if ( isStarted ( ) ) { android.util.Slog.i ( com.android.server.connectivity.Nat464Xlat.TAG , "Stopping clatd" ) ; try { mNMService.stopClatd ( mBaseIface ) ; } catch ( android.os.RemoteException | java.lang.IllegalStateException e ) { android.util.Slog.e ( com.android.server.connectivity.Nat464Xlat.TAG , ( "Error stopping clatd: " + e ) ) ; } } else { android.util.Slog.e ( com.android.server.connectivity.Nat464Xlat.TAG , "clatd: already stopped" ) ; } }

Target:
public void stop ( ) { if ( ! ( isStarted ( ) ) ) { android.util.Slog.e ( com.android.server.connectivity.Nat464Xlat.TAG , "stopClat: already stopped or not started" ) ; return ; } android.util.Slog.i ( com.android.server.connectivity.Nat464Xlat.TAG , ( "Stopping clatd on " + ( mBaseIface ) ) ) ; try { mNMService.stopClatd ( mBaseIface ) ; } catch ( android.os.RemoteException | java.lang.IllegalStateException e ) { android.util.Slog.e ( com.android.server.connectivity.Nat464Xlat.TAG , ( "Error stopping clatd on " + ( mBaseIface ) ) , e ) ; } }
Source:
public void validateUserCredentialWithoutPassword ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = new android.net.wifi.hotspot2.pps.Credential ( ) ; cred.realm = "realm" ; cred.userCredential = new android.net.wifi.hotspot2.pps.Credential.UserCredential ( ) ; cred.userCredential.username = "username" ; cred.userCredential.eapType = android.net.wifi.EAPConstants.EAP_TTLS ; cred.userCredential.nonEapInnerMethod = "MS-CHAP" ; cred.caCertificate = android.net.wifi.FakeKeys.CA_CERT0 ; org.junit.Assert.assertFalse ( cred.validate ( ) ) ; }

Target:
public void validateUserCredentialWithoutPassword ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = android.net.wifi.hotspot2.pps.CredentialTest.createCredentialWithUserCredential ( ) ; cred.getUserCredential ( ) . setPassword ( null ) ; org.junit.Assert.assertFalse ( cred.validate ( ) ) ; }
Source:
public void testFailed ( com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestFailure status , com.android.ddmlib.testrunner.TestIdentifier test , java.lang.String trace ) { java.lang.String statusString ; if ( status == ( TestFailure.ERROR ) ) { statusString = org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_ERROR ; } else { statusString = org.eclipse.jdt.internal.junit.runner.MessageIds.TEST_FAILED ; } org.eclipse.jdt.internal.junit.runner.TestReferenceFailure failure = new org.eclipse.jdt.internal.junit.runner.TestReferenceFailure ( new com.android.ide.eclipse.adt.internal.launch.junit.runtime.TestCaseReference ( mDeviceName , test ) , statusString , trace , null ) ; mNotifier.testFailed ( failure ) ; }

Target:
public void testIgnored ( com.android.ddmlib.testrunner.TestIdentifier test ) { }
Source:
private void doMerge ( com.android.manifmerger.ManifestMerger merger , java.io.File output , java.io.File input , java.util.List < java.io.File > subManifests , java.util.Map < java.lang.String , java.lang.String > injectionMap , java.lang.String packageOverride ) { if ( ! ( merger.process ( output , input , subManifests.toArray ( new java.io.File [ subManifests.size ( ) ] ) , injectionMap , packageOverride ) ) ) { throw new java.lang.RuntimeException ( ) ; } }

Target:
private void doMerge ( com.android.manifmerger.ManifestMerger merger , java.io.File output , java.io.File input , java.util.List < java.io.File > subManifests , java.util.Map < java.lang.String , java.lang.String > injectionMap , java.lang.String packageOverride ) { if ( ! ( merger.process ( output , input , subManifests.toArray ( new java.io.File [ subManifests.size ( ) ] ) , injectionMap , packageOverride ) ) ) { throw new java.lang.RuntimeException ( "Manifest merging failed. See console for more info." ) ; } }
Source:
public java.lang.String callGetDisplayName ( com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode element ) { com.android.ide.common.api.IViewRule rule = loadRule ( element ) ; if ( rule != null ) { try { return rule.getDisplayName ( ) ; } catch ( java.lang.Exception e ) { logError ( "%s.getDisplayName() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } return null ; }

Target:
public java.lang.String callGetDisplayName ( com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode element ) { com.android.ide.common.api.IViewRule rule = loadRule ( element ) ; if ( rule != null ) { try { return rule.getDisplayName ( ) ; } catch ( java.lang.Exception e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "%s.getDisplayName() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } return null ; }
Source:
private static com.google.common.collect.ImmutableSet < java.lang.Class < ? > > getRawTypes ( java.lang.reflect.Type [ ] types ) { com.google.common.collect.ImmutableSet.Builder < java.lang.Class < ? > > builder = com.google.common.collect.ImmutableSet.builder ( ) ; for ( java.lang.reflect.Type type : types ) { builder.addAll ( com.google.common.reflect.TypeToken.getRawTypes ( type ) ) ; } return builder.build ( ) ; }

Target:
void visitTypeVariable ( java.lang.reflect.TypeVariable < ? > t ) { visit ( t.getBounds ( ) ) ; }
Source:
public void testAesCbcHmacMd5Tcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacSha384Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA384 , getAuthKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 ) ; }
Source:
public boolean updateSubscribe ( short transactionId , android.net.wifi.aware.SubscribeConfig config ) { if ( mIsPublishSession ) { android.util.Log.e ( com.android.server.wifi.aware.WifiAwareDiscoverySessionState.TAG , "A PUBLISH session is being used to subscribe" ) ; try { mCallback.onSessionConfigFail ( WifiAwareNative.AWARE_STATUS_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.aware.WifiAwareDiscoverySessionState.TAG , ( "updateSubscribe: RemoteException=" + e ) ) ; } return false ; } return com.android.server.wifi.aware.WifiAwareNative.getInstance ( ) . subscribe ( transactionId , mPubSubId , config ) ; }

Target:
public boolean updateSubscribe ( short transactionId , android.net.wifi.aware.SubscribeConfig config ) { if ( mIsPublishSession ) { android.util.Log.e ( com.android.server.wifi.aware.WifiAwareDiscoverySessionState.TAG , "A PUBLISH session is being used to subscribe" ) ; try { mCallback.onSessionConfigFail ( WifiAwareNative.AWARE_STATUS_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.wifi.aware.WifiAwareDiscoverySessionState.TAG , ( "updateSubscribe: RemoteException=" + e ) ) ; } return false ; } return mWifiAwareNative.subscribe ( transactionId , mPubSubId , config ) ; }
Source:
public void run ( ) { mCallbackHandler = new android.os.Handler ( mLooper , this ) ; while ( true ) { try { listenToSocket ( ) ; } catch ( java.lang.Exception e ) { loge ( ( "Error in NativeDaemonConnector: " + e ) ) ; java.lang.String shutdownAct = android.os.SystemProperties.get ( ShutdownThread.SHUTDOWN_ACTION_PROPERTY , "" ) ; if ( ( shutdownAct != null ) && ( ( shutdownAct.length ( ) ) > 0 ) ) { break ; } android.os.SystemClock.sleep ( 5000 ) ; } } }

Target:
public void run ( ) { mCallbackHandler = new android.os.Handler ( mLooper , this ) ; while ( true ) { if ( com.android.server.NativeDaemonConnector.isShuttingDown ( ) ) break ; try { listenToSocket ( ) ; } catch ( java.lang.Exception e ) { loge ( ( "Error in NativeDaemonConnector: " + e ) ) ; if ( com.android.server.NativeDaemonConnector.isShuttingDown ( ) ) break ; android.os.SystemClock.sleep ( 5000 ) ; } } }
Source:
public void testReplacedAlias ( ) throws java.lang.Exception { com.android.builder.resources.ResourceSet mergedSet = com.android.builder.resources.ResourceMergerTest.getMergedSet ( ) ; com.android.builder.resources.Resource layout = mergedSet.getResourceMap ( ) . get ( "layout/alias_replaced_by_file" ) ; assertNull ( layout.getValue ( ) ) ; }

Target:
public void testReplacedAlias ( ) throws java.lang.Exception { com.android.builder.resources.ResourceMerger merger = com.android.builder.resources.ResourceMergerTest.getResourceMerger ( ) ; com.google.common.collect.ListMultimap < java.lang.String , com.android.builder.resources.Resource > mergedMap = merger.getResourceMap ( ) ; java.util.List < com.android.builder.resources.Resource > values = mergedMap.get ( "layout/alias_replaced_by_file" ) ; assertEquals ( 2 , values.size ( ) ) ; com.android.builder.resources.Resource layout = values.get ( 1 ) ; assertNull ( layout.getValue ( ) ) ; }
Source:
public void testGetInstanceFromOID ( ) throws java.lang.Exception { assertBouncyCastleSignatureFromOID ( "1.2.840.113549.1.1.4" ) ; assertBouncyCastleSignatureFromOID ( "1.2.840.113549.1.1.5" ) ; assertBouncyCastleSignatureFromOID ( "1.3.14.3.2.29" ) ; assertBouncyCastleSignatureFromOID ( "1.2.840.113549.1.1.11" ) ; assertBouncyCastleSignatureFromOID ( "1.2.840.113549.1.1.12" ) ; assertBouncyCastleSignatureFromOID ( "1.2.840.113549.1.1.13" ) ; assertBouncyCastleSignatureFromOID ( "1.2.840.10040.4.3" ) ; }

Target:
public void testGetInstanceFromOID ( ) throws java.lang.Exception { if ( StandardNames.IS_RI ) { return ; } assertBouncyCastleSignatureFromOID ( "1.2.840.113549.1.1.4" ) ; assertBouncyCastleSignatureFromOID ( "1.2.840.113549.1.1.5" ) ; assertBouncyCastleSignatureFromOID ( "1.3.14.3.2.29" ) ; assertBouncyCastleSignatureFromOID ( "1.2.840.113549.1.1.11" ) ; assertBouncyCastleSignatureFromOID ( "1.2.840.113549.1.1.12" ) ; assertBouncyCastleSignatureFromOID ( "1.2.840.113549.1.1.13" ) ; assertBouncyCastleSignatureFromOID ( "1.2.840.10040.4.3" ) ; }
Source:
public java.lang.String getDeviceSvnUsingSubId ( int subId , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( checkReadPhoneState ( callingPackage , "getDeviceSvn" ) ) ) { return null ; } return phone.getDeviceSvn ( ) ; } else { loge ( "getDeviceSvn phone is null" ) ; return null ; } }

Target:
public java.lang.String getDeviceSvnUsingSubId ( int subId , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , callingPackage , "getDeviceSvn" ) ) ) { return null ; } return phone.getDeviceSvn ( ) ; } else { loge ( "getDeviceSvn phone is null" ) ; return null ; } }
Source:
public boolean processCountryZones ( java.lang.String countryIso , java.lang.String defaultTimeZoneId , boolean everUsesUtc , java.util.List < java.lang.String > countryTimeZoneIds , java.lang.String debugInfo ) { countryIso = libcore.util.TimeZoneFinder.normalizeCountryIso ( countryIso ) ; if ( ! ( countryCodeToMatch.equals ( countryIso ) ) ) { return libcore.util.TimeZoneFinder.TimeZonesProcessor.CONTINUE ; } validatedCountryTimeZones = libcore.util.CountryTimeZones.createValidated ( countryIso , defaultTimeZoneId , everUsesUtc , countryTimeZoneIds , debugInfo ) ; return libcore.util.TimeZoneFinder.TimeZonesProcessor.HALT ; }

Target:
public boolean processCountryZones ( java.lang.String countryIso , java.lang.String defaultTimeZoneId , boolean everUsesUtc , java.util.List < libcore.util.CountryTimeZones.TimeZoneMapping > timeZoneMappings , java.lang.String debugInfo ) { countryIso = libcore.util.TimeZoneFinder.normalizeCountryIso ( countryIso ) ; if ( ! ( countryCodeToMatch.equals ( countryIso ) ) ) { return libcore.util.TimeZoneFinder.TimeZonesProcessor.CONTINUE ; } validatedCountryTimeZones = libcore.util.CountryTimeZones.createValidated ( countryIso , defaultTimeZoneId , everUsesUtc , timeZoneMappings , debugInfo ) ; return libcore.util.TimeZoneFinder.TimeZonesProcessor.HALT ; }
Source:
public void idmap ( java.lang.String targetApkPath , java.lang.String overlayApkPath , int uid ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.idmap ( targetApkPath , overlayApkPath , uid ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void idmap ( java.lang.String targetApkPath , java.lang.String overlayApkPath , int uid ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.idmap ( targetApkPath , overlayApkPath , uid ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public int getDataNetworkTypeForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getDataNetworkTypeForSubscriber" ) ) ) { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getServiceState ( ) . getDataNetworkType ( ) ; } else { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } }

Target:
public int getVoiceNetworkTypeForSubscriber ( int subId , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , subId , callingPackage , "getDataNetworkTypeForSubscriber" ) ) ) { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getServiceState ( ) . getVoiceNetworkType ( ) ; } else { return android.telephony.TelephonyManager.NETWORK_TYPE_UNKNOWN ; } }
Source:
private synchronized boolean isBrowseSupported ( java.lang.String packageName ) { boolean response = false ; for ( com.android.bluetooth.avrcp.BrowsePlayerInfo info : mBrowsePlayerInfoList ) { if ( info.packageName.equals ( packageName ) ) { response = false ; } } if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( "isBrowseSupported for " + packageName ) + ": " ) + response ) ) ; return response ; }

Target:
private synchronized boolean isBrowseSupported ( java.lang.String packageName ) { for ( com.android.bluetooth.avrcp.BrowsePlayerInfo info : mBrowsePlayerInfoList ) { if ( info.packageName.equals ( packageName ) ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "isBrowseSupported for " + packageName ) + ": true" ) ) ; return true ; } } if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( "isBrowseSupported for " + packageName ) + ": false" ) ) ; return false ; }
Source:
private byte [ ] getResourceContents ( java.lang.String resourceName ) throws java.io.IOException { try ( java.io.InputStream in = getClass ( ) . getResourceAsStream ( resourceName ) ) { if ( in == null ) { throw new java.lang.IllegalArgumentException ( ( "Resource not found: " + resourceName ) ) ; } return com.android.apksig.ApkVerifierTest.toByteArray ( in ) ; } }

Target:
private ApkVerifier.Result verify ( java.lang.String apkFilenameInResources , java.lang.Integer minSdkVersionOverride , java.lang.Integer maxSdkVersionOverride ) throws com.android.apksig.apk.ApkFormatException , java.io.IOException , java.security.NoSuchAlgorithmException { byte [ ] apkBytes = com.android.apksig.internal.util.Resources.toByteArray ( getClass ( ) , apkFilenameInResources ) ; com.android.apksig.ApkVerifier.Builder builder = new com.android.apksig.ApkVerifier.Builder ( com.android.apksig.util.DataSources.asDataSource ( java.nio.ByteBuffer.wrap ( apkBytes ) ) ) ; if ( minSdkVersionOverride != null ) { builder.setMinCheckedPlatformVersion ( minSdkVersionOverride ) ; } if ( maxSdkVersionOverride != null ) { builder.setMaxCheckedPlatformVersion ( maxSdkVersionOverride ) ; } return builder.build ( ) . verify ( ) ; }
Source:
public java.lang.String trimTrailingFrom ( java.lang.CharSequence sequence ) { int len = sequence.length ( ) ; int last ; for ( last = len - 1 ; last >= 0 ; last -- ) { if ( ! ( matches ( sequence.charAt ( last ) ) ) ) { break ; } } return sequence.subSequence ( 0 , ( last + 1 ) ) . toString ( ) ; }

Target:
public java.lang.String trimTrailingFrom ( java.lang.CharSequence sequence ) { int len = sequence.length ( ) ; for ( int last = len - 1 ; last >= 0 ; last -- ) { if ( ! ( matches ( sequence.charAt ( last ) ) ) ) { return sequence.subSequence ( 0 , ( last + 1 ) ) . toString ( ) ; } } return "" ; }
Source:
private void preRenderingTargetChangeCleanUp ( com.android.sdklib.IAndroidTarget oldTarget ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = currentSdk.getTargetData ( oldTarget ) ; if ( data != null ) { com.android.ide.common.layoutlib.LayoutLibrary layoutLib = data.getLayoutLibrary ( ) ; layoutLib.clearCaches ( mEditedFile.getProject ( ) ) ; } } }

Target:
private void preRenderingTargetChangeCleanUp ( com.android.sdklib.IAndroidTarget oldTarget ) { com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk != null ) { com.android.ide.eclipse.adt.internal.sdk.AndroidTargetData data = currentSdk.getTargetData ( oldTarget ) ; if ( data != null ) { com.android.ide.common.rendering.LayoutLibrary layoutLib = data.getLayoutLibrary ( ) ; layoutLib.clearCaches ( mEditedFile.getProject ( ) ) ; } } }
Source:
public final void scheduleReceiver ( android.content.Intent intent , android.content.pm.ActivityInfo info , android.content.res.CompatibilityInfo compatInfo , int resultCode , java.lang.String data , android.os.Bundle extras , boolean sync , int sendingUser ) { android.app.ActivityThread.ReceiverData r = new android.app.ActivityThread.ReceiverData ( intent , resultCode , data , extras , sync , false , mAppThread.asBinder ( ) , sendingUser ) ; r.info = info ; r.compatInfo = compatInfo ; queueOrSendMessage ( android.app.ActivityThread.H.RECEIVER , r ) ; }

Target:
public final void scheduleReceiver ( android.content.Intent intent , android.content.pm.ActivityInfo info , android.content.res.CompatibilityInfo compatInfo , int resultCode , java.lang.String data , android.os.Bundle extras , boolean sync , int sendingUser , int processState ) { updateProcessState ( processState , false ) ; android.app.ActivityThread.ReceiverData r = new android.app.ActivityThread.ReceiverData ( intent , resultCode , data , extras , sync , false , mAppThread.asBinder ( ) , sendingUser ) ; r.info = info ; r.compatInfo = compatInfo ; sendMessage ( android.app.ActivityThread.H.RECEIVER , r ) ; }
Source:
private void addStructUsage ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType usedType ) { if ( ( usedType.getSourceInfo ( ) ) == ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { return ; } java.lang.String usedTypeFileName = usedType.getSourceInfo ( ) . getFileName ( ) ; compilerState.addStructUsage ( currentFileName , usedTypeFileName ) ; }

Target:
protected void collect ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType usedType ) { if ( usedType instanceof com.android.jack.ir.ast.JArrayType ) { usedType = ( ( com.android.jack.ir.ast.JArrayType ) ( usedType ) ) . getLeafType ( ) ; } if ( ( usedType.getSourceInfo ( ) ) == ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { return ; } java.lang.String usedTypeFileName = usedType.getSourceInfo ( ) . getFileName ( ) ; if ( inBody ) { compilerState.addCodeUsage ( currentFileName , usedTypeFileName ) ; } else { compilerState.addStructUsage ( currentFileName , usedTypeFileName ) ; } }
Source:
public com.android.jack.dx.rop.type.Type getComponentType ( ) { if ( ( componentType ) == null ) { if ( ( descriptor.charAt ( 0 ) ) != '[' ) { throw new java.lang.IllegalArgumentException ( ( "not an array type: " + ( descriptor ) ) ) ; } componentType = com.android.jack.dx.rop.type.Type.intern ( descriptor.substring ( 1 ) ) ; } return componentType ; }

Target:
public com.android.jack.dx.rop.type.Type getComponentType ( ) { if ( ( componentType ) == null ) { java.lang.String descriptorStr = descriptor.getString ( ) ; if ( ( descriptorStr.charAt ( 0 ) ) != '[' ) { throw new java.lang.IllegalArgumentException ( ( "not an array type: " + ( descriptor ) ) ) ; } componentType = com.android.jack.dx.rop.type.Type.intern ( descriptorStr.substring ( 1 ) ) ; } return componentType ; }
Source:
public void createAppData ( java.lang.String uuid , java.lang.String pkgname , int userid , int flags , int appid , java.lang.String seinfo , int targetSdkVersion ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( com.android.server.pm.Installer.USE_BINDER ) { try { mInstalld.createAppData ( uuid , pkgname , userid , flags , appid , seinfo , targetSdkVersion ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } } else { mInstaller.execute ( "create_app_data" , uuid , pkgname , userid , flags , appid , seinfo , targetSdkVersion ) ; } }

Target:
public void createAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , int appId , java.lang.String seInfo , int targetSdkVersion ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.createAppData ( uuid , packageName , userId , flags , appId , seInfo , targetSdkVersion ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public void testPerformanceSummaryAddedProfilingPoint ( ) throws java.io.FileNotFoundException , java.io.IOException { com.android.vts.util.PerformanceSummary today = dailySummaries.get ( 0 ) ; com.android.vts.util.ProfilingPointSummary summary = new com.android.vts.util.ProfilingPointSummary ( ) ; com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode mode = com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode.VTS_REGRESSION_MODE_INCREASING ; com.android.vts.proto.VtsReportMessage.ProfilingReportMessage report = com.android.vts.servlet.VtsPerformanceJobServletTest.createProfilingReport ( com.android.vts.servlet.VtsPerformanceJobServletTest.labels , com.android.vts.servlet.VtsPerformanceJobServletTest.highValues , mode ) ; summary.update ( report ) ; summary.update ( report ) ; today.insertProfilingPointSummary ( "p3" , summary ) ; java.lang.String output = com.android.vts.servlet.VtsPerformanceJobServlet.getPeformanceSummary ( "result_test" , dailySummaries , legendLabels ) ; com.android.vts.servlet.VtsPerformanceJobServletTest.compareToBaseline ( output , "performanceSummary3.html" ) ; }

Target:
public void testPerformanceSummaryAddedProfilingPoint ( ) throws java.io.FileNotFoundException , java.io.IOException { setUp ( false ) ; com.android.vts.util.PerformanceSummary today = dailySummaries.get ( 0 ) ; com.android.vts.util.ProfilingPointSummary summary = new com.android.vts.util.ProfilingPointSummary ( ) ; com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode mode = com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode.VTS_REGRESSION_MODE_INCREASING ; com.android.vts.proto.VtsReportMessage.ProfilingReportMessage report = com.android.vts.servlet.VtsPerformanceJobServletTest.createProfilingReport ( com.android.vts.servlet.VtsPerformanceJobServletTest.LABELS , com.android.vts.servlet.VtsPerformanceJobServletTest.HIGH_VALS , mode ) ; summary.update ( report ) ; summary.update ( report ) ; today.insertProfilingPointSummary ( "p3" , summary ) ; java.lang.String output = com.android.vts.servlet.VtsPerformanceJobServlet.getPeformanceSummary ( "result_test" , dailySummaries , legendLabels ) ; com.android.vts.servlet.VtsPerformanceJobServletTest.compareToBaseline ( output , "performanceSummary3.html" ) ; }
Source:
private boolean unlock ( byte [ ] password ) { execute ( 'u' , password ) ; return ( mError ) == ( android.security.KeyStore.NO_ERROR ) ; }

Target:
public boolean unlock ( java.lang.String password ) { try { mError = mBinder.unlock ( password ) ; return ( mError ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
public boolean matchesObject ( java.lang.Object obj ) { android.hardware.camera2.TotalCaptureResult result = ( ( android.hardware.camera2.TotalCaptureResult ) ( obj ) ) ; java.lang.Long timeStamp = result.get ( CaptureResult.SENSOR_TIMESTAMP ) ; if ( ( timeStamp != null ) && ( ( timeStamp.longValue ( ) ) > 0L ) ) { return true ; } return false ; }

Target:
public boolean matches ( android.hardware.camera2.TotalCaptureResult result ) { java.lang.Long timeStamp = result.get ( CaptureResult.SENSOR_TIMESTAMP ) ; if ( ( timeStamp != null ) && ( ( timeStamp.longValue ( ) ) > 0L ) ) { return true ; } return false ; }
Source:
public void setVoiceRadioTech ( int radioTech ) { synchronized ( mLock ) { if ( com.android.internal.telephony.uicc.IccCardProxy.DBG ) { log ( ( "Setting radio tech " + ( android.telephony.ServiceState.rilRadioTechnologyToString ( radioTech ) ) ) ) ; } if ( android.telephony.ServiceState.isGsm ( radioTech ) ) { mCurrentAppType = UiccController.APP_FAM_3GPP ; } else { mCurrentAppType = UiccController.APP_FAM_3GPP2 ; } updateQuietMode ( ) ; } }

Target:
private void updateCurrentAppType ( ) { synchronized ( mLock ) { boolean isLteOnCdmaMode = ( android.telephony.TelephonyManager.getLteOnCdmaModeStatic ( ) ) == ( com.android.internal.telephony.PhoneConstants.LTE_ON_CDMA_TRUE ) ; if ( ( mCurrentAppType ) == ( UiccController.APP_FAM_3GPP2 ) ) { if ( isLteOnCdmaMode ) { log ( ( "updateCurrentAppType: is cdma/lte device, force IccCardProxy into 3gpp" + " mode" ) ) ; mCurrentAppType = UiccController.APP_FAM_3GPP ; } if ( com.android.internal.telephony.uicc.IccCardProxy.DBG ) { log ( ( ( ( ( "updateCurrentAppType: " + " mCurrentAppType=" ) + ( mCurrentAppType ) ) + " isLteOnCdmaMode=" ) + isLteOnCdmaMode ) ) ; } } mInitialized = true ; sendMessage ( obtainMessage ( com.android.internal.telephony.uicc.IccCardProxy.EVENT_ICC_CHANGED ) ) ; } }
Source:
public void insert ( @ javax.annotation.Nonnegative int index , @ javax.annotation.Nonnull com.android.sched.scheduler.ManagedRunnable runner ) { assert isConstraintValid ( index , runner ) ; index ++ ; plan.add ( index , new DecoratedRunner ( runner ) ) ; currentTagValidityIdx = index - 1 ; constraintTagValidityIdx = index ; }

Target:
public void remove ( @ javax.annotation.Nonnegative int index ) { index ++ ; @ java.lang.SuppressWarnings ( value = "unchecked" ) com.android.sched.scheduler.PlanConstructor < T > . DecoratedRunner dr = ( ( com.android.sched.scheduler.PlanConstructor < T > . DecoratedRunner ) ( plan.remove ( index ) ) ) ; currentTagValidityIdx = java.lang.Math.min ( ( index - 1 ) , currentTagValidityIdx ) ; constraintTagValidityIdx = java.lang.Math.max ( index , constraintTagValidityIdx ) ; missingProductions.addAll ( dr.getRunner ( ) . getProductions ( ) ) ; }
Source:
private static java.lang.String getMessagePart ( @ com.android.annotations.NonNull java.lang.String errorMessage , int group ) { java.util.List < java.lang.String > parameters = com.android.tools.lint.detector.api.LintUtils.getFormattedParameters ( com.android.tools.lint.checks.AppCompatCallDetector.ERROR_MESSAGE_FORMAT , errorMessage ) ; if ( ( ( parameters.size ( ) ) == 2 ) && ( group <= 2 ) ) { return parameters.get ( ( group - 1 ) ) ; } return null ; }

Target:
private static java.lang.String getMessagePart ( @ com.android.annotations.NonNull java.lang.String errorMessage , int group , @ com.android.annotations.NonNull com.android.tools.lint.detector.api.TextFormat format ) { java.util.List < java.lang.String > parameters = com.android.tools.lint.detector.api.LintUtils.getFormattedParameters ( com.android.tools.lint.detector.api.TextFormat.RAW.convertTo ( com.android.tools.lint.checks.AppCompatCallDetector.ERROR_MESSAGE_FORMAT , format ) , errorMessage ) ; if ( ( ( parameters.size ( ) ) == 2 ) && ( group <= 2 ) ) { return parameters.get ( ( group - 1 ) ) ; } return null ; }
Source:
public static void printHelpProperties ( @ javax.annotation.Nonnull com.android.jack.Options options ) throws java.io.IOException { com.android.sched.util.config.GatherConfigBuilder builder = options.getDefaultConfigBuilder ( ) ; com.android.jack.CommandLine.printProperties ( builder , com.android.jack.config.id.Brest.class ) ; java.lang.System.out.println ( ) ; java.lang.System.out.println ( "Provisional properties (subject to change):" ) ; java.lang.System.out.println ( ) ; com.android.jack.CommandLine.printProperties ( builder , com.android.sched.util.config.category.DefaultCategory.class ) ; }

Target:
public static void printHelpProperties ( @ javax.annotation.Nonnull java.io.PrintStream printStream , @ javax.annotation.Nonnull com.android.jack.Options options ) throws java.io.IOException { com.android.sched.util.config.GatherConfigBuilder builder = options.getDefaultConfigBuilder ( ) ; com.android.jack.CommandLine.printProperties ( printStream , builder , com.android.jack.config.id.Brest.class ) ; printStream.println ( ) ; printStream.println ( "Provisional properties (subject to change):" ) ; printStream.println ( ) ; com.android.jack.CommandLine.printProperties ( printStream , builder , com.android.sched.util.config.category.DefaultCategory.class ) ; }
Source:
public void verifyCommandSelectTrack ( ) { mTvView.selectTrack ( TvTrackInfo.TYPE_AUDIO , "dummyTrackId" ) ; mInstrumentation.waitForIdleSync ( ) ; new android.cts.util.PollingCheck ( android.media.tv.cts.TvInputServiceTest.TIME_OUT ) { @ java.lang.Override protected boolean check ( ) { android.media.tv.cts.TvInputServiceTest.CountingTvInputService.CountingSession session = android.media.tv.cts.TvInputServiceTest.CountingTvInputService.sSession ; return ( session != null ) && ( ( session.mSetStreamVolumeCount ) > 0 ) ; } } . run ( ) ; }

Target:
public void verifyCommandDispatchKeyMultiple ( ) { resetCounts ( ) ; mTvView.dispatchKeyEvent ( new android.view.KeyEvent ( android.view.KeyEvent.ACTION_MULTIPLE , android.view.KeyEvent.KEYCODE_K ) ) ; mInstrumentation.waitForIdleSync ( ) ; new android.cts.util.PollingCheck ( android.media.tv.cts.TvInputServiceTest.TIME_OUT ) { @ java.lang.Override protected boolean check ( ) { android.media.tv.cts.TvInputServiceTest.CountingTvInputService.CountingSession session = android.media.tv.cts.TvInputServiceTest.CountingTvInputService.sSession ; return ( session != null ) && ( ( session.mKeyMultipleCount ) > 0 ) ; } } . run ( ) ; }
Source:
public void destroyUserData ( java.lang.String uuid , int userId , int flags ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.destroyUserData ( uuid , userId , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void destroyUserData ( java.lang.String uuid , int userId , int flags ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.destroyUserData ( uuid , userId , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public java.lang.String toString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( ) ; sb.append ( " NAI Realm(s)" ) ; for ( java.lang.String realm : mRealms ) { sb.append ( ' ' ) . append ( realm ) ; } sb.append ( '\n' ) ; for ( com.android.server.wifi.hotspot2.anqp.eap.EAPMethod eapMethod : mEAPMethods ) { sb.append ( " " ) . append ( eapMethod.toString ( ) ) ; } return sb.toString ( ) ; }

Target:
public java.lang.String toString ( ) { return ( ( ( "NAIRealmElement{mRealms=" + ( mRealms ) ) + " mEAPMethods=" ) + ( mEAPMethods ) ) + "}" ; }
Source:
public void fileCreated ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.vfs.VirtualFileEvent event ) { if ( ( ( event.getRequestor ( ) ) == null ) && ( isMy ( event ) ) ) { E readScheme = readSchemeFromFile ( event.getFile ( ) , true , false ) ; if ( readScheme != null ) { myProcessor.initScheme ( readScheme ) ; myProcessor.onSchemeAdded ( readScheme ) ; } } }

Target:
private void schemeCreatedExternally ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.vfs.VirtualFile file ) { E readScheme = readSchemeFromFile ( file , true , false ) ; if ( readScheme != null ) { myProcessor.initScheme ( readScheme ) ; myProcessor.onSchemeAdded ( readScheme ) ; } }