auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static < O extends com.google.devtools.common.options.OptionsBase > com.google.devtools.common.options.Options < O > parse ( java.lang.Class < O > optionsClass , java.lang.String ... args ) throws com.google.devtools.common.options.OptionsParsingException { com.google.devtools.common.options.OptionsParser parser = com.google.devtools.common.options.OptionsParser.newOptionsParser ( optionsClass ) ; parser.parse ( OptionPriority.COMMAND_LINE , null , java.util.Arrays.asList ( args ) ) ; java.util.List < java.lang.String > remainingArgs = parser.getResidue ( ) ; return new com.google.devtools.common.options.Options ( parser.getOptions ( optionsClass ) , remainingArgs.toArray ( new java.lang.String [ 0 ] ) ) ; }

Target:
public static < O extends com.google.devtools.common.options.OptionsBase > com.google.devtools.common.options.Options < O > parse ( java.lang.Class < O > optionsClass , java.lang.String ... args ) throws com.google.devtools.common.options.OptionsParsingException { com.google.devtools.common.options.OptionsParser parser = com.google.devtools.common.options.OptionsParser.newOptionsParser ( optionsClass ) ; parser.parse ( OptionPriority.PriorityCategory.COMMAND_LINE , null , java.util.Arrays.asList ( args ) ) ; java.util.List < java.lang.String > remainingArgs = parser.getResidue ( ) ; return new com.google.devtools.common.options.Options ( parser.getOptions ( optionsClass ) , remainingArgs.toArray ( new java.lang.String [ 0 ] ) ) ; }
Source:
public static java.lang.String transportNamesOf ( int [ ] types ) { if ( ( types == null ) || ( ( types.length ) == 0 ) ) { return "" ; } java.lang.StringBuilder transports = new java.lang.StringBuilder ( ) ; for ( int t : types ) { transports.append ( "|" ) . append ( android.net.NetworkCapabilities.transportNameOf ( t ) ) ; } return transports.substring ( 1 ) ; }

Target:
public static java.lang.String transportNamesOf ( int [ ] types ) { java.util.StringJoiner joiner = new java.util.StringJoiner ( "|" ) ; if ( types != null ) { for ( int t : types ) { joiner.add ( android.net.NetworkCapabilities.transportNameOf ( t ) ) ; } } return joiner.toString ( ) ; }
Source:
public void onDismiss ( android.content.DialogInterface dialog ) { if ( dialog == ( mAdbDialog ) ) { if ( ! ( mDialogClicked ) ) { mEnableAdb.setChecked ( false ) ; } mAdbDialog = null ; } else if ( dialog == ( mEnableDialog ) ) { if ( ! ( mDialogClicked ) ) { mSwitchBar.setChecked ( false ) ; } mEnableDialog = null ; } }

Target:
public void onDismiss ( android.content.DialogInterface dialog ) { if ( dialog == ( mAdbDialog ) ) { if ( ! ( mDialogClicked ) ) { mEnableAdb.setChecked ( false ) ; } mAdbDialog = null ; } else if ( dialog == ( mEnableDialog ) ) { if ( ! ( mDialogClicked ) ) { mSwitchBar.setChecked ( false ) ; } mEnableDialog = null ; } else if ( dialog == ( mLogpersistClearDialog ) ) { mLogpersistClearDialog = null ; } }
Source:
synchronized boolean replyReport ( android.bluetooth.BluetoothDevice device , byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( ( ( "replyReport(): device=" + device ) + " type=" ) + type ) + " id=" ) + id ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return mHidDeviceNativeInterface.replyReport ( type , id , data ) ; }

Target:
synchronized boolean replyReport ( android.bluetooth.BluetoothDevice device , byte type , byte id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( ( ( ( ( "replyReport(): device=" + device ) + " type=" ) + type ) + " id=" ) + id ) ) ; } return ( ( checkDevice ( device ) ) && ( checkCallingUid ( ) ) ) && ( mHidDeviceNativeInterface.replyReport ( type , id , data ) ) ; }
Source:
public void onChange ( boolean selfChange ) { if ( isBleScanAlwaysAvailable ( ) ) { return ; } disableBleScanMode ( ) ; clearBleApps ( ) ; try { mBluetoothLock.readLock ( ) . lock ( ) ; if ( ( mBluetooth ) != null ) mBluetooth.onBrEdrDown ( ) ; } catch ( android.os.RemoteException e ) { android.util.Slog.e ( com.android.server.BluetoothManagerService.TAG , "error when disabling bluetooth" , e ) ; } finally { mBluetoothLock.readLock ( ) . unlock ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED.equals ( action ) ) { java.lang.String newName = intent.getStringExtra ( BluetoothAdapter.EXTRA_LOCAL_NAME ) ; if ( com.android.server.BluetoothManagerService.DBG ) android.util.Slog.d ( com.android.server.BluetoothManagerService.TAG , ( "Bluetooth Adapter name changed to " + newName ) ) ; if ( newName != null ) { storeNameAndAddress ( newName , null ) ; } } }
Source:
private org.w3c.dom.Node findNode ( org.w3c.dom.Node node , java.lang.String nodeName ) { if ( node.getNodeName ( ) . equals ( nodeName ) ) { return node ; } org.w3c.dom.NodeList children = node.getChildNodes ( ) ; for ( int i = 0 , n = children.getLength ( ) ; i < n ; i ++ ) { org.w3c.dom.Node child = children.item ( i ) ; org.w3c.dom.Node result = findNode ( child , nodeName ) ; if ( result != null ) { return result ; } } return null ; }

Target:
public void testDriver3 ( ) throws java.lang.Exception { java.lang.String xml = "" + ( ( ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + "<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"" ) + " xmlns:tools=\"http://schemas.android.com/tools\"" ) + " android:layout_width=\"match_parent\" android:layout_height=\"match_parent\"" ) + " android:orientation=\"vertical\" tools:ignore=\"HardcodedText\">" ) + "\n" ) + " <!-- Comment -->\n" ) + "</LinearLayout>" ) ; java.io.File temp = java.io.File.createTempFile ( "mylayout" , ".xml" ) ; com.google.common.io.Files.write ( xml , temp , com.google.common.base.Charsets.UTF_8 ) ; com.android.ide.common.xml.XmlPrettyPrinterTest.checkDriver ( "" , "" , 0 , new java.lang.String [ ] { temp.getPath ( ) } , temp ) ; assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n" ) + " xmlns:tools=\"http://schemas.android.com/tools\"\n" ) + " android:layout_width=\"match_parent\"\n" ) + " android:layout_height=\"match_parent\"\n" ) + " android:orientation=\"vertical\"\n" ) + " tools:ignore=\"HardcodedText\" >\n" ) + "\n" ) + " <!-- Comment -->\n" ) + "\n" ) + "</LinearLayout>" ) ) , com.google.common.io.Files.toString ( temp , com.google.common.base.Charsets.UTF_8 ) ) ; temp.delete ( ) ; }
Source:
private static android.net.NetworkState buildWifiState ( boolean isMetered ) { final android.net.NetworkInfo info = new android.net.NetworkInfo ( android.net.ConnectivityManager.TYPE_WIFI , 0 , null , null ) ; info.setDetailedState ( DetailedState.CONNECTED , null , null ) ; final android.net.LinkProperties prop = new android.net.LinkProperties ( ) ; prop.setInterfaceName ( com.android.server.net.NetworkStatsServiceTest.TEST_IFACE ) ; final android.net.NetworkCapabilities capabilities = new android.net.NetworkCapabilities ( ) ; if ( ! isMetered ) { capabilities.addCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_METERED ) ; } return new android.net.NetworkState ( info , prop , capabilities , null , null , com.android.server.net.NetworkStatsServiceTest.TEST_SSID ) ; }

Target:
private static android.net.NetworkState buildWifiState ( boolean isMetered ) { final android.net.NetworkInfo info = new android.net.NetworkInfo ( android.net.ConnectivityManager.TYPE_WIFI , 0 , null , null ) ; info.setDetailedState ( DetailedState.CONNECTED , null , null ) ; final android.net.LinkProperties prop = new android.net.LinkProperties ( ) ; prop.setInterfaceName ( com.android.server.net.NetworkStatsServiceTest.TEST_IFACE ) ; final android.net.NetworkCapabilities capabilities = new android.net.NetworkCapabilities ( ) ; capabilities.setCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_METERED , ( ! isMetered ) ) ; capabilities.setCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING , true ) ; return new android.net.NetworkState ( info , prop , capabilities , null , null , com.android.server.net.NetworkStatsServiceTest.TEST_SSID ) ; }
Source:
public void TestTypes ( ) { java.lang.String [ ] locs = new java.lang.String [ ] { "en_US_VALLEYGIRL" , "en_US_VALLEYGIRL@collation=phonebook;calendar=japanese" , "en_US_VALLEYGIRL@collation=phonebook;calendar=gregorian" , "ja_JP@calendar=japanese" , "th_TH@calendar=buddhist" , "th-TH-u-ca-gregory" , "ja_JP_TRADITIONAL" , "th_TH_TRADITIONAL" , "th_TH_TRADITIONAL@calendar=gregorian" , "en_US" , "th_TH" , "th" , "en_TH" , "th_TH@calendar=iso8601" , "fr_CH" , "fr_SA" , "fr_CH@rg=sazzzz" , "fr_CH@calendar=japanese;rg=sazzzz" , "fr_TH@rg=SA" , "th@rg=SA" } ; java.lang.String [ ] types = new java.lang.String [ ] { "gregorian" , "japanese" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "gregorian" , "japanese" , "gregorian" , "gregorian" } ; for ( int i = 0 ; i < ( locs.length ) ; i ++ ) { com.ibm.icu.util.Calendar cal = com.ibm.icu.util.Calendar.getInstance ( new com.ibm.icu.util.ULocale ( locs [ i ] ) ) ; if ( ! ( cal.getType ( ) . equals ( types [ i ] ) ) ) { errln ( ( ( ( ( ( locs [ i ] ) + " Calendar type " ) + ( cal.getType ( ) ) ) + " instead of " ) + ( types [ i ] ) ) ) ; } } }

Target:
public void TestTypes ( ) { java.lang.String [ ] locs = new java.lang.String [ ] { "en_US_VALLEYGIRL" , "en_US_VALLEYGIRL@collation=phonebook;calendar=japanese" , "en_US_VALLEYGIRL@collation=phonebook;calendar=gregorian" , "ja_JP@calendar=japanese" , "th_TH@calendar=buddhist" , "th-TH-u-ca-gregory" , "ja_JP_TRADITIONAL" , "th_TH_TRADITIONAL" , "th_TH_TRADITIONAL@calendar=gregorian" , "en_US" , "th_TH" , "th" , "en_TH" , "th_TH@calendar=iso8601" , "fr_CH" , "fr_SA" , "fr_CH@rg=sazzzz" , "fr_CH@calendar=japanese;rg=sazzzz" , "fr_TH@rg=SA" , "th@rg=SA" } ; java.lang.String [ ] types = new java.lang.String [ ] { "gregorian" , "japanese" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "japanese" , "buddhist" , "gregorian" , "gregorian" , "buddhist" , "buddhist" , "buddhist" , "gregorian" , "gregorian" , "islamic-umalqura" , "islamic-umalqura" , "japanese" , "buddhist" , "buddhist" } ; for ( int i = 0 ; i < ( locs.length ) ; i ++ ) { com.ibm.icu.util.Calendar cal = com.ibm.icu.util.Calendar.getInstance ( new com.ibm.icu.util.ULocale ( locs [ i ] ) ) ; if ( ! ( cal.getType ( ) . equals ( types [ i ] ) ) ) { errln ( ( ( ( ( ( locs [ i ] ) + " Calendar type " ) + ( cal.getType ( ) ) ) + " instead of " ) + ( types [ i ] ) ) ) ; } } }
Source:
public static java.lang.Object evaluate ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull lombok.ast.Node node ) { return new com.android.tools.lint.detector.api.ConstantEvaluator ( context ) . evaluate ( node ) ; }

Target:
public static java.lang.String evaluateString ( @ com.android.annotations.Nullable com.android.tools.lint.detector.api.JavaContext context , @ com.android.annotations.NonNull com.intellij.psi.PsiElement node , boolean allowUnknown ) { com.android.tools.lint.detector.api.ConstantEvaluator evaluator = new com.android.tools.lint.detector.api.ConstantEvaluator ( context ) ; if ( allowUnknown ) { evaluator.allowUnknowns ( ) ; } java.lang.Object value = evaluator.evaluate ( node ) ; return value instanceof java.lang.String ? ( ( java.lang.String ) ( value ) ) : null ; }
Source:
public void execute ( ) throws java.lang.Throwable { android.hardware.cts.helpers.CollectingSensorEventListener calibratedTestListener = new android.hardware.cts.helpers.CollectingSensorEventListener ( ) ; android.hardware.cts.helpers.CollectingSensorEventListener uncalibratedTestListener = new android.hardware.cts.helpers.CollectingSensorEventListener ( ) ; mCalibratedSensorManager.registerListener ( calibratedTestListener ) ; mUncalibratedSensorManager.registerListener ( uncalibratedTestListener ) ; java.lang.Thread.sleep ( java.util.concurrent.TimeUnit.SECONDS.toMillis ( 10 ) ) ; mCalibratedSensorManager.unregisterListener ( ) ; mUncalibratedSensorManager.unregisterListener ( ) ; verifyMeasurements ( calibratedTestListener.getEvents ( ) , uncalibratedTestListener.getEvents ( ) , mThreshold ) ; }

Target:
public void execute ( ) throws java.lang.Throwable { mCalibratedSensorManager.registerListener ( mCalibratedTestListener ) ; mUncalibratedSensorManager.registerListener ( mUncalibratedTestListener ) ; java.lang.Thread.sleep ( java.util.concurrent.TimeUnit.SECONDS.toMillis ( 10 ) ) ; mCalibratedSensorManager.unregisterListener ( ) ; mUncalibratedSensorManager.unregisterListener ( ) ; verifyMeasurements ( mCalibratedTestListener.getCollectedEvents ( ) , mUncalibratedTestListener.getCollectedEvents ( ) , mThreshold ) ; }
Source:
public java.net.Socket createSocket ( java.lang.String host , int port ) throws java.io.IOException { com.android.org.conscrypt.OpenSSLSocketImpl s = ( ( com.android.org.conscrypt.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( host , port ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; if ( mSecure ) { android.net.SSLCertificateSocketFactory.verifyHostname ( s , host ) ; } return s ; }

Target:
public java.net.Socket createSocket ( java.lang.String host , int port ) throws java.io.IOException { com.android.org.conscrypt.OpenSSLSocketImpl s = ( ( com.android.org.conscrypt.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( host , port ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setAlpnProtocols ( mAlpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; if ( mSecure ) { android.net.SSLCertificateSocketFactory.verifyHostname ( s , host ) ; } return s ; }
Source:
public void run ( ) { com.android.hierarchyviewerlib.device.DeviceBridge.ViewServerInfo viewServerInfo = com.android.hierarchyviewerlib.device.DeviceBridge.loadViewServerInfo ( device ) ; if ( viewServerInfo == null ) { return ; } com.android.hierarchyviewerlib.device.Window [ ] windows = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindows ( device ) ; com.android.hierarchyviewerlib.ComponentRegistry.getDeviceSelectionModel ( ) . addDevice ( device , windows ) ; if ( ( viewServerInfo.protocolVersion ) >= 3 ) { com.android.hierarchyviewerlib.device.WindowUpdater.startListenForWindowChanges ( this , device ) ; focusChanged ( device ) ; } }

Target:
private void loadViewServerInfoAndWindows ( final com.android.ddmlib.IDevice device ) { com.android.hierarchyviewerlib.device.DeviceBridge.ViewServerInfo viewServerInfo = com.android.hierarchyviewerlib.device.DeviceBridge.loadViewServerInfo ( device ) ; if ( viewServerInfo == null ) { return ; } com.android.hierarchyviewerlib.device.Window [ ] windows = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindows ( device ) ; com.android.hierarchyviewerlib.models.DeviceSelectionModel.getModel ( ) . addDevice ( device , windows ) ; if ( ( viewServerInfo.protocolVersion ) >= 3 ) { com.android.hierarchyviewerlib.device.WindowUpdater.startListenForWindowChanges ( this , device ) ; focusChanged ( device ) ; } }
Source:
java.lang.String getId ( ) { java.lang.String id = node.getStringAttr ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ID ) ; if ( id == null ) { id = "<unknownid>" ; java.lang.String fqn = node.getFqcn ( ) ; fqn = fqn.substring ( ( ( fqn.lastIndexOf ( '.' ) ) + 1 ) ) ; id = ( fqn + "-" ) + ( java.lang.Integer.toString ( java.lang.System.identityHashCode ( node ) ) . substring ( 0 , 3 ) ) ; } return id ; }

Target:
java.lang.String getId ( ) { java.lang.String id = node.getStringAttr ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ID ) ; if ( id == null ) { id = "<unknownid>" ; java.lang.String fqn = node.getFqcn ( ) ; fqn = fqn.substring ( ( ( fqn.lastIndexOf ( '.' ) ) + 1 ) ) ; id = ( fqn + "-" ) + ( java.lang.Integer.toString ( java.lang.System.identityHashCode ( node ) ) . substring ( 0 , 3 ) ) ; } return id ; }
Source:
public android.bluetooth.AtCommandResult handleReadCommand ( ) { java.lang.String operatorName = mPhone.getServiceState ( ) . getOperatorAlphaLong ( ) ; if ( operatorName != null ) { if ( ( operatorName.length ( ) ) > 16 ) { operatorName = operatorName.substring ( 0 , 16 ) ; } return new android.bluetooth.AtCommandResult ( ( ( "+COPS: 0,0,\"" + operatorName ) + "\"" ) ) ; } else { return new android.bluetooth.AtCommandResult ( "+COPS: 0,0,\"UNKNOWN\",0" ) ; } }

Target:
public android.bluetooth.AtCommandResult handleReadCommand ( ) { java.lang.String operatorName = mPhone.getServiceState ( ) . getOperatorAlphaLong ( ) ; if ( operatorName != null ) { if ( ( operatorName.length ( ) ) > 16 ) { operatorName = operatorName.substring ( 0 , 16 ) ; } return new android.bluetooth.AtCommandResult ( ( ( "+COPS: 0,0,\"" + operatorName ) + "\"" ) ) ; } else { return new android.bluetooth.AtCommandResult ( "+COPS: 0" ) ; } }
Source:
public static java.lang.String getAdbLocation ( ) { java.lang.String devTree = com.android.ide.eclipse.pdt.PdtPlugin.getDevTree ( ) ; if ( ( devTree != null ) && ( ( devTree.length ( ) ) > 0 ) ) { return ( ( devTree + "/out/host/" ) + ( com.android.ide.eclipse.pdt.PdtPlugin.currentPlatform ( ) ) ) + "/bin/adb" ; } return null ; }

Target:
private static java.lang.String getDevTreeOutBin ( ) { java.lang.String devTree = com.android.ide.eclipse.pdt.PdtPlugin.getDevTree ( ) ; if ( ( devTree != null ) && ( ( devTree.length ( ) ) > 0 ) ) { return ( ( devTree + "/out/host/" ) + ( com.android.ide.eclipse.pdt.PdtPlugin.currentPlatform ( ) ) ) + "/bin/" ; } return null ; }
Source:
private void appendNode ( java.lang.StringBuilder out , com.android.manifmerger.Actions.ActionType actionType , java.lang.String docString , int lineNumber ) { out.append ( actionType.toString ( ) ) . append ( " from " ) . append ( getClass ( ) . getSimpleName ( ) ) . append ( '#' ) . append ( docString ) . append ( ":" ) . append ( lineNumber ) . append ( "\n" ) ; }

Target:
private void appendNode ( java.lang.StringBuilder out , com.android.manifmerger.Actions.ActionType actionType , java.lang.String docString , int lineNumber , int columnNumber ) { out.append ( actionType.toString ( ) ) . append ( " from " ) . append ( getClass ( ) . getSimpleName ( ) ) . append ( '#' ) . append ( docString ) . append ( ":" ) . append ( lineNumber ) . append ( ":" ) . append ( columnNumber ) . append ( "\n" ) ; }
Source:
synchronized java.io.OutputStream openWrite ( @ javax.annotation.Nonnull com.android.sched.vfs.WriteZipFS.ZipVFile file ) { assert ! ( isClosed ( ) ) ; try { outputStream.putNextEntry ( file.getZipEntry ( ) ) ; if ( notifyVFileOpenAndReturnPreviousState ( ) ) { throw new java.lang.AssertionError ( ( ( getLocation ( ) . getDescription ( ) ) + " cannot be written to because a previous stream has not been closed." ) ) ; } return new com.android.sched.vfs.WriteZipFS.UnclosableVFileOutputStream ( this ) ; } catch ( java.io.IOException e ) { throw new java.lang.AssertionError ( e ) ; } }

Target:
private synchronized void writeEntryIfNeeded ( ) throws java.io.IOException { if ( ! ( entryWritten ) ) { try { ( ( java.util.zip.ZipOutputStream ) ( out ) ) . putNextEntry ( zipEntry ) ; } catch ( java.util.zip.ZipException e ) { throw new java.lang.AssertionError ( e ) ; } entryWritten = true ; } }
Source:
private int calculateAesCbcEspPacketSizeWithAuth ( int payloadLen , int authTruncLen ) { return calculateEspPacketSize ( payloadLen , android.net.cts.IpSecManagerTest.AES_CBC_IV_LEN , android.net.cts.IpSecManagerTest.AES_CBC_BLK_SIZE , authTruncLen ) ; }

Target:
private int getBlkSize ( android.net.IpSecAlgorithm cryptOrAead ) { if ( cryptOrAead == null ) { return 4 ; } switch ( cryptOrAead.getName ( ) ) { case android.net.IpSecAlgorithm.CRYPT_AES_CBC : return android.net.cts.IpSecManagerTest.AES_CBC_BLK_SIZE ; case android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM : return android.net.cts.IpSecManagerTest.AES_GCM_BLK_SIZE ; default : throw new java.lang.IllegalArgumentException ( ( "Blk size unknown for algorithm" + ( cryptOrAead.getName ( ) ) ) ) ; } }
Source:
public void testHttpPostHeaders ( ) throws java.io.IOException { java.lang.String path = "/" + ( java.lang.Math.random ( ) ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + path ) ) . openConnection ( ) ) ) ; connection.setDoOutput ( true ) ; java.io.OutputStreamWriter writer = new java.io.OutputStreamWriter ( connection.getOutputStream ( ) ) ; writer.write ( "hello" ) ; writer.flush ( ) ; assertEquals ( 200 , connection.getResponseCode ( ) ) ; java.util.Map < java.lang.String , java.lang.String > headers = server.pathToRequest ( ) . get ( path ) . getHeaders ( ) ; assertNull ( headers.get ( "Accept" ) ) ; assertEquals ( "application/x-www-form-urlencoded" , headers.get ( "Content-Type" ) ) ; assertEquals ( "5" , headers.get ( "Content-Length" ) ) ; assertEquals ( ( "localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) , headers.get ( "Host" ) ) ; }

Target:
public void testHttpPostHeaders ( ) throws java.io.IOException { java.lang.String path = "/" + ( java.lang.Math.random ( ) ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( new java.net.URL ( ( ( "http://localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) + path ) ) . openConnection ( ) ) ) ; connection.setDoOutput ( true ) ; java.io.OutputStreamWriter writer = new java.io.OutputStreamWriter ( connection.getOutputStream ( ) ) ; writer.write ( "hello" ) ; writer.flush ( ) ; assertEquals ( 200 , connection.getResponseCode ( ) ) ; connection.disconnect ( ) ; java.util.Map < java.lang.String , java.lang.String > headers = server.pathToRequest ( ) . get ( path ) . getHeaders ( ) ; assertNull ( headers.get ( "Accept" ) ) ; assertEquals ( "application/x-www-form-urlencoded" , headers.get ( "Content-Type" ) ) ; assertEquals ( "5" , headers.get ( "Content-Length" ) ) ; assertEquals ( ( "localhost:" + ( org.apache.harmony.luni.tests.java.net.URLConnectionTest.port ) ) , headers.get ( "Host" ) ) ; }
Source:
void pauseIfSleepingLocked ( ) { if ( ( mSleeping ) || ( mShuttingDown ) ) { if ( ! ( mGoingToSleep.isHeld ( ) ) ) { mGoingToSleep.acquire ( ) ; if ( mLaunchingActivity.isHeld ( ) ) { mLaunchingActivity.release ( ) ; mHandler.removeMessages ( com.android.server.am.ActivityManagerService.LAUNCH_TIMEOUT_MSG ) ; } } if ( ( mPausingActivity ) == null ) { if ( com.android.server.am.ActivityManagerService.DEBUG_PAUSE ) android.util.Log.v ( com.android.server.am.ActivityManagerService.TAG , "Sleep needs to pause..." ) ; if ( com.android.server.am.ActivityManagerService.DEBUG_USER_LEAVING ) android.util.Log.v ( com.android.server.am.ActivityManagerService.TAG , "Sleep => pause with userLeaving=false" ) ; startPausingLocked ( false , true ) ; } } }

Target:
public final com.android.server.am.ContentProviderHolder getContentProvider ( android.app.IApplicationThread caller , java.lang.String name ) { if ( caller == null ) { java.lang.String msg = "null IApplicationThread when getting content provider " + name ; android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , msg ) ; throw new java.lang.SecurityException ( msg ) ; } return getContentProviderImpl ( caller , name ) ; }
Source:
public static android.os.ParcelFileDescriptor [ ] createPipe ( ) throws java.io.IOException { try { final java.io.FileDescriptor [ ] fds = Libcore.os.pipe ( ) ; return new android.os.ParcelFileDescriptor [ ] { new android.os.ParcelFileDescriptor ( fds [ 0 ] ) , new android.os.ParcelFileDescriptor ( fds [ 1 ] ) } ; } catch ( libcore.io.ErrnoException e ) { throw e.rethrowAsIOException ( ) ; } }

Target:
public static android.os.ParcelFileDescriptor [ ] createPipe ( ) throws java.io.IOException { try { final java.io.FileDescriptor [ ] fds = android.system.Os.pipe ( ) ; return new android.os.ParcelFileDescriptor [ ] { new android.os.ParcelFileDescriptor ( fds [ 0 ] ) , new android.os.ParcelFileDescriptor ( fds [ 1 ] ) } ; } catch ( android.system.ErrnoException e ) { throw e.rethrowAsIOException ( ) ; } }
Source:
public ViewPager.OnPageChangeListener createOnPageChangeListener ( ) { return new android.support.v4.view.ViewPager.SimpleOnPageChangeListener ( ) { @ java.lang.Override public void onPageScrolled ( int position , float positionOffset , int positionOffsetPixels ) { setScrollPosition ( position , positionOffset ) ; } @ java.lang.Override public void onPageSelected ( int position ) { getTabAt ( position ) . select ( ) ; } } ; }

Target:
public ViewPager.OnPageChangeListener createOnPageChangeListener ( ) { return new android.support.v4.view.ViewPager.SimpleOnPageChangeListener ( ) { private int mScrollState ; @ java.lang.Override public void onPageScrolled ( int position , float positionOffset , int positionOffsetPixels ) { setScrollPosition ( position , positionOffset ) ; } @ java.lang.Override public void onPageSelected ( int position ) { if ( ( mScrollState ) == ( android.support.v4.view.ViewPager.SCROLL_STATE_IDLE ) ) { getTabAt ( position ) . select ( ) ; } } @ java.lang.Override public void onPageScrollStateChanged ( int state ) { mScrollState = state ; } } ; }
Source:
public void packageApk ( java.io.File apk , java.io.File manifest ) { new vogar.commands.Command ( log , "aapt" , "package" , "-F" , apk.getPath ( ) , "-M" , manifest.getPath ( ) , "-I" , androidJarPath ) . execute ( ) ; }

Target:
public void packageApk ( java.io.File apk , java.io.File manifest ) { new vogar.commands.Command ( log , "aapt" , "package" , "-F" , apk.getPath ( ) , "-M" , manifest.getPath ( ) , "-I" , androidJarPath , "--version-name" , "1.0" , "--version-code" , "1" ) . execute ( ) ; }
Source:
public void add ( int index , int value ) { if ( ( index < 0 ) || ( index > ( mSize ) ) ) { throw new java.lang.IndexOutOfBoundsException ( ) ; } ensureCapacity ( 1 ) ; if ( ( ( mSize ) - index ) != 0 ) { java.lang.System.arraycopy ( mValues , index , mValues , ( index + 1 ) , ( ( mSize ) - index ) ) ; } mValues [ index ] = value ; ( mSize ) ++ ; }

Target:
public void resize ( int newSize ) { com.android.internal.util.Preconditions.checkArgumentNonnegative ( newSize ) ; if ( newSize <= ( mValues.length ) ) { java.util.Arrays.fill ( mValues , newSize , mValues.length , 0 ) ; } else { ensureCapacity ( ( newSize - ( mSize ) ) ) ; } mSize = newSize ; }
Source:
public void onPageFinished ( android.webkit.WebView view , java.lang.String url ) { if ( ! ( mInPageLoad ) ) { return ; } if ( ! ( isPrivateBrowsingEnabled ( ) ) ) { com.android.browser.LogTag.logPageFinishedLoading ( url , ( ( android.os.SystemClock.uptimeMillis ( ) ) - ( mLoadStartTime ) ) ) ; } syncCurrentState ( view , url ) ; mWebViewController.onPageFinished ( this ) ; }

Target:
private void restoreUserAgent ( ) { if ( ( ( mMainView ) == null ) || ( ( mSavedState ) == null ) ) { return ; } if ( ( mSavedState.getBoolean ( com.android.browser.Tab.USERAGENT ) ) != ( mSettings.hasDesktopUseragent ( mMainView ) ) ) { mSettings.toggleDesktopUseragent ( mMainView ) ; } }
Source:
public void connect ( ) throws java.io.IOException { java.io.File f = new java.io.File ( filename ) ; if ( f.isDirectory ( ) ) { isDir = true ; is = getDirectoryListing ( f ) ; } else { is = new java.io.BufferedInputStream ( new java.io.FileInputStream ( f ) ) ; long lengthAsLong = f.length ( ) ; length = ( lengthAsLong <= ( java.lang.Integer.MAX_VALUE ) ) ? ( ( int ) ( lengthAsLong ) ) : java.lang.Integer.MAX_VALUE ; } connected = true ; }

Target:
public int getContentLength ( ) { long length = getContentLengthLong ( ) ; return length <= ( java.lang.Integer.MAX_VALUE ) ? ( ( int ) ( length ) ) : - 1 ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( ! ( BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED.equals ( intent.getAction ( ) ) ) ) { return ; } try { mConnectionStateChangedQueue.put ( intent ) ; } catch ( java.lang.InterruptedException e ) { org.junit.Assert.fail ( "Cannot add Intent to the queue" ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( ! ( BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED.equals ( intent.getAction ( ) ) ) ) { return ; } try { mConnectionStateChangedQueue.put ( intent ) ; } catch ( java.lang.InterruptedException e ) { org.junit.Assert.fail ( ( "Cannot add Intent to the queue: " + ( e.getMessage ( ) ) ) ) ; } }
Source:
public java.lang.Boolean getFunctionalTest ( ) { com.android.builder.core.VariantConfiguration config = this ; if ( mType.isForTesting ( ) ) { config = getTestedConfig ( ) ; com.google.common.base.Preconditions.checkState ( ( config != null ) ) ; } java.lang.Boolean functionalTest = config.mMergedFlavor.getTestFunctionalTest ( ) ; return functionalTest != null ? functionalTest : com.android.builder.core.VariantConfiguration.DEFAULT_FUNCTIONAL_TEST ; }

Target:
public java.lang.String getInstrumentationRunner ( ) { com.android.builder.core.VariantConfiguration config = this ; if ( mType.isForTesting ( ) ) { config = getTestedConfig ( ) ; com.google.common.base.Preconditions.checkState ( ( config != null ) ) ; } java.lang.String runner = config.mMergedFlavor.getTestInstrumentationRunner ( ) ; return runner != null ? runner : com.android.builder.core.VariantConfiguration.DEFAULT_TEST_RUNNER ; }
Source:
public void enableTdlsWithMacAddress ( java.lang.String remoteMacAddress , boolean enable ) { if ( remoteMacAddress == null ) { throw new java.lang.IllegalArgumentException ( "remoteMacAddress cannot be null" ) ; } mWifiStateMachine.enableTdls ( remoteMacAddress , enable ) ; }

Target:
public void enableTdlsWithMacAddress ( java.lang.String remoteMacAddress , boolean enable ) { mLog.trace ( "enableTdlsWithMacAddress uid=% enable=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . c ( enable ) . flush ( ) ; if ( remoteMacAddress == null ) { throw new java.lang.IllegalArgumentException ( "remoteMacAddress cannot be null" ) ; } mWifiStateMachine.enableTdls ( remoteMacAddress , enable ) ; }
Source:
public final void testPkgTypePlatform ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_PLATFORMS ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertTrue ( p.hasPath ( ) ) ; assertTrue ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }

Target:
public final void testPkgTypePlatform ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_PLATFORMS ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertTrue ( p.hasPath ( ) ) ; assertFalse ( p.hasVendorId ( ) ) ; assertTrue ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }
Source:
protected void finishMerge ( @ javax.annotation.Nonnull com.android.jack.tools.merger.JackMerger merger , @ javax.annotation.Nonnull com.android.sched.vfs.OutputVFile out ) throws com.android.jack.JackIOException { java.io.OutputStream os = null ; try { try { os = new java.io.BufferedOutputStream ( out.openWrite ( ) ) ; merger.finish ( os ) ; } finally { if ( os != null ) { os.close ( ) ; } } } catch ( java.io.IOException e ) { throw new com.android.jack.JackIOException ( ( "Cannot write to output dex " + out ) , e ) ; } }

Target:
protected void finishMerge ( @ javax.annotation.Nonnull com.android.jack.tools.merger.JackMerger merger , @ javax.annotation.Nonnull com.android.sched.vfs.OutputVFile out ) throws com.android.jack.backend.dex.DexWritingException { java.io.OutputStream os = null ; try { try { os = new java.io.BufferedOutputStream ( out.openWrite ( ) ) ; merger.finish ( os ) ; } finally { if ( os != null ) { os.close ( ) ; } } } catch ( java.io.IOException e ) { throw new com.android.jack.backend.dex.DexWritingException ( e ) ; } }
Source:
protected void appendAdditionalActions ( com.intellij.openapi.actionSystem.DefaultActionGroup actionGroup , com.intellij.execution.testframework.TestConsoleProperties properties , com.intellij.execution.runners.ExecutionEnvironment environment , javax.swing.JComponent parent ) { super . appendAdditionalActions ( actionGroup , properties , environment , parent ) ; actionGroup.addAction ( new com.google.gct.testing.ShowScreenshotsAction ( ) ) ; }

Target:
protected void appendAdditionalActions ( com.intellij.openapi.actionSystem.DefaultActionGroup actionGroup , com.intellij.execution.testframework.TestConsoleProperties properties , com.intellij.execution.runners.ExecutionEnvironment environment , javax.swing.JComponent parent ) { super . appendAdditionalActions ( actionGroup , properties , environment , parent ) ; actionGroup.addAction ( new com.google.gct.testing.ShowScreenshotsAction ( ) ) ; actionGroup.addAction ( new com.google.gct.testing.DebugConfigurationAction ( ) ) ; }
Source:
public void test_getJarFileURL ( ) throws java.lang.Exception { java.net.URL fileURL = new java.net.URL ( tests.api.java.net.JarURLConnectionTest.BASE ) ; java.net.URL u = new java.net.URL ( ( ( "jar:" + ( tests.api.java.net.JarURLConnectionTest.BASE ) ) + "!/plus.bmp" ) ) ; juc = ( ( java.net.JarURLConnection ) ( u.openConnection ( ) ) ) ; assertEquals ( "Returned incorrect file URL" , fileURL , juc.getJarFileURL ( ) ) ; java.net.URL url = new java.net.URL ( "jar:file:///bar.jar!/foo.jar!/Bugs/HelloWorld.class" ) ; assertEquals ( "file:/bar.jar" , ( ( java.net.JarURLConnection ) ( url.openConnection ( ) ) ) . getJarFileURL ( ) . toString ( ) ) ; }

Target:
public void test_getMainAttributes ( ) throws java.lang.Exception { java.net.URL u = copyAndOpenResourceStream ( "lf.jar" , "swt.dll" ) ; juc = ( ( java.net.JarURLConnection ) ( u.openConnection ( ) ) ) ; java.util.jar.Attributes a = juc.getMainAttributes ( ) ; assertEquals ( "Returned incorrect Attributes" , "1.0" , a.get ( java.util.jar.Attributes.Name.MANIFEST_VERSION ) ) ; }
Source:
private void updateNewIds ( int addrId , int browseId ) { mCurrAddrPlayerID = addrId ; mCurrBrowsePlayerID = browseId ; if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( ( ( ( ( "Updated CurrentIds: AddrPlayerID:" + ( mCurrAddrPlayerID ) ) + " to " ) + addrId ) + ", BrowsePlayerID:" ) + ( mCurrBrowsePlayerID ) ) + " to " ) + browseId ) ) ; }

Target:
private void updateNewIds ( int addrId , int browseId ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( ( ( ( ( "updateNewIds: Addressed:" + ( mCurrAddrPlayerID ) ) + " to " ) + addrId ) + ", Browse:" ) + ( mCurrBrowsePlayerID ) ) + " to " ) + browseId ) ) ; mCurrAddrPlayerID = addrId ; mCurrBrowsePlayerID = browseId ; }
Source:
public void testAesGcm96Tcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm authCrypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM , android.net.cts.IpSecManagerTest.getKey ( 288 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , null , authCrypt , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , null , authCrypt , false , 1 , true ) ; }

Target:
public void testAuthTcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , auth , false , 1 , true ) ; }
Source:
void enableOptionalCodecs ( ) { android.bluetooth.BluetoothCodecConfig [ ] codecConfigArray = assignCodecConfigPriorities ( ) ; if ( codecConfigArray == null ) { return ; } for ( int i = 0 ; i < ( codecConfigArray.length ) ; i ++ ) { android.bluetooth.BluetoothCodecConfig codecConfig = codecConfigArray [ i ] ; if ( ! ( codecConfig.isMandatoryCodec ( ) ) ) { codecConfigArray [ i ] = null ; } } setCodecConfigPreferenceNative ( codecConfigArray ) ; }

Target:
void enableOptionalCodecs ( ) { android.bluetooth.BluetoothCodecConfig [ ] codecConfigArray = assignCodecConfigPriorities ( ) ; if ( codecConfigArray == null ) { return ; } for ( int i = 0 ; i < ( codecConfigArray.length ) ; i ++ ) { android.bluetooth.BluetoothCodecConfig codecConfig = codecConfigArray [ i ] ; if ( ! ( codecConfig.isMandatoryCodec ( ) ) ) { codecConfigArray [ i ] = null ; } } mA2dpNativeInterface.setCodecConfigPreference ( codecConfigArray ) ; }
Source:
public java.lang.String getMessage ( ) { return ( ( ( ( "Failed to lookup field " + ( com.android.jack.Jack.getUserFriendlyFormatter ( ) . getName ( getDeclaringClass ( ) ) ) ) + '.' ) + ( fieldName ) ) + " of type " ) + ( com.android.jack.Jack.getUserFriendlyFormatter ( ) . getName ( fieldType ) ) ; }

Target:
public java.lang.String getMessage ( ) { return ( ( ( ( ( "Field '" + ( fieldName ) ) + "' of type '" ) + ( com.android.jack.Jack.getUserFriendlyFormatter ( ) . getName ( fieldType ) ) ) + "' not found in type '" ) + ( com.android.jack.Jack.getUserFriendlyFormatter ( ) . getName ( getDeclaringClass ( ) ) ) ) + "'" ; }
Source:
public void onChange ( boolean selfChange ) { super . onChange ( selfChange ) ; com.android.traceur.Receiver.updateQuickSettings ( context ) ; }

Target:
public void onChange ( boolean selfChange ) { super . onChange ( selfChange ) ; boolean developerOptionsEnabled = 1 == ( Settings.Global.getInt ( context.getContentResolver ( ) , Settings.Global.DEVELOPMENT_SETTINGS_ENABLED , 0 ) ) ; if ( ! developerOptionsEnabled ) { android.content.SharedPreferences prefs = android.preference.PreferenceManager.getDefaultSharedPreferences ( context ) ; prefs.edit ( ) . putBoolean ( context.getString ( R.string.pref_key_quick_setting ) , false ) . apply ( ) ; com.android.traceur.Receiver.updateQuickSettings ( context ) ; } }
Source:
public byte [ ] getTBSCertList ( ) throws java.security.cert.CRLException { if ( ( tbsCertList ) == null ) throw new java.security.cert.CRLException ( "Uninitialized CRL" ) ; byte [ ] dup = new byte [ tbsCertList.length ] ; java.lang.System.arraycopy ( tbsCertList , 0 , dup , 0 , dup.length ) ; return dup ; }

Target:
public byte [ ] getTBSCertList ( ) throws java.security.cert.CRLException { if ( ( tbsCertList ) == null ) throw new java.security.cert.CRLException ( "Uninitialized CRL" ) ; return tbsCertList.clone ( ) ; }
Source:
public com.google.common.hash.Hasher putString ( java.lang.CharSequence charSequence ) { for ( int i = 0 ; i < ( charSequence.length ( ) ) ; i ++ ) { putChar ( charSequence.charAt ( i ) ) ; } return this ; }

Target:
public com.google.common.hash.HashCode hash ( ) { checkNotDone ( ) ; done = true ; return ( bytes ) == ( digest.getDigestLength ( ) ) ? com.google.common.hash.HashCode.fromBytesNoCopy ( digest.digest ( ) ) : com.google.common.hash.HashCode.fromBytesNoCopy ( java.util.Arrays.copyOf ( digest.digest ( ) , bytes ) ) ; }
Source:
public static com.google.common.io.InputSupplier < java.io.InputStreamReader > newReaderSupplier ( java.net.URL url , java.nio.charset.Charset charset ) { return com.google.common.io.CharStreams.newReaderSupplier ( com.google.common.io.Resources.newInputStreamSupplier ( url ) , charset ) ; }

Target:
public static java.util.List < java.lang.String > readLines ( java.net.URL url , java.nio.charset.Charset charset ) throws java.io.IOException { return com.google.common.io.Resources.readLines ( url , charset , new com.google.common.io.LineProcessor < java.util.List < java.lang.String > > ( ) { final java.util.List < java.lang.String > result = com.google.common.collect.Lists.newArrayList ( ) ; @ java.lang.Override public boolean processLine ( java.lang.String line ) { result.add ( line ) ; return true ; } @ java.lang.Override public java.util.List < java.lang.String > getResult ( ) { return result ; } } ) ; }
Source:
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 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha384Tcp4 ( ) 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 , android.net.cts.IpSecManagerTest.getKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , short [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 2 ) ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , android.support.v8.renderscript.Allocation data , int dataOff ) { mRS.nAllocationData2D ( getIDSafe ( ) , off , 0 , mSelectedLOD , mSelectedFace.mID , count , 1 , data.getID ( mRS ) , dataOff , 0 , data.mSelectedLOD , data.mSelectedFace.mID ) ; }
Source:
public static java.lang.String internalMethodDescriptor ( java.lang.String externalReturnType , java.lang.String externalMethodNameAndArguments ) { java.lang.StringBuffer internalMethodDescriptor = new java.lang.StringBuffer ( ) ; internalMethodDescriptor.append ( ClassConstants.INTERNAL_METHOD_ARGUMENTS_OPEN ) ; proguard.classfile.util.ExternalTypeEnumeration externalTypeEnumeration = new proguard.classfile.util.ExternalTypeEnumeration ( externalMethodNameAndArguments ) ; while ( externalTypeEnumeration.hasMoreTypes ( ) ) { internalMethodDescriptor.append ( proguard.classfile.util.ClassUtil.internalType ( externalTypeEnumeration.nextType ( ) ) ) ; } internalMethodDescriptor.append ( ClassConstants.INTERNAL_METHOD_ARGUMENTS_CLOSE ) ; internalMethodDescriptor.append ( proguard.classfile.util.ClassUtil.internalType ( externalReturnType ) ) ; return internalMethodDescriptor.toString ( ) ; }

Target:
public static java.lang.String internalMethodDescriptor ( java.lang.String externalReturnType , java.lang.String externalMethodNameAndArguments ) { java.lang.StringBuffer internalMethodDescriptor = new java.lang.StringBuffer ( ) ; internalMethodDescriptor.append ( ClassConstants.METHOD_ARGUMENTS_OPEN ) ; proguard.classfile.util.ExternalTypeEnumeration externalTypeEnumeration = new proguard.classfile.util.ExternalTypeEnumeration ( externalMethodNameAndArguments ) ; while ( externalTypeEnumeration.hasMoreTypes ( ) ) { internalMethodDescriptor.append ( proguard.classfile.util.ClassUtil.internalType ( externalTypeEnumeration.nextType ( ) ) ) ; } internalMethodDescriptor.append ( ClassConstants.METHOD_ARGUMENTS_CLOSE ) ; internalMethodDescriptor.append ( proguard.classfile.util.ClassUtil.internalType ( externalReturnType ) ) ; return internalMethodDescriptor.toString ( ) ; }
Source:
private static void applyInvokeWithSecurityPolicy ( com.android.internal.os.ZygoteConnection.Arguments args , android.net.Credentials peer ) throws com.android.internal.os.ZygoteSecurityException { int peerUid = peer.getUid ( ) ; if ( ( ( ( args.invokeWith ) != null ) && ( peerUid != 0 ) ) && ( ( ( args.debugFlags ) & ( Zygote.DEBUG_ENABLE_DEBUGGER ) ) == 0 ) ) { throw new com.android.internal.os.ZygoteSecurityException ( ( "Peer is permitted to specify an" + ( "explicit invoke-with wrapper command only for debuggable" + "applications." ) ) ) ; } }

Target:
private static void applyInvokeWithSecurityPolicy ( com.android.internal.os.ZygoteConnection.Arguments args , android.net.Credentials peer ) throws com.android.internal.os.ZygoteSecurityException { int peerUid = peer.getUid ( ) ; if ( ( ( ( args.invokeWith ) != null ) && ( peerUid != 0 ) ) && ( ( ( args.debugFlags ) & ( Zygote.DEBUG_ENABLE_JDWP ) ) == 0 ) ) { throw new com.android.internal.os.ZygoteSecurityException ( ( "Peer is permitted to specify an" + ( "explicit invoke-with wrapper command only for debuggable" + "applications." ) ) ) ; } }
Source:
public static < K , V , M extends java.util.Map < K , V > > com.google.common.truth.MapSubject < ? extends com.google.common.truth.MapSubject < ? , K , V , M > , K , V , M > assertThat ( java.util.Map < K , V > target ) { return com.google.common.truth.Truth.assert_ ( ) . that ( target ) ; }

Target:
public static < K , V , M extends com.google.common.collect.Multimap < K , V > > com.google.common.truth.MultimapSubject < ? extends com.google.common.truth.MultimapSubject < ? , K , V , M > , K , V , M > assertThat ( @ com.android.annotations.Nullable com.google.common.collect.Multimap < K , V > target ) { return com.google.common.truth.Truth.assert_ ( ) . that ( target ) ; }
Source:
public synchronized void write ( byte [ ] buf , int off , int len ) { java.lang.String encoded = new java.lang.String ( org.simpleframework.common.encode.Base64Encoder.encode ( buf , off , len ) ) ; synchronized ( out ) { out.print ( prefix ) ; out.print ( encoded ) ; out.print ( com.android.jack.server.type.CommandOutBase64.EOL ) ; } }

Target:
public synchronized void write ( byte [ ] buf , int off , int len ) { java.lang.String encoded = com.google.common.io.BaseEncoding.base64 ( ) . encode ( buf , off , len ) ; synchronized ( out ) { out.print ( prefix ) ; out.print ( encoded ) ; out.print ( com.android.jack.server.type.CommandOutBase64.EOL ) ; } }
Source:
public final void testTapLink_changeOrientationThenTapBack ( ) throws java.lang.Exception { sUiBot.setScreenOrientation ( UiBot.PORTRAIT ) ; try { saveUiRestoredAfterTappingLinkTest ( android.autofillservice.cts.CustomDescriptionWithLinkTestCase.PostSaveLinkTappedAction.ROTATE_THEN_TAP_BACK_BUTTON ) ; } finally { sUiBot.setScreenOrientation ( UiBot.PORTRAIT ) ; } }

Target:
public final void testTapLink_changeOrientationThenTapBack ( ) throws java.lang.Exception { sUiBot.setScreenOrientation ( UiBot.PORTRAIT ) ; try { android.autofillservice.cts.Helper.runShellCommand ( "wm density 420" ) ; saveUiRestoredAfterTappingLinkTest ( android.autofillservice.cts.CustomDescriptionWithLinkTestCase.PostSaveLinkTappedAction.ROTATE_THEN_TAP_BACK_BUTTON ) ; } finally { sUiBot.setScreenOrientation ( UiBot.PORTRAIT ) ; try { cleanUpAfterScreenOrientationIsBackToPortrait ( ) ; } finally { android.autofillservice.cts.Helper.runShellCommand ( "wm density reset" ) ; } } }
Source:
public int read ( ) throws java.io.IOException { synchronized ( lock ) { checkNotClosed ( ) ; if ( ( ( pos ) < ( end ) ) || ( ( fillBuf ( ) ) != ( - 1 ) ) ) { return buf [ ( ( pos ) ++ ) ] ; } return - 1 ; } }

Target:
public int read ( ) throws java.io.IOException { synchronized ( lock ) { checkNotClosed ( ) ; int ch = readChar ( ) ; if ( ( lastWasCR ) && ( ch == '\n' ) ) { ch = readChar ( ) ; } lastWasCR = false ; return ch ; } }