auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private boolean addMediaPlayerController ( com.android.bluetooth.avrcp.MediaController controller ) { java.lang.String packageName = controller.getPackageName ( ) ; com.android.bluetooth.avrcp.MediaPlayerInfo info = new com.android.bluetooth.avrcp.MediaPlayerInfo ( com.android.bluetooth.avrcp.MediaController.wrap ( controller ) , AvrcpConstants.PLAYER_TYPE_AUDIO , AvrcpConstants.PLAYER_SUBTYPE_NONE , getBluetoothPlayState ( controller.getPlaybackState ( ) ) , getFeatureBitMask ( packageName ) , controller.getPackageName ( ) , getAppLabel ( packageName ) ) ; return addMediaPlayerInfo ( info ) ; }

Target:
private boolean addMediaPlayerController ( com.android.bluetooth.avrcp.MediaController controller ) { java.lang.String packageName = controller.getPackageName ( ) ; com.android.bluetooth.avrcp.MediaPlayerInfo info = new com.android.bluetooth.avrcp.MediaPlayerInfo ( com.android.bluetooth.avrcp.MediaControllerFactory.wrap ( controller ) , AvrcpConstants.PLAYER_TYPE_AUDIO , AvrcpConstants.PLAYER_SUBTYPE_NONE , getBluetoothPlayState ( controller.getPlaybackState ( ) ) , getFeatureBitMask ( packageName ) , controller.getPackageName ( ) , getAppLabel ( packageName ) ) ; return addMediaPlayerInfo ( info ) ; }
Source:
public void testNotifyChange1 ( ) throws java.lang.InterruptedException { android.content.cts.ContentResolverTest.MockContentObserver mco = new android.content.cts.ContentResolverTest.MockContentObserver ( ) ; mContentResolver.registerContentObserver ( android.content.cts.ContentResolverTest.TABLE1_URI , true , mco ) ; assertFalse ( mco.hadOnChanged ( ) ) ; mContentResolver.notifyChange ( android.content.cts.ContentResolverTest.TABLE1_URI , mco ) ; assertTrue ( mco.hadOnChanged ( ) ) ; mContentResolver.unregisterContentObserver ( mco ) ; }

Target:
protected boolean check ( ) { return mco.hadOnChanged ( ) ; }
Source:
private void checkFailure ( java.lang.String resource , java.lang.String regex ) throws java.lang.Exception { java.io.InputStream xml = com.android.dvlib.DeviceSchemaTest.class . getResourceAsStream ( resource ) ; java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; assertFalse ( "Validation Assertion Failed, XML validated when it was expected to fail\n" , com.android.dvlib.DeviceSchema.validate ( xml , baos , null ) ) ; assertTrue ( java.lang.String.format ( "Regex Assertion Failed:\nExpected: %s\nActual: %s\n" , regex , baos.toString ( ) . trim ( ) ) , baos.toString ( ) . trim ( ) . matches ( regex ) ) ; }

Target:
private void checkFailure ( java.lang.String resource , java.lang.String regex ) throws java.lang.Exception { java.io.InputStream xml = com.android.dvlib.DeviceSchemaTest.class . getResourceAsStream ( resource ) ; java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream ( ) ; assertFalse ( "Validation Assertion Failed, XML validated when it was expected to fail\n" , com.android.dvlib.DeviceSchema.validate ( xml , baos , null ) ) ; java.lang.String actual = baos.toString ( ) . trim ( ) ; actual = actual.replace ( "\r\n" , "\n" ) ; assertTrue ( java.lang.String.format ( "Regex Assertion Failed:\nExpected: %s\nActual: %s\n" , regex , actual ) , actual.matches ( regex ) ) ; }
Source:
public synchronized com.android.ide.common.layoutlib.LayoutLibrary getLayoutLibrary ( ) { if ( ( ( mLayoutBridgeInit ) == false ) && ( ( mLayoutLibrary.getBridge ( ) ) != null ) ) { mLayoutLibrary.getBridge ( ) . init ( mTarget.getPath ( IAndroidTarget.FONTS ) , getEnumValueMap ( ) ) ; mLayoutBridgeInit = true ; } return mLayoutLibrary ; }

Target:
public synchronized com.android.ide.common.layoutlib.LayoutLibrary getLayoutLibrary ( ) { if ( ( ( mLayoutBridgeInit ) == false ) && ( ( mLayoutLibrary.getStatus ( ) ) == ( com.android.ide.common.sdk.LoadStatus.LOADED ) ) ) { mLayoutLibrary.init ( mTarget.getPath ( IAndroidTarget.FONTS ) , getEnumValueMap ( ) ) ; mLayoutBridgeInit = true ; } return mLayoutLibrary ; }
Source:
public void testAesCbcHmacMd5Udp4 ( ) 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 ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha256Tcp4UdpEncap ( ) 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_SHA256 , android.net.cts.IpSecManagerTest.getKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }
Source:
public java.lang.String getPath ( ) { return mPath ; }

Target:
public java.lang.String getPath ( ) { java.lang.String path = mPath ; if ( ( ( mVendor ) != null ) && ( ( mVendor.length ( ) ) > 0 ) ) { path = ( ( mVendor ) + "-" ) + ( mPath ) ; } int h = path.hashCode ( ) ; path = path.replaceAll ( "[^a-zA-Z0-9-]+" , "_" ) ; if ( ( path.length ( ) ) == 0 ) { path = java.lang.String.format ( "unknown_extra%08x" , h ) ; } return path ; }
Source:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { return new org.objectweb.asm.MethodVisitor ( Opcodes.ASM4 ) { @ java.lang.Override public org.objectweb.asm.AnnotationVisitor visitAnnotationDefault ( ) { return av ; } @ java.lang.Override public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { return av ; } @ java.lang.Override public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation ( int parameter , java.lang.String desc , boolean visible ) { return av ; } } ; }

Target:
public org.objectweb.asm.AnnotationVisitor visitTryCatchAnnotation ( int typeRef , org.objectweb.asm.TypePath typePath , java.lang.String desc , boolean visible ) { return av ; }
Source:
private PackageParser.Package scanPackageLI ( android.content.pm.PackageParser.Package pkg , int parseFlags , int scanFlags , long currentTime , android.os.UserHandle user ) throws com.android.server.pm.PackageManagerException { boolean success = false ; try { final android.content.pm.PackageParser.Package res = scanPackageDirtyLI ( pkg , parseFlags , scanFlags , currentTime , user ) ; success = true ; return res ; } finally { if ( ( ! success ) && ( ( scanFlags & ( com.android.server.pm.PackageManagerService.SCAN_DELETE_DATA_ON_FAILURES ) ) != 0 ) ) { removeDataDirsLI ( pkg.volumeUuid , pkg.packageName ) ; } } }

Target:
private void updatePermissionsLPw ( android.content.pm.PackageParser.Package pkg , int flags ) { updatePermissionsLPw ( pkg.packageName , pkg , flags ) ; final int childCount = ( ( pkg.childPackages ) != null ) ? pkg.childPackages.size ( ) : 0 ; for ( int i = 0 ; i < childCount ; i ++ ) { android.content.pm.PackageParser.Package childPkg = pkg.childPackages.get ( i ) ; updatePermissionsLPw ( childPkg.packageName , childPkg , flags ) ; } }
Source:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , android.bluetooth.le.AdvertisingSetCallback callback , android.os.Handler handler ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , 0 , 0 , callback , handler ) ; }

Target:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , android.bluetooth.le.AdvertisingSetCallback callback ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , 0 , callback , new android.os.Handler ( android.os.Looper.getMainLooper ( ) ) ) ; }
Source:
public void writeRawLittleEndian32 ( final int value ) throws java.io.IOException { writeRawByte ( ( value & 255 ) ) ; writeRawByte ( ( ( value > > 8 ) & 255 ) ) ; writeRawByte ( ( ( value > > 16 ) & 255 ) ) ; writeRawByte ( ( ( value > > 24 ) & 255 ) ) ; }

Target:
public void writeBytes ( final int fieldNumber , final byte [ ] value , final int offset , final int length ) throws java.io.IOException { writeTag ( fieldNumber , WireFormatNano.WIRETYPE_LENGTH_DELIMITED ) ; writeBytesNoTag ( value , offset , length ) ; }
Source:
public static java.lang.String getEncodedString ( @ com.android.annotations.NonNull java.io.File file ) throws java.io.IOException { byte [ ] bytes = com.google.common.io.Files.toByteArray ( file ) ; if ( com.android.tools.lint.detector.api.LintUtils.endsWith ( file.getName ( ) , com.android.tools.lint.detector.api.LintConstants.DOT_XML ) ) { return com.android.util.PositionXmlParser.getXmlString ( bytes ) ; } return com.android.tools.lint.detector.api.LintUtils.getEncodedString ( bytes ) ; }

Target:
public static java.lang.String getEncodedString ( @ com.android.annotations.NonNull com.android.tools.lint.client.api.LintClient client , @ com.android.annotations.NonNull java.io.File file ) throws java.io.IOException { byte [ ] bytes = client.readBytes ( file ) ; if ( com.android.tools.lint.detector.api.LintUtils.endsWith ( file.getName ( ) , com.android.tools.lint.detector.api.LintConstants.DOT_XML ) ) { return com.android.util.PositionXmlParser.getXmlString ( bytes ) ; } return com.android.tools.lint.detector.api.LintUtils.getEncodedString ( bytes ) ; }
Source:
public com.android.ims.internal.IImsMMTelFeature getImsMMTelFeatureAndListen ( int slotIndex , com.android.ims.internal.IImsServiceFeatureCallback callback ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getMMTelFeatureAndListen ( slotIndex , callback ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsMMTelFeatureAndListen, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }

Target:
public void disableIms ( int slotId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.disableIms ( slotId ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "disableIms, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } }
Source:
public boolean equals ( java.lang.Object qualifier ) { if ( qualifier instanceof com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier ) { return ( mValue ) == ( ( ( com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier ) ( qualifier ) ) . mValue ) ; } return false ; }

Target:
public boolean isBetterMatchThan ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier compareTo , com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier reference ) { if ( compareTo == null ) { return true ; } com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier compareQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier ) ( compareTo ) ) ; com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier referenceQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.DockModeQualifier ) ( reference ) ) ; if ( ( compareQualifier.getValue ( ) ) == ( referenceQualifier.getValue ( ) ) ) { return false ; } else if ( ( mValue ) == ( com.android.sdklib.resources.DockMode.NONE ) ) { return true ; } return false ; }
Source:
private boolean canReadPhoneState ( java.lang.String callingPackage ) { if ( ( mContext.checkCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { return true ; } boolean canReadPhoneState = ( mContext.checkCallingOrSelfPermission ( android.Manifest.permission.READ_PHONE_STATE ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ; if ( canReadPhoneState && ( ( mAppOps.noteOp ( AppOpsManager.OP_READ_PHONE_STATE , android.os.Binder.getCallingUid ( ) , callingPackage ) ) != ( android.app.AppOpsManager.MODE_ALLOWED ) ) ) { return false ; } return canReadPhoneState ; }

Target:
public void binderDied ( ) { if ( com.android.server.TelephonyRegistry.DBG ) com.android.server.TelephonyRegistry.log ( ( "binderDied " + ( binder ) ) ) ; remove ( binder ) ; }
Source:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setBlockNetworkImage" , args = { boolean . class } ) } ) public void testAccessBlockNetworkImage ( ) throws java.lang.Exception { java.lang.String url = TestHtmlConstants.EMBEDDED_IMG_URL ; java.lang.String ext = android.webkit.MimeTypeMap.getFileExtensionFromUrl ( url ) ; mWebView.clearCache ( true ) ; assertFalse ( mSettings.getBlockNetworkImage ( ) ) ; assertTrue ( mSettings.getLoadsImagesAutomatically ( ) ) ; loadAssetUrl ( url ) ; assertFalse ( mWebServer.getLastRequestUrl ( ) . endsWith ( ext ) ) ; }

Target:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setBlockNetworkImage" , args = { boolean . class } ) } ) public void testAccessBlockNetworkImage ( ) throws java.lang.Exception { java.lang.String url = TestHtmlConstants.EMBEDDED_IMG_URL ; final java.lang.String ext = android.webkit.MimeTypeMap.getFileExtensionFromUrl ( url ) ; mWebView.clearCache ( true ) ; assertFalse ( mSettings.getBlockNetworkImage ( ) ) ; assertTrue ( mSettings.getLoadsImagesAutomatically ( ) ) ; loadAssetUrl ( url ) ; new android.view.animation.cts.DelayedCheck ( ) { @ java.lang.Override protected boolean check ( ) { return ! ( mWebServer.getLastRequestUrl ( ) . endsWith ( ext ) ) ; } } . run ( ) ; }
Source:
native void rsnAllocationRead1D ( long con , long id , int off , int mip , int count , java.lang.Object d , int sizeBytes , int dt ) ;

Target:
synchronized void nAllocationRead2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt , int mSize , boolean usePadding ) { validate ( ) ; rsnAllocationRead2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes , dt.mID , mSize , usePadding ) ; }
Source:
private void testExplicitSize ( ) { doLayoutParamTest ( ( android.view.WindowManager.LayoutParams params ) -> { params.width = 200 ; params.height = 200 ; } ) ; }

Target:
private void testExplicitSizeBottomRightGravity ( ) { doLayoutParamTest ( ( android.view.WindowManager.LayoutParams params ) -> { params.width = ( 200 - ( mOutsets.left ) ) - ( mOutsets.right ) ; params.height = ( 200 - ( mOutsets.bottom ) ) - ( mOutsets.top ) ; params.gravity = ( android.view.Gravity.BOTTOM ) | ( android.view.Gravity.RIGHT ) ; } ) ; }
Source:
private int deriveNumericScope ( java.net.NetworkInterface ifc ) throws java.net.UnknownHostException { java.util.Enumeration < java.net.InetAddress > addresses = ifc.getInetAddresses ( ) ; while ( addresses.hasMoreElements ( ) ) { java.net.InetAddress addr = addresses.nextElement ( ) ; if ( ! ( addr instanceof java.net.Inet6Address ) ) { continue ; } java.net.Inet6Address ia6_addr = ( ( java.net.Inet6Address ) ( addr ) ) ; if ( ! ( differentLocalAddressTypes ( ia6_addr ) ) ) { continue ; } return ia6_addr.scope_id ; } throw new java.net.UnknownHostException ( "no scope_id found" ) ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ! ( o instanceof java.net.Inet6Address.Inet6AddressHolder ) ) { return false ; } java.net.Inet6Address.Inet6AddressHolder that = ( ( java.net.Inet6Address.Inet6AddressHolder ) ( o ) ) ; return java.util.Arrays.equals ( this . ipaddress , that.ipaddress ) ; }
Source:
public void testRequestOnlyIfCachedWithUnhelpfulResponseCached ( ) throws java.io.IOException { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "A" ) ) ; server.play ( ) ; assertEquals ( "A" , readAscii ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; connection.addRequestProperty ( "Cache-Control" , "only-if-cached" ) ; assertBadGateway ( connection ) ; }

Target:
public void testRequestOnlyIfCachedWithUnhelpfulResponseCached ( ) throws java.io.IOException { server.enqueue ( new com.google.mockwebserver.MockResponse ( ) . setBody ( "A" ) ) ; server.play ( ) ; assertEquals ( "A" , readAscii ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; java.net.HttpURLConnection connection = ( ( java.net.HttpURLConnection ) ( server.getUrl ( "/" ) . openConnection ( ) ) ) ; connection.addRequestProperty ( "Cache-Control" , "only-if-cached" ) ; assertGatewayTimeout ( connection ) ; }
Source:
public void enter ( ) { mPhone.mCi.registerForRilConnected ( getHandler ( ) , DataConnection.EVENT_RIL_CONNECTED , null ) ; mPhone.mCi.registerForDataNetworkStateChanged ( getHandler ( ) , DataConnection.EVENT_DATA_STATE_CHANGED , null ) ; if ( android.os.Build.IS_DEBUGGABLE ) { mDcTesterDeactivateAll = new com.android.internal.telephony.dataconnection.DcTesterDeactivateAll ( mPhone , this , getHandler ( ) ) ; } }

Target:
public void enter ( ) { mPhone.mCi.registerForRilConnected ( getHandler ( ) , DataConnection.EVENT_RIL_CONNECTED , null ) ; mPhone.mCi.registerForDataCallListChanged ( getHandler ( ) , DataConnection.EVENT_DATA_STATE_CHANGED , null ) ; if ( android.os.Build.IS_DEBUGGABLE ) { mDcTesterDeactivateAll = new com.android.internal.telephony.dataconnection.DcTesterDeactivateAll ( mPhone , this , getHandler ( ) ) ; } }
Source:
public java.lang.String $noinline$run0 ( ) { if ( Main.sFlag ) { throw new java.lang.Error ( ) ; } char [ ] arr = new char [ ] { 'a' , 'b' , 'c' } ; return new java.lang.String ( arr , 0 , arr.length ) ; }

Target:
public java.lang.String $noinline$run0 ( ) { if ( Main.sFlag ) { throw new java.lang.Error ( ) ; } char [ ] arr = new char [ ] { 'a' , 'b' , 'c' } ; java.lang.String str = new java.lang.String ( arr , 0 , arr.length ) ; if ( ! ( str.equals ( "abc" ) ) ) { java.lang.System.out.println ( ( "Failure! " + str ) ) ; java.lang.System.exit ( 0 ) ; } return str ; }
Source:
public void testNewInstanceString_StringBuilderConstructor ( ) { runTestNewInstanceString ( "(Ljava/lang/StringBuilder;)V" , new org.apache.harmony.jpda.tests.jdwp.ClassType.NewInstanceStringTest.ConstructorArgumentsProvider ( ) { @ java.lang.Override public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value stringBuilderValue = getStaticFieldValue ( debuggeeClassId , "STRING_BUILDER" ) ; constructorArguments.add ( stringBuilderValue ) ; } } ) ; }

Target:
public void testNewInstanceString_StringBuilderConstructor ( ) { runTestNewInstanceString ( "(Ljava/lang/StringBuilder;)V" , new org.apache.harmony.jpda.tests.jdwp.ClassType.ConstructorArgumentsProvider ( ) { @ java.lang.Override public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value stringBuilderValue = getStaticFieldValue ( debuggeeClassId , "STRING_BUILDER" ) ; constructorArguments.add ( stringBuilderValue ) ; } } ) ; }
Source:
public void testNetworkBlocked ( ) throws java.lang.Exception { assertEquals ( com.android.cts.deviceandprofileowner.vpn.VpnTestHelper.VPN_PACKAGE , mDevicePolicyManager.getAlwaysOnVpnPackage ( com.android.cts.deviceandprofileowner.ADMIN_RECEIVER_COMPONENT ) ) ; assertFalse ( com.android.cts.deviceandprofileowner.vpn.VpnTestHelper.isNetworkVpn ( mContext ) ) ; try { com.android.cts.deviceandprofileowner.vpn.VpnTestHelper.tryPosixConnect ( com.android.cts.deviceandprofileowner.vpn.VpnTestHelper.TEST_ADDRESS ) ; fail ( "sendIcmpMessage doesn't throw Exception during network lockdown" ) ; } catch ( android.system.ErrnoException e ) { assertEquals ( OsConstants.ENETUNREACH , e.errno ) ; } }

Target:
public void testNetworkBlocked ( ) throws java.lang.Exception { assertEquals ( com.android.cts.deviceandprofileowner.vpn.VpnTestHelper.VPN_PACKAGE , mDevicePolicyManager.getAlwaysOnVpnPackage ( com.android.cts.deviceandprofileowner.ADMIN_RECEIVER_COMPONENT ) ) ; assertFalse ( com.android.cts.deviceandprofileowner.vpn.VpnTestHelper.isNetworkVpn ( mContext ) ) ; try { com.android.cts.deviceandprofileowner.vpn.VpnTestHelper.tryPosixConnect ( com.android.cts.deviceandprofileowner.vpn.VpnTestHelper.TEST_ADDRESS ) ; fail ( "sendIcmpMessage doesn't throw Exception during network lockdown" ) ; } catch ( android.system.ErrnoException e ) { assertTrue ( ( ( ( e.errno ) == ( android.system.OsConstants.ENETUNREACH ) ) || ( ( e.errno ) == ( android.system.OsConstants.EACCES ) ) ) ) ; } }
Source:
public void remove ( ) { if ( ( lastRet ) < 0 ) throw new java.lang.IllegalStateException ( ) ; java.lang.Object x = array [ lastRet ] ; lastRet = - 1 ; lock.lock ( ) ; try { for ( java.util.Iterator it = q.iterator ( ) ; it.hasNext ( ) ; ) { if ( ( it.next ( ) ) == x ) { it.remove ( ) ; return ; } } } finally { lock.unlock ( ) ; } }

Target:
void removeEQ ( java.lang.Object o ) { final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lock ( ) ; try { for ( java.util.Iterator < E > it = q.iterator ( ) ; it.hasNext ( ) ; ) { if ( o == ( it.next ( ) ) ) { it.remove ( ) ; break ; } } } finally { lock.unlock ( ) ; } }
Source:
public void testStyleables2 ( ) throws java.lang.Exception { check ( "test.pkg" , ( "int[] styleable LimitedSizeLinearLayout { 0x7f010000, 0x7f010001 }\n" + ( ( "int styleable LimitedSizeLinearLayout_max_height 1\n" + "int styleable LimitedSizeLinearLayout_max_width 0\n" ) + "int xml authenticator 0x7f040000\n" ) ) , ( "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " *\n" + " * This class was automatically generated by the\n" ) + " * aapt tool from the resource data it found. It\n" ) + " * should not be modified by hand.\n" ) + " */\n" ) + "package test.pkg;\n" ) + "\n" ) + "public final class R {\n" ) + " public static final class styleable {\n" ) + " public static final int LimitedSizeLinearLayout_max_height = 1;\n" ) + " public static final int LimitedSizeLinearLayout_max_width = 0;\n" ) + " public static final int[] LimitedSizeLinearLayout = { 0x7f010000, 0x7f010001 };\n" ) + " }\n" ) + " public static final class xml {\n" ) + " public static final int authenticator = 0x7f040000;\n" ) + " }\n" ) + "}\n" ) ) ) ; }

Target:
public void testStyleables1 ( ) throws java.lang.Exception { check ( "test.pkg" , ( "/* AUTO-GENERATED FILE. DO NOT MODIFY.\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " *\n" + " * This class was automatically generated by the\n" ) + " * aapt tool from the resource data it found. It\n" ) + " * should not be modified by hand.\n" ) + " */\n" ) + "package test.pkg;\n" ) + "\n" ) + "public final class R {\n" ) + " public static final class styleable {\n" ) + " public static final int[] TiledView = { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004 };\n" ) + " public static final int TiledView_tileName = 2;\n" ) + " public static final int TiledView_tilingEnum = 4;\n" ) + " public static final int TiledView_tilingMode = 3;\n" ) + " public static final int TiledView_tilingProperty = 0;\n" ) + " public static final int TiledView_tilingResource = 1;\n" ) + " }\n" ) + "}\n" ) ) , null , ( "int[] styleable TiledView { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004 }\n" + ( ( ( ( "int styleable TiledView_tileName 2\n" + "int styleable TiledView_tilingEnum 4\n" ) + "int styleable TiledView_tilingMode 3\n" ) + "int styleable TiledView_tilingProperty 0\n" ) + "int styleable TiledView_tilingResource 1\n" ) ) ) ; }
Source:
public void TestBritishShortHourFallback ( ) { java.lang.Object oneHour = new com.ibm.icu.util.TimeUnitAmount ( 1 , com.ibm.icu.util.TimeUnit.HOUR ) ; com.ibm.icu.util.ULocale en_GB = new com.ibm.icu.util.ULocale ( "en_GB" ) ; com.ibm.icu.text.TimeUnitFormat formatter = new com.ibm.icu.text.TimeUnitFormat ( en_GB , com.ibm.icu.text.TimeUnitFormat.ABBREVIATED_NAME ) ; java.lang.String result = formatter.format ( oneHour ) ; assertEquals ( "TestBritishShortHourFallback()" , "1 hr" , result ) ; }

Target:
public void TestBritishShortHourFallback ( ) { java.lang.Object oneHour = new com.ibm.icu.util.TimeUnitAmount ( 1 , com.ibm.icu.util.TimeUnit.HOUR ) ; com.ibm.icu.util.ULocale en_GB = new com.ibm.icu.util.ULocale ( "en_GB" ) ; com.ibm.icu.text.TimeUnitFormat formatter = new com.ibm.icu.text.TimeUnitFormat ( en_GB , com.ibm.icu.text.TimeUnitFormat.ABBREVIATED_NAME ) ; java.lang.String result = formatter.format ( oneHour ) ; assertEquals ( "TestBritishShortHourFallback()" , "1 hr" , result ) ; for ( com.ibm.icu.util.ULocale locale : com.ibm.icu.util.ULocale.getAvailableLocales ( ) ) { try { new com.ibm.icu.text.TimeUnitFormat ( locale , com.ibm.icu.text.TimeUnitFormat.ABBREVIATED_NAME ) ; } catch ( java.lang.RuntimeException e ) { errln ( ( "failed to load TimeUnitFormat data for " + locale ) ) ; } } }
Source:
private void checkIntentFilters ( ) { try { setHandleIntentActivityEnabledSetting ( PackageManager.COMPONENT_ENABLED_STATE_ENABLED ) ; android.content.Intent intent = new android.content.Intent ( ByodHelperActivity.ACTION_CHECK_INTENT_FILTERS ) ; startActivityForResult ( intent , com.android.cts.verifier.managedprovisioning.ByodFlowTestActivity.REQUEST_INTENT_FILTERS_STATUS ) ; } catch ( android.content.ActivityNotFoundException e ) { setHandleIntentActivityEnabledSetting ( PackageManager.COMPONENT_ENABLED_STATE_DISABLED ) ; android.util.Log.d ( TAG , "checkIntentFilters: ActivityNotFoundException" , e ) ; setTestResult ( mIntentFiltersTest , TestResult.TEST_RESULT_FAILED ) ; showToast ( R.string.provisioning_byod_no_activity ) ; } }

Target:
private void checkIntentFilters ( ) { try { setHandleIntentActivityEnabledSetting ( PackageManager.COMPONENT_ENABLED_STATE_ENABLED ) ; android.content.Intent intent = new android.content.Intent ( ByodHelperActivity.ACTION_CHECK_INTENT_FILTERS ) ; startActivityForResult ( intent , com.android.cts.verifier.managedprovisioning.ByodFlowTestActivity.REQUEST_INTENT_FILTERS_STATUS ) ; } catch ( android.content.ActivityNotFoundException e ) { setHandleIntentActivityEnabledSetting ( PackageManager.COMPONENT_ENABLED_STATE_DISABLED ) ; android.util.Log.d ( com.android.cts.verifier.managedprovisioning.ByodFlowTestActivity.TAG , "checkIntentFilters: ActivityNotFoundException" , e ) ; setTestResult ( mIntentFiltersTest , TestResult.TEST_RESULT_FAILED ) ; showToast ( R.string.provisioning_byod_no_activity ) ; } }
Source:
public void testDisableWifiFromSoftApModeActiveState ( ) throws java.lang.Exception { enterSoftApActiveMode ( ) ; mWifiStateMachinePrime.disableWifi ( ) ; mLooper.dispatchNext ( ) ; verify ( mSoftApManager ) . stop ( ) ; verify ( mWificond ) . tearDownInterfaces ( ) ; org.junit.Assert.assertEquals ( "WifiDisabled" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; }

Target:
public void testDisableWifiFromSoftApModeActiveState ( ) throws java.lang.Exception { enterSoftApActiveMode ( ) ; mWifiStateMachinePrime.disableWifi ( ) ; mLooper.dispatchAll ( ) ; verify ( mSoftApManager ) . stop ( ) ; verify ( mWificond ) . tearDownInterfaces ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachinePrimeTest.WIFI_DISABLED_STATE_STRING , mWifiStateMachinePrime.getCurrentMode ( ) ) ; }
Source:
private void checkCreateTemplate ( java.lang.String category , java.lang.String name ) throws java.lang.Exception { com.google.common.base.Stopwatch stopwatch = new com.google.common.base.Stopwatch ( ) ; stopwatch.start ( ) ; java.io.File templateFile = com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandlerTest.findTemplate ( category , name ) ; assertNotNull ( templateFile ) ; com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandlerTest.sTemplateTestedSeparately.add ( templateFile ) ; checkTemplate ( templateFile ) ; stopwatch.stop ( ) ; java.lang.System.out.println ( ( ( ( "Checked " + ( templateFile.getName ( ) ) ) + " successfully in " ) + ( stopwatch.toString ( ) ) ) ) ; }

Target:
private void checkCreateTemplate ( java.lang.String category , java.lang.String name ) throws java.lang.Exception { com.google.common.base.Stopwatch stopwatch = com.google.common.base.Stopwatch.createUnstarted ( ) ; stopwatch.start ( ) ; java.io.File templateFile = com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandlerTest.findTemplate ( category , name ) ; assertNotNull ( templateFile ) ; com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandlerTest.sTemplateTestedSeparately.add ( templateFile ) ; checkTemplate ( templateFile ) ; stopwatch.stop ( ) ; java.lang.System.out.println ( ( ( ( "Checked " + ( templateFile.getName ( ) ) ) + " successfully in " ) + ( stopwatch.toString ( ) ) ) ) ; }
Source:
private void recordBrowserProcessHistogram ( android.content.Context context ) { if ( org.chromium.base.library_loader.Linker.getInstance ( ) . isUsed ( ) ) { nativeRecordChromiumAndroidLinkerBrowserHistogram ( mIsUsingBrowserSharedRelros , mLoadAtFixedAddressFailed , getLibraryLoadFromApkStatus ( context ) , mLibraryLoadTimeMs ) ; } if ( ( org.chromium.base.library_loader.LibraryLoader.sLibraryPreloader ) != null ) { nativeRecordLibraryPreloaderBrowserHistogram ( mLibraryPreloaderStatus ) ; } }

Target:
public void onNativeInitializationComplete ( ) { recordBrowserProcessHistogram ( ) ; }
Source:
public void changeFileOnNewConfig ( org.eclipse.core.resources.IFile file ) { mEditedFile = file ; org.eclipse.core.resources.IProject iProject = mEditedFile.getProject ( ) ; mResources = com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.getInstance ( ) . getProjectResources ( iProject ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder resFolder = com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.getInstance ( ) . getResourceFolder ( file ) ; mEditedConfig = resFolder.getConfiguration ( ) ; updateConfigDisplay ( mEditedConfig ) ; }

Target:
public void changeFileOnNewConfig ( org.eclipse.core.resources.IFile file ) { mEditedFile = file ; org.eclipse.core.resources.IProject iProject = mEditedFile.getProject ( ) ; mResources = com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.getInstance ( ) . getProjectResources ( iProject ) ; com.android.ide.common.resources.ResourceFolder resFolder = com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.getInstance ( ) . getResourceFolder ( file ) ; mEditedConfig = resFolder.getConfiguration ( ) ; updateConfigDisplay ( mEditedConfig ) ; }
Source:
public final boolean isSystem ( ) { switch ( mKeyCode ) { case android.view.KeyEvent.KEYCODE_MENU : case android.view.KeyEvent.KEYCODE_SOFT_RIGHT : case android.view.KeyEvent.KEYCODE_HOME : case android.view.KeyEvent.KEYCODE_BACK : case android.view.KeyEvent.KEYCODE_CALL : case android.view.KeyEvent.KEYCODE_ENDCALL : case android.view.KeyEvent.KEYCODE_VOLUME_UP : case android.view.KeyEvent.KEYCODE_VOLUME_DOWN : case android.view.KeyEvent.KEYCODE_MUTE : case android.view.KeyEvent.KEYCODE_POWER : case android.view.KeyEvent.KEYCODE_HEADSETHOOK : case android.view.KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE : case android.view.KeyEvent.KEYCODE_MEDIA_STOP : case android.view.KeyEvent.KEYCODE_MEDIA_NEXT : case android.view.KeyEvent.KEYCODE_MEDIA_PREVIOUS : case android.view.KeyEvent.KEYCODE_MEDIA_REWIND : case android.view.KeyEvent.KEYCODE_MEDIA_FAST_FORWARD : case android.view.KeyEvent.KEYCODE_CAMERA : case android.view.KeyEvent.KEYCODE_FOCUS : case android.view.KeyEvent.KEYCODE_SEARCH : return true ; default : return false ; } }

Target:
public final boolean isSystem ( ) { switch ( mKeyCode ) { case android.view.KeyEvent.KEYCODE_MENU : case android.view.KeyEvent.KEYCODE_SOFT_RIGHT : case android.view.KeyEvent.KEYCODE_HOME : case android.view.KeyEvent.KEYCODE_BACK : case android.view.KeyEvent.KEYCODE_CALL : case android.view.KeyEvent.KEYCODE_ENDCALL : case android.view.KeyEvent.KEYCODE_VOLUME_UP : case android.view.KeyEvent.KEYCODE_VOLUME_DOWN : case android.view.KeyEvent.KEYCODE_MUTE : case android.view.KeyEvent.KEYCODE_POWER : case android.view.KeyEvent.KEYCODE_HEADSETHOOK : case android.view.KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE : case android.view.KeyEvent.KEYCODE_MEDIA_STOP : case android.view.KeyEvent.KEYCODE_MEDIA_NEXT : case android.view.KeyEvent.KEYCODE_MEDIA_PREVIOUS : case android.view.KeyEvent.KEYCODE_MEDIA_REWIND : case android.view.KeyEvent.KEYCODE_MEDIA_FAST_FORWARD : case android.view.KeyEvent.KEYCODE_CAMERA : case android.view.KeyEvent.KEYCODE_FOCUS : case android.view.KeyEvent.KEYCODE_SEARCH : case android.view.KeyEvent.KEYCODE_PICTSYMBOLS : case android.view.KeyEvent.KEYCODE_SWITCH_CHARSET : return true ; default : return false ; } }
Source:
public java.lang.String getDriverVersion ( ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getDriverVersionNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return "" ; } } }

Target:
public java.lang.String getDriverVersion ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getDriverVersion ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getDriverVersionNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return "" ; } } } }
Source:
private com.android.server.wifi.ScanDetailCache getScanDetailCache ( android.net.wifi.WifiConfiguration config , java.util.Map < java.lang.Integer , com.android.server.wifi.ScanDetailCache > scanDetailCaches ) { if ( ( config == null ) || ( scanDetailCaches == null ) ) return null ; com.android.server.wifi.ScanDetailCache cache = scanDetailCaches.get ( config.networkId ) ; if ( ( cache == null ) && ( ( config.networkId ) != ( android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID ) ) ) { cache = new com.android.server.wifi.ScanDetailCache ( config , ( ( WifiConfigManager.MAX_NUM_SCAN_CACHE_ENTRIES ) + 64 ) , WifiConfigManager.MAX_NUM_SCAN_CACHE_ENTRIES ) ; scanDetailCaches.put ( config.networkId , cache ) ; } return cache ; }

Target:
private com.android.server.wifi.ScanDetailCache getScanDetailCache ( android.net.wifi.WifiConfiguration config , java.util.Map < java.lang.Integer , com.android.server.wifi.ScanDetailCache > scanDetailCaches ) { if ( ( config == null ) || ( scanDetailCaches == null ) ) return null ; com.android.server.wifi.ScanDetailCache cache = scanDetailCaches.get ( config.networkId ) ; if ( ( cache == null ) && ( ( config.networkId ) != ( android.net.wifi.WifiConfiguration.INVALID_NETWORK_ID ) ) ) { cache = new com.android.server.wifi.ScanDetailCache ( config , WifiConfigManager.SCAN_CACHE_ENTRIES_MAX_SIZE , WifiConfigManager.SCAN_CACHE_ENTRIES_TRIM_SIZE ) ; scanDetailCaches.put ( config.networkId , cache ) ; } return cache ; }
Source:
public void setConfiguration ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { mSelectedConfiguration.set ( config , true ) ; mSelectionTableViewer.refresh ( ) ; mBaseConfiguration.substract ( mSelectedConfiguration ) ; mFullTableViewer.refresh ( ) ; }

Target:
public void setConfiguration ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { if ( ( mMode ) != ( com.android.ide.eclipse.adt.internal.ui.ConfigurationSelector.SelectorMode.CONFIG_ONLY ) ) { mSelectedConfiguration.set ( config , true ) ; mBaseConfiguration.substract ( mSelectedConfiguration ) ; } else { mBaseConfiguration.reset ( ) ; mBaseConfiguration.set ( config , true ) ; } mSelectionTableViewer.refresh ( ) ; mFullTableViewer.refresh ( ) ; }
Source:
public void copyFromUnchecked ( short [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , d ) ; } }

Target:
public void setAutoPadding ( boolean useAutoPadding ) { mAutoPadding = useAutoPadding ; }
Source:
public static boolean isRotationSupported ( android.content.Context context ) { android.content.pm.PackageManager pm = context.getPackageManager ( ) ; return ( pm.hasSystemFeature ( PackageManager.FEATURE_SCREEN_PORTRAIT ) ) && ( pm.hasSystemFeature ( PackageManager.FEATURE_SCREEN_LANDSCAPE ) ) ; }

Target:
public static boolean isRotationSupported ( android.content.Context context ) { android.content.pm.PackageManager pm = context.getPackageManager ( ) ; return ( ( pm.hasSystemFeature ( PackageManager.FEATURE_SCREEN_PORTRAIT ) ) && ( pm.hasSystemFeature ( PackageManager.FEATURE_SCREEN_LANDSCAPE ) ) ) && ( ! ( android.app.cts.ApplyOverrideConfigurationTest.isVrHeadset ( context ) ) ) ; }
Source:
private void startService ( ) throws java.util.concurrent.TimeoutException { android.content.Intent startIntent = new android.content.Intent ( android.support.test.InstrumentationRegistry.getTargetContext ( ) , com.android.bluetooth.a2dp.A2dpService.class ) ; startIntent.putExtra ( AdapterService.EXTRA_ACTION , AdapterService.ACTION_SERVICE_STATE_CHANGED ) ; startIntent.putExtra ( BluetoothAdapter.EXTRA_STATE , BluetoothAdapter.STATE_ON ) ; mServiceRule.startService ( startIntent ) ; verify ( mAdapterService , timeout ( com.android.bluetooth.a2dp.A2dpServiceTest.TIMEOUT_MS ) ) . onProfileServiceStateChanged ( eq ( com.android.bluetooth.a2dp.A2dpService.class . getName ( ) ) , eq ( BluetoothAdapter.STATE_ON ) ) ; mA2dpService = com.android.bluetooth.a2dp.A2dpService.getA2dpService ( ) ; org.junit.Assert.assertNotNull ( mA2dpService ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { if ( ! ( mTargetContext.getResources ( ) . getBoolean ( R.bool.profile_supported_a2dp ) ) ) { return ; } stopService ( ) ; mTargetContext.unregisterReceiver ( mConnectionStateChangedReceiver ) ; mConnectionStateChangedQueue.clear ( ) ; com.android.bluetooth.TestUtils.clearAdapterService ( mAdapterService ) ; }
Source:
public void testAesCbcHmacSha512Tcp6 ( ) 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_SHA512 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth ) ; }

Target:
public void testInterfaceCountersUdp4 ( ) 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 ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1000 , false ) ; }
Source:
public void addOriginator ( java.lang.String [ ] btUcis , java.lang.String [ ] btUids ) { if ( ( mOriginator ) == null ) mOriginator = new java.util.ArrayList < com.android.bluetooth.map.BluetoothMapbMessage.vCard > ( ) ; mOriginator.add ( new com.android.bluetooth.map.BluetoothMapbMessage.vCard ( null , null , null , null , btUids , btUcis ) ) ; }

Target:
public void addOriginator ( java.lang.String [ ] btUcis , java.lang.String [ ] btUids ) { if ( ( mOriginator ) == null ) mOriginator = new java.util.ArrayList < com.android.bluetooth.map.BluetoothMapbMessage.VCard > ( ) ; mOriginator.add ( new com.android.bluetooth.map.BluetoothMapbMessage.VCard ( null , null , null , null , btUids , btUcis ) ) ; }
Source:
native void rsnAllocationData2D ( long con , long id , int xoff , int yoff , int mip , int face , int w , int h , short [ ] d , int sizeBytes ) ;

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID ) ; }
Source:
public void enter ( ) { super . enter ( ) ; setSpeakerphoneOn ( false ) ; android.telecom.CallAudioState newState = new android.telecom.CallAudioState ( mIsMuted , com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_BLUETOOTH , mAvailableRoutes ) ; setSystemAudioState ( newState , true ) ; updateInternalCallAudioState ( ) ; }

Target:
public void enter ( ) { super . enter ( ) ; setSpeakerphoneOn ( false ) ; android.telecom.CallAudioState newState = new android.telecom.CallAudioState ( mIsMuted , com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_BLUETOOTH , mAvailableRoutes , mBluetoothRouteManager.getBluetoothAudioConnectedDevice ( ) , mBluetoothRouteManager.getConnectedDevices ( ) ) ; setSystemAudioState ( newState , true ) ; updateInternalCallAudioState ( ) ; }
Source:
private static java.lang.ref.WeakReference < java.lang.ClassLoader > setUpUnloadLoader ( java.lang.reflect.Constructor constructor ) throws java.lang.Exception { java.lang.ClassLoader loader = ( ( java.lang.ClassLoader ) ( constructor.newInstance ( Main.DEX_FILE , java.lang.ClassLoader.getSystemClassLoader ( ) ) ) ) ; java.lang.Class intHolder = loader.loadClass ( "IntHolder" ) ; java.lang.reflect.Method setValue = intHolder.getDeclaredMethod ( "setValue" , java.lang.Integer.TYPE ) ; setValue.invoke ( intHolder , 2 ) ; return new java.lang.ref.WeakReference ( loader ) ; }

Target:
private static java.lang.ref.WeakReference < java.lang.ClassLoader > setUpLoadLibrary ( java.lang.reflect.Constructor constructor ) throws java.lang.Exception { java.lang.ClassLoader loader = ( ( java.lang.ClassLoader ) ( constructor.newInstance ( Main.DEX_FILE , java.lang.ClassLoader.getSystemClassLoader ( ) ) ) ) ; java.lang.Class intHolder = loader.loadClass ( "IntHolder" ) ; java.lang.reflect.Method loadLibrary = intHolder.getDeclaredMethod ( "loadLibrary" , java.lang.String.class ) ; loadLibrary.invoke ( intHolder , Main.nativeLibraryName ) ; return new java.lang.ref.WeakReference ( loader ) ; }
Source:
private proguard.gradle.KeepClassSpecification createKeepClassSpecification ( boolean allowShrinking , boolean markClasses , boolean markConditionally , java.util.Map keepArgs , proguard.gradle.ClassSpecification classSpecification ) { return new proguard.gradle.KeepClassSpecification ( markClasses , markConditionally , retrieveBoolean ( keepArgs , "allowshrinking" , allowShrinking ) , retrieveBoolean ( keepArgs , "allowoptimization" , false ) , retrieveBoolean ( keepArgs , "allowobfuscation" , false ) , classSpecification ) ; }

Target:
private proguard.gradle.KeepClassSpecification createKeepClassSpecification ( boolean allowShrinking , boolean markClasses , boolean markConditionally , java.util.Map keepArgs , proguard.gradle.ClassSpecification classSpecification ) { return new proguard.gradle.KeepClassSpecification ( markClasses , markConditionally , retrieveBoolean ( keepArgs , "includedescriptorclasses" , false ) , retrieveBoolean ( keepArgs , "allowshrinking" , allowShrinking ) , retrieveBoolean ( keepArgs , "allowoptimization" , false ) , retrieveBoolean ( keepArgs , "allowobfuscation" , false ) , classSpecification ) ; }
Source:
private int strength_ICU_Java ( int value ) { int javaValue = value ; switch ( value ) { case libcore.icu.RuleBasedCollatorICU.VALUE_PRIMARY : javaValue = java.text.Collator.PRIMARY ; break ; case libcore.icu.RuleBasedCollatorICU.VALUE_SECONDARY : javaValue = java.text.Collator.SECONDARY ; break ; case libcore.icu.RuleBasedCollatorICU.VALUE_TERTIARY : javaValue = java.text.Collator.TERTIARY ; break ; case libcore.icu.RuleBasedCollatorICU.VALUE_IDENTICAL : javaValue = java.text.Collator.IDENTICAL ; break ; } return javaValue ; }

Target:
public void setStrength ( int value ) { if ( value == ( java.text.Collator.IDENTICAL ) ) { value = java.text.com.ibm.icu.text.Collator ; } icuColl.setStrength ( value ) ; }
Source:
public void addInterface ( int interfaceConstantIndex ) { if ( ( findInterfaceIndex ( interfaceConstantIndex ) ) < 0 ) { int interfacesCount = ( targetClass.u2interfacesCount ) ++ ; int [ ] interfaces = targetClass.u2interfaces ; if ( ( interfaces.length ) <= interfacesCount ) { int [ ] newinterfaces = new int [ interfacesCount + 1 ] ; java.lang.System.arraycopy ( interfaces , 0 , newinterfaces , 0 , interfacesCount ) ; interfaces = newinterfaces ; targetClass.u2interfaces = interfaces ; } interfaces [ interfacesCount ] = interfaceConstantIndex ; } }

Target:
public void addInterface ( int interfaceConstantIndex ) { if ( ( findInterfaceIndex ( interfaceConstantIndex ) ) < 0 ) { targetClass.u2interfaces = proguard.util.ArrayUtil.add ( targetClass.u2interfaces , ( ( targetClass.u2interfacesCount ) ++ ) , interfaceConstantIndex ) ; } }
Source:
public void visitAnnotation ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Annotation annotation ) { println ( ( ( ( ( visitorInfo ( annotation ) ) + " Annotation [" ) + ( clazz.getString ( annotation.u2typeIndex ) ) ) + "]:" ) ) ; indent ( ) ; annotation.elementValuesAccept ( clazz , this ) ; outdent ( ) ; }

Target:
public void visitAnnotation ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Annotation annotation ) { println ( ( ( ( ( visitorInfo ( annotation ) ) + " Annotation [" ) + ( annotation.getType ( clazz ) ) ) + "]:" ) ) ; indent ( ) ; annotation.elementValuesAccept ( clazz , this ) ; outdent ( ) ; }
Source:
public static double rawCopySign ( double magnitude , double sign ) { return java.lang.Double.longBitsToDouble ( ( ( ( java.lang.Double.doubleToRawLongBits ( sign ) ) & ( sun.misc.DoubleConsts.SIGN_BIT_MASK ) ) | ( ( java.lang.Double.doubleToRawLongBits ( magnitude ) ) & ( ( sun.misc.DoubleConsts.EXP_BIT_MASK ) | ( sun.misc.DoubleConsts.SIGNIF_BIT_MASK ) ) ) ) ) ; }

Target:
public static double rawCopySign ( double magnitude , double sign ) { return java.lang.Math.copySign ( magnitude , sign ) ; }
Source:
public static int getSocketLocalPort ( java.io.FileDescriptor fd ) throws java.net.SocketException { try { java.net.SocketAddress sa = Libcore.os.getsockname ( fd ) ; java.net.InetSocketAddress isa = ( ( java.net.InetSocketAddress ) ( sa ) ) ; return isa.getPort ( ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }

Target:
public static int getSocketLocalPort ( java.io.FileDescriptor fd ) throws java.net.SocketException { try { java.net.SocketAddress sa = Libcore.os.getsockname ( fd ) ; java.net.InetSocketAddress isa = ( ( java.net.InetSocketAddress ) ( sa ) ) ; return isa.getPort ( ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }