auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "SSL_RSA_WITH_RC4_128_MD5" , "SSL_RSA_WITH_RC4_128_SHA" , "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDH_RSA_WITH_RC4_128_SHA" , "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "SSL_RSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }

Target:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "SSL_RSA_WITH_RC4_128_MD5" , "SSL_RSA_WITH_RC4_128_SHA" , "TLS_ECDH_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDH_RSA_WITH_RC4_128_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession x ) { for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : x.getTypesToEmit ( ) ) { if ( ! ( type.isExternal ( ) ) ) { accept ( type ) ; newline ( ) ; newline ( ) ; } } return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession x ) { for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : x.getTypesToEmit ( ) ) { accept ( type ) ; newline ( ) ; newline ( ) ; } return false ; }
Source:
public org.eclipse.ltk.core.refactoring.RefactoringStatus checkFinalConditions ( org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException , org.eclipse.core.runtime.OperationCanceledException { org.eclipse.ltk.core.refactoring.RefactoringStatus status = new org.eclipse.ltk.core.refactoring.RefactoringStatus ( ) ; mChanges = new java.util.ArrayList < org.eclipse.ltk.core.refactoring.Change > ( ) ; try { monitor.beginTask ( "Checking post-conditions..." , 5 ) ; mGeneratedIdMap.clear ( ) ; mGeneratedIds.clear ( ) ; java.util.List < org.eclipse.ltk.core.refactoring.Change > changes = computeChanges ( ) ; mChanges.addAll ( changes ) ; monitor.worked ( 1 ) ; } finally { monitor.done ( ) ; } return status ; }

Target:
public org.eclipse.ltk.core.refactoring.RefactoringStatus checkFinalConditions ( org.eclipse.core.runtime.IProgressMonitor monitor ) throws org.eclipse.core.runtime.CoreException , org.eclipse.core.runtime.OperationCanceledException { org.eclipse.ltk.core.refactoring.RefactoringStatus status = new org.eclipse.ltk.core.refactoring.RefactoringStatus ( ) ; mChanges = new java.util.ArrayList < org.eclipse.ltk.core.refactoring.Change > ( ) ; try { monitor.beginTask ( "Checking post-conditions..." , 5 ) ; mGeneratedIdMap.clear ( ) ; mGeneratedIds.clear ( ) ; java.util.List < org.eclipse.ltk.core.refactoring.Change > changes = computeChanges ( monitor ) ; mChanges.addAll ( changes ) ; monitor.worked ( 1 ) ; } finally { monitor.done ( ) ; } return status ; }
Source:
public java.lang.Object [ ] toArray ( ) { java.lang.Object [ ] a = c.toArray ( ) ; for ( int i = 0 ; i < ( a.length ) ; i ++ ) a [ i ] = new java.util.Collections.UnmodifiableMap.UnmodifiableEntrySet.UnmodifiableEntry < > ( ( ( java.util.Map.Entry < K , V > ) ( a [ i ] ) ) ) ; return a ; }

Target:
public java.lang.Object [ ] toArray ( ) { java.lang.Object [ ] a = c.toArray ( ) ; for ( int i = 0 ; i < ( a.length ) ; i ++ ) a [ i ] = new java.util.Collections.UnmodifiableMap.UnmodifiableEntrySet.UnmodifiableEntry < > ( ( ( java.util.Map.Entry < ? extends K , ? extends V > ) ( a [ i ] ) ) ) ; return a ; }
Source:
public int doFinal ( byte [ ] out , int outOff ) { try { return delegate.digest ( out , outOff , out.length ) ; } catch ( java.security.DigestException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public int doFinal ( byte [ ] out , int outOff ) { try { return delegate.digest ( out , outOff , ( ( out.length ) - outOff ) ) ; } catch ( java.security.DigestException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public static java.lang.String getLine ( ) throws java.io.IOException { synchronized ( com.android.jack.server.Server.lockRead ) { java.lang.String str = com.android.jack.server.Server.in.readLine ( ) ; while ( str == null ) { try { com.android.jack.server.Server.in.close ( ) ; } catch ( java.io.IOException e1 ) { } com.android.jack.server.Server.in = new java.io.LineNumberReader ( new java.io.FileReader ( com.android.jack.server.Server.fifo ) ) ; str = com.android.jack.server.Server.in.readLine ( ) ; } return str ; } }

Target:
public static java.lang.String getLine ( ) throws java.io.IOException { synchronized ( com.android.jack.server.Server.lockRead ) { assert ( com.android.jack.server.Server.in ) != null ; java.lang.String str = com.android.jack.server.Server.in.readLine ( ) ; while ( str == null ) { try { com.android.jack.server.Server.in.close ( ) ; } catch ( java.io.IOException e1 ) { } com.android.jack.server.Server.in = new java.io.LineNumberReader ( new java.io.FileReader ( com.android.jack.server.Server.fifo ) ) ; assert ( com.android.jack.server.Server.in ) != null ; str = com.android.jack.server.Server.in.readLine ( ) ; } return str ; } }
Source:
public java.lang.annotation.Annotation [ ] getAnnotations ( ) { try { java.lang.ClassLoader classLoader = dalvik.system.VMStack.getCallingClassLoader ( ) ; if ( classLoader == null ) { classLoader = java.lang.ClassLoader.getSystemClassLoader ( ) ; } java.lang.Class < ? > c = java.lang.Class.forName ( ( ( getName ( ) ) + ".package-info" ) , true , classLoader ) ; return c.getAnnotations ( ) ; } catch ( java.lang.Exception ex ) { return java.lang.Package.NO_ANNOTATIONS ; } }

Target:
public java.lang.annotation.Annotation [ ] getAnnotations ( ) { try { java.lang.Class < ? > c = java.lang.Class.forName ( ( ( getName ( ) ) + ".package-info" ) , false , classLoader ) ; return c.getAnnotations ( ) ; } catch ( java.lang.Exception ex ) { return java.lang.Package.NO_ANNOTATIONS ; } }
Source:
public int doFinal ( byte [ ] out , int outOff ) { if ( ( ( context ) != null ) && ( org.bouncycastle.crypto.tls.TlsUtils.isSSL ( context ) ) ) { ssl3Complete ( md5 , SSL3Mac.IPAD , SSL3Mac.OPAD , 48 ) ; ssl3Complete ( sha1 , SSL3Mac.IPAD , SSL3Mac.OPAD , 40 ) ; } int i1 = md5.doFinal ( out , outOff ) ; int i2 = sha1.doFinal ( out , ( outOff + i1 ) ) ; return i1 + i2 ; }

Target:
public int doFinal ( byte [ ] output , int outOff ) { if ( ( ( context ) != null ) && ( org.bouncycastle.crypto.tls.TlsUtils.isSSL ( context ) ) ) { ssl3Complete ( md5 , SSL3Mac.IPAD , SSL3Mac.OPAD , 48 ) ; ssl3Complete ( sha1 , SSL3Mac.IPAD , SSL3Mac.OPAD , 40 ) ; } int i1 = md5.doFinal ( output , outOff ) ; int i2 = sha1.doFinal ( output , ( outOff + i1 ) ) ; return i1 + i2 ; }
Source:
public static void assertDefaultCipherSuites ( java.lang.String [ ] cipherSuites ) { libcore.java.security.StandardNames.assertValidCipherSuites ( libcore.java.security.StandardNames.CIPHER_SUITES , cipherSuites ) ; assertEquals ( libcore.java.security.StandardNames.CIPHER_SUITES_DEFAULT , java.util.Arrays.asList ( cipherSuites ) ) ; if ( ! ( libcore.java.security.StandardNames.IS_RI ) ) { java.util.List < java.lang.String > disallowedDefaultCipherSuites = new java.util.ArrayList < java.lang.String > ( ) ; for ( java.lang.String cipherSuite : cipherSuites ) { if ( ! ( libcore.java.security.StandardNames.isPermittedDefaultCipherSuite ( cipherSuite ) ) ) { disallowedDefaultCipherSuites.add ( cipherSuite ) ; } } assertEquals ( java.util.Collections.EMPTY_LIST , disallowedDefaultCipherSuites ) ; } }

Target:
public static void assertDefaultCipherSuites ( java.lang.String [ ] cipherSuites ) { libcore.java.security.StandardNames.assertValidCipherSuites ( cipherSuites ) ; assertEquals ( libcore.java.security.StandardNames.CIPHER_SUITES_DEFAULT , java.util.Arrays.asList ( cipherSuites ) ) ; if ( ! ( libcore.java.security.StandardNames.IS_RI ) ) { java.util.List < java.lang.String > disallowedDefaultCipherSuites = new java.util.ArrayList < java.lang.String > ( ) ; for ( java.lang.String cipherSuite : cipherSuites ) { if ( ! ( libcore.java.security.StandardNames.isPermittedDefaultCipherSuite ( cipherSuite ) ) ) { disallowedDefaultCipherSuites.add ( cipherSuite ) ; } } assertEquals ( java.util.Collections.EMPTY_LIST , disallowedDefaultCipherSuites ) ; } }
Source:
private static boolean needsCoverage ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface declaredType ) { if ( declaredType.isExternal ( ) ) { return false ; } if ( declaredType instanceof com.android.jack.ir.ast.JDefinedInterface ) { return false ; } com.android.jack.coverage.CoverageFilter filter = com.android.jack.coverage.CodeCoverageSelector.getFilterInstance ( ) ; java.lang.String typeName = com.android.jack.coverage.CodeCoverageSelector.formatter.getName ( declaredType ) ; return filter.matches ( typeName ) ; }

Target:
private boolean needsCoverage ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface declaredType ) { if ( declaredType.isExternal ( ) ) { return false ; } if ( declaredType instanceof com.android.jack.ir.ast.JDefinedInterface ) { return false ; } java.lang.String typeName = com.android.jack.coverage.CodeCoverageSelector.formatter.getName ( declaredType ) ; return filter.matches ( typeName ) ; }
Source:
public void afterHandshake ( long session , long ssl , long context , java.net.Socket socket , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long ssl , long context , java.net.Socket socket , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; org.junit.Assert.assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }
Source:
public static void permuteArguments_boxingCallee ( boolean a , java.lang.Integer b ) { if ( a && ( ( b.intValue ( ) ) == 42 ) ) { return ; } Main.fail ( ( ( ( "Unexpected arguments: " + a ) + ", " ) + b ) ) ; }

Target:
public static void permuteArguments_boxingCallee ( boolean a , java.lang.Integer b ) { if ( a && ( ( b.intValue ( ) ) == 42 ) ) { return ; } java.lang.System.out.println ( ( ( ( "Unexpected arguments: " + a ) + ", " ) + b ) ) ; }
Source:
public static java.lang.String toString ( android.hardware.tests.baz.V1_0.IBase.StringMatrix5x3 M ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( ) ; builder.append ( "[" ) ; for ( int i = 0 ; i < 5 ; ++ i ) { if ( i > 0 ) { builder.append ( ", " ) ; } builder.append ( com.android.commands.hidl_test_java.HidlTestJava.toString ( M.s [ i ] ) ) ; } builder.append ( "]" ) ; return builder.toString ( ) ; }

Target:
public static java.lang.String toString ( android.hardware.tests.baz.V1_0.IBase.StringMatrix5x3 M ) { return com.android.commands.hidl_test_java.HidlTestJava.toString ( M.s ) ; }
Source:
public boolean put ( java.lang.String key , byte [ ] value , int uid ) { try { return ( mBinder.insert ( key , value , uid ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public boolean put ( java.lang.String key , byte [ ] value , int uid , int flags ) { try { return ( mBinder.insert ( key , value , uid , flags ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
private static java.lang.String getName ( java.lang.String s ) { int i = com.ibm.icu.text.DateTimePatternGenerator.getCanonicalIndex ( s , true ) ; java.lang.String name = com.ibm.icu.text.DateTimePatternGenerator.FIELD_NAME [ com.ibm.icu.text.DateTimePatternGenerator.types [ i ] [ 1 ] ] ; int subtype = com.ibm.icu.text.DateTimePatternGenerator.types [ i ] [ 2 ] ; boolean string = subtype < 0 ; if ( string ) subtype = - subtype ; if ( subtype < 0 ) name += ":S" ; else name += ":N" ; return name ; }

Target:
private static java.lang.String getName ( java.lang.String s ) { int i = com.ibm.icu.text.DateTimePatternGenerator.getCanonicalIndex ( s , true ) ; java.lang.String name = com.ibm.icu.text.DateTimePatternGenerator.FIELD_NAME [ com.ibm.icu.text.DateTimePatternGenerator.types [ i ] [ 1 ] ] ; if ( ( com.ibm.icu.text.DateTimePatternGenerator.types [ i ] [ 2 ] ) < 0 ) { name += ":S" ; } else { name += ":N" ; } return name ; }
Source:
public static org.conscrypt.OpenSSLECGroupContext getCurveByName ( java.lang.String curveName ) { if ( "secp256r1" . equals ( curveName ) ) { curveName = "prime256v1" ; } else if ( "secp192r1" . equals ( curveName ) ) { curveName = "prime192v1" ; } final long ctx = org.conscrypt.NativeCrypto.EC_GROUP_new_by_curve_name ( curveName ) ; if ( ctx == 0 ) { return null ; } org.conscrypt.NativeRef.EC_GROUP groupRef = new org.conscrypt.NativeRef.EC_GROUP ( ctx ) ; org.conscrypt.NativeCrypto.EC_GROUP_set_point_conversion_form ( groupRef , NativeConstants.POINT_CONVERSION_UNCOMPRESSED ) ; org.conscrypt.NativeCrypto.EC_GROUP_set_asn1_flag ( groupRef , NativeConstants.OPENSSL_EC_NAMED_CURVE ) ; return new org.conscrypt.OpenSSLECGroupContext ( groupRef ) ; }

Target:
public static org.conscrypt.OpenSSLECGroupContext getCurveByName ( java.lang.String curveName ) { if ( "secp256r1" . equals ( curveName ) ) { curveName = "prime256v1" ; } else if ( "secp192r1" . equals ( curveName ) ) { curveName = "prime192v1" ; } final long ctx = org.conscrypt.NativeCrypto.EC_GROUP_new_by_curve_name ( curveName ) ; if ( ctx == 0 ) { return null ; } org.conscrypt.NativeRef.EC_GROUP groupRef = new org.conscrypt.NativeRef.EC_GROUP ( ctx ) ; return new org.conscrypt.OpenSSLECGroupContext ( groupRef ) ; }
Source:
private com.android.jill.frontend.java.Variable getLocalVariable ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , @ javax.annotation.Nonnegative int localIdx ) { org.objectweb.asm.tree.analysis.BasicValue bv = frame.getLocal ( localIdx ) ; assert bv != ( org.objectweb.asm.tree.analysis.BasicValue.UNINITIALIZED_VALUE ) ; com.android.jill.frontend.java.Variable v ; java.lang.String id = getUnnamedLocalId ( localIdx , bv.getType ( ) ) ; java.lang.String localName = id ; org.objectweb.asm.Type localType = typeToUntyped ( bv.getType ( ) ) ; v = getVariableWithLocalIndex ( localIdx , id , localName , localType , null , com.android.jill.frontend.java.MethodBodyWriter.NO_MODIFIER ) ; return v ; }

Target:
private com.android.jill.frontend.java.Variable getLocalVariable ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , @ javax.annotation.Nonnegative int localIdx ) { org.objectweb.asm.tree.analysis.BasicValue bv = frame.getLocal ( localIdx ) ; assert bv != ( org.objectweb.asm.tree.analysis.BasicValue.UNINITIALIZED_VALUE ) ; com.android.jill.frontend.java.Variable v ; java.lang.String id = getUnnamedLocalId ( localIdx , bv.getType ( ) ) ; java.lang.String localName = id ; org.objectweb.asm.Type localType = typeToUntyped ( bv.getType ( ) ) ; v = getVariableWithLocalIndex ( localIdx , id , localName , localType , null ) ; return v ; }
Source:
private android.os.Bundle getPhoneAccountExtras ( ) { android.os.PersistableBundle b = com.android.phone.PhoneGlobals.getInstance ( ) . getCarrierConfigForSubId ( mPhone.getSubId ( ) ) ; int instantLetteringMaxLength = b.getInt ( CarrierConfigManager.KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT ) ; java.lang.String instantLetteringEncoding = b.getString ( CarrierConfigManager.KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING ) ; android.os.Bundle phoneAccountExtras = new android.os.Bundle ( ) ; phoneAccountExtras.putInt ( PhoneAccount.EXTRA_CALL_SUBJECT_MAX_LENGTH , instantLetteringMaxLength ) ; phoneAccountExtras.putString ( PhoneAccount.EXTRA_CALL_SUBJECT_CHARACTER_ENCODING , instantLetteringEncoding ) ; return phoneAccountExtras ; }

Target:
private android.os.Bundle getPhoneAccountExtras ( android.os.Bundle phoneAccountExtras ) { android.os.PersistableBundle b = com.android.phone.PhoneGlobals.getInstance ( ) . getCarrierConfigForSubId ( mPhone.getSubId ( ) ) ; int instantLetteringMaxLength = b.getInt ( CarrierConfigManager.KEY_CARRIER_INSTANT_LETTERING_LENGTH_LIMIT_INT ) ; java.lang.String instantLetteringEncoding = b.getString ( CarrierConfigManager.KEY_CARRIER_INSTANT_LETTERING_ENCODING_STRING ) ; phoneAccountExtras.putInt ( PhoneAccount.EXTRA_CALL_SUBJECT_MAX_LENGTH , instantLetteringMaxLength ) ; phoneAccountExtras.putString ( PhoneAccount.EXTRA_CALL_SUBJECT_CHARACTER_ENCODING , instantLetteringEncoding ) ; return phoneAccountExtras ; }
Source:
static java.lang.String retrieveAlphaId ( com.android.internal.telephony.cat.ComprehensionTlv ctlv ) throws com.android.internal.telephony.cat.ResultException { if ( ctlv != null ) { byte [ ] rawValue = ctlv.getRawValue ( ) ; int valueIndex = ctlv.getValueIndex ( ) ; int length = ctlv.getLength ( ) ; if ( length != 0 ) { try { return com.android.internal.telephony.uicc.IccUtils.adnStringFieldToString ( rawValue , valueIndex , length ) ; } catch ( java.lang.IndexOutOfBoundsException e ) { throw new com.android.internal.telephony.cat.ResultException ( ResultCode.CMD_DATA_NOT_UNDERSTOOD ) ; } } else { return CatService.STK_DEFAULT ; } } else { return CatService.STK_DEFAULT ; } }

Target:
static java.lang.String retrieveAlphaId ( com.android.internal.telephony.cat.ComprehensionTlv ctlv ) throws com.android.internal.telephony.cat.ResultException { if ( ctlv != null ) { byte [ ] rawValue = ctlv.getRawValue ( ) ; int valueIndex = ctlv.getValueIndex ( ) ; int length = ctlv.getLength ( ) ; if ( length != 0 ) { try { return com.android.internal.telephony.uicc.IccUtils.adnStringFieldToString ( rawValue , valueIndex , length ) ; } catch ( java.lang.IndexOutOfBoundsException e ) { throw new com.android.internal.telephony.cat.ResultException ( ResultCode.CMD_DATA_NOT_UNDERSTOOD ) ; } } else { return null ; } } else { return CatService.STK_DEFAULT ; } }
Source:
void enforceCallingPermission ( java.lang.String permission , java.lang.String func ) { if ( ( checkCallingPermission ( permission ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { return ; } java.lang.String msg = ( ( ( ( ( ( "Permission Denial: " + func ) + " from pid=" ) + ( android.os.Binder.getCallingPid ( ) ) ) + ", uid=" ) + ( android.os.Binder.getCallingUid ( ) ) ) + " requires " ) + permission ; android.util.Log.w ( com.android.server.am.ActivityManagerService.TAG , msg ) ; throw new java.lang.SecurityException ( msg ) ; }

Target:
void enforceCallingPermission ( java.lang.String permission , java.lang.String func ) { if ( ( checkCallingPermission ( permission ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { return ; } java.lang.String msg = ( ( ( ( ( ( "Permission Denial: " + func ) + " from pid=" ) + ( android.os.Binder.getCallingPid ( ) ) ) + ", uid=" ) + ( android.os.Binder.getCallingUid ( ) ) ) + " requires " ) + permission ; android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , msg ) ; throw new java.lang.SecurityException ( msg ) ; }
Source:
void pauseIfSleepingLocked ( ) { if ( ( mSleeping ) || ( mShuttingDown ) ) { if ( ! ( mGoingToSleep.isHeld ( ) ) ) { mGoingToSleep.acquire ( ) ; if ( mLaunchingActivity.isHeld ( ) ) { mLaunchingActivity.release ( ) ; mHandler.removeMessages ( com.android.server.am.ActivityManagerService.LAUNCH_TIMEOUT_MSG ) ; } } if ( ( mPausingActivity ) == null ) { if ( com.android.server.am.ActivityManagerService.DEBUG_PAUSE ) android.util.Log.v ( com.android.server.am.ActivityManagerService.TAG , "Sleep needs to pause..." ) ; if ( com.android.server.am.ActivityManagerService.DEBUG_USER_LEAVING ) android.util.Log.v ( com.android.server.am.ActivityManagerService.TAG , "Sleep => pause with userLeaving=false" ) ; startPausingLocked ( false , true ) ; } } }

Target:
void pauseIfSleepingLocked ( ) { if ( ( mSleeping ) || ( mShuttingDown ) ) { if ( ! ( mGoingToSleep.isHeld ( ) ) ) { mGoingToSleep.acquire ( ) ; if ( mLaunchingActivity.isHeld ( ) ) { mLaunchingActivity.release ( ) ; mHandler.removeMessages ( com.android.server.am.ActivityManagerService.LAUNCH_TIMEOUT_MSG ) ; } } if ( ( mPausingActivity ) == null ) { if ( com.android.server.am.ActivityManagerService.DEBUG_PAUSE ) android.util.Slog.v ( com.android.server.am.ActivityManagerService.TAG , "Sleep needs to pause..." ) ; if ( com.android.server.am.ActivityManagerService.DEBUG_USER_LEAVING ) android.util.Slog.v ( com.android.server.am.ActivityManagerService.TAG , "Sleep => pause with userLeaving=false" ) ; startPausingLocked ( false , true ) ; } } }
Source:
public void testCallMethodOnCreatedFeature ( ) throws android.os.RemoteException { mTestImsServiceBinder.createImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , mTestCallback ) ; mTestImsServiceBinder.isConnected ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , 0 , 0 , 0 ) ; org.mockito.Mockito.verify ( mTestImsService.mMockMMTelFeature ) . isConnected ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyInt ( ) ) ; }

Target:
public void testCallMethodOnCreatedFeature ( ) throws android.os.RemoteException { mTestImsServiceBinder.createImsFeature ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , mTestCallback ) ; mTestImsServiceBinder.isConnected ( android.telephony.ims.ImsServiceTest.TEST_SLOT_0 , ImsFeature.MMTEL , 0 , 0 ) ; org.mockito.Mockito.verify ( mTestImsService.mMockMMTelFeature ) . isConnected ( org.mockito.Matchers.anyInt ( ) , org.mockito.Matchers.anyInt ( ) ) ; }
Source:
double getScore ( android.icu.util.ULocale desiredLocale , android.icu.util.ULocale dMax , java.lang.String desiredRaw , java.lang.String desiredMax , android.icu.util.ULocale supportedLocale , android.icu.util.ULocale sMax , java.lang.String supportedRaw , java.lang.String supportedMax ) { double distance = 0 ; if ( ! ( desiredMax.equals ( supportedMax ) ) ) { distance = getRawScore ( dMax , sMax ) ; } else if ( ! ( desiredRaw.equals ( supportedRaw ) ) ) { distance += 0.001 ; } else { } return distance ; }

Target:
double getScore ( android.icu.util.ULocale dMax , java.lang.String desiredRaw , java.lang.String desiredMax , android.icu.util.ULocale sMax , java.lang.String supportedRaw , java.lang.String supportedMax ) { double distance = 0 ; if ( ! ( desiredMax.equals ( supportedMax ) ) ) { distance = getRawScore ( dMax , sMax ) ; } else if ( ! ( desiredRaw.equals ( supportedRaw ) ) ) { distance += 0.001 ; } return distance ; }
Source:
protected boolean stop ( ) { try { unregisterReceiver ( mPbapBroadcastReceiver ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.pbapclient.PbapClientService.TAG , "Unable to unregister sap receiver" , e ) ; } mClient.disconnect ( null ) ; return true ; }

Target:
protected synchronized boolean stop ( ) { try { unregisterReceiver ( mPbapBroadcastReceiver ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.pbapclient.PbapClientService.TAG , "Unable to unregister sap receiver" , e ) ; } if ( ( mClient ) != null ) { mClient.disconnect ( null ) ; } return true ; }
Source:
private void responseHardwareConfig ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.util.ArrayList < com.android.internal.telephony.V1_0.HardwareConfig > config ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { java.util.ArrayList < com.android.internal.telephony.HardwareConfig > ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = com.android.internal.telephony.RIL.convertHalHwConfigList ( config , mRil ) ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseHardwareConfig ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , java.util.ArrayList < com.android.internal.telephony.V1_0.HardwareConfig > config ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { java.util.ArrayList < com.android.internal.telephony.HardwareConfig > ret = com.android.internal.telephony.RIL.convertHalHwConfigList ( config , mRil ) ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
public void testVrHighPerformanceHEVC ( ) throws java.lang.Exception { if ( ! ( supportsVrHighPerformance ( ) ) ) { android.cts.util.MediaUtils.skipTest ( android.media.cts.DecoderTest.TAG , "FEATURE_VR_MODE_HIGH_PERFORMANCE not present" ) ; return ; } assertTrue ( android.media.cts.DecoderTest.doesMimeTypeHaveMinimumSpecVrReadyCodec ( MediaFormat.MIMETYPE_VIDEO_HEVC ) ) ; boolean hevcIsReady = android.media.cts.DecoderTest.doesMimeTypeHaveVrReadyCodec ( MediaFormat.MIMETYPE_VIDEO_HEVC ) ; if ( ! hevcIsReady ) { android.cts.util.MediaUtils.skipTest ( android.media.cts.DecoderTest.TAG , "HEVC isn't required to be VR ready" ) ; return ; } decodeInParallel ( R.raw.bbb_s2_1920x1080_mp4_hevc_mp41_10mbps_60fps_aac_lc_6ch_384kbps_22050hz , 300 , 30 , 4 ) ; }

Target:
public void testVrHighPerformanceHEVC ( ) throws java.lang.Exception { if ( ! ( supportsVrHighPerformance ( ) ) ) { android.cts.util.MediaUtils.skipTest ( android.media.cts.DecoderTest.TAG , "FEATURE_VR_MODE_HIGH_PERFORMANCE not present" ) ; return ; } assertTrue ( android.media.cts.DecoderTest.doesMimeTypeHaveMinimumSpecVrReadyCodec ( MediaFormat.MIMETYPE_VIDEO_HEVC ) ) ; boolean hevcIsReady = android.media.cts.DecoderTest.doesMimeTypeHaveVrReadyCodec ( MediaFormat.MIMETYPE_VIDEO_HEVC ) ; if ( ! hevcIsReady ) { android.util.Log.d ( android.media.cts.DecoderTest.TAG , "HEVC isn't required to be VR ready" ) ; return ; } }
Source:
private synchronized void reduceWorkforce ( ) throws java.lang.InterruptedException { mLogger.verbose ( ( "Decrementing workforce from " + ( mWorkThreads.size ( ) ) ) ) ; for ( int i = 0 ; i < ( mMWorkforceIncrement ) ; i ++ ) { _push ( new com.android.builder.tasks.WorkQueue.QueueTask < T > ( com.android.builder.tasks.WorkQueue.QueueTask.ActionType.Death , null ) ) ; } }

Target:
private synchronized void reduceWorkforce ( ) throws java.lang.InterruptedException { verbose ( ( "Decrementing workforce from " + ( mWorkThreads.size ( ) ) ) ) ; for ( int i = 0 ; i < ( mMWorkforceIncrement ) ; i ++ ) { _push ( new com.android.builder.tasks.WorkQueue.QueueTask < T > ( com.android.builder.tasks.WorkQueue.QueueTask.ActionType.Death , null ) ) ; } }
Source:
private void initLayoutParameters ( android.content.res.Configuration configuration ) { mLayoutParams = com.android.mms.layout.LayoutManager.getLayoutParameters ( ( ( configuration.orientation ) == ( android.content.res.Configuration.ORIENTATION_PORTRAIT ) ? LayoutParameters.HVGA_PORTRAIT : LayoutParameters.HVGA_LANDSCAPE ) ) ; if ( com.android.mms.layout.LayoutManager.LOCAL_LOGV ) { android.util.Log.v ( com.android.mms.layout.LayoutManager.TAG , ( ( ( ( ( "LayoutParameters: " + ( mLayoutParams.getTypeDescription ( ) ) ) + ": " ) + ( mLayoutParams.getWidth ( ) ) ) + "x" ) + ( mLayoutParams.getHeight ( ) ) ) ) ; } }

Target:
private void initLayoutParameters ( android.content.res.Configuration configuration ) { mLayoutParams = getLayoutParameters ( ( ( configuration.orientation ) == ( android.content.res.Configuration.ORIENTATION_PORTRAIT ) ? LayoutParameters.HVGA_PORTRAIT : LayoutParameters.HVGA_LANDSCAPE ) ) ; if ( com.android.mms.layout.LayoutManager.LOCAL_LOGV ) { android.util.Log.v ( com.android.mms.layout.LayoutManager.TAG , ( ( ( ( ( "LayoutParameters: " + ( mLayoutParams.getTypeDescription ( ) ) ) + ": " ) + ( mLayoutParams.getWidth ( ) ) ) + "x" ) + ( mLayoutParams.getHeight ( ) ) ) ) ; } }
Source:
public void addTo ( java.lang.String name , java.lang.String address ) { if ( ( this . mTo ) == null ) this . mTo = new java.util.ArrayList < android.text.util.Rfc822Token > ( 1 ) ; this . mTo.add ( new android.text.util.Rfc822Token ( name , address , null ) ) ; }

Target:
public void addTo ( java.lang.String name , java.lang.String address ) { if ( ( this . to ) == null ) this . to = new java.util.ArrayList < android.text.util.Rfc822Token > ( 1 ) ; this . to.add ( new android.text.util.Rfc822Token ( name , address , null ) ) ; }
Source:
private void unregisterUiccCardEvents ( ) { if ( ( mUiccSlot ) != null ) mUiccSlot.unregisterForAbsent ( this ) ; if ( ( mUiccCard ) != null ) mUiccCard.unregisterForCarrierPrivilegeRulesLoaded ( this ) ; if ( ( mUiccApplication ) != null ) { mUiccApplication.unregisterForReady ( this ) ; } if ( ( mIccRecords ) != null ) { mIccRecords.unregisterForImsiReady ( this ) ; mIccRecords.unregisterForRecordsLoaded ( this ) ; mIccRecords.unregisterForLockedRecordsLoaded ( this ) ; mIccRecords.unregisterForNetworkLockedRecordsLoaded ( this ) ; mIccRecords.unregisterForRecordsEvents ( this ) ; } }

Target:
private void unregisterUiccCardEvents ( ) { if ( ( mUiccCard ) != null ) mUiccCard.unregisterForCarrierPrivilegeRulesLoaded ( this ) ; if ( ( mUiccApplication ) != null ) { mUiccApplication.unregisterForReady ( this ) ; } if ( ( mIccRecords ) != null ) { mIccRecords.unregisterForImsiReady ( this ) ; mIccRecords.unregisterForRecordsLoaded ( this ) ; mIccRecords.unregisterForLockedRecordsLoaded ( this ) ; mIccRecords.unregisterForNetworkLockedRecordsLoaded ( this ) ; mIccRecords.unregisterForRecordsEvents ( this ) ; } }
Source:
public java.util.Map < java.lang.String , java.lang.String > getInstrumentationRunnerArguments ( ) { com.android.builder.core.VariantConfiguration config = this ; if ( mType.isForTesting ( ) ) { config = getTestedConfig ( ) ; com.google.common.base.Preconditions.checkState ( ( config != null ) ) ; } java.util.Map < java.lang.String , java.lang.String > runner = config.mMergedFlavor.getTestInstrumentationRunnerArguments ( ) ; return runner != null ? runner : com.google.common.collect.ImmutableMap.< java.lang.String , java.lang.String > of ( ) ; }

Target:
public java.util.Map < java.lang.String , java.lang.String > getInstrumentationRunnerArguments ( ) { com.android.builder.core.VariantConfiguration config = this ; if ( mType.isForTesting ( ) ) { config = getTestedConfig ( ) ; com.google.common.base.Preconditions.checkState ( ( config != null ) ) ; } return config.mMergedFlavor.getTestInstrumentationRunnerArguments ( ) ; }
Source:
private int clamp ( int n , int my , int child ) { if ( ( my >= child ) || ( n < 0 ) ) { return 0 ; } if ( ( my + n ) > child ) { return child - my ; } return n ; }

Target:
private static int clamp ( int n , int my , int child ) { if ( ( my >= child ) || ( n < 0 ) ) { return 0 ; } if ( ( my + n ) > child ) { return child - my ; } return n ; }
Source:
public android.widget.Button getButton ( int whichButton ) { switch ( whichButton ) { case android.content.DialogInterface.BUTTON_POSITIVE : return ( mButtonPositiveMessage ) != null ? mButtonPositive : null ; case android.content.DialogInterface.BUTTON_NEGATIVE : return ( mButtonNegativeMessage ) != null ? mButtonNegative : null ; case android.content.DialogInterface.BUTTON_NEUTRAL : return ( mButtonNeutralMessage ) != null ? mButtonNeutral : null ; default : return null ; } }

Target:
public android.widget.Button getButton ( int whichButton ) { switch ( whichButton ) { case android.content.DialogInterface.BUTTON_POSITIVE : return mButtonPositive ; case android.content.DialogInterface.BUTTON_NEGATIVE : return mButtonNegative ; case android.content.DialogInterface.BUTTON_NEUTRAL : return mButtonNeutral ; default : return null ; } }
Source:
public boolean performHapticFeedback ( android.view.IWindow window , int effectId , boolean always ) { synchronized ( mWindowMap ) { long ident = android.os.Binder.clearCallingIdentity ( ) ; try { return mPolicy.performHapticFeedbackLw ( windowForClientLocked ( this , window ) , effectId , always ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }

Target:
public boolean performHapticFeedback ( android.view.IWindow window , int effectId , boolean always ) { synchronized ( mWindowMap ) { long ident = android.os.Binder.clearCallingIdentity ( ) ; try { return mPolicy.performHapticFeedbackLw ( windowForClientLocked ( this , window , true ) , effectId , always ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }
Source:
public void createTest ( com.android.rs.image.Resources res ) { int width = mOutPixelsAllocation.getType ( ) . getX ( ) ; int height = mOutPixelsAllocation.getType ( ) . getY ( ) ; mScript = new com.android.rs.image.ScriptC_mandelbrot ( mRS , res , R.raw.mandelbrot ) ; mScript.set_gDimX ( width ) ; mScript.set_gDimY ( height ) ; mScript.set_gMaxIteration ( 50 ) ; }

Target:
public void createTest ( com.android.rs.image.Resources res ) { int width = mOutPixelsAllocation.getType ( ) . getX ( ) ; int height = mOutPixelsAllocation.getType ( ) . getY ( ) ; mScript = new com.android.rs.image.ScriptC_mandelbrot ( mRS ) ; mScript.set_gDimX ( width ) ; mScript.set_gDimY ( height ) ; mScript.set_gMaxIteration ( 50 ) ; }
Source:
public android.telecom.Connection onCreateOutgoingConnection ( android.telecom.PhoneAccountHandle connectionManagerPhoneAccount , android.telecom.ConnectionRequest request ) { synchronized ( android.telecom.cts.CtsConnectionService.sLock ) { if ( ( android.telecom.cts.CtsConnectionService.sConnectionService ) != null ) { return android.telecom.cts.CtsConnectionService.sConnectionService.onCreateOutgoingConnection ( connectionManagerPhoneAccount , request ) ; } else { return android.telecom.cts.CtsConnectionService.mMockConnectionService.onCreateOutgoingConnection ( connectionManagerPhoneAccount , request ) ; } } }

Target:
public android.telecom.Connection onCreateOutgoingConnection ( android.telecom.PhoneAccountHandle connectionManagerPhoneAccount , android.telecom.ConnectionRequest request ) { synchronized ( android.telecom.cts.CtsConnectionService.sLock ) { if ( ( android.telecom.cts.CtsConnectionService.sConnectionService ) != null ) { return android.telecom.cts.CtsConnectionService.sConnectionService.onCreateOutgoingConnection ( connectionManagerPhoneAccount , request ) ; } else { return null ; } } }
Source:
public void testStateChangeToAssociatedCallback ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( ) ; int frameworkNetworkId = 6 ; executeAndValidateConnectSequence ( frameworkNetworkId , false , false ) ; assertNotNull ( mISupplicantStaIfaceCallback ) ; mISupplicantStaIfaceCallback.onStateChanged ( ISupplicantStaIfaceCallback.State.ASSOCIATED , com.android.server.wifi.util.NativeUtil.macAddressToByteArray ( com.android.server.wifi.SupplicantStaIfaceHalTest.BSSID ) , com.android.server.wifi.SupplicantStaIfaceHalTest.SUPPLICANT_NETWORK_ID , com.android.server.wifi.util.NativeUtil.decodeSsid ( com.android.server.wifi.SupplicantStaIfaceHalTest.SUPPLICANT_SSID ) ) ; org.mockito.Mockito.verify ( mWifiMonitor ) . broadcastSupplicantStateChangeEvent ( org.mockito.Matchers.eq ( com.android.server.wifi.SupplicantStaIfaceHalTest.WLAN_IFACE_NAME ) , org.mockito.Matchers.eq ( frameworkNetworkId ) , org.mockito.Matchers.any ( android.net.wifi.WifiSsid.class ) , org.mockito.Matchers.eq ( com.android.server.wifi.SupplicantStaIfaceHalTest.BSSID ) , org.mockito.Matchers.eq ( SupplicantState.ASSOCIATED ) ) ; }

Target:
public void testStateChangeToAssociatedCallback ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( ) ; int frameworkNetworkId = 6 ; executeAndValidateConnectSequence ( frameworkNetworkId , false ) ; assertNotNull ( mISupplicantStaIfaceCallback ) ; mISupplicantStaIfaceCallback.onStateChanged ( ISupplicantStaIfaceCallback.State.ASSOCIATED , com.android.server.wifi.util.NativeUtil.macAddressToByteArray ( com.android.server.wifi.SupplicantStaIfaceHalTest.BSSID ) , com.android.server.wifi.SupplicantStaIfaceHalTest.SUPPLICANT_NETWORK_ID , com.android.server.wifi.util.NativeUtil.decodeSsid ( com.android.server.wifi.SupplicantStaIfaceHalTest.SUPPLICANT_SSID ) ) ; org.mockito.Mockito.verify ( mWifiMonitor ) . broadcastSupplicantStateChangeEvent ( org.mockito.Matchers.eq ( com.android.server.wifi.SupplicantStaIfaceHalTest.WLAN_IFACE_NAME ) , org.mockito.Matchers.eq ( frameworkNetworkId ) , org.mockito.Matchers.any ( android.net.wifi.WifiSsid.class ) , org.mockito.Matchers.eq ( com.android.server.wifi.SupplicantStaIfaceHalTest.BSSID ) , org.mockito.Matchers.eq ( SupplicantState.ASSOCIATED ) ) ; }
Source:
public void runTest ( final com.android.cts.TestDevice device , final com.android.cts.Test test , android.annotation.cts.Profile profile ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException , com.android.cts.InvalidApkPathException , com.android.cts.InvalidNameSpaceException { if ( test == null ) { return ; } mTestStop = false ; mIsInBatchMode = false ; println ( com.android.cts.TestPackage.PKG_LOG_SEPARATOR ) ; println ( ( "Test package: " + ( getAppPackageName ( ) ) ) ) ; setTestDevice ( device ) ; runTestImpl ( test , profile ) ; }

Target:
public void runTest ( final com.android.cts.TestDevice device , final com.android.cts.Test test ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException , com.android.cts.InvalidApkPathException , com.android.cts.InvalidNameSpaceException { if ( test == null ) { return ; } mTestStop = false ; mIsInBatchMode = false ; println ( com.android.cts.TestPackage.PKG_LOG_SEPARATOR ) ; println ( ( "Test package: " + ( getAppPackageName ( ) ) ) ) ; setTestDevice ( device ) ; runTestImpl ( test ) ; }
Source:
public void testStyleables1 ( ) throws java.lang.Exception { check ( "test.pkg" , ( "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" ) ) , ( "/* 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_tilingProperty = 0;\n" ) + " public static final int TiledView_tilingMode = 3;\n" ) + " public static final int TiledView_tilingResource = 1;\n" ) + " public static final int TiledView_tileName = 2;\n" ) + " public static final int TiledView_tilingEnum = 4;\n" ) + " public static final int[] TiledView = { 0x7f010000, 0x7f010001, 0x7f010002, 0x7f010003, 0x7f010004 };\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:
private void resetNetworkModeToDefault ( ) { int networkMode = com.android.phone.Settings.preferredNetworkMode ; int modemNetworkMode = com.android.internal.telephony.Phone.NT_GLOBAL_AUTO_TYPE ; mButtonPreferredNetworkMode.setValue ( java.lang.Integer.toString ( networkMode ) ) ; android.provider.Settings.System.putInt ( mPhone.getContext ( ) . getContentResolver ( ) , android.provider.Settings.System.PREFERRED_NETWORK_MODE , networkMode ) ; mPhone.setPreferredNetworkType ( modemNetworkMode , this . obtainMessage ( com.android.phone.Settings.MyHandler.MESSAGE_SET_PREFERRED_NETWORK_TYPE ) ) ; }

Target:
private void resetNetworkModeToDefault ( ) { mButtonPreferredNetworkMode.setValue ( java.lang.Integer.toString ( com.android.phone.Settings.preferredNetworkMode ) ) ; android.provider.Settings.System.putInt ( mPhone.getContext ( ) . getContentResolver ( ) , android.provider.Settings.System.PREFERRED_NETWORK_MODE , com.android.phone.Settings.preferredNetworkMode ) ; mPhone.setPreferredNetworkType ( com.android.phone.Settings.preferredNetworkMode , this . obtainMessage ( com.android.phone.Settings.MyHandler.MESSAGE_SET_PREFERRED_NETWORK_TYPE ) ) ; }
Source:
public void doImport ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) throws com.android.jack.backend.jayce.ImportConflictException , com.android.jack.ir.ast.JPackageLookupException , com.android.jack.ir.ast.JTypeLookupException { for ( com.android.jack.library.InputJackLibrary inputJackLibrary : inputJackLibraries ) { com.android.sched.vfs.InputRootVDir libraryVDir = inputJackLibrary.getInputVDir ( ) ; com.android.jack.backend.jayce.JayceFileImporter.logger.log ( java.util.logging.Level.FINE , "Importing {0}" , libraryVDir.getLocation ( ) . getDescription ( ) ) ; for ( com.android.sched.vfs.InputVElement subFile : libraryVDir.list ( ) ) { importJayceFile ( subFile , session , "" ) ; } } }

Target:
public void doImport ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session ) throws com.android.jack.backend.jayce.ImportConflictException , com.android.jack.ir.ast.JPackageLookupException , com.android.jack.ir.ast.JTypeLookupException { for ( com.android.jack.library.InputJackLibrary inputJackLibrary : inputJackLibraries ) { com.android.sched.vfs.InputRootVDir libraryVDir = inputJackLibrary.getInputVDir ( ) ; com.android.jack.backend.jayce.JayceFileImporter.logger.log ( java.util.logging.Level.FINE , "Importing {0}" , libraryVDir.getLocation ( ) . getDescription ( ) ) ; for ( com.android.sched.vfs.InputVElement subFile : libraryVDir.list ( ) ) { importJayceFile ( inputJackLibrary , subFile , session , "" ) ; } } }
Source:
public void test_socket_accept_Nonblocking_Bound ( ) throws java.io.IOException { serverChannel.configureBlocking ( false ) ; java.net.ServerSocket gotSocket = serverChannel.socket ( ) ; gotSocket.bind ( null ) ; try { gotSocket.accept ( ) ; fail ( "Should throw an IllegalBlockingModeException" ) ; } catch ( java.nio.channels.IllegalBlockingModeException e ) { } serverChannel.close ( ) ; try { gotSocket.accept ( ) ; fail ( "Should throw a ClosedChannelException" ) ; } catch ( java.nio.channels.ClosedChannelException e ) { } }

Target:
public void test_socket_accept_Nonblocking_Bound ( ) throws java.io.IOException { serverChannel.configureBlocking ( false ) ; serverChannel.bind ( null ) ; java.net.ServerSocket gotSocket = serverChannel.socket ( ) ; try { gotSocket.accept ( ) ; fail ( "Should throw an IllegalBlockingModeException" ) ; } catch ( java.nio.channels.IllegalBlockingModeException expected ) { } serverChannel.close ( ) ; try { gotSocket.accept ( ) ; fail ( "Should throw a ClosedChannelException" ) ; } catch ( java.nio.channels.ClosedChannelException expected ) { } }
Source:
public java.util.List < com.intellij.execution.impl.BeforeRunTask > getBeforeRunTasks ( final com.intellij.execution.impl.RunConfiguration settings ) { if ( settings instanceof com.intellij.execution.impl.WrappingRunConfiguration ) { return getBeforeRunTasks ( ( ( com.intellij.execution.impl.WrappingRunConfiguration ) ( settings ) ) . getPeer ( ) ) ; } final java.util.List < com.intellij.execution.impl.BeforeRunTask > tasks = myConfigurationToBeforeTasksMap.get ( settings ) ; if ( tasks != null ) { return com.intellij.execution.impl.RunManagerImpl.getCopies ( tasks ) ; } return getTemplateBeforeRunTasks ( settings ) ; }

Target:
public java.util.List < com.intellij.execution.impl.BeforeRunTask > getBeforeRunTasks ( final com.intellij.execution.impl.RunConfiguration settings ) { if ( settings instanceof com.intellij.execution.impl.WrappingRunConfiguration ) { return getBeforeRunTasks ( ( ( com.intellij.execution.impl.WrappingRunConfiguration ) ( settings ) ) . getPeer ( ) ) ; } java.util.List < com.intellij.execution.impl.BeforeRunTask > tasks = myConfigurationToBeforeTasksMap.get ( settings ) ; return tasks == null ? getTemplateBeforeRunTasks ( settings ) : com.intellij.execution.impl.RunManagerImpl.getCopies ( tasks ) ; }
Source:
public final java.lang.String [ ] resolveResourceValue ( int id ) { com.android.util.Pair < com.android.resources.ResourceType , java.lang.String > info = resolveResourceId ( id ) ; return new java.lang.String [ ] { info.getSecond ( ) , info.getFirst ( ) . getName ( ) } ; }

Target:
public final java.lang.String [ ] resolveResourceValue ( int id ) { com.android.util.Pair < com.android.resources.ResourceType , java.lang.String > info = resolveResourceId ( id ) ; if ( info != null ) { return new java.lang.String [ ] { info.getSecond ( ) , info.getFirst ( ) . getName ( ) } ; } return null ; }
Source:
public void testPass2 ( ) { addTestMetric ( "key2" , "metric2" ) ; if ( ( testOption ) != null ) { addTestMetric ( "test-option" , testOption ) ; } if ( ! ( listOption.isEmpty ( ) ) ) { addTestMetric ( "list-option" , listOption.toString ( ) ) ; } if ( ! ( mapOption.isEmpty ( ) ) ) { addTestMetric ( "map-option" , mapOption.toString ( ) ) ; } HEAD ( 6.2E8F ) ; com.android.tradefed.testtype.f Merge ; com.android.tradefed.testtype.changes Ieb3ca670 ; }

Target:
public void testPass2 ( ) { addTestMetric ( "key2" , "metric2" ) ; if ( ( testOption ) != null ) { addTestMetric ( "test-option" , testOption ) ; } if ( ! ( listOption.isEmpty ( ) ) ) { addTestMetric ( "list-option" , listOption.toString ( ) ) ; } if ( ! ( mapOption.isEmpty ( ) ) ) { addTestMetric ( "map-option" , mapOption.toString ( ) ) ; } }