auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void requestPssLocked ( com.android.server.am.ProcessRecord proc , int procState ) { if ( mPendingPssProcesses.contains ( proc ) ) { return ; } if ( ( mPendingPssProcesses.size ( ) ) == 0 ) { mBgHandler.sendEmptyMessage ( com.android.server.am.ActivityManagerService.COLLECT_PSS_BG_MSG ) ; } if ( DEBUG_PSS ) android.util.Slog.d ( com.android.server.am.ActivityManagerService.TAG_PSS , ( "Requesting PSS of: " + proc ) ) ; proc.pssProcState = procState ; mPendingPssProcesses.add ( proc ) ; }

Target:
void requestPssLocked ( com.android.server.am.ProcessRecord proc , int procState ) { if ( mPendingPssProcesses.contains ( proc ) ) { return ; } if ( ( mPendingPssProcesses.size ( ) ) == 0 ) { mBgHandler.sendEmptyMessage ( com.android.server.am.ActivityManagerService.COLLECT_PSS_BG_MSG ) ; } if ( com.android.server.am.ActivityManagerDebugConfig.DEBUG_PSS ) android.util.Slog.d ( com.android.server.am.ActivityManagerService.TAG_PSS , ( "Requesting PSS of: " + proc ) ) ; proc.pssProcState = procState ; mPendingPssProcesses.add ( proc ) ; }
Source:
public boolean setCountryCodeHal ( java.lang.String CountryCode ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.setCountryCodeHalNative ( com.android.server.wifi.WifiNative.sWlan0Index , CountryCode ) ; } else { return false ; } } }

Target:
public boolean setCountryCodeHal ( java.lang.String countryCode ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.setCountryCodeHal ( countryCode ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.setCountryCodeHalNative ( com.android.server.wifi.WifiNative.sWlan0Index , countryCode ) ; } else { return false ; } } } }
Source:
private void setupKey ( ) throws java.lang.Exception { final java.lang.String privateKeyAlias = ( Credentials.USER_PRIVATE_KEY ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ; assertTrue ( mAndroidKeyStore.generate ( privateKeyAlias , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; java.security.cert.X509Certificate cert = android.security.AndroidKeyStoreTest.generateCertificate ( mAndroidKeyStore , android.security.AndroidKeyStoreTest.TEST_ALIAS_1 , android.security.AndroidKeyStoreTest.TEST_SERIAL_1 , android.security.AndroidKeyStoreTest.TEST_DN_1 , android.security.AndroidKeyStoreTest.NOW , android.security.AndroidKeyStoreTest.NOW_PLUS_10_YEARS ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.USER_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , cert.getEncoded ( ) , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; }

Target:
private void setupKey ( ) throws java.lang.Exception { final java.lang.String privateKeyAlias = ( Credentials.USER_PRIVATE_KEY ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ; assertTrue ( mAndroidKeyStore.generate ( privateKeyAlias , KeyStore.UID_SELF , NativeCrypto.EVP_PKEY_RSA , 1024 , KeyStore.FLAG_ENCRYPTED , null ) ) ; java.security.cert.X509Certificate cert = android.security.AndroidKeyStoreTest.generateCertificate ( mAndroidKeyStore , android.security.AndroidKeyStoreTest.TEST_ALIAS_1 , android.security.AndroidKeyStoreTest.TEST_SERIAL_1 , android.security.AndroidKeyStoreTest.TEST_DN_1 , android.security.AndroidKeyStoreTest.NOW , android.security.AndroidKeyStoreTest.NOW_PLUS_10_YEARS ) ; assertTrue ( mAndroidKeyStore.put ( ( ( Credentials.USER_CERTIFICATE ) + ( android.security.AndroidKeyStoreTest.TEST_ALIAS_1 ) ) , cert.getEncoded ( ) , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; }
Source:
public void test_getAllByName_localhost ( ) throws java.lang.Exception { java.net.InetAddress [ ] inetAddresses = java.net.InetAddress.getAllByName ( "localhost" ) ; libcore.java.net.InetAddressTest.assertEquals ( 1 , inetAddresses.length ) ; java.net.InetAddress inetAddress = inetAddresses [ 0 ] ; libcore.java.net.InetAddressTest.assertEquals ( libcore.java.net.InetAddressTest.LOOPBACK4_BYTES , "localhost" , inetAddress ) ; assertTrue ( inetAddress.isLoopbackAddress ( ) ) ; }

Target:
public void test_getByName_loopbackIpv6 ( ) throws java.lang.Exception { java.net.InetAddress inetAddress = java.net.InetAddress.getByName ( "::1" ) ; libcore.java.net.InetAddressTest.checkInetAddress ( libcore.java.net.InetAddressTest.LOOPBACK6_BYTES , "ip6-localhost" , inetAddress ) ; org.junit.Assert.assertTrue ( inetAddress.isLoopbackAddress ( ) ) ; }
Source:
public void testRemoveSingleOpenNetwork ( ) { android.net.wifi.WifiConfiguration openNetwork = com.android.server.wifi.WifiConfigurationTestUtil.createOpenNetwork ( ) ; java.util.List < android.net.wifi.WifiConfiguration > networks = new java.util.ArrayList < > ( ) ; networks.add ( openNetwork ) ; verifyAddNetworkToWifiConfigManager ( openNetwork ) ; verifyRemoveNetworkFromWifiConfigManager ( openNetwork ) ; assertTrue ( mWifiConfigManager.getConfiguredNetworks ( ) . isEmpty ( ) ) ; }

Target:
public void testRemoveSingleEphemeralNetwork ( ) throws java.lang.Exception { android.net.wifi.WifiConfiguration ephemeralNetwork = com.android.server.wifi.WifiConfigurationTestUtil.createOpenNetwork ( ) ; ephemeralNetwork.ephemeral = true ; verifyAddEphemeralNetworkToWifiConfigManager ( ephemeralNetwork ) ; assertFalse ( mWifiConfigManager.getConfiguredNetworks ( ) . isEmpty ( ) ) ; verifyRemoveEphemeralNetworkFromWifiConfigManager ( ephemeralNetwork ) ; assertTrue ( mWifiConfigManager.getConfiguredNetworks ( ) . isEmpty ( ) ) ; }
Source:
static com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata getShortNumberMetadataForRegion ( java.lang.String regionCode ) { if ( ! ( com.google.i18n.phonenumbers.MetadataManager.regionCodeSet.contains ( regionCode ) ) ) { return null ; } synchronized ( com.google.i18n.phonenumbers.MetadataManager.regionCodeToShortNumberMetadataMap ) { if ( ! ( com.google.i18n.phonenumbers.MetadataManager.regionCodeToShortNumberMetadataMap.containsKey ( regionCode ) ) ) { com.google.i18n.phonenumbers.MetadataManager.loadShortNumberMetadataFromFile ( regionCode ) ; } } return com.google.i18n.phonenumbers.MetadataManager.regionCodeToShortNumberMetadataMap.get ( regionCode ) ; }

Target:
com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata get ( int countryCallingCode ) { return countryCallingCodeToMetadata.get ( countryCallingCode ) ; }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; java.lang.String message = "People:" ; java.lang.Iterable < org.gradle.sample.Person > people = new org.gradle.sample.People ( ) ; for ( org.gradle.sample.Person person : people ) { message += "\n * " ; message += person.getName ( ) ; } android.widget.TextView textView = new android.widget.TextView ( this ) ; textView.setTextSize ( 20 ) ; textView.setText ( message ) ; setContentView ( textView ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; java.lang.String message = "People:" ; java.lang.Iterable < com.example.android.multiproject.person.Person > people = new com.example.android.multiproject.person.People ( ) ; for ( com.example.android.multiproject.person.Person person : people ) { message += "\n * " ; message += person.getName ( ) ; } android.widget.TextView textView = new android.widget.TextView ( this ) ; textView.setTextSize ( 20 ) ; textView.setText ( message ) ; setContentView ( textView ) ; }
Source:
protected void engineSetPadding ( java.lang.String padding ) throws javax.crypto.NoSuchPaddingException { final java.lang.String paddingUpper = padding.toUpperCase ( java.util.Locale.ROOT ) ; if ( "PKCS1PADDING" . equals ( paddingUpper ) ) { this . padding = NativeCrypto.RSA_PKCS1_PADDING ; return ; } if ( "NOPADDING" . equals ( paddingUpper ) ) { this . padding = NativeCrypto.RSA_NO_PADDING ; return ; } throw new javax.crypto.NoSuchPaddingException ( ( "padding not supported: " + padding ) ) ; }

Target:
protected void engineSetPadding ( java.lang.String padding ) throws javax.crypto.NoSuchPaddingException { final java.lang.String paddingUpper = padding.toUpperCase ( java.util.Locale.ROOT ) ; if ( "PKCS1PADDING" . equals ( paddingUpper ) ) { this . padding = NativeConstants.RSA_PKCS1_PADDING ; return ; } if ( "NOPADDING" . equals ( paddingUpper ) ) { this . padding = NativeConstants.RSA_NO_PADDING ; return ; } throw new javax.crypto.NoSuchPaddingException ( ( "padding not supported: " + padding ) ) ; }
Source:
public void testV1OneSignerSHA224withDSAAcceptedWithKeysTooLongForDigest ( ) throws java.lang.Exception { java.security.PublicKey publicKey = getCertificateFromResources ( "dsa-2048.x509.pem" ) . getPublicKey ( ) ; java.security.Signature s = java.security.Signature.getInstance ( "SHA224withDSA" ) ; try { s.initVerify ( publicKey ) ; } catch ( java.security.InvalidKeyException e ) { org.junit.Assume.assumeNoException ( e ) ; } assertVerifiedForEach ( "v1-only-with-dsa-sha224-1.2.840.10040.4.1-%s.apk" , com.android.apksig.ApkVerifierTest.DSA_KEY_NAMES_2048_AND_LARGER ) ; assertVerifiedForEach ( "v1-only-with-dsa-sha224-2.16.840.1.101.3.4.3.1-%s.apk" , com.android.apksig.ApkVerifierTest.DSA_KEY_NAMES_2048_AND_LARGER ) ; }

Target:
public void testTargetSandboxVersion2AndHigher ( ) throws java.lang.Exception { com.android.apksig.ApkVerifierTest.assertVerified ( verify ( "targetSandboxVersion-2.apk" ) ) ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verify ( "v2-only-targetSandboxVersion-2.apk" ) , Issue.JAR_SIG_NO_MANIFEST ) ; com.android.apksig.ApkVerifierTest.assertVerified ( verifyForMinSdkVersion ( "v2-only-targetSandboxVersion-2.apk" , 24 ) ) ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verify ( "v1-only-targetSandboxVersion-2.apk" ) , Issue.NO_SIG_FOR_TARGET_SANDBOX_VERSION ) ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verify ( "unsigned-targetSandboxVersion-2.apk" ) , Issue.NO_SIG_FOR_TARGET_SANDBOX_VERSION ) ; com.android.apksig.ApkVerifierTest.assertVerified ( verify ( "v2-only-targetSandboxVersion-3.apk" ) ) ; }
Source:
synchronized void nAllocationData2D ( int id , int xoff , int yoff , int mip , int face , int w , int h , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData2D ( int id , int xoff , int yoff , int mip , int face , int w , int h , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes , dt.mID ) ; }
Source:
private java.lang.CharSequence getAppLabel ( java.lang.String appPackage ) { android.content.pm.PackageManager pm = mContext.getPackageManager ( ) ; try { android.content.pm.ApplicationInfo appInfo = pm.getApplicationInfo ( appPackage , 0 ) ; return appInfo.loadLabel ( pm ) ; } catch ( android.content.pm.PackageManager e ) { android.util.Log.e ( com.android.internal.telephony.SMSDispatcher.TAG , ( "PackageManager Name Not Found for package " + appPackage ) ) ; return appPackage ; } }

Target:
private java.lang.CharSequence getAppLabel ( java.lang.String appPackage ) { android.content.pm.PackageManager pm = mContext.getPackageManager ( ) ; try { android.content.pm.ApplicationInfo appInfo = pm.getApplicationInfo ( appPackage , 0 ) ; return appInfo.loadLabel ( pm ) ; } catch ( android.content.pm.PackageManager e ) { android.telephony.Rlog.e ( com.android.internal.telephony.SMSDispatcher.TAG , ( "PackageManager Name Not Found for package " + appPackage ) ) ; return appPackage ; } }
Source:
public void testSortBySource_DeletePackage ( ) { com.android.sdklib.internal.repository.sources.SdkSource src1 = new com.android.sdklib.internal.repository.sources.SdkRepoSource ( "http://example.com/url" , "repo1" ) ; m.updateStart ( ) ; assertTrue ( m.updateSourcePackages ( false , null , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.packages.MockEmptyPackage ( src1 , "type1" , 1 ) } ) ) ; assertFalse ( m.updateSourcePackages ( false , src1 , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.packages.MockEmptyPackage ( src1 , "type1" , 1 ) } ) ) ; assertTrue ( m.updateEnd ( false ) ) ; assertEquals ( ( "PkgCategorySource <source=repo1 (example.com), #items=1>\n" + "-- <INSTALLED, pkg:MockEmptyPackage \'type1\' rev=1>\n" ) , getTree ( m , false ) ) ; m.updateStart ( ) ; assertTrue ( m.updateSourcePackages ( false , null , new java.lang.Package [ 0 ] ) ) ; assertTrue ( m.updateSourcePackages ( false , src1 , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.packages.MockEmptyPackage ( src1 , "type1" , 1 ) } ) ) ; assertTrue ( m.updateEnd ( false ) ) ; assertEquals ( ( "PkgCategorySource <source=repo1 (example.com), #items=1>\n" + "-- <NEW, pkg:MockEmptyPackage \'type1\' rev=1>\n" ) , getTree ( m , false ) ) ; }

Target:
public void testLocalIsNewer ( ) { com.android.sdklib.internal.repository.sources.SdkSource src1 = new com.android.sdklib.internal.repository.sources.SdkRepoSource ( "http://example.com/url" , "repo1" ) ; m.updateStart ( ) ; m.updateSourcePackages ( null , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.packages.MockToolPackage ( src1 , 5 , 5 ) , new com.android.sdklib.internal.repository.packages.MockPlatformToolPackage ( src1 , 5 ) } ) ; m.updateSourcePackages ( src1 , new java.lang.Package [ ] { new com.android.sdklib.internal.repository.packages.MockToolPackage ( src1 , 3 , 3 ) , new com.android.sdklib.internal.repository.packages.MockPlatformToolPackage ( src1 , 3 ) } ) ; m.updateEnd ( ) ; assertEquals ( ( "PkgCategoryApi <API=TOOLS, label=Tools, #items=2>\n" + ( ( "-- <INSTALLED, pkg:Android SDK Tools, revision 5>\n" + "-- <INSTALLED, pkg:Android SDK Platform-tools, revision 5>\n" ) + "PkgCategoryApi <API=EXTRAS, label=Extras, #items=0>\n" ) ) , getTree ( m ) ) ; }
Source:
protected void tearDown ( ) { try { java.lang.Thread.sleep ( 50 ) ; } catch ( java.lang.InterruptedException e ) { } }

Target:
protected void tearDown ( ) throws java.lang.Exception { for ( libcore.java.lang.OldThreadGroupTest.MyThread thread : myThreads ) { thread.interrupt ( ) ; } for ( libcore.java.lang.OldThreadGroupTest.MyThread thread : myThreads ) { thread.join ( 2000 ) ; if ( thread.isAlive ( ) ) { fail ( ( ( "Thread " + thread ) + " did not die as it should have." ) ) ; } } }
Source:
private static boolean isUnsupported ( java.security.KeyStore ks ) { return ( ( StandardNames.IS_RI ) && ( ks.getProvider ( ) . getName ( ) . equals ( "BC" ) ) ) || ( "AndroidKeyStore" . equalsIgnoreCase ( ks.getType ( ) ) ) ; }

Target:
private static boolean isUnsupported ( java.security.KeyStore ks ) { return ( ( ( StandardNames.IS_RI ) && ( ks.getProvider ( ) . getName ( ) . equals ( "BC" ) ) ) || ( "AndroidKeyStore" . equalsIgnoreCase ( ks.getType ( ) ) ) ) || ( "TimaKeyStore" . equalsIgnoreCase ( ks.getType ( ) ) ) ; }
Source:
public void installPackage ( java.lang.String originPath , android.content.pm.IPackageInstallObserver2 observer , int installFlags , java.lang.String installerPackageName , android.content.pm.VerificationParams verificationParams , java.lang.String packageAbiOverride ) { installPackageAsUser ( originPath , observer , installFlags , installerPackageName , verificationParams , packageAbiOverride , android.os.UserHandle.getCallingUserId ( ) ) ; }

Target:
public com.android.server.pm.PackageManagerService.PackageFreezer freezePackageForInstall ( java.lang.String packageName , int userId , int installFlags , java.lang.String killReason ) { if ( ( installFlags & ( android.content.pm.PackageManager.INSTALL_DONT_KILL_APP ) ) != 0 ) { return new com.android.server.pm.PackageManagerService.PackageFreezer ( ) ; } else { return freezePackage ( packageName , userId , killReason ) ; } }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { android.telephony.CarrierConfigManager carrierConfigManager = ( ( android.telephony.CarrierConfigManager ) ( context.getSystemService ( Context.CARRIER_CONFIG_SERVICE ) ) ) ; android.os.PersistableBundle b = carrierConfigManager.getConfig ( ) ; mDelay = b.getInt ( CarrierConfigManager.KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT ) ; android.telephony.Rlog.i ( com.android.internal.telephony.CarrierServiceStateTracker.LOG_TAG , ( "reading time to delay notification: " + ( mDelay ) ) ) ; handleConfigChanges ( ) ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { android.telephony.CarrierConfigManager carrierConfigManager = ( ( android.telephony.CarrierConfigManager ) ( context.getSystemService ( Context.CARRIER_CONFIG_SERVICE ) ) ) ; android.os.PersistableBundle b = carrierConfigManager.getConfigForSubId ( mPhone.getSubId ( ) ) ; mDelay = b.getInt ( CarrierConfigManager.KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT ) ; android.telephony.Rlog.i ( com.android.internal.telephony.CarrierServiceStateTracker.LOG_TAG , ( "reading time to delay notification: " + ( mDelay ) ) ) ; handleConfigChanges ( ) ; }
Source:
public com.android.jack.ir.ast.JVariable getDefinedVariable ( ) { if ( ( definition ) instanceof com.android.jack.ir.ast.JAsgOperation ) { com.android.jack.ir.ast.JExpression lhsExpr = ( ( com.android.jack.ir.ast.JAsgOperation ) ( definition ) ) . getLhs ( ) ; assert lhsExpr instanceof com.android.jack.ir.ast.JVariableRef ; return ( ( com.android.jack.ir.ast.JVariableRef ) ( lhsExpr ) ) . getTarget ( ) ; } assert ( ( definition ) instanceof com.android.jack.ir.ast.JParameter ) || ( ( definition ) instanceof com.android.jack.ir.ast.JThis ) ; return ( ( com.android.jack.ir.ast.JVariable ) ( definition ) ) ; }

Target:
public com.android.jack.ir.ast.JVariable getDefinedVariable ( ) { return definedVariable ; }
Source:
public java.util.List < android.content.pm.ResolveInfo > queryIntent ( android.content.Intent intent , java.lang.String resolvedType , int flags , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return null ; mFlags = flags ; return super . queryIntent ( intent , resolvedType , ( ( flags & ( android.content.pm.PackageManager.MATCH_DEFAULT_ONLY ) ) != 0 ) , userId ) ; }

Target:
public java.util.List < android.content.pm.ResolveInfo > queryIntent ( android.content.Intent intent , java.lang.String resolvedType , boolean defaultOnly , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return null ; mFlags = ( defaultOnly ) ? android.content.pm.PackageManager.MATCH_DEFAULT_ONLY : 0 ; return super . queryIntent ( intent , resolvedType , defaultOnly , userId ) ; }
Source:
private boolean isSpecial ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Method method ) { return ( ( ( method.getAccessFlags ( ) ) & ( ( ClassConstants.INTERNAL_ACC_PRIVATE ) | ( ClassConstants.INTERNAL_ACC_STATIC ) ) ) != 0 ) || ( method.getName ( clazz ) . equals ( ClassConstants.INTERNAL_METHOD_NAME_INIT ) ) ; }

Target:
private boolean isSpecial ( proguard.classfile.visitor.Clazz clazz , proguard.classfile.visitor.Method method ) { return ( ( ( method.getAccessFlags ( ) ) & ( ( ClassConstants.ACC_PRIVATE ) | ( ClassConstants.ACC_STATIC ) ) ) != 0 ) || ( method.getName ( clazz ) . equals ( ClassConstants.METHOD_NAME_INIT ) ) ; }
Source:
private static void registerDefaultProviders ( ) { java.security.Security.secprops.put ( "security.provider.1" , "org.apache.harmony.xnet.provider.jsse.OpenSSLProvider" ) ; java.security.Security.secprops.put ( "security.provider.2" , "org.apache.harmony.security.provider.cert.DRLCertFactory" ) ; java.security.Security.secprops.put ( "security.provider.3" , "org.bouncycastle.jce.provider.BouncyCastleProvider" ) ; java.security.Security.secprops.put ( "security.provider.4" , "org.apache.harmony.security.provider.crypto.CryptoProvider" ) ; java.security.Security.secprops.put ( "security.provider.5" , "org.apache.harmony.xnet.provider.jsse.JSSEProvider" ) ; }

Target:
private static void registerDefaultProviders ( ) { java.security.Security.secprops.put ( "security.provider.1" , "org.conscrypt.OpenSSLProvider" ) ; java.security.Security.secprops.put ( "security.provider.2" , "org.apache.harmony.security.provider.cert.DRLCertFactory" ) ; java.security.Security.secprops.put ( "security.provider.3" , "org.bouncycastle.jce.provider.BouncyCastleProvider" ) ; java.security.Security.secprops.put ( "security.provider.4" , "org.apache.harmony.security.provider.crypto.CryptoProvider" ) ; java.security.Security.secprops.put ( "security.provider.5" , "org.conscrypt.JSSEProvider" ) ; }
Source:
private boolean isSystemAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotation annotationType ) { if ( ( ( ( ( ( ( annotationType.equals ( defaultAnnotation ) ) || ( annotationType.equals ( enclosingClassAnnotation ) ) ) || ( annotationType.equals ( enclosingMethodAnnotation ) ) ) || ( annotationType.equals ( innerAnnotation ) ) ) || ( annotationType.equals ( memberClassAnnotation ) ) ) || ( annotationType.equals ( signatureAnnotation ) ) ) || ( annotationType.equals ( throwsAnnotation ) ) ) { return true ; } return false ; }

Target:
private boolean isSystemAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotation annotationType ) { if ( ( ( ( ( ( ( annotationType.isSameType ( defaultAnnotation ) ) || ( annotationType.isSameType ( enclosingClassAnnotation ) ) ) || ( annotationType.isSameType ( enclosingMethodAnnotation ) ) ) || ( annotationType.isSameType ( innerAnnotation ) ) ) || ( annotationType.isSameType ( memberClassAnnotation ) ) ) || ( annotationType.isSameType ( signatureAnnotation ) ) ) || ( annotationType.isSameType ( throwsAnnotation ) ) ) { return true ; } return false ; }
Source:
private void addTile ( java.lang.String spec , android.graphics.drawable.Drawable drawable , java.lang.CharSequence label , java.lang.CharSequence appLabel , android.content.Context context ) { com.android.systemui.qs.QSTile.State state = new com.android.systemui.qs.QSTile.State ( ) ; state.label = label ; state.contentDescription = label ; state.icon = new com.android.systemui.qs.QSTile.DrawableIcon ( drawable ) ; addTile ( spec , appLabel , state , false ) ; }

Target:
private void addTile ( java.lang.String spec , android.graphics.drawable.Drawable drawable , java.lang.CharSequence label , java.lang.CharSequence appLabel , android.content.Context context ) { com.android.systemui.qs.QSTile.State state = new com.android.systemui.qs.QSTile.State ( ) ; state.label = label ; state.contentDescription = label ; state.icon = new com.android.systemui.qs.QSTile.DrawableIcon ( drawable ) ; state.autoMirrorDrawable = false ; addTile ( spec , appLabel , state , false ) ; }
Source:
public boolean isCached ( java.lang.String requestUrl , int maxWidth , int maxHeight , android.widget.ImageView.ScaleType scaleType ) { throwIfNotOnMainThread ( ) ; java.lang.String cacheKey = com.android.volley.toolbox.ImageLoader.getCacheKey ( requestUrl , maxWidth , maxHeight , scaleType ) ; return ( mCache.getBitmap ( cacheKey ) ) != null ; }

Target:
public boolean isCached ( java.lang.String requestUrl , int maxWidth , int maxHeight , android.widget.ImageView.ScaleType scaleType ) { com.android.volley.toolbox.Threads.throwIfNotOnMainThread ( ) ; java.lang.String cacheKey = com.android.volley.toolbox.ImageLoader.getCacheKey ( requestUrl , maxWidth , maxHeight , scaleType ) ; return ( mCache.getBitmap ( cacheKey ) ) != null ; }
Source:
private void verifyImplementedInterfaces ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface t ) { for ( com.android.jack.ir.ast.JInterface jInterface : t.getImplements ( ) ) { if ( jInterface instanceof com.android.jack.ir.ast.JPhantomInterface ) { t.addMarker ( new com.android.jack.shrob.shrink.PartialTypeHierarchy ( ( ( com.android.jack.ir.ast.JPhantomInterface ) ( jInterface ) ) ) ) ; } else { assert jInterface instanceof com.android.jack.ir.ast.JDefinedInterface ; verifyImplementedInterfaces ( ( ( com.android.jack.ir.ast.JDefinedInterface ) ( jInterface ) ) ) ; } } }

Target:
private void findUnknownTypes ( @ javax.annotation.Nonnull java.util.List < com.android.jack.ir.ast.JInterface > interfaces , @ javax.annotation.Nonnull java.util.List < com.android.jack.ir.ast.JPhantomClassOrInterface > unknownTypes ) { for ( com.android.jack.ir.ast.JInterface jInterface : interfaces ) { if ( jInterface instanceof com.android.jack.ir.ast.JPhantomInterface ) { unknownTypes.add ( ( ( com.android.jack.ir.ast.JPhantomInterface ) ( jInterface ) ) ) ; } else { assert jInterface instanceof com.android.jack.ir.ast.JDefinedInterface ; findUnknownTypes ( ( ( com.android.jack.ir.ast.JDefinedInterface ) ( jInterface ) ) . getImplements ( ) , unknownTypes ) ; } } }
Source:
public void onGearClick ( com.android.settings.widget.GearPreference p ) { if ( com.android.settings.tts.TextToSpeechSettings.KEY_TTS_ENGINE_PREFERENCE.equals ( p.getKey ( ) ) ) { android.speech.tts.TextToSpeech.EngineInfo info = mEnginesHelper.getEngineInfo ( mCurrentEngine ) ; final android.content.Intent settingsIntent = mEnginesHelper.getSettingsIntent ( info.name ) ; startActivity ( settingsIntent ) ; } }

Target:
public void onGearClick ( com.android.settings.widget.GearPreference p ) { if ( com.android.settings.tts.TextToSpeechSettings.KEY_TTS_ENGINE_PREFERENCE.equals ( p.getKey ( ) ) ) { android.speech.tts.TextToSpeech.EngineInfo info = mEnginesHelper.getEngineInfo ( mCurrentEngine ) ; final android.content.Intent settingsIntent = mEnginesHelper.getSettingsIntent ( info.name ) ; if ( settingsIntent != null ) { startActivity ( settingsIntent ) ; } else { android.util.Log.e ( com.android.settings.tts.TextToSpeechSettings.TAG , "settingsIntent is null" ) ; } } }
Source:
public void testDragInVerticalBottom ( ) { dragInto ( true , new com.android.ide.common.api.Rect ( 0 , 0 , 105 , 80 ) , new com.android.ide.common.api.Point ( 30 , 500 ) , 4 , ( - 1 ) , "useStyle(DROP_RECIPIENT), drawRect(Rect[0,0,240,480])" , ( "useStyle(DROP_ZONE), drawLine(0,0,240,0), drawLine(0,90,240,90), " + "drawLine(0,190,240,190), drawLine(0,290,240,290)" ) , "useStyle(DROP_ZONE_ACTIVE), useStyle(DROP_PREVIEW), drawLine(0,381,240,381)" , "useStyle(DROP_PREVIEW), drawRect(Rect[0,341,105,80])" ) ; dragInto ( true , new com.android.ide.common.api.Rect ( 0 , 0 , 105 , 80 ) , new com.android.ide.common.api.Point ( 30 , 500 ) , 4 , ( - 1 ) , "useStyle(DROP_PREVIEW), drawRect(Rect[0,341,105,80])" ) ; }

Target:
public void testDragInVerticalBottom ( ) { dragInto ( true , new com.android.ide.common.api.Rect ( 0 , 0 , 105 , 80 ) , new com.android.ide.common.api.Point ( 30 , 500 ) , 4 , ( - 1 ) , "useStyle(DROP_RECIPIENT), drawRect(Rect[0,0,240,480])" , ( "useStyle(DROP_ZONE), drawLine(0,0,240,0), drawLine(0,90,240,90), " + "drawLine(0,190,240,190), drawLine(0,290,240,290), drawLine(0,381,240,381), " ) , "useStyle(DROP_ZONE_ACTIVE), useStyle(DROP_PREVIEW), drawLine(0,381,240,381)" , "useStyle(DROP_PREVIEW), drawRect(Rect[0,381,105,80])" ) ; dragInto ( true , new com.android.ide.common.api.Rect ( 0 , 0 , 105 , 80 ) , new com.android.ide.common.api.Point ( 30 , 500 ) , 4 , ( - 1 ) , "useStyle(DROP_PREVIEW), drawRect(Rect[0,381,105,80])" ) ; }
Source:
public void testParsingUncommonTimeZoneAbbreviations ( ) { java.lang.String fmt = "yyyy-MM-dd HH:mm:ss.SSS z" ; java.lang.String date = "2010-12-23 12:44:57.0 CET" ; assertEquals ( 1293104697000L , libcore.java.text.SimpleDateFormatTest.parseDate ( java.util.Locale.UK , fmt , date ) . getTimeInMillis ( ) ) ; assertEquals ( 1293104697000L , libcore.java.text.SimpleDateFormatTest.parseDate ( java.util.Locale.US , fmt , date ) . getTimeInMillis ( ) ) ; }

Target:
private static void assertCannotParse ( java.util.Locale l , java.lang.String fmt , java.lang.String value ) { java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat ( fmt , l ) ; java.text.ParsePosition pp = new java.text.ParsePosition ( 0 ) ; java.util.Date d = sdf.parse ( value , pp ) ; assertNull ( ( ( ( ( ( "Value " + value ) + " must not parse in locale " ) + l ) + " with format " ) + fmt ) , d ) ; }
Source:
public void testBroadcastSms ( ) { transitionFromStartupToIdle ( ) ; doReturn ( 0 ) . when ( mInboundSmsTracker ) . getDestPort ( ) ; mGsmInboundSmsHandler.sendMessage ( InboundSmsHandler.EVENT_BROADCAST_SMS , mInboundSmsTracker ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; verifyDataSmsIntentBroadcasts ( 0 ) ; mGsmInboundSmsHandler.sendMessage ( InboundSmsHandler.EVENT_BROADCAST_SMS , mInboundSmsTracker ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; verifyDataSmsIntentBroadcasts ( 1 ) ; }

Target:
public void testInjectSms ( ) { transitionFromStartupToIdle ( ) ; mGsmInboundSmsHandler.sendMessage ( InboundSmsHandler.EVENT_INJECT_SMS , new android.os.AsyncResult ( null , mSmsMessage , null ) ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; verifySmsIntentBroadcasts ( 0 ) ; mGsmInboundSmsHandler.sendMessage ( InboundSmsHandler.EVENT_INJECT_SMS , new android.os.AsyncResult ( null , mSmsMessage , null ) ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; org.mockito.Mockito.verify ( mContext , org.mockito.Mockito.times ( 2 ) ) . sendBroadcast ( org.mockito.Matchers.any ( android.content.Intent.class ) ) ; org.junit.Assert.assertEquals ( "IdleState" , getCurrentState ( ) . getName ( ) ) ; }
Source:
public void onAvailable ( android.net.Network network ) { com.googlecode.android_scripting.Log.d ( "NetworkCallback onAvailable" ) ; if ( ( ( mEvents ) & ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_AVAILABLE ) ) == ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_AVAILABLE ) ) { mEventFacade.postEvent ( TelephonyConstants.EventNetworkCallback , new com.googlecode.android_scripting.facade.telephony.TelephonyEvents.NetworkCallbackEvent ( mId , com.googlecode.android_scripting.facade.ConnectivityManagerFacade.getNetworkCallbackEventString ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_AVAILABLE ) , TelephonyEvents.NetworkCallbackEvent.INVALID_VALUE , TelephonyEvents.NetworkCallbackEvent.INVALID_VALUE ) ) ; } }

Target:
public void onAvailable ( android.net.Network network ) { com.googlecode.android_scripting.Log.d ( "NetworkCallback onAvailable" ) ; if ( ( ( mEvents ) & ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_AVAILABLE ) ) == ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_AVAILABLE ) ) { mEventFacade.postEvent ( ConnectivityConstants.EventNetworkCallback , new com.googlecode.android_scripting.facade.ConnectivityEvents.NetworkCallbackEventBase ( mId , com.googlecode.android_scripting.facade.ConnectivityManagerFacade.getNetworkCallbackEventString ( com.googlecode.android_scripting.facade.ConnectivityManagerFacade.NetworkCallback.EVENT_AVAILABLE ) ) ) ; } }
Source:
public void getCallBarring ( java.lang.String facility , android.os.Message onComplete ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( "getCallBarring facility=" + facility ) ) ; android.os.Message resp ; resp = obtainMessage ( com.android.internal.telephony.imsphone.ImsPhone.EVENT_GET_CALL_BARRING_DONE , onComplete ) ; try { com.android.ims.ImsUtInterface ut = mCT.getUtInterface ( ) ; ut.queryCallBarring ( getCBTypeFromFacility ( facility ) , resp ) ; } catch ( com.android.ims.ImsException e ) { sendErrorResponse ( onComplete , e ) ; } }

Target:
public void getCallBarring ( java.lang.String facility , android.os.Message onComplete , int serviceClass ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( ( ( "getCallBarring facility=" + facility ) + ", serviceClass = " ) + serviceClass ) ) ; } android.os.Message resp ; resp = obtainMessage ( com.android.internal.telephony.imsphone.ImsPhone.EVENT_GET_CALL_BARRING_DONE , onComplete ) ; try { com.android.ims.ImsUtInterface ut = mCT.getUtInterface ( ) ; ut.queryCallBarring ( getCBTypeFromFacility ( facility ) , resp , serviceClass ) ; } catch ( com.android.ims.ImsException e ) { sendErrorResponse ( onComplete , e ) ; } }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; java.lang.String message = "People:" ; java.lang.Iterable < com.example.android.multiproject.person.Person > people = new com.example.android.multiproject.person.People ( ) ; for ( com.example.android.multiproject.person.Person person : people ) { message += "\n * " ; message += person.getName ( ) ; } android.widget.TextView textView = new android.widget.TextView ( this ) ; textView.setTextSize ( 20 ) ; textView.setText ( message ) ; setContentView ( textView ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; android.widget.LinearLayout group = new android.widget.LinearLayout ( this ) ; group.setOrientation ( LinearLayout.VERTICAL ) ; java.lang.Iterable < com.example.android.multiproject.person.Person > people = new com.example.android.multiproject.person.People ( ) ; for ( com.example.android.multiproject.person.Person person : people ) { group.addView ( new com.example.android.multiproject.PersonView ( this , person ) ) ; } setContentView ( group ) ; }
Source:
public static void main ( java.lang.String [ ] args ) { ReturnsAndArgPassing.main ( null ) ; BasicTest.main ( null ) ; Clash.main ( null ) ; Clash2.main ( null ) ; Clash3.main ( null ) ; Clash4.main ( null ) ; WrappedThrow.main ( null ) ; NarrowingTest.main ( null ) ; FloatSelect.main ( null ) ; NativeProxy.main ( args ) ; ConstructorProxy.main ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) { ReturnsAndArgPassing.main ( null ) ; BasicTest.main ( null ) ; Clash.main ( null ) ; Clash2.main ( null ) ; Clash3.main ( null ) ; Clash4.main ( null ) ; WrappedThrow.main ( null ) ; NarrowingTest.main ( null ) ; FloatSelect.main ( null ) ; NativeProxy.main ( args ) ; ConstructorProxy.main ( ) ; OOMEOnDispatch.main ( args ) ; }
Source:
private static void safeAppendWithMonthPattern ( java.lang.String [ ] array , int value , java.lang.StringBuffer appendTo , java.lang.String monthPattern ) { if ( ( ( array != null ) && ( value >= 0 ) ) && ( value < ( array.length ) ) ) { if ( monthPattern == null ) { appendTo.append ( array [ value ] ) ; } else { appendTo.append ( com.ibm.icu.text.MessageFormat.format ( monthPattern , array [ value ] ) ) ; } } }

Target:
private static void safeAppendWithMonthPattern ( java.lang.String [ ] array , int value , java.lang.StringBuffer appendTo , java.lang.String monthPattern ) { if ( ( ( array != null ) && ( value >= 0 ) ) && ( value < ( array.length ) ) ) { if ( monthPattern == null ) { appendTo.append ( array [ value ] ) ; } else { java.lang.String s = com.ibm.icu.impl.SimpleFormatterImpl.formatRawPattern ( monthPattern , 1 , 1 , array [ value ] ) ; appendTo.append ( s ) ; } } }
Source:
public static java.lang.invoke.MethodHandle dropArguments ( java.lang.invoke.MethodHandle target , int pos , java.util.List < java.lang.Class < ? > > valueTypes ) { java.lang.invoke.MethodType oldType = target.type ( ) ; int dropped = java.lang.invoke.MethodHandles.dropArgumentChecks ( oldType , pos , valueTypes ) ; java.lang.invoke.MethodType newType = oldType.insertParameterTypes ( pos , valueTypes ) ; if ( dropped == 0 ) { return target ; } return new java.lang.invoke.Transformers.DropArguments ( newType , target , pos , valueTypes.size ( ) ) ; }

Target:
public static java.lang.invoke.MethodHandle dropArguments ( java.lang.invoke.MethodHandle target , int pos , java.util.List < java.lang.Class < ? > > valueTypes ) { valueTypes = java.lang.invoke.MethodHandles.copyTypes ( valueTypes ) ; java.lang.invoke.MethodType oldType = target.type ( ) ; int dropped = java.lang.invoke.MethodHandles.dropArgumentChecks ( oldType , pos , valueTypes ) ; java.lang.invoke.MethodType newType = oldType.insertParameterTypes ( pos , valueTypes ) ; if ( dropped == 0 ) { return target ; } return new java.lang.invoke.Transformers.DropArguments ( newType , target , pos , valueTypes.size ( ) ) ; }
Source:
public java.util.List < java.lang.String > getCountryIsoCodes ( ) { libcore.util.TimeZoneFinder.CountryIsoCodesExtractor extractor = new libcore.util.TimeZoneFinder.CountryIsoCodesExtractor ( ) ; try { processXml ( extractor ) ; return java.util.Collections.unmodifiableList ( extractor.getCountryIsoCodes ( ) ) ; } catch ( org.xmlpull.v1.XmlPullParserException | java.io.IOException e ) { java.lang.System.logW ( "Error reading country zones " , e ) ; return null ; } }

Target:
public libcore.util.CountryZonesFinder getCountryZonesFinder ( ) { libcore.util.TimeZoneFinder.CountryZonesLookupExtractor extractor = new libcore.util.TimeZoneFinder.CountryZonesLookupExtractor ( ) ; try { processXml ( extractor ) ; return extractor.getCountryZonesLookup ( ) ; } catch ( org.xmlpull.v1.XmlPullParserException | java.io.IOException e ) { java.lang.System.logW ( "Error reading country zones " , e ) ; return null ; } }
Source:
private void addWrapper ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method , @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod wrapper , boolean isStaticDispatchOnly ) { com.android.jack.transformations.ast.inner.WrapperMarker.MethodCallDescriptor descriptor = new com.android.jack.transformations.ast.inner.WrapperMarker.MethodCallDescriptor ( method , isStaticDispatchOnly ) ; assert ! ( wrappers.containsKey ( descriptor ) ) ; wrappers.put ( descriptor , wrapper ) ; }

Target:
private void addWrapper ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method , @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod wrapper , boolean isStaticDispatchOnly , @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassOrInterface mthCallReceiverType ) { com.android.jack.transformations.ast.inner.WrapperMarker.MethodCallDescriptor descriptor = new com.android.jack.transformations.ast.inner.WrapperMarker.MethodCallDescriptor ( method , isStaticDispatchOnly , mthCallReceiverType ) ; if ( hasSameKeyWithoutReceiverType ( descriptor ) ) { throw new java.lang.AssertionError ( ) ; } assert ! ( wrappers.containsKey ( descriptor ) ) ; wrappers.put ( descriptor , wrapper ) ; }
Source:
public void testWildcardMatchesChildDomain ( ) { assertFalse ( verifier.verifyHostName ( "a.b.c.d" , "*.c.d" ) ) ; }

Target:
public void testInvalidDomainNames ( ) { assertFalse ( verifyWithDomainNamePattern ( "" , "" ) ) ; assertFalse ( verifyWithDomainNamePattern ( ".test.example.com" , ".test.example.com" ) ) ; assertFalse ( verifyWithDomainNamePattern ( "ex*ample.com" , "ex*ample.com" ) ) ; assertFalse ( verifyWithDomainNamePattern ( "example.com.." , "example.com." ) ) ; assertFalse ( verifyWithDomainNamePattern ( "example.com." , "example.com.." ) ) ; }
Source:
public int getLeState ( ) { try { synchronized ( mManagerCallback ) { if ( ( mService ) != null ) { int state = mService.getState ( ) ; if ( android.bluetooth.BluetoothAdapter.VDBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , ( "getLeState() returning " + state ) ) ; return state ; } } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return android.bluetooth.BluetoothAdapter.STATE_OFF ; }

Target:
public boolean enable ( ) { if ( isEnabled ( ) ) { if ( android.bluetooth.BluetoothAdapter.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , "enable(): BT already enabled!" ) ; return true ; } try { return mManagerService.enable ( android.app.ActivityThread.currentPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }
Source:
private void initializeConfiguration ( ) { if ( ( mConfiguration.getDevice ( ) ) == null ) { java.lang.String data = com.android.ide.eclipse.adt.AdtPlugin.getFileProperty ( mEditedFile , com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationChooser.NAME_CONFIG_STATE ) ; if ( ( mInitialState ) != null ) { data = mInitialState ; mInitialState = null ; } if ( data != null ) { mConfiguration.initialize ( data ) ; } } }

Target:
public void ensureInitialized ( ) { if ( ( ( mConfiguration.getDevice ( ) ) == null ) && ( ( mEditedFile ) != null ) ) { java.lang.String data = com.android.ide.eclipse.adt.AdtPlugin.getFileProperty ( mEditedFile , com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationChooser.NAME_CONFIG_STATE ) ; if ( ( mInitialState ) != null ) { data = mInitialState ; mInitialState = null ; } if ( data != null ) { mConfiguration.initialize ( data ) ; mConfiguration.syncFolderConfig ( ) ; } } }
Source:
private void onActivityNameFieldModified ( ) { if ( ( mInfo.isNewProject ( ) ) && ( ! ( mInternalActivityNameUpdate ) ) ) { mUserActivityName = mInfo.getActivityName ( ) ; validatePageComplete ( ) ; } }

Target:
private void onActivityNameFieldModified ( ) { if ( ! ( mInternalActivityNameUpdate ) ) { mActivityNameModifiedByUser = true ; } if ( ( mInfo.isNewProject ( ) ) && ( ! ( mInternalActivityNameUpdate ) ) ) { mUserActivityName = mInfo.getActivityName ( ) ; validatePageComplete ( ) ; } }
Source:
public void annotate ( com.android.dx.util.ExceptionWithContext ex ) { for ( int i = 0 ; i < ( locals.length ) ; i ++ ) { com.android.dx.rop.type.TypeBearer type = locals [ i ] ; java.lang.String s = ( type == null ) ? "<invalid>" : type.toString ( ) ; ex.addContext ( ( ( ( "locals[" + ( com.android.dx.util.Hex.u2 ( i ) ) ) + "]: " ) + s ) ) ; } }

Target:
public void annotate ( com.android.dex.util.ExceptionWithContext ex ) { for ( int i = 0 ; i < ( locals.length ) ; i ++ ) { com.android.dx.rop.type.TypeBearer type = locals [ i ] ; java.lang.String s = ( type == null ) ? "<invalid>" : type.toString ( ) ; ex.addContext ( ( ( ( "locals[" + ( com.android.dx.util.Hex.u2 ( i ) ) ) + "]: " ) + s ) ) ; } }
Source:
public void tearDown ( ) throws java.lang.Exception { if ( testSystemTzDataDir.exists ( ) ) { com.android.timezone.distro.FileUtils.deleteRecursive ( testInstallDir ) ; } if ( testInstallDir.exists ( ) ) { com.android.timezone.distro.FileUtils.deleteRecursive ( testInstallDir ) ; } if ( tempDir.exists ( ) ) { com.android.timezone.distro.FileUtils.deleteRecursive ( tempDir ) ; } super . tearDown ( ) ; }

Target:
public void testStageInstallWithErrorCode_withBadlyFormedDistroVersion ( ) throws java.lang.Exception { com.android.timezone.distro.DistroVersion validDistroVersion = new com.android.timezone.distro.DistroVersion ( 1 , 1 , libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; byte [ ] invalidFormatVersionBytes = validDistroVersion.toBytes ( ) ; invalidFormatVersionBytes [ 0 ] = 'A' ; com.android.timezone.distro.TimeZoneDistro distro = createTimeZoneDistroWithVersionBytes ( invalidFormatVersionBytes ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.stageInstallWithErrorCode ( distro ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }
Source:
static boolean containsAllImpl ( java.util.Collection < ? > self , java.util.Collection < ? > c ) { com.google.common.base.Preconditions.checkNotNull ( self ) ; for ( java.lang.Object o : c ) { if ( ! ( self.contains ( o ) ) ) { return false ; } } return true ; }

Target:
static boolean containsAllImpl ( java.util.Collection < ? > self , java.util.Collection < ? > c ) { return com.google.common.collect.Iterables.all ( c , com.google.common.base.Predicates.in ( self ) ) ; }
Source:
public void dup_x1 ( ) { super . dup_x1 ( ) ; producerPop ( ) ; producerPop ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; }

Target:
public void dup_x1 ( ) { super . dup_x1 ( ) ; producerStack.pop ( ) ; producerStack.pop ( ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; actualProducerStack.dup_x1 ( ) ; }
Source:
public final void registerContentObserver ( android.net.Uri uri , boolean notifyForDescendents , android.database.ContentObserver observer ) { registerContentObserver ( uri , notifyForDescendents , observer , android.os.UserHandle.myUserId ( ) ) ; }

Target:
public void notifyChange ( @ android.annotation.NonNull android.net.Uri uri , @ android.annotation.Nullable android.database.ContentObserver observer , boolean syncToNetwork ) { com.android.internal.util.Preconditions.checkNotNull ( uri , "uri" ) ; notifyChange ( android.content.ContentProvider.getUriWithoutUserId ( uri ) , observer , syncToNetwork , android.content.ContentProvider.getUserIdFromUri ( uri , android.os.UserHandle.myUserId ( ) ) ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; if ( mHasFeature ) { mUserId = USER_OWNER ; installAppAsUser ( com.android.cts.devicepolicy.ProfileOwnerTestApi23.DEVICE_ADMIN_APK , mUserId ) ; setProfileOwnerOrFail ( ( ( ( com.android.cts.devicepolicy.ProfileOwnerTestApi23.DEVICE_ADMIN_PKG ) + "/" ) + ( com.android.cts.devicepolicy.ProfileOwnerTestApi23.ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId ) ; } }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; if ( mHasFeature ) { mUserId = USER_OWNER ; installAppAsUser ( com.android.cts.devicepolicy.ProfileOwnerTestApi23.DEVICE_ADMIN_APK , mUserId ) ; if ( ! ( setProfileOwner ( ( ( ( com.android.cts.devicepolicy.ProfileOwnerTestApi23.DEVICE_ADMIN_PKG ) + "/" ) + ( com.android.cts.devicepolicy.ProfileOwnerTestApi23.ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId , false ) ) ) { removeAdmin ( ( ( ( com.android.cts.devicepolicy.ProfileOwnerTestApi23.DEVICE_ADMIN_PKG ) + "/" ) + ( com.android.cts.devicepolicy.ProfileOwnerTestApi23.ADMIN_RECEIVER_TEST_CLASS ) ) , mUserId ) ; getDevice ( ) . uninstallPackage ( com.android.cts.devicepolicy.ProfileOwnerTestApi23.DEVICE_ADMIN_PKG ) ; fail ( "Failed to set profile owner" ) ; } } }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.unittest.ScriptC_bitfield s = new com.android.rs.unittest.ScriptC_bitfield ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; final long L = 8526495043095935640L ; final int I = 305419896 ; s.invoke_choose ( 1 ) ; s.invoke_setUnion ( L , I ) ; s.invoke_testUnion ( L , I ) ; pRS.finish ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = createRenderScript ( true ) ; com.android.rs.unittest.ScriptC_bitfield s = new com.android.rs.unittest.ScriptC_bitfield ( pRS ) ; final long L = 8526495043095935640L ; final int I = 305419896 ; s.invoke_choose ( 1 ) ; s.invoke_setUnion ( L , I ) ; s.invoke_testUnion ( L , I ) ; pRS.finish ( ) ; pRS.destroy ( ) ; }
Source:
public java.lang.String getSimOperator ( int subId ) { return getSimOperatorNumericForSubscription ( subId ) ; }

Target:
public void disableVisualVoicemailSmsFilter ( int subId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.disableVisualVoicemailSmsFilter ( mContext.getOpPackageName ( ) , subId ) ; } } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } }
Source:
public void testIteratorRemove ( ) { java.util.concurrent.CopyOnWriteArraySet full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; java.util.Iterator it = full.iterator ( ) ; it.next ( ) ; try { it.remove ( ) ; shouldThrow ( ) ; } catch ( java.lang.UnsupportedOperationException success ) { } }

Target:
public void testIteratorRemove ( ) { java.util.Collection full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; java.util.Iterator it = full.iterator ( ) ; it.next ( ) ; try { it.remove ( ) ; shouldThrow ( ) ; } catch ( java.lang.UnsupportedOperationException success ) { } }