auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private static int extractSelCodeFromOtaSpNum ( java.lang.String dialStr ) { int dialStrLen = dialStr.length ( ) ; int sysSelCodeInt = com.android.internal.telephony.cdma.CDMAPhone.INVALID_SYSTEM_SELECTION_CODE ; if ( ( dialStr.regionMatches ( 0 , com.android.internal.telephony.cdma.CDMAPhone.IS683A_FEATURE_CODE , 0 , com.android.internal.telephony.cdma.CDMAPhone.IS683A_FEATURE_CODE_NUM_DIGITS ) ) && ( dialStrLen >= ( ( com.android.internal.telephony.cdma.CDMAPhone.IS683A_FEATURE_CODE_NUM_DIGITS ) + ( com.android.internal.telephony.cdma.CDMAPhone.IS683A_SYS_SEL_CODE_NUM_DIGITS ) ) ) ) { sysSelCodeInt = java.lang.Integer.parseInt ( dialStr.substring ( com.android.internal.telephony.cdma.CDMAPhone.IS683A_FEATURE_CODE_NUM_DIGITS , ( ( com.android.internal.telephony.cdma.CDMAPhone.IS683A_FEATURE_CODE_NUM_DIGITS ) + ( com.android.internal.telephony.cdma.CDMAPhone.IS683A_SYS_SEL_CODE_NUM_DIGITS ) ) ) ) ; } if ( com.android.internal.telephony.cdma.CDMAPhone.DBG ) android.util.Log.d ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , ( "extractSelCodeFromOtaSpNum " + sysSelCodeInt ) ) ; return sysSelCodeInt ; }

Target:
private static int extractSelCodeFromOtaSpNum ( java.lang.String dialStr ) { int dialStrLen = dialStr.length ( ) ; int sysSelCodeInt = com.android.internal.telephony.cdma.CDMAPhone.INVALID_SYSTEM_SELECTION_CODE ; if ( ( dialStr.regionMatches ( 0 , com.android.internal.telephony.cdma.CDMAPhone.IS683A_FEATURE_CODE , 0 , com.android.internal.telephony.cdma.CDMAPhone.IS683A_FEATURE_CODE_NUM_DIGITS ) ) && ( dialStrLen >= ( ( com.android.internal.telephony.cdma.CDMAPhone.IS683A_FEATURE_CODE_NUM_DIGITS ) + ( com.android.internal.telephony.cdma.CDMAPhone.IS683A_SYS_SEL_CODE_NUM_DIGITS ) ) ) ) { sysSelCodeInt = java.lang.Integer.parseInt ( dialStr.substring ( com.android.internal.telephony.cdma.CDMAPhone.IS683A_FEATURE_CODE_NUM_DIGITS , ( ( com.android.internal.telephony.cdma.CDMAPhone.IS683A_FEATURE_CODE_NUM_DIGITS ) + ( com.android.internal.telephony.cdma.CDMAPhone.IS683A_SYS_SEL_CODE_NUM_DIGITS ) ) ) ) ; } if ( com.android.internal.telephony.cdma.CDMAPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.cdma.CDMAPhone.LOG_TAG , ( "extractSelCodeFromOtaSpNum " + sysSelCodeInt ) ) ; return sysSelCodeInt ; }
Source:
private java.lang.String getSignatureAttribute ( ) { java.lang.String [ ] annotation = getSignatureAnnotation ( ) ; if ( annotation == null ) { return null ; } java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; for ( java.lang.String s : annotation ) { result.append ( s ) ; } return result.toString ( ) ; }

Target:
public java.lang.annotation.Annotation [ ] getDeclaredAnnotations ( ) { java.util.List < java.lang.annotation.Annotation > result = libcore.reflect.AnnotationAccess.getDeclaredAnnotations ( this ) ; return result.toArray ( new java.lang.annotation.Annotation [ result.size ( ) ] ) ; }
Source:
public void testLicenseIdNotFound ( ) throws java.lang.Exception { java.lang.String document = ( ( ( ( ( ( "<?xml version=\"1.0\"?>" + ( com.android.sdklib.repository.SdkRepositoryTest.OPEN_TAG ) ) + "<r:license id=\"lic1\"> some license </r:license> " ) + "<r:tool> <r:uses-license ref=\"lic2\" /> <r:revision>1</r:revision> " ) + "<r:min-platform-tools-rev>1</r:min-platform-tools-rev> " ) + "<r:archives> <r:archive os=\"any\"> <r:size>1</r:size> <r:checksum>2822ae37115ebf13412bbef91339ee0d9454525e</r:checksum> " ) + "<r:url>url</r:url> </r:archive> </r:archives> </r:tool>" ) + ( com.android.sdklib.repository.SdkRepositoryTest.CLOSE_TAG ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( new java.io.StringReader ( document ) ) ; javax.xml.validation.Validator validator = getValidator ( SdkRepository.NS_LATEST_VERSION , null ) ; try { validator.validate ( source ) ; } catch ( org.xml.sax.SAXParseException e ) { assertRegex ( "cvc-id.1: There is no ID/IDREF binding for IDREF 'lic2'.*" , e.getMessage ( ) ) ; return ; } fail ( ) ; }

Target:
public void testLicenseIdNotFound ( ) throws java.lang.Exception { java.lang.String document = ( ( ( ( ( ( "<?xml version=\"1.0\"?>" + ( com.android.sdklib.repository.SdkRepositoryTest.OPEN_TAG ) ) + "<r:license id=\"lic1\"> some license </r:license> " ) + "<r:tool> <r:uses-license ref=\"lic2\" /> <r:revision>1</r:revision> " ) + "<r:min-platform-tools-rev>1</r:min-platform-tools-rev> " ) + "<r:archives> <r:archive os=\"any\"> <r:size>1</r:size> <r:checksum>2822ae37115ebf13412bbef91339ee0d9454525e</r:checksum> " ) + "<r:url>url</r:url> </r:archive> </r:archives> </r:tool>" ) + ( com.android.sdklib.repository.SdkRepositoryTest.CLOSE_TAG ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( new java.io.StringReader ( document ) ) ; javax.xml.validation.Validator validator = getValidator ( SdkRepoConstants.NS_LATEST_VERSION , null ) ; try { validator.validate ( source ) ; } catch ( org.xml.sax.SAXParseException e ) { assertRegex ( "cvc-id.1: There is no ID/IDREF binding for IDREF 'lic2'.*" , e.getMessage ( ) ) ; return ; } fail ( ) ; }
Source:
private com.android.jack.ir.ast.JClass getSuper ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassOrInterface node ) { if ( node instanceof com.android.jack.ir.ast.JDefinedClass ) { return ( ( com.android.jack.ir.ast.JDefinedClass ) ( node ) ) . getSuperClass ( ) ; } if ( ! ( node.equals ( javaLangObject ) ) ) { return javaLangObject ; } else { return null ; } }

Target:
private com.android.jack.ir.ast.JClass getSuper ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassOrInterface node ) { if ( node instanceof com.android.jack.ir.ast.JDefinedClass ) { return ( ( com.android.jack.ir.ast.JDefinedClass ) ( node ) ) . getSuperClass ( ) ; } if ( ! ( node.isSameType ( javaLangObject ) ) ) { return javaLangObject ; } else { return null ; } }
Source:
void assertDtmfString ( final android.telecom.cts.MockConnection connection , final java.lang.String dtmfString ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return dtmfString ; } @ java.lang.Override public java.lang.Object actual ( ) { return connection.getDtmfString ( ) ; } } , android.telecom.cts.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "DTMF string should be equivalent to entered DTMF characters: " + dtmfString ) ) ; }

Target:
void assertDtmfString ( final android.telecom.cts.MockConnection connection , final java.lang.String dtmfString ) { waitUntilConditionIsTrueOrTimeout ( new android.telecom.cts.BaseTelecomTestWithMockServices.Condition ( ) { @ java.lang.Override public java.lang.Object expected ( ) { return dtmfString ; } @ java.lang.Override public java.lang.Object actual ( ) { return connection.getDtmfString ( ) ; } } , android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , ( "DTMF string should be equivalent to entered DTMF characters: " + dtmfString ) ) ; }
Source:
synchronized void nAllocationElementRead ( long id , int xoff , int yoff , int zoff , int mip , int compIdx , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationElementRead ( mContext , id , xoff , yoff , zoff , mip , compIdx , d , sizeBytes , dt.mID ) ; }

Target:
synchronized void nAllocationRead3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt , int mSize , boolean usePadding ) { validate ( ) ; rsnAllocationRead3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID , mSize , usePadding ) ; }
Source:
private static int maybeThrowAfterSendto ( boolean isDatagram , libcore.io.ErrnoException errnoException ) throws java.net.SocketException { if ( isDatagram ) { if ( ( ( errnoException.errno ) == ( ECONNRESET ) ) || ( ( errnoException.errno ) == ( ECONNREFUSED ) ) ) { return 0 ; } } else { if ( ( errnoException.errno ) == ( EAGAIN ) ) { return 0 ; } } throw errnoException.rethrowAsSocketException ( ) ; }

Target:
private static int maybeThrowAfterSendto ( boolean isDatagram , android.system.ErrnoException errnoException ) throws java.net.SocketException { if ( isDatagram ) { if ( ( ( errnoException.errno ) == ( ECONNRESET ) ) || ( ( errnoException.errno ) == ( ECONNREFUSED ) ) ) { return 0 ; } } else { if ( ( errnoException.errno ) == ( EAGAIN ) ) { return 0 ; } } throw errnoException.rethrowAsSocketException ( ) ; }
Source:
private static java.lang.String readFile ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile file ) { java.io.InputStream contents = null ; try { contents = file.getFile ( ) . getContents ( ) ; return com.android.ide.eclipse.adt.internal.editors.layout.gle2.IncludeFinder.readFile ( new java.io.InputStreamReader ( contents ) ) ; } catch ( com.android.sdklib.io.StreamException e ) { } finally { try { if ( contents != null ) { contents.close ( ) ; } } catch ( java.io.IOException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Can't read layout file" ) ; } } return null ; }

Target:
private static java.lang.String getMapKey ( org.eclipse.core.resources.IResource resourceFile ) { java.lang.String folderName = resourceFile.getParent ( ) . getName ( ) ; java.lang.String name = resourceFile.getName ( ) ; return com.android.ide.eclipse.adt.internal.editors.layout.gle2.IncludeFinder.getMapKey ( folderName , name ) ; }
Source:
public void setMsisdnNumber ( java.lang.String alphaTag , java.lang.String number , android.os.Message onComplete ) { mNewMsisdn = number ; mNewMsisdnTag = alphaTag ; if ( DBG ) log ( ( ( ( "Set MSISDN: " + ( mNewMsisdnTag ) ) + " " ) + "xxxxxxx" ) ) ; com.android.internal.telephony.uicc.AdnRecord adn = new com.android.internal.telephony.uicc.AdnRecord ( mNewMsisdnTag , mNewMsisdn ) ; new com.android.internal.telephony.uicc.AdnRecordLoader ( mFh ) . updateEF ( adn , com.android.internal.telephony.uicc.EF_MSISDN , com.android.internal.telephony.uicc.EF_EXT1 , 1 , null , obtainMessage ( com.android.internal.telephony.uicc.EVENT_SET_MSISDN_DONE , onComplete ) ) ; }

Target:
public void setMsisdnNumber ( java.lang.String alphaTag , java.lang.String number , android.os.Message onComplete ) { mNewMsisdn = number ; mNewMsisdnTag = alphaTag ; if ( DBG ) log ( ( ( ( "Set MSISDN: " + ( mNewMsisdnTag ) ) + " " ) + "xxxxxxx" ) ) ; com.android.internal.telephony.uicc.AdnRecord adn = new com.android.internal.telephony.uicc.AdnRecord ( mNewMsisdnTag , mNewMsisdn ) ; new com.android.internal.telephony.uicc.AdnRecordLoader ( mFh ) . updateEF ( adn , com.android.internal.telephony.uicc.EF_MSISDN , getExtFromEf ( com.android.internal.telephony.uicc.EF_MSISDN ) , 1 , null , obtainMessage ( com.android.internal.telephony.uicc.EVENT_SET_MSISDN_DONE , onComplete ) ) ; }
Source:
public static int FloatLtMatCond_IntVarVar ( float a , float b , int x , int y ) { int result = ( a > b ) ? x : y ; return result + ( a > b ? 0 : 1 ) ; }

Target:
public static int FloatLtMatCond_IntVarVar ( float a , float b , int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int result = ( a > b ) ? x : y ; return result + ( a > b ? 0 : 1 ) ; }
Source:
public org.objectweb.asm.FieldVisitor visitField ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.Object value ) { handleCodeConstant ( value ) ; return new org.objectweb.asm.FieldVisitor ( org.objectweb.asm.Opcodes.ASM4 ) { @ java.lang.Override public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { return new com.android.build.gradle.tasks.ResourceUsageAnalyzer.AnnotationUsageVisitor ( ) ; } } ; }

Target:
public org.objectweb.asm.FieldVisitor visitField ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.Object value ) { handleCodeConstant ( value , "field" ) ; return new org.objectweb.asm.FieldVisitor ( org.objectweb.asm.Opcodes.ASM4 ) { @ java.lang.Override public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { return new com.android.build.gradle.tasks.ResourceUsageAnalyzer.UsageVisitor.AnnotationUsageVisitor ( ) ; } } ; }
Source:
public void testOverlay2Content ( ) throws java.lang.Exception { java.io.File project = buildProject ( "overlay2" , BasePlugin.GRADLE_TEST_VERSION ) ; java.io.File drawableOutput = new java.io.File ( project , ( ( "build/" + ( com.android.builder.model.AndroidProject.FD_INTERMEDIATES ) ) + "/res/one/debug/drawable" ) ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "no_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "type_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "flavor_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "type_flavor_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "variant_type_flavor_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; }

Target:
public void testOverlay2Content ( ) throws java.lang.Exception { java.io.File project = buildProject ( com.android.build.gradle.FOLDER_TEST_REGULAR , "overlay2" , BasePlugin.GRADLE_TEST_VERSION ) ; java.io.File drawableOutput = new java.io.File ( project , ( ( "build/" + ( com.android.builder.model.AndroidProject.FD_INTERMEDIATES ) ) + "/res/one/debug/drawable" ) ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "no_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "type_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "flavor_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "type_flavor_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; com.android.build.gradle.ManualBuildTest.checkImageColor ( drawableOutput , "variant_type_flavor_overlay.png" , com.android.build.gradle.ManualBuildTest.GREEN ) ; }
Source:
private static java.lang.String quoteSsid ( android.net.wifi.ScanResult scanResult ) { if ( ( scanResult.wifiSsid ) != null ) { return ( "\"" + ( scanResult.wifiSsid ) ) + "\"" ; } else if ( ( scanResult.SSID ) != null ) { return ( "\"" + ( scanResult.SSID ) ) + "\"" ; } else { throw new java.lang.IllegalArgumentException ( "ScanResult is missing an SSID." ) ; } }

Target:
public void onRequestRecommendation ( android.net.RecommendationRequest request , com.android.networkrecommendation.ResultCallback callback ) { callback.onResult ( requestRecommendation ( request ) ) ; }
Source:
public void log ( java.util.logging.Level level , java.lang.String msg , java.lang.Object [ ] params ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setParameters ( params ) ; doLog ( lr ) ; }

Target:
public void log ( java.util.logging.Level level , java.lang.String msg , java.lang.Throwable thrown ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setThrown ( thrown ) ; doLog ( lr ) ; }
Source:
private void read ( java.io.InputStream patchIn ) throws java.io.IOException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.DataInputStream in = new java.io.DataInputStream ( patchIn ) ; myOldBuild = in.readUTF ( ) ; myNewBuild = in.readUTF ( ) ; myIsBinary = in.readBoolean ( ) ; myIsStrict = in.readBoolean ( ) ; myDeleteFiles = com.intellij.updater.Patch.readList ( in ) ; myActions = readActions ( in ) ; }

Target:
private void read ( java.io.InputStream patchIn ) throws java.io.IOException { @ java.lang.SuppressWarnings ( value = "IOResourceOpenedButNotSafelyClosed" ) java.io.DataInputStream in = new java.io.DataInputStream ( patchIn ) ; myOldBuild = in.readUTF ( ) ; myNewBuild = in.readUTF ( ) ; myIsBinary = in.readBoolean ( ) ; myIsStrict = in.readBoolean ( ) ; myIsNormalized = in.readBoolean ( ) ; myDeleteFiles = com.intellij.updater.Patch.readList ( in ) ; myActions = readActions ( in ) ; }
Source:
public void syncSucceeded ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.project.Project project ) { com.intellij.openapi.application.ApplicationManager.getApplication ( ) . runWriteAction ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { com.intellij.openapi.module.Module module = com.intellij.openapi.module.ModuleManager.getInstance ( project ) . findModuleByName ( moduleName ) ; com.google.gct.idea.appengine.wizard.NewAppEngineModuleAction.createRunConfiguration ( project , module ) ; } } ) ; }

Target:
public void syncSucceeded ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.project.Project project ) { com.intellij.openapi.application.ApplicationManager.getApplication ( ) . runWriteAction ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { final com.intellij.openapi.module.Module module = com.intellij.openapi.module.ModuleManager.getInstance ( project ) . findModuleByName ( moduleName ) ; com.google.gct.idea.appengine.wizard.CloudModuleUtils.createRunConfiguration ( project , module ) ; } } ) ; }
Source:
public java.lang.String [ ] saw ( java.lang.String prefix ) { byte [ ] [ ] values = saw ( android.security.KeyStore.getBytes ( prefix ) ) ; if ( values == null ) { return null ; } java.lang.String [ ] strings = new java.lang.String [ values.length ] ; for ( int i = 0 ; i < ( values.length ) ; ++ i ) { strings [ i ] = android.security.KeyStore.toString ( values [ i ] ) ; } return strings ; }

Target:
public java.lang.String [ ] saw ( java.lang.String prefix ) { byte [ ] [ ] values = saw ( android.security.KeyStore.getKeyBytes ( prefix ) ) ; if ( values == null ) { return null ; } java.lang.String [ ] strings = new java.lang.String [ values.length ] ; for ( int i = 0 ; i < ( values.length ) ; ++ i ) { strings [ i ] = android.security.KeyStore.toKeyString ( values [ i ] ) ; } return strings ; }
Source:
public void testV1SignedAttrsMissingContentType ( ) throws java.lang.Exception { com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verify ( "v1-only-with-signed-attrs-missing-content-type.apk" ) , Issue.JAR_SIG_VERIFY_EXCEPTION ) ; }

Target:
public void testV1SignedAttrs ( ) throws java.lang.Exception { java.lang.String apk = "v1-only-with-signed-attrs.apk" ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verifyForMinSdkVersion ( apk , AndroidSdkVersion.JELLY_BEAN_MR2 ) , Issue.JAR_SIG_VERIFY_EXCEPTION ) ; com.android.apksig.ApkVerifierTest.assertVerified ( verifyForMinSdkVersion ( apk , AndroidSdkVersion.KITKAT ) ) ; apk = "v1-only-with-signed-attrs-signerInfo1-good-signerInfo2-good.apk" ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verifyForMinSdkVersion ( apk , AndroidSdkVersion.JELLY_BEAN_MR2 ) , Issue.JAR_SIG_VERIFY_EXCEPTION ) ; com.android.apksig.ApkVerifierTest.assertVerified ( verifyForMinSdkVersion ( apk , AndroidSdkVersion.KITKAT ) ) ; }
Source:
public android.telephony.VisualVoicemailSmsFilterSettings getSystemVisualVoicemailSmsFilterSettings ( java.lang.String packageName , int subId ) { enforceReadPrivilegedPermission ( ) ; return com.android.phone.VisualVoicemailSmsFilterConfig.getVisualVoicemailSmsFilterSettings ( mPhone.getContext ( ) , packageName , subId ) ; }

Target:
public java.lang.String getVisualVoicemailPackageName ( java.lang.String callingPackage , int subId ) { mAppOps.checkPackage ( android.os.Binder.getCallingUid ( ) , callingPackage ) ; if ( ! ( canReadPhoneState ( callingPackage , "getVisualVoicemailPackageName" ) ) ) { return null ; } return com.android.phone.vvm.RemoteVvmTaskManager.getRemotePackage ( mPhone.getContext ( ) , subId ) . getPackageName ( ) ; }
Source:
private void updateHeadsetStatus ( ) { android.media.AudioDeviceInfo [ ] devices = mAudioManager.getDevices ( AudioManager.GET_DEVICES_ALL ) ; boolean isPluggedIn = false ; for ( android.media.AudioDeviceInfo device : devices ) { switch ( device.getType ( ) ) { case android.media.AudioDeviceInfo.TYPE_WIRED_HEADPHONES : case android.media.AudioDeviceInfo.TYPE_WIRED_HEADSET : case android.media.AudioDeviceInfo.TYPE_USB_DEVICE : isPluggedIn = true ; } } com.android.server.telecom.Log.i ( this , "ACTION_HEADSET_PLUG event, plugged in: %b, " , isPluggedIn ) ; onHeadsetPluggedInChanged ( isPluggedIn ) ; }

Target:
private void updateHeadsetStatus ( ) { android.media.AudioDeviceInfo [ ] devices = mAudioManager.getDevices ( AudioManager.GET_DEVICES_ALL ) ; boolean isPluggedIn = false ; for ( android.media.AudioDeviceInfo device : devices ) { switch ( device.getType ( ) ) { case android.media.AudioDeviceInfo.TYPE_WIRED_HEADPHONES : case android.media.AudioDeviceInfo.TYPE_WIRED_HEADSET : case android.media.AudioDeviceInfo.TYPE_USB_DEVICE : isPluggedIn = true ; } } android.telecom.Log.i ( this , "ACTION_HEADSET_PLUG event, plugged in: %b, " , isPluggedIn ) ; onHeadsetPluggedInChanged ( isPluggedIn ) ; }
Source:
public static void setup ( ) throws java.lang.Exception { com.android.jack.toolchain.ToolchainTest.CORE_SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "core-libart" ) ; com.android.jack.toolchain.ToolchainTest.BOUNCY_SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "bouncycastle" ) ; com.android.jack.toolchain.ToolchainTest.JUNIT_SOURCELIST = com.android.jack.TestTools.getHostLibSourcelist ( "junit4-hostdex-jack" ) ; com.android.jack.toolchain.ToolchainTest.corePath = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "core" , ".jack" ) ; com.android.jack.test.toolchain.AndroidToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.AndroidToolchain.class ) ; toolchain.setSourceLevel ( SourceLevel.JAVA_7 ) ; toolchain.srcToLib ( com.android.jack.toolchain.ToolchainTest.corePath , true , com.android.jack.toolchain.ToolchainTest.CORE_SOURCELIST ) ; }

Target:
public static void setup ( ) throws java.lang.Exception { com.android.jack.toolchain.ToolchainTest.CORE_SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "core-libart" ) ; com.android.jack.toolchain.ToolchainTest.BOUNCY_SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "bouncycastle" ) ; com.android.jack.toolchain.ToolchainTest.JUNIT_SOURCELIST = com.android.jack.TestTools.getHostLibSourcelist ( "junit4-hostdex-jack" ) ; com.android.jack.toolchain.ToolchainTest.coreOut = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "core" , ".jack" ) ; com.android.jack.test.toolchain.AndroidToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.AndroidToolchain.class ) ; toolchain.setSourceLevel ( SourceLevel.JAVA_7 ) ; toolchain.srcToLib ( com.android.jack.toolchain.ToolchainTest.coreOut , true , com.android.jack.toolchain.ToolchainTest.CORE_SOURCELIST ) ; }
Source:
private void writeDupX1 ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > nextFrame ) throws java.io.IOException { writeAssign ( frame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK , nextFrame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) ; writeAssign ( frame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 1 ) , nextFrame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 1 ) ) ; writeAssign ( nextFrame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK , nextFrame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 2 ) ) ; }

Target:
private void writeDupX1 ( @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > frame , @ javax.annotation.Nonnull org.objectweb.asm.tree.analysis.Frame < org.objectweb.asm.tree.analysis.BasicValue > nextFrame ) throws java.io.IOException { writeAssign ( frame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK , nextFrame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) ; removeStackVariableConstant ( frame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) ; writeAssign ( frame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 1 ) , nextFrame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 1 ) ) ; removeStackVariableConstant ( frame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 1 ) ) ; writeAssign ( nextFrame , com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK , nextFrame , ( ( com.android.jill.frontend.java.MethodBodyWriter.TOP_OF_STACK ) - 2 ) ) ; }
Source:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; mNM.notify ( 2 , notificationWithNumbers ( 2 ) ) ; mNM.cancel ( 2 ) ; }

Target:
public void run ( ) { for ( int i = 0 ; i < 10 ; i ++ ) { android.util.Log.d ( com.android.statusbartest.NotificationTestList.TAG , "Add two notifications" ) ; mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; mNM.notify ( 2 , notificationWithNumbers ( 2 ) ) ; android.util.Log.d ( com.android.statusbartest.NotificationTestList.TAG , "Cancel two notifications" ) ; mNM.cancel ( 1 ) ; mNM.cancel ( 2 ) ; } }
Source:
private boolean selectDevice ( com.android.ide.eclipse.adt.internal.sdk.LayoutDevice device ) { final int count = mDeviceList.size ( ) ; for ( int i = 0 ; i < count ; i ++ ) { if ( device == ( mDeviceList.get ( i ) ) ) { mDeviceCombo.select ( i ) ; return true ; } } return false ; }

Target:
public boolean isProjectTheme ( ) { java.lang.String theme = getSelectedTheme ( ) ; if ( theme != null ) { assert ( theme.startsWith ( com.android.ide.common.resources.ResourceResolver.PREFIX_STYLE ) ) || ( theme.startsWith ( com.android.ide.common.resources.ResourceResolver.PREFIX_ANDROID_STYLE ) ) ; return com.android.ide.eclipse.adt.internal.resources.ResourceHelper.isProjectStyle ( theme ) ; } return false ; }
Source:
public boolean removeUser ( java.lang.String userEmail ) { synchronized ( this ) { if ( ! ( allUsers.containsKey ( userEmail ) ) ) { return false ; } if ( activeUser.getEmail ( ) . equals ( userEmail ) ) { activeUser = null ; } allUsers.remove ( userEmail ) ; return true ; } }

Target:
public boolean removeUser ( java.lang.String userEmail ) { synchronized ( this ) { if ( ! ( allUsers.containsKey ( userEmail ) ) ) { return false ; } if ( activeUser.getEmail ( ) . equals ( userEmail ) ) { activeUser = null ; com.google.gct.login.GoogleLoginPrefs.removeActiveUser ( ) ; } allUsers.remove ( userEmail ) ; return true ; } }
Source:
public java.lang.Void run ( ) { if ( isUserNode ( ) ) { java.util.prefs.FileSystemPreferences.userRootModTime = ( newModTime.longValue ( ) ) + 1000 ; java.util.prefs.FileSystemPreferences.userRootModFile.setLastModified ( java.util.prefs.FileSystemPreferences.userRootModTime ) ; } else { java.util.prefs.FileSystemPreferences.systemRootModTime = ( newModTime.longValue ( ) ) + 1000 ; java.util.prefs.FileSystemPreferences.systemRootModFile.setLastModified ( java.util.prefs.FileSystemPreferences.systemRootModTime ) ; } return null ; }

Target:
public java.lang.Void run ( ) throws java.util.prefs.BackingStoreException { syncSpiPrivileged ( ) ; return null ; }
Source:
private static int sadShort2Int ( char [ ] s1 , char [ ] s2 ) { int min_length = java.lang.Math.min ( s1.length , s2.length ) ; int sad = 0 ; for ( int i = 0 ; i < min_length ; i ++ ) { sad += java.lang.Math.abs ( ( ( s1 [ i ] ) - ( s2 [ i ] ) ) ) ; } return sad ; }

Target:
private static int sadChar2Int ( char [ ] s1 , char [ ] s2 ) { int min_length = java.lang.Math.min ( s1.length , s2.length ) ; int sad = 0 ; for ( int i = 0 ; i < min_length ; i ++ ) { sad += java.lang.Math.abs ( ( ( s1 [ i ] ) - ( s2 [ i ] ) ) ) ; } return sad ; }
Source:
public void actionPerformed ( java.awt.event.ActionEvent e ) { boolean visible = ! ( allowOptionPanel.isVisible ( ) ) ; allowOptionPanel.setVisible ( visible ) ; annotationTypePanel.setVisible ( visible ) ; extendsAnnotationTypePanel.setVisible ( visible ) ; advancedButton.setText ( proguard.gui.ClassSpecificationDialog.msg ( ( visible ? "basic" : "advanced" ) ) ) ; pack ( ) ; }

Target:
public void actionPerformed ( java.awt.event.ActionEvent e ) { boolean visible = ! ( alsoKeepOptionPanel.isVisible ( ) ) ; alsoKeepOptionPanel.setVisible ( visible ) ; allowOptionPanel.setVisible ( visible ) ; annotationTypePanel.setVisible ( visible ) ; extendsAnnotationTypePanel.setVisible ( visible ) ; advancedButton.setText ( proguard.gui.ClassSpecificationDialog.msg ( ( visible ? "basic" : "advanced" ) ) ) ; pack ( ) ; }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.unittest.ScriptC_vector s = new com.android.rs.unittest.ScriptC_vector ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; if ( ! ( initializeGlobals ( s ) ) ) { failTest ( ) ; } else { s.invoke_vector_test ( ) ; pRS.finish ( ) ; } s.destroy ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = createRenderScript ( true ) ; com.android.rs.unittest.ScriptC_vector s = new com.android.rs.unittest.ScriptC_vector ( pRS ) ; if ( ! ( initializeGlobals ( s ) ) ) { failTest ( ) ; } else { s.invoke_vector_test ( ) ; pRS.finish ( ) ; } s.destroy ( ) ; pRS.destroy ( ) ; }
Source:
public void widgetDisposed ( org.eclipse.swt.events.DisposeEvent e ) { model.removeTreeChangeListener ( this ) ; transform.dispose ( ) ; inverse.dispose ( ) ; boxColor.dispose ( ) ; textBackgroundColor.dispose ( ) ; }

Target:
public void widgetDisposed ( org.eclipse.swt.events.DisposeEvent e ) { model.removeTreeChangeListener ( this ) ; transform.dispose ( ) ; inverse.dispose ( ) ; boxColor.dispose ( ) ; textBackgroundColor.dispose ( ) ; if ( ( tree ) != null ) { model.setViewport ( null ) ; } }
Source:
public void turnScreenOnWhenWifiInConnectedStateRoamingDisabled ( ) { when ( mResource.getBoolean ( R.bool.config_wifi_framework_enable_associated_network_selection ) ) . thenReturn ( false ) ; mWifiConnectivityManager = createConnectivityManager ( ) ; mWifiConnectivityManager.handleConnectionStateChanged ( WifiConnectivityManager.WIFI_STATE_CONNECTED ) ; mWifiConnectivityManager.handleScreenStateChanged ( true ) ; verify ( mWifiStateMachine , times ( 0 ) ) . autoConnectToNetwork ( com.android.server.wifi.WifiConnectivityManagerTest.CANDIDATE_NETWORK_ID , com.android.server.wifi.WifiConnectivityManagerTest.CANDIDATE_BSSID ) ; }

Target:
public void turnScreenOnWhenWifiInConnectedStateRoamingDisabled ( ) { when ( mResource.getBoolean ( R.bool.config_wifi_framework_enable_associated_network_selection ) ) . thenReturn ( false ) ; mWifiConnectivityManager = createConnectivityManager ( ) ; mWifiConnectivityManager.handleConnectionStateChanged ( WifiConnectivityManager.WIFI_STATE_CONNECTED ) ; mWifiConnectivityManager.handleScreenStateChanged ( true ) ; verify ( mWifiStateMachine , times ( 0 ) ) . startConnectToNetwork ( com.android.server.wifi.WifiConnectivityManagerTest.CANDIDATE_NETWORK_ID , com.android.server.wifi.WifiConnectivityManagerTest.CANDIDATE_BSSID ) ; }
Source:
int getAudioState ( android.bluetooth.BluetoothDevice device ) { return mStateMachine.getAudioState ( device ) ; }

Target:
boolean disconnectAudio ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( ( mStateMachine.getAudioState ( ) ) != ( android.bluetooth.BluetoothHeadset.STATE_AUDIO_CONNECTED ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetService.TAG , "disconnectAudio, audio is not connected" ) ; return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.DISCONNECT_AUDIO , mStateMachine.getCurrentDevice ( ) ) ; return true ; }
Source:
public void testHARMONY5323 ( ) { java.lang.Object [ ] messageArgs = new java.lang.Object [ 11 ] ; for ( int i = 0 ; i < ( messageArgs.length ) ; i ++ ) messageArgs [ i ] = "dumb" + i ; java.lang.String res = java.text.MessageFormat.format ( "bgcolor=\"{10}\"" , messageArgs ) ; assertEquals ( res , "bgcolor=\"dumb10\"" ) ; }

Target:
public void testHARMONY5323 ( ) { java.lang.Object [ ] messageArgs = new java.lang.Object [ 11 ] ; for ( int i = 0 ; i < ( messageArgs.length ) ; i ++ ) { messageArgs [ i ] = "example" + i ; } java.lang.String res = java.text.MessageFormat.format ( "bgcolor=\"{10}\"" , messageArgs ) ; assertEquals ( res , "bgcolor=\"example10\"" ) ; }
Source:
public void onRttCallScreenUiUnready ( ) { com.android.dialer.common.LogUtil.enterBlock ( "RttCallPresenter.onRttCallScreenUiUnready" ) ; com.android.incallui.InCallPresenter.getInstance ( ) . removeListener ( this ) ; stopListenOnRemoteMessage ( ) ; com.android.incallui.call.DialerCall call = com.android.incallui.call.CallList.getInstance ( ) . getActiveCall ( ) ; if ( call != null ) { saveTranscript ( call ) ; } }

Target:
public void onSaveRttTranscript ( ) { com.android.dialer.common.LogUtil.enterBlock ( "RttCallPresenter.onSaveRttTranscript" ) ; com.android.incallui.call.DialerCall call = com.android.incallui.call.CallList.getInstance ( ) . getCallById ( rttCallScreen.getCallId ( ) ) ; if ( call != null ) { saveTranscript ( call ) ; } }
Source:
private static java.lang.String normalizeInterfaceMethodName ( java.lang.String name , boolean isLambda , boolean isStatic ) { java.lang.String suffix ; if ( isLambda ) { suffix = DependencyCollector.INTERFACE_COMPANION_SUFFIX ; } else if ( isStatic ) { suffix = com.google.devtools.build.android.desugar.InterfaceDesugaring.INTERFACE_STATIC_COMPANION_METHOD_SUFFIX ; } else { return name ; } return name + suffix ; }

Target:
public void visitOuterClass ( java.lang.String owner , java.lang.String name , java.lang.String desc ) { if ( ( name != null ) && ( interfaceCache.isOuterInterface ( owner , internalName ) ) ) { name = null ; desc = null ; } super . visitOuterClass ( owner , name , desc ) ; }
Source:
public static com.android.dialer.calllog.model.CoalescedRow.Builder builder ( ) { return new com.android.dialer.calllog.model.AutoValue_CoalescedRow.Builder ( ) . setId ( 0 ) . setTimestamp ( 0 ) . setNumber ( com.android.dialer.DialerPhoneNumber.getDefaultInstance ( ) ) . setPhotoId ( 0 ) . setIsRead ( false ) . setIsNew ( false ) . setPhoneAccountColor ( 0 ) . setFeatures ( 0 ) . setIsBusiness ( false ) . setIsVoicemail ( false ) . setNumberCalls ( 0 ) . setCallType ( 0 ) ; }

Target:
public static com.android.dialer.calllog.model.CoalescedRow.Builder builder ( ) { return new com.android.dialer.calllog.model.AutoValue_CoalescedRow.Builder ( ) . setId ( 0 ) . setTimestamp ( 0 ) . setNumber ( com.android.dialer.DialerPhoneNumber.getDefaultInstance ( ) ) . setPhotoId ( 0 ) . setIsRead ( false ) . setIsNew ( false ) . setPhoneAccountColor ( 0 ) . setFeatures ( 0 ) . setIsBusiness ( false ) . setIsVoicemail ( false ) . setCallType ( 0 ) . setCoalescedIds ( com.android.dialer.CoalescedIds.getDefaultInstance ( ) ) ; }
Source:
public static float min ( float a , float b ) { if ( a != a ) return a ; if ( ( ( a == 0.0F ) && ( b == 0.0F ) ) && ( ( java.lang.Float.floatToRawIntBits ( b ) ) == ( java.lang.StrictMath.negativeZeroFloatBits ) ) ) { return b ; } return a <= b ? a : b ; }

Target:
public static float min ( float a , float b ) { return java.lang.Math.min ( a , b ) ; }
Source:
private void setBadge ( com.android.dialer.glidephotomanager.PhotoInfo photoInfo ) { if ( photoInfo.getIsSpam ( ) ) { hideBadge ( ) ; return ; } if ( photoInfo.getIsVideo ( ) ) { contactBadgeContainer.setVisibility ( View.VISIBLE ) ; videoCallBadge.setVisibility ( View.VISIBLE ) ; } else { hideBadge ( ) ; } }

Target:
private void setBadge ( com.android.dialer.glidephotomanager.PhotoInfo photoInfo ) { if ( photoInfo.getIsSpam ( ) ) { hideBadge ( ) ; return ; } if ( photoInfo.getIsVideo ( ) ) { contactBadgeContainer.setVisibility ( View.VISIBLE ) ; videoCallBadge.setVisibility ( View.VISIBLE ) ; rttCallBadge.setVisibility ( com.android.dialer.widget.INVISIBLE ) ; } else if ( photoInfo.getIsRtt ( ) ) { contactBadgeContainer.setVisibility ( View.VISIBLE ) ; videoCallBadge.setVisibility ( com.android.dialer.widget.INVISIBLE ) ; rttCallBadge.setVisibility ( View.VISIBLE ) ; } else { hideBadge ( ) ; } }
Source:
public void onMessageReceived ( int peerId , byte [ ] message ) { if ( android.net.wifi.aware.WifiAwareManager.VDBG ) { android.util.Log.v ( android.net.wifi.aware.WifiAwareManager.TAG , ( "onMessageReceived: peerId='" + peerId ) ) ; } android.os.Message msg = mHandler.obtainMessage ( android.net.wifi.aware.WifiAwareManager.WifiAwareDiscoverySessionCallbackProxy.CALLBACK_MESSAGE_RECEIVED ) ; msg.arg1 = peerId ; msg.obj = message ; mHandler.sendMessage ( msg ) ; }

Target:
public void onMessageReceived ( int peerId , byte [ ] message ) { if ( android.net.wifi.aware.WifiAwareManager.VDBG ) { android.util.Log.v ( android.net.wifi.aware.WifiAwareManager.TAG , ( "onMessageReceived: peerId=" + peerId ) ) ; } android.os.Message msg = mHandler.obtainMessage ( android.net.wifi.aware.WifiAwareManager.WifiAwareDiscoverySessionCallbackProxy.CALLBACK_MESSAGE_RECEIVED ) ; msg.arg1 = peerId ; msg.obj = message ; mHandler.sendMessage ( msg ) ; }
Source:
public void testSslCertificateWithEmptyIssuer ( ) throws java.lang.Exception { java.security.cert.CertificateFactory certificateFactory = java.security.cert.CertificateFactory.getInstance ( "X.509" ) ; java.security.cert.X509Certificate x509Certificate = ( ( java.security.cert.X509Certificate ) ( certificateFactory.generateCertificate ( new java.io.ByteArrayInputStream ( android.net.http.SslCertificateTest.Issue1597Certificate.getBytes ( ) ) ) ) ) ; assertEquals ( x509Certificate.getIssuerDN ( ) . getName ( ) , "" ) ; android.net.http.SslCertificate sslCertificate = new android.net.http.SslCertificate ( x509Certificate ) ; assertEquals ( sslCertificate.getIssuedBy ( ) . getDName ( ) , "" ) ; }

Target:
public void testSslCertificateWithMultipleCN ( ) throws java.lang.Exception { java.security.cert.X509Certificate x509Certificate = android.net.http.SslCertificateTest.generateCertificate ( android.net.http.SslCertificateTest.Issue41662Certificate ) ; java.lang.String dn = x509Certificate.getSubjectDN ( ) . getName ( ) ; assertTrue ( dn , dn.contains ( "Posta CA 1" ) ) ; assertTrue ( dn , dn.contains ( "Configuration" ) ) ; android.net.http.SslCertificate sslCertificate = new android.net.http.SslCertificate ( x509Certificate ) ; assertEquals ( dn , "Posta CA 1" , sslCertificate.getIssuedTo ( ) . getCName ( ) ) ; }
Source:
public void testAesCbcHmacSha1Tcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA1 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacSha256Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
private void finishCallScreening ( ) { if ( ! ( mHasFinished ) ) { com.android.server.telecom.Log.event ( mCall , Log.Events.SCREENING_COMPLETED , mResult ) ; mCallback.onCallFilteringComplete ( mCall , mResult ) ; if ( ( mConnection ) != null ) { mContext.unbindService ( mConnection ) ; mConnection = null ; } mService = null ; mHasFinished = true ; } }

Target:
private void finishCallScreening ( ) { if ( ! ( mHasFinished ) ) { android.telecom.Log.addEvent ( mCall , LogUtils.Events.SCREENING_COMPLETED , mResult ) ; mCallback.onCallFilteringComplete ( mCall , mResult ) ; if ( ( mConnection ) != null ) { mContext.unbindService ( mConnection ) ; mConnection = null ; } mService = null ; mHasFinished = true ; } }
Source:
protected org.eclipse.swt.widgets.Control createContents ( org.eclipse.swt.widgets.Composite parent ) { org.eclipse.swt.widgets.Control control = super . createContents ( parent ) ; getShell ( ) . setText ( ( ( mAvdInfo ) == null ? "Create new Android Virtual Device (AVD)" : "Edit Android Virtual Device (AVD)" ) ) ; mOkButton = getButton ( IDialogConstants.OK_ID ) ; if ( ( mAvdInfo ) != null ) { fillExistingAvdInfo ( mAvdInfo ) ; } validatePage ( ) ; return control ; }

Target:
protected org.eclipse.swt.widgets.Control createContents ( org.eclipse.swt.widgets.Composite parent ) { org.eclipse.swt.widgets.Control control = super . createContents ( parent ) ; getShell ( ) . setText ( ( ( mAvdInfo ) == null ? "Create new Android Virtual Device (AVD)" : "Edit Android Virtual Device (AVD)" ) ) ; mOkButton = getButton ( IDialogConstants.OK_ID ) ; if ( ( mAvdInfo ) != null ) { fillExistingAvdInfo ( mAvdInfo ) ; } else if ( ( mInitWithDevice ) != null ) { fillInitialDeviceInfo ( mInitWithDevice ) ; } validatePage ( ) ; return control ; }
Source:
public void testRegistered ( ) throws java.lang.Exception { assertEquals ( ( "OnClickActivity.java: Warning: The <activity> test.pkg.OnClickActivity is not registered in the manifest\n" + ( ( "TestProvider.java: Warning: The <provider> test.pkg.TestProvider is not registered in the manifest\n" + "TestProvider2.java: Warning: The <provider> test.pkg.TestProvider2 is not registered in the manifest\n" ) + "TestService.java: Warning: The <service> test.pkg.TestService is not registered in the manifest" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/OnClickActivity.java.txt=>src/test/pkg/OnClickActivity.java" , "bytecode/OnClickActivity.class.data=>bin/classes/test/pkg/OnClickActivity.class" , "bytecode/TestService.java.txt=>src/test/pkg/TestService.java" , "bytecode/TestService.class.data=>bin/classes/test/pkg/TestService.class" , "bytecode/TestProvider.java.txt=>src/test/pkg/TestProvider.java" , "bytecode/TestProvider.class.data=>bin/classes/test/pkg/TestProvider.class" , "bytecode/TestProvider2.java.txt=>src/test/pkg/TestProvider2.java" , "bytecode/TestProvider2.class.data=>bin/classes/test/pkg/TestProvider2.class" , "bytecode/TestReceiver.java.txt=>src/test/pkg/TestReceiver.java" , "bytecode/TestReceiver.class.data=>bin/classes/test/pkg/TestReceiver.class" ) ) ; }

Target:
public void testRegistered ( ) throws java.lang.Exception { assertEquals ( ( "OnClickActivity.java:8: Warning: The <activity> test.pkg.OnClickActivity is not registered in the manifest\n" + ( ( "TestProvider.java:8: Warning: The <provider> test.pkg.TestProvider is not registered in the manifest\n" + "TestProvider2.java:3: Warning: The <provider> test.pkg.TestProvider2 is not registered in the manifest\n" ) + "TestService.java:7: Warning: The <service> test.pkg.TestService is not registered in the manifest" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/OnClickActivity.java.txt=>src/test/pkg/OnClickActivity.java" , "bytecode/OnClickActivity.class.data=>bin/classes/test/pkg/OnClickActivity.class" , "bytecode/TestService.java.txt=>src/test/pkg/TestService.java" , "bytecode/TestService.class.data=>bin/classes/test/pkg/TestService.class" , "bytecode/TestProvider.java.txt=>src/test/pkg/TestProvider.java" , "bytecode/TestProvider.class.data=>bin/classes/test/pkg/TestProvider.class" , "bytecode/TestProvider2.java.txt=>src/test/pkg/TestProvider2.java" , "bytecode/TestProvider2.class.data=>bin/classes/test/pkg/TestProvider2.class" , "bytecode/TestReceiver.java.txt=>src/test/pkg/TestReceiver.java" , "bytecode/TestReceiver.class.data=>bin/classes/test/pkg/TestReceiver.class" ) ) ; }
Source:
public com.google.common.collect.ImmutableList < com.android.manifmerger.Actions.AttributeRecord > getAttributeRecords ( com.android.manifmerger.XmlNode.NodeKey elementKey , com.android.manifmerger.XmlNode.NodeName attributeName ) { com.android.manifmerger.Actions.DecisionTreeRecord decisionTreeRecord = mRecords.get ( elementKey ) ; if ( decisionTreeRecord == null ) { return com.google.common.collect.ImmutableList.of ( ) ; } return decisionTreeRecord.getAttributeRecords ( attributeName ) ; }

Target:
public com.google.common.collect.ImmutableList < com.android.manifmerger.XmlNode.NodeName > getRecordedAttributeNames ( com.android.manifmerger.XmlNode.NodeKey nodeKey ) { com.android.manifmerger.Actions.DecisionTreeRecord decisionTreeRecord = mRecords.get ( nodeKey ) ; if ( decisionTreeRecord == null ) { return com.google.common.collect.ImmutableList.of ( ) ; } return decisionTreeRecord.getAttributesRecords ( ) . keySet ( ) . asList ( ) ; }
Source:
protected void onDetachedFromWindow ( ) { com.android.volley.toolbox.ImageLoader.ImageContainer oldContainer = ( ( com.android.volley.toolbox.ImageLoader.ImageContainer ) ( getTag ( ) ) ) ; if ( oldContainer != null ) { oldContainer.cancelRequest ( ) ; setImageBitmap ( null ) ; setTag ( null ) ; } super . onDetachedFromWindow ( ) ; }

Target:
protected void onDetachedFromWindow ( ) { if ( ( mImageContainer ) != null ) { mImageContainer.cancelRequest ( ) ; setImageBitmap ( null ) ; mImageContainer = null ; } super . onDetachedFromWindow ( ) ; }
Source:
public void testMountAndUnmountObbNormal ( ) { final java.io.File outFile = getFilePath ( "test1.obb" ) ; mountObb ( R.raw.test1 , outFile , OnObbStateChangeListener.MOUNTED ) ; mountObb ( R.raw.test1 , outFile , OnObbStateChangeListener.ERROR_ALREADY_MOUNTED ) ; final java.lang.String mountPath = checkMountedPath ( outFile ) ; final java.io.File mountDir = new java.io.File ( mountPath ) ; assertTrue ( "OBB mounted path should be a directory" , mountDir.isDirectory ( ) ) ; unmountObb ( outFile , OnObbStateChangeListener.UNMOUNTED ) ; }

Target:
public void testMountAndUnmountObbNormal ( ) { final java.io.File outFile = getFilePath ( "test1.obb" ) ; final java.lang.String canonPath = mountObb ( R.raw.test1 , outFile , OnObbStateChangeListener.MOUNTED ) ; mountObb ( R.raw.test1 , outFile , OnObbStateChangeListener.ERROR_ALREADY_MOUNTED ) ; final java.lang.String mountPath = checkMountedPath ( canonPath ) ; final java.io.File mountDir = new java.io.File ( mountPath ) ; assertTrue ( "OBB mounted path should be a directory" , mountDir.isDirectory ( ) ) ; unmountObb ( outFile , OnObbStateChangeListener.UNMOUNTED ) ; }
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 nAllocationElementData1D ( long id , int xoff , int mip , int compIdx , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationElementData1D ( mContext , id , xoff , mip , compIdx , d , sizeBytes ) ; }