auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private org.eclipse.swt.widgets.Text createAppToTraceText ( org.eclipse.swt.widgets.Composite parent , java.lang.String defaultMessage ) { mActivityToTraceText = new org.eclipse.swt.widgets.Text ( parent , org.eclipse.swt.SWT.BORDER ) ; mActivityToTraceText.setMessage ( defaultMessage ) ; mActivityToTraceText.setText ( mActivityToTrace ) ; mActivityToTraceText.setLayoutData ( new org.eclipse.swt.layout.GridData ( org.eclipse.swt.layout.GridData.FILL_HORIZONTAL ) ) ; mActivityToTraceText.addModifyListener ( new org.eclipse.swt.events.ModifyListener ( ) { @ java.lang.Override public void modifyText ( org.eclipse.swt.events.ModifyEvent e ) { validateAndSetMessage ( ) ; } } ) ; return mActivityToTraceText ; }

Target:
public void modifyText ( org.eclipse.swt.events.ModifyEvent e ) { validateAndSetMessage ( ) ; }
Source:
public static java.lang.Iterable < java.lang.Object [ ] > data ( ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.util.List < java.lang.Object [ ] > params = new java.util.ArrayList < > ( ) ; com.android.graphics.benchmark.ApkListXmlParser parser = new com.android.graphics.benchmark.ApkListXmlParser ( new java.io.File ( com.android.graphics.benchmark.ApkInfo.APK_LIST_LOCATION ) ) ; java.util.List < com.android.graphics.benchmark.ApkInfo > apks = parser.parse ( ) ; for ( com.android.graphics.benchmark.ApkInfo apk : apks ) { params.add ( new java.lang.Object [ ] { apk.getName ( ) , apk } ) ; } return params ; }

Target:
public static java.lang.Iterable < java.lang.Object [ ] > data ( ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.util.List < java.lang.Object [ ] > params = new java.util.ArrayList < > ( ) ; com.android.graphics.benchmark.ApkListXmlParser parser = new com.android.graphics.benchmark.ApkListXmlParser ( ) ; java.util.List < com.android.graphics.benchmark.ApkInfo > apks = parser.parse ( new java.io.File ( com.android.graphics.benchmark.ApkInfo.APK_LIST_LOCATION ) ) ; for ( com.android.graphics.benchmark.ApkInfo apk : apks ) { params.add ( new java.lang.Object [ ] { apk.getName ( ) , apk } ) ; } return params ; }
Source:
protected void runInIndividualMode ( final java.lang.String javaPkgName , android.annotation.cts.Profile profile ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException , java.io.IOException { java.util.Iterator < com.android.cts.TestSuite > suites = getTestSuites ( ) . iterator ( ) ; while ( ( suites.hasNext ( ) ) && ( ! ( mTestStop ) ) ) { mCurrentTestSuite = suites.next ( ) ; mCurrentTestSuite.run ( mDevice , javaPkgName , profile ) ; } }

Target:
protected void runInIndividualMode ( final java.lang.String javaPkgName ) throws com.android.cts.ADBServerNeedRestartException , com.android.cts.DeviceDisconnectedException , java.io.IOException { java.util.Iterator < com.android.cts.TestSuite > suites = getTestSuites ( ) . iterator ( ) ; while ( ( suites.hasNext ( ) ) && ( ! ( mTestStop ) ) ) { mCurrentTestSuite = suites.next ( ) ; mCurrentTestSuite.run ( mDevice , javaPkgName ) ; } }
Source:
public void test_toString ( ) throws java.lang.Exception { java.security.cert.CertificateFactory certFact = java.security.cert.CertificateFactory.getInstance ( "X509" ) ; java.security.cert.X509Certificate pemCert = ( ( java.security.cert.X509Certificate ) ( certFact.generateCertificate ( new java.io.ByteArrayInputStream ( org.apache.harmony.security.tests.support.cert.TestUtils.getX509Certificate_v3 ( ) ) ) ) ) ; byte [ ] extnValue = pemCert.getExtensionValue ( "2.5.29.35" ) ; assertTrue ( java.util.Arrays.equals ( new byte [ ] { 4 , 2 , 48 , 0 } , extnValue ) ) ; assertNotNull ( pemCert.toString ( ) ) ; }

Target:
public void test_toString ( ) throws java.lang.Exception { java.security.cert.CertificateFactory certFact = java.security.cert.CertificateFactory.getInstance ( "X509" ) ; java.security.cert.X509Certificate pemCert = ( ( java.security.cert.X509Certificate ) ( certFact.generateCertificate ( new java.io.ByteArrayInputStream ( org.apache.harmony.security.tests.support.cert.TestUtils.getX509Certificate_v3 ( ) ) ) ) ) ; byte [ ] extnValue = pemCert.getExtensionValue ( "2.5.29.35" ) ; assertEquals ( java.util.Arrays.toString ( new byte [ ] { 4 , 2 , 48 , 0 } ) , java.util.Arrays.toString ( extnValue ) ) ; assertNotNull ( pemCert.toString ( ) ) ; }
Source:
public static boolean shouldShowSetupActivity ( android.content.Context context ) { com.android.tv.common.SoftPreconditions.checkState ( com.android.tv.tuner.TunerPreferences.sInitialized ) ; if ( com.android.tv.tuner.TunerPreferences.useContentProvider ( context ) ) { return com.android.tv.tuner.TunerPreferences.sPreferenceValues.getBoolean ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_LAUNCH_SETUP ) ; } else { return com.android.tv.tuner.TunerPreferences.getSharedPreferences ( context ) . getBoolean ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_LAUNCH_SETUP , false ) ; } }

Target:
public static synchronized boolean shouldShowSetupActivity ( android.content.Context context ) { com.android.tv.common.SoftPreconditions.checkState ( com.android.tv.tuner.TunerPreferences.sInitialized ) ; if ( com.android.tv.tuner.TunerPreferences.useContentProvider ( context ) ) { return com.android.tv.tuner.TunerPreferences.sPreferenceValues.getBoolean ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_LAUNCH_SETUP ) ; } else { return com.android.tv.tuner.TunerPreferences.getSharedPreferences ( context ) . getBoolean ( com.android.tv.tuner.TunerPreferences.PREFS_KEY_LAUNCH_SETUP , false ) ; } }
Source:
static boolean isValidSniHostname ( java.lang.String sniHostname ) { if ( sniHostname == null ) { return false ; } return ( ( ( ( sniHostname.equalsIgnoreCase ( "localhost" ) ) || ( ( sniHostname.indexOf ( '.' ) ) != ( - 1 ) ) ) && ( ! ( org.conscrypt.Platform.isLiteralIpAddress ( sniHostname ) ) ) ) && ( ! ( sniHostname.endsWith ( "." ) ) ) ) && ( ( sniHostname.indexOf ( '' ) ) == ( - 1 ) ) ; }

Target:
static boolean isValidSniHostname ( java.lang.String sniHostname ) { if ( sniHostname == null ) { return false ; } return ( ( sniHostname.indexOf ( '.' ) ) != ( - 1 ) ) && ( ! ( org.conscrypt.Platform.isLiteralIpAddress ( sniHostname ) ) ) ; }
Source:
public boolean accept ( java.lang.String path ) { if ( path.endsWith ( ".class" ) ) { java.lang.String normalized = com.android.dx.command.dexer.Main.fixPath ( path ) ; java.lang.String simple = com.android.dx.command.dexer.Main.BestEffortMainDexListFilter.getSimpleName ( normalized ) ; java.util.List < java.lang.String > fullPaths = map.get ( simple ) ; if ( fullPaths != null ) { for ( java.lang.String fullPath : fullPaths ) { if ( normalized.endsWith ( fullPath ) ) { return true ; } } } return false ; } else { return true ; } }

Target:
public boolean accept ( java.lang.String path ) { if ( path.endsWith ( ".class" ) ) { java.lang.String normalized = com.android.dx.command.dexer.Main.fixPath ( path ) ; java.lang.String simple = getSimpleName ( normalized ) ; java.util.List < java.lang.String > fullPaths = map.get ( simple ) ; if ( fullPaths != null ) { for ( java.lang.String fullPath : fullPaths ) { if ( normalized.endsWith ( fullPath ) ) { return true ; } } } return false ; } else { return true ; } }
Source:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) return false ; com.google.gct.testing.CloudTestConfigurationImpl that = ( ( com.google.gct.testing.CloudTestConfigurationImpl ) ( o ) ) ; return ( ( getHash ( ) ) == ( that.getHash ( ) ) ) && ( ( id ) == ( that.id ) ) ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) return false ; com.google.gct.testing.CloudTestConfigurationImpl that = ( ( com.google.gct.testing.CloudTestConfigurationImpl ) ( o ) ) ; return ( id ) == ( that.id ) ; }
Source:
public java.lang.String read ( ) { try { int numRead = mReceiveStream.read ( mReadBuffer , 0 , android.telecom.Call.RttCall.READ_BUFFER_SIZE ) ; if ( numRead < 0 ) { return null ; } return new java.lang.String ( mReadBuffer , 0 , numRead ) ; } catch ( java.io.IOException e ) { android.telecom.Log.w ( this , "Exception encountered when reading from InputStreamReader: %s" , e ) ; } return null ; }

Target:
public java.lang.String read ( ) { try { int numRead = mReceiveStream.read ( mReadBuffer , 0 , android.telecom.Call.RttCall.READ_BUFFER_SIZE ) ; if ( numRead < 0 ) { return null ; } return new java.lang.String ( mReadBuffer , 0 , numRead ) ; } catch ( java.io.IOException e ) { android.telecom.Log.w ( this , "Exception encountered when reading from InputStreamReader: %s" , e ) ; return null ; } }
Source:
public void test_initWithSecureRandom ( ) throws java.lang.Exception { java.security.SecureRandom sr = new java.security.SecureRandom ( ) ; javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance ( ( ( org.apache.harmony.crypto.tests.javax.crypto.CipherTest.ALGORITHM_3DES ) + "/ECB/PKCS5Padding" ) ) ; cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.CIPHER_KEY_3DES , sr ) ; cipher = javax.crypto.Cipher.getInstance ( "DES/CBC/NoPadding" ) ; try { cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.CIPHER_KEY_3DES , sr ) ; fail ( ) ; } catch ( java.security.InvalidKeyException expected ) { } }

Target:
public void test_initWithSecureRandom ( ) throws java.lang.Exception { javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance ( ( ( org.apache.harmony.crypto.tests.javax.crypto.CipherTest.ALGORITHM_3DES ) + "/ECB/PKCS5Padding" ) ) ; cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.CIPHER_KEY_3DES , new java.security.SecureRandom ( ) ) ; cipher = javax.crypto.Cipher.getInstance ( "DES/CBC/NoPadding" ) ; try { cipher.init ( javax.crypto.Cipher.ENCRYPT_MODE , org.apache.harmony.crypto.tests.javax.crypto.CipherTest.CIPHER_KEY_3DES , new java.security.SecureRandom ( ) ) ; fail ( ) ; } catch ( java.security.InvalidKeyException expected ) { } }
Source:
public com.android.tools.perflib.heap.Heap getHeap ( @ com.android.annotations.NonNull java.lang.String name ) { for ( com.android.tools.perflib.heap.Heap mHeap : mHeaps ) { if ( name.equals ( mHeap.getName ( ) ) ) { return mHeap ; } } return null ; }

Target:
public com.android.tools.perflib.heap.Heap getHeap ( @ com.android.annotations.NonNull java.lang.String name ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { if ( name.equals ( mHeaps.get ( i ) . getName ( ) ) ) { return mHeaps.get ( i ) ; } } return null ; }
Source:
private void verifyLteInfo ( android.telephony.CellInfoLte lte ) { verifyRssiDbm ( lte.getCellSignalStrength ( ) . getDbm ( ) ) ; if ( ! ( lte.isRegistered ( ) ) ) { int pci = lte.getCellIdentity ( ) . getPci ( ) ; assertTrue ( "getPci() out of range [0, 503]" , ( ( pci >= 0 ) && ( pci <= 503 ) ) ) ; } }

Target:
private void verifyLteInfo ( android.telephony.CellInfoLte lte ) { verifyRssiDbm ( lte.getCellSignalStrength ( ) . getDbm ( ) ) ; int pci = lte.getCellIdentity ( ) . getPci ( ) ; assertTrue ( "getPci() out of range [0, 503]" , ( ( pci >= 0 ) && ( pci <= 503 ) ) ) ; }
Source:
public void createAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , int appId , java.lang.String seInfo , int targetSdkVersion ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.createAppData ( uuid , packageName , userId , flags , appId , seInfo , targetSdkVersion ) ; } catch ( java.lang.Exception e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }

Target:
public long createAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , int appId , java.lang.String seInfo , int targetSdkVersion ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return - 1 ; try { return mInstalld.createAppData ( uuid , packageName , userId , flags , appId , seInfo , targetSdkVersion ) ; } catch ( java.lang.Exception e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
protected boolean isDataPossible ( java.lang.String apnType ) { boolean possible = ( isDataAllowed ( ) ) && ( ! ( ( getAnyDataEnabled ( ) ) && ( ( ( mState ) == ( DctConstants.State.FAILED ) ) || ( ( mState ) == ( DctConstants.State.IDLE ) ) ) ) ) ; if ( ( ( ! possible ) && ( DBG ) ) && ( isDataAllowed ( ) ) ) { log ( ( "Data not possible. No coverage: dataState = " + ( mState ) ) ) ; } return possible ; }

Target:
protected boolean isDataPossible ( java.lang.String apnType ) { boolean possible = ( isDataAllowed ( ) ) && ( ! ( ( getAnyDataEnabled ( ) ) && ( ( mState ) == ( DctConstants.State.FAILED ) ) ) ) ; if ( ( ( ! possible ) && ( DBG ) ) && ( isDataAllowed ( ) ) ) { log ( ( "Data not possible. No coverage: dataState = " + ( mState ) ) ) ; } return possible ; }
Source:
public java.nio.ByteBuffer putShort ( int i , short x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putShort ( ix ( checkIndex ( i , SizeOf.SHORT ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer putShort ( int i , short x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putShort ( ix ( checkIndex ( i , SizeOf.SHORT ) ) , x ) ; return this ; }
Source:
protected proguard.optimize.evaluation.Value getMethodParameterValue ( proguard.optimize.evaluation.Clazz clazz , proguard.optimize.evaluation.Method method , int parameterIndex , java.lang.String type , proguard.optimize.evaluation.Clazz referencedClass ) { if ( loadMethodParameterValues ) { proguard.optimize.evaluation.Value value = proguard.optimize.evaluation.StoringInvocationUnit.getMethodParameterValue ( method , parameterIndex ) ; if ( ( value != null ) && ( value.isParticular ( ) ) ) { return value ; } } return super . getMethodParameterValue ( clazz , method , parameterIndex , type , referencedClass ) ; }

Target:
protected proguard.optimize.evaluation.Value getMethodParameterValue ( proguard.optimize.evaluation.Clazz clazz , proguard.optimize.evaluation.Method method , int parameterIndex , java.lang.String type , proguard.optimize.evaluation.Clazz referencedClass ) { if ( loadMethodParameterValues ) { proguard.optimize.evaluation.Value value = proguard.optimize.evaluation.StoringInvocationUnit.getMethodParameterValue ( method , parameterIndex ) ; if ( value != null ) { return value ; } } return super . getMethodParameterValue ( clazz , method , parameterIndex , type , referencedClass ) ; }
Source:
public void loadAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface loading , @ javax.annotation.Nonnull com.android.jack.jayce.JayceClassOrInterfaceLoader loader ) { if ( ! ( annotations.isEmpty ( ) ) ) { com.android.jack.ir.ast.JSession session = com.android.jack.Jack.getSession ( ) ; com.android.jack.jayce.v0002.io.ExportSession exportSession = new com.android.jack.jayce.v0002.io.ExportSession ( loader.getSession ( ) , com.android.jack.jayce.NodeLevel.STRUCTURE ) ; for ( com.android.jack.jayce.v0002.nodes.NAnnotation annotation : annotations ) { com.android.jack.ir.ast.JAnnotation annotationLiteral = annotation.exportAsJast ( exportSession ) ; loading.addAnnotation ( annotationLiteral ) ; annotationLiteral.updateParents ( loading ) ; } } }

Target:
public void loadAnnotations ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface loading , @ javax.annotation.Nonnull com.android.jack.jayce.JayceClassOrInterfaceLoader loader ) { if ( ! ( annotations.isEmpty ( ) ) ) { com.android.jack.jayce.v0002.io.ExportSession exportSession = new com.android.jack.jayce.v0002.io.ExportSession ( loader.getSession ( ) , com.android.jack.jayce.NodeLevel.STRUCTURE ) ; for ( com.android.jack.jayce.v0002.nodes.NAnnotation annotation : annotations ) { com.android.jack.ir.ast.JAnnotation annotationLiteral = annotation.exportAsJast ( exportSession ) ; loading.addAnnotation ( annotationLiteral ) ; annotationLiteral.updateParents ( loading ) ; } } }
Source:
public void testLength ( ) throws java.io.IOException { mMemoryFile = new android.os.MemoryFile ( "Test File" , 1024 ) ; assertEquals ( 1024 , mMemoryFile.length ( ) ) ; mMemoryFile = new android.os.MemoryFile ( "Test File" , 512 ) ; assertEquals ( 512 , mMemoryFile.length ( ) ) ; mMemoryFile = new android.os.MemoryFile ( "Test File" , java.lang.Integer.MAX_VALUE ) ; assertEquals ( java.lang.Integer.MAX_VALUE , mMemoryFile.length ( ) ) ; mMemoryFile = new android.os.MemoryFile ( "Test File" , java.lang.Integer.MIN_VALUE ) ; assertEquals ( java.lang.Integer.MIN_VALUE , mMemoryFile.length ( ) ) ; }

Target:
public void testLength ( ) throws java.io.IOException { mMemoryFile = new android.os.MemoryFile ( "Test File" , 1024 ) ; assertEquals ( 1024 , mMemoryFile.length ( ) ) ; mMemoryFile = new android.os.MemoryFile ( "Test File" , 512 ) ; assertEquals ( 512 , mMemoryFile.length ( ) ) ; mMemoryFile = new android.os.MemoryFile ( "Test File" , 0 ) ; assertEquals ( 0 , mMemoryFile.length ( ) ) ; try { mMemoryFile = new android.os.MemoryFile ( "Test File" , ( - 512 ) ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } }
Source:
private static android.security.cts.OpenSSLHeartbleedTest.HandshakeMessage tryParse ( android.security.cts.OpenSSLHeartbleedTest.TlsRecord record ) { if ( ( record.protocol ) != ( android.security.cts.OpenSSLHeartbleedTest.TlsProtocols.HANDSHAKE ) ) { return null ; } if ( ( record.fragment.length ) < 1 ) { return null ; } android.security.cts.OpenSSLHeartbleedTest.HandshakeMessage result = new android.security.cts.OpenSSLHeartbleedTest.HandshakeMessage ( ) ; result.type = ( record.fragment [ 0 ] ) & 255 ; return result ; }

Target:
public static android.security.cts.OpenSSLHeartbleedTest.HandshakeMessage tryParse ( android.security.cts.OpenSSLHeartbleedTest.TlsRecord record ) { if ( ( record.protocol ) != ( android.security.cts.OpenSSLHeartbleedTest.TlsProtocols.HANDSHAKE ) ) { return null ; } if ( ( record.fragment.length ) < 1 ) { return null ; } android.security.cts.OpenSSLHeartbleedTest.HandshakeMessage result = new android.security.cts.OpenSSLHeartbleedTest.HandshakeMessage ( ) ; result.type = ( record.fragment [ 0 ] ) & 255 ; return result ; }
Source:
public void test_wrap_ByteBuffer$ByteBuffer_01 ( ) throws java.io.IOException , java.lang.InterruptedException { prepareEngines ( ) ; doHandshake ( ) ; java.nio.ByteBuffer bbs = java.nio.ByteBuffer.allocate ( 100 ) ; java.nio.ByteBuffer bbd = java.nio.ByteBuffer.allocate ( 20000 ) ; try { clientEngine.engine.wrap ( new java.nio.ByteBuffer [ ] { bbs } , bbd ) ; serverEngine.engine.wrap ( new java.nio.ByteBuffer [ ] { bbs } , bbd ) ; } catch ( javax.net.ssl.SSLException ex ) { } }

Target:
public void test_wrap_ByteBuffer$ByteBuffer_01 ( ) throws java.lang.Exception { prepareEngines ( ) ; doHandshake ( ) ; java.nio.ByteBuffer bbs = java.nio.ByteBuffer.allocate ( 100 ) ; java.nio.ByteBuffer bbd = java.nio.ByteBuffer.allocate ( 20000 ) ; clientEngine.engine.wrap ( new java.nio.ByteBuffer [ ] { bbs } , bbd ) ; serverEngine.engine.wrap ( new java.nio.ByteBuffer [ ] { bbs } , bbd ) ; }
Source:
private static int indexOf ( java.lang.Object o , java.lang.Object [ ] elements , int index , int fence ) { if ( o == null ) { for ( int i = index ; i < fence ; i ++ ) if ( ( elements [ i ] ) == null ) return i ; } else { for ( int i = index ; i < fence ; i ++ ) if ( o.equals ( elements [ i ] ) ) return i ; } return - 1 ; }

Target:
static int indexOf ( java.lang.Object o , java.lang.Object [ ] data , int from , int to ) { if ( o == null ) { for ( int i = from ; i < to ; i ++ ) { if ( ( data [ i ] ) == null ) { return i ; } } } else { for ( int i = from ; i < to ; i ++ ) { if ( o.equals ( data [ i ] ) ) { return i ; } } } return - 1 ; }
Source:
public android.net.wifi.WifiWakeReasonAndCounts getWlanWakeReasonCount ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getWlanWakeReasonCount ( ) ; } else { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , ( "getWlanWakeReasonCount " + ( com.android.server.wifi.WifiNative.sWlan0Index ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getWlanWakeReasonCountNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } } }

Target:
public android.net.wifi.WifiWakeReasonAndCounts getWlanWakeReasonCount ( ) { return mWifiVendorHal.getWlanWakeReasonCount ( ) ; }
Source:
public void test_unmodifiableMap_remove ( ) { try { java.util.Collections.unmodifiableMap ( new java.util.HashMap < > ( ) ) . remove ( 1 , 5.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } java.util.HashMap < java.lang.Integer , java.lang.Double > m = new java.util.HashMap < > ( ) ; m.put ( 1 , 5.0 ) ; try { java.util.Collections.unmodifiableMap ( m ) . remove ( 1 , 5.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }

Target:
public void test_unmodifiableMap_remove ( ) { try { java.util.Collections.unmodifiableMap ( new java.util.HashMap < > ( ) ) . remove ( 1 , 5.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } java.util.Map < java.lang.Integer , java.lang.Double > m = new java.util.HashMap < > ( ) ; m.put ( 1 , 5.0 ) ; try { java.util.Collections.unmodifiableMap ( m ) . remove ( 1 , 5.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }
Source:
public void testFieldAccess ( ) { logWriter.println ( "testFieldAccess started" ) ; synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; if ( ! ( canWatchFieldAccessCapability ( ) ) ) { synchronizer.sendMessage ( JPDADebuggeeSynchronizer.SGNL_CONTINUE ) ; return ; } org.apache.harmony.jpda.tests.framework.jdwp.EventBuilder builder = createFieldAccessEventBuilder ( JDWPConstants.TypeTag.CLASS , org.apache.harmony.jpda.tests.jdwp.EventModifiers.CountModifierTest.DEBUGGEE_SIGNATURE , org.apache.harmony.jpda.tests.jdwp.EventModifiers.CountModifierTest.WATCHED_FIELD_NAME ) ; testEventWithCountModifier ( builder , org.apache.harmony.jpda.tests.jdwp.EventModifiers.CountModifierTest.FIELD_READ_WRITE_COUNT_FIELD_NAME ) ; logWriter.println ( "testFieldAccess done" ) ; }

Target:
public void testFieldAccess ( ) { logWriter.println ( "testFieldAccess started" ) ; synchronizer.receiveMessage ( JPDADebuggeeSynchronizer.SGNL_READY ) ; org.apache.harmony.jpda.tests.framework.jdwp.EventBuilder builder = createFieldAccessEventBuilder ( JDWPConstants.TypeTag.CLASS , org.apache.harmony.jpda.tests.jdwp.EventModifiers.CountModifierTest.DEBUGGEE_SIGNATURE , org.apache.harmony.jpda.tests.jdwp.EventModifiers.CountModifierTest.WATCHED_FIELD_NAME ) ; testEventWithCountModifier ( builder , org.apache.harmony.jpda.tests.jdwp.EventModifiers.CountModifierTest.FIELD_READ_WRITE_COUNT_FIELD_NAME ) ; logWriter.println ( "testFieldAccess done" ) ; }
Source:
public void onResizeUpdate ( @ com.android.annotations.Nullable com.android.ide.common.api.DropFeedback feedback , @ com.android.annotations.NonNull com.android.ide.common.api.INode child , @ com.android.annotations.NonNull com.android.ide.common.api.INode parent , @ com.android.annotations.NonNull com.android.ide.common.api.Rect newBounds , int modifierMask ) { com.android.ide.common.layout.relative.ResizeHandler state = ( ( com.android.ide.common.layout.relative.ResizeHandler ) ( feedback.userData ) ) ; state.updateResize ( feedback , child , newBounds , modifierMask ) ; }

Target:
public void onResizeUpdate ( @ com.android.annotations.Nullable com.android.ide.common.api.DropFeedback feedback , @ com.android.annotations.NonNull com.android.ide.common.api.INode child , @ com.android.annotations.NonNull com.android.ide.common.api.INode parent , @ com.android.annotations.NonNull com.android.ide.common.api.Rect newBounds , int modifierMask ) { if ( feedback == null ) { return ; } com.android.ide.common.layout.relative.ResizeHandler state = ( ( com.android.ide.common.layout.relative.ResizeHandler ) ( feedback.userData ) ) ; state.updateResize ( feedback , child , newBounds , modifierMask ) ; }
Source:
public void acquireMulticastLock ( android.os.IBinder binder , java.lang.String tag ) { enforceMulticastChangePermission ( ) ; synchronized ( mMulticasters ) { ( mMulticastEnabled ) ++ ; mMulticasters.add ( new com.android.server.WifiService.Multicaster ( tag , binder ) ) ; mWifiStateMachine.stopFilteringMulticastV4Packets ( ) ; } int uid = android.os.Binder.getCallingUid ( ) ; java.lang.Long ident = android.os.Binder.clearCallingIdentity ( ) ; try { mBatteryStats.noteWifiMulticastEnabled ( uid ) ; } catch ( android.os.RemoteException e ) { } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } }

Target:
public void acquireMulticastLock ( android.os.IBinder binder , java.lang.String tag ) { enforceMulticastChangePermission ( ) ; synchronized ( mMulticasters ) { ( mMulticastEnabled ) ++ ; mMulticasters.add ( new com.android.server.WifiService.Multicaster ( tag , binder ) ) ; mWifiStateMachine.stopFilteringMulticastV4Packets ( ) ; } int uid = android.os.Binder.getCallingUid ( ) ; final long ident = android.os.Binder.clearCallingIdentity ( ) ; try { mBatteryStats.noteWifiMulticastEnabled ( uid ) ; } catch ( android.os.RemoteException e ) { } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } }
Source:
public < T extends com.android.jack.ir.ast.JNode > void accept ( @ javax.annotation.Nonnull java.util.Collection < T > collection ) { java.util.Collection < T > copiedCollection = new java.util.ArrayList < T > ( collection ) ; for ( T element : copiedCollection ) { try { element.traverse ( this ) ; } catch ( java.lang.Throwable e ) { throw translateException ( element , e ) ; } } }

Target:
public < T extends com.android.jack.ir.ast.JNode > void accept ( @ javax.annotation.Nonnull java.util.Collection < T > collection ) { java.util.Collection < T > copiedCollection = new java.util.ArrayList < T > ( collection ) ; for ( T element : copiedCollection ) { element.traverse ( this ) ; } }
Source:
public final java.nio.ByteBuffer put ( int i , byte x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } put ( ix ( checkIndex ( i ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer put ( int i , byte x ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } put ( ix ( checkIndex ( i ) ) , x ) ; return this ; }
Source:
public void addIcon ( java.lang.String slot , int index , int viewIndex , com.android.internal.statusbar.StatusBarIcon icon ) { if ( com.android.systemui.statusbar.phone.PhoneStatusBar.SPEW ) android.util.Slog.d ( com.android.systemui.statusbar.phone.PhoneStatusBar.TAG , ( ( ( ( ( ( ( "addIcon slot=" + slot ) + " index=" ) + index ) + " viewIndex=" ) + viewIndex ) + " icon=" ) + icon ) ) ; com.android.systemui.statusbar.StatusBarIconView view = new com.android.systemui.statusbar.StatusBarIconView ( mContext , slot , null ) ; view.set ( icon ) ; mStatusIcons.addView ( view , viewIndex , new android.widget.LinearLayout.LayoutParams ( mIconSize , mIconSize ) ) ; }

Target:
public void addIcon ( java.lang.String slot , int index , int viewIndex , com.android.internal.statusbar.StatusBarIcon icon ) { if ( com.android.systemui.statusbar.phone.PhoneStatusBar.SPEW ) android.util.Log.d ( com.android.systemui.statusbar.phone.PhoneStatusBar.TAG , ( ( ( ( ( ( ( "addIcon slot=" + slot ) + " index=" ) + index ) + " viewIndex=" ) + viewIndex ) + " icon=" ) + icon ) ) ; com.android.systemui.statusbar.StatusBarIconView view = new com.android.systemui.statusbar.StatusBarIconView ( mContext , slot , null ) ; view.set ( icon ) ; mStatusIcons.addView ( view , viewIndex , new android.widget.LinearLayout.LayoutParams ( mIconSize , mIconSize ) ) ; }
Source:
public java.io.File call ( ) throws java.lang.Exception { final com.android.builder.sdk.TargetInfo info = androidBuilder.getTargetInfo ( ) ; java.lang.String path = ( info == null ? null : info.getBuildTools ( ) ) . getPath ( com.android.sdklib.BuildToolInfo.PathId.ZIP_ALIGN ) ; if ( path != null ) { return new java.io.File ( path ) ; } return null ; }

Target:
public java.io.File call ( ) throws java.lang.Exception { final com.android.builder.sdk.TargetInfo info = androidBuilder.getTargetInfo ( ) ; if ( info != null ) { java.lang.String path = info.getBuildTools ( ) . getPath ( com.android.sdklib.BuildToolInfo.PathId.ZIP_ALIGN ) ; if ( path != null ) { return new java.io.File ( path ) ; } } return null ; }
Source:
public java.lang.String getName ( android.bluetooth.BluetoothDevice device ) { com.android.settingslib.bluetooth.CachedBluetoothDevice cachedDevice = findDevice ( device ) ; if ( cachedDevice != null ) { return cachedDevice.getName ( ) ; } java.lang.String name = device.getAliasName ( ) ; if ( name != null ) { return name ; } return device.getAddress ( ) ; }

Target:
public java.lang.String getName ( android.bluetooth.BluetoothDevice device ) { com.android.settingslib.bluetooth.CachedBluetoothDevice cachedDevice = findDevice ( device ) ; if ( ( cachedDevice != null ) && ( ( cachedDevice.getName ( ) ) != null ) ) { return cachedDevice.getName ( ) ; } java.lang.String name = device.getAliasName ( ) ; if ( name != null ) { return name ; } return device.getAddress ( ) ; }
Source:
public java.util.List < com.android.sdklib.devices.Device > getUserDevices ( ) { synchronized ( mUserDevices ) { if ( ( mUserDevices ) == null ) { mUserDevices = new java.util.ArrayList < com.android.sdklib.devices.Device > ( ) ; try { java.io.File userDevicesFile = new java.io.File ( com.android.prefs.AndroidLocation.getFolder ( ) , com.android.sdklib.SdkConstants.FN_DEVICES_XML ) ; mUserDevices.addAll ( loadDevices ( userDevicesFile ) ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { mLog.warning ( "Couldn't load user devices: %1$" , e.getMessage ( ) ) ; } } } return mUserDevices ; }

Target:
public java.util.List < com.android.sdklib.devices.Device > getUserDevices ( ) { synchronized ( this ) { if ( ( mUserDevices ) == null ) { mUserDevices = new java.util.ArrayList < com.android.sdklib.devices.Device > ( ) ; try { java.io.File userDevicesFile = new java.io.File ( com.android.prefs.AndroidLocation.getFolder ( ) , com.android.sdklib.SdkConstants.FN_DEVICES_XML ) ; mUserDevices.addAll ( loadDevices ( userDevicesFile ) ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { mLog.warning ( "Couldn't load user devices: %1$" , e.getMessage ( ) ) ; } } } return mUserDevices ; }
Source:
public void activateDeactivatePolicy ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; com.android.devtools.systemimage.uitest.utils.SettingsUtil.activate ( instrumentation , "Sample Device Admin" ) ; assertTrue ( checkStatusOfPolicy ( instrumentation , "Sample Device Admin" ) ) ; com.android.devtools.systemimage.uitest.utils.SettingsUtil.deactivate ( instrumentation , "Sample Device Admin" ) ; assertFalse ( checkStatusOfPolicy ( instrumentation , "Sample Device Admin" ) ) ; }

Target:
public void activateDeactivatePolicy ( ) throws java.lang.Exception { android.app.Instrumentation instrumentation = testFramework.getInstrumentation ( ) ; if ( checkStatusOfPolicy ( instrumentation , "Sample Device Admin" ) ) { com.android.devtools.systemimage.uitest.utils.SettingsUtil.deactivate ( instrumentation , "Sample Device Admin" ) ; } assertFalse ( checkStatusOfPolicy ( instrumentation , "Sample Device Admin" ) ) ; com.android.devtools.systemimage.uitest.utils.SettingsUtil.activate ( instrumentation , "Sample Device Admin" ) ; assertTrue ( checkStatusOfPolicy ( instrumentation , "Sample Device Admin" ) ) ; com.android.devtools.systemimage.uitest.utils.SettingsUtil.deactivate ( instrumentation , "Sample Device Admin" ) ; assertFalse ( checkStatusOfPolicy ( instrumentation , "Sample Device Admin" ) ) ; }
Source:
public void initialize ( int gsmSignalStrength , int gsmBitErrorRate , int cdmaDbm , int cdmaEcio , int evdoDbm , int evdoEcio , int evdoSnr , boolean gsm ) { initialize ( gsmSignalStrength , gsmBitErrorRate , cdmaDbm , cdmaEcio , evdoDbm , evdoEcio , evdoSnr , 99 , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , gsm ) ; }

Target:
public void initialize ( int gsmSignalStrength , int gsmBitErrorRate , int cdmaDbm , int cdmaEcio , int evdoDbm , int evdoEcio , int evdoSnr , boolean gsm ) { initialize ( gsmSignalStrength , gsmBitErrorRate , cdmaDbm , cdmaEcio , evdoDbm , evdoEcio , evdoSnr , 99 , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , android.telephony.SignalStrength.INVALID , 0 , gsm ) ; }
Source:
public void publicMethods ( ) throws java.lang.Exception { assertNotNull ( com.android.volley.toolbox.ImageRequest.class . getConstructor ( java.lang.String.class , Response.Listener.class , int . class , int . class , android.graphics.Bitmap.Config.class , Response.ErrorListener.class ) ) ; assertNotNull ( com.android.volley.toolbox.ImageRequest.class . getConstructor ( java.lang.String.class , Response.Listener.class , int . class , int . class , android.widget.ImageView.ScaleType.class , android.graphics.Bitmap.Config.class , Response.ErrorListener.class ) ) ; assertEquals ( ImageRequest.DEFAULT_IMAGE_TIMEOUT_MS , 1000 ) ; assertEquals ( ImageRequest.DEFAULT_IMAGE_MAX_RETRIES , 2 ) ; assertEquals ( ImageRequest.DEFAULT_IMAGE_BACKOFF_MULT , 2.0F ) ; }

Target:
public void publicMethods ( ) throws java.lang.Exception { assertNotNull ( com.android.volley.toolbox.ImageRequest.class . getConstructor ( java.lang.String.class , Response.Listener.class , int . class , int . class , android.graphics.Bitmap.Config.class , Response.ErrorListener.class ) ) ; assertNotNull ( com.android.volley.toolbox.ImageRequest.class . getConstructor ( java.lang.String.class , Response.Listener.class , int . class , int . class , android.widget.ImageView.ScaleType.class , android.graphics.Bitmap.Config.class , Response.ErrorListener.class ) ) ; assertEquals ( ImageRequest.DEFAULT_IMAGE_TIMEOUT_MS , 1000 ) ; assertEquals ( ImageRequest.DEFAULT_IMAGE_MAX_RETRIES , 2 ) ; assertEquals ( ImageRequest.DEFAULT_IMAGE_BACKOFF_MULT , 2.0F , 0 ) ; }
Source:
public void testClearKeyPlaybackCenc ( ) throws java.lang.Exception { if ( ( android.media.cts.NativeClearKeySystemTest.compareVersion ( Build.VERSION.RELEASE , "7.1.2" ) ) >= 0 ) { testClearKeyPlayback ( android.media.cts.NativeClearKeySystemTest.ISO_BMFF_VIDEO_MIME_TYPE , android.media.cts.NativeClearKeySystemTest.CENC_AUDIO_URL , android.media.cts.NativeClearKeySystemTest.CENC_CLEARKEY_VIDEO_URL , android.media.cts.NativeClearKeySystemTest.VIDEO_WIDTH_CENC , android.media.cts.NativeClearKeySystemTest.VIDEO_HEIGHT_CENC ) ; } else { android.util.Log.i ( android.media.cts.NativeClearKeySystemTest.TAG , "Skip test, which is intended for Android 7.1.2 and above." ) ; } }

Target:
public void testClearKeyPlaybackCenc ( ) throws java.lang.Exception { testClearKeyPlayback ( android.media.cts.NativeClearKeySystemTest.ISO_BMFF_VIDEO_MIME_TYPE , android.media.cts.NativeClearKeySystemTest.CENC_AUDIO_URL , android.media.cts.NativeClearKeySystemTest.CENC_CLEARKEY_VIDEO_URL , android.media.cts.NativeClearKeySystemTest.VIDEO_WIDTH_CENC , android.media.cts.NativeClearKeySystemTest.VIDEO_HEIGHT_CENC ) ; }
Source:
private com.android.sdklib.ISystemImage [ ] getSystemImages ( com.android.sdklib.IAndroidTarget target ) { if ( target != null ) { com.android.sdklib.ISystemImage [ ] images = target.getSystemImages ( ) ; if ( ( ( images == null ) || ( ( images.length ) == 0 ) ) && ( ! ( target.isPlatform ( ) ) ) ) { images = target.getParent ( ) . getSystemImages ( ) ; } if ( images != null ) { return images ; } } return new com.android.sdklib.ISystemImage [ 0 ] ; }

Target:
private com.android.sdklib.ISystemImage [ ] getSystemImages ( com.android.sdklib.IAndroidTarget target ) { if ( target != null ) { com.android.sdklib.ISystemImage [ ] images = target.getSystemImages ( ) ; if ( ( ( images == null ) || ( ( images.length ) == 0 ) ) && ( ! ( target.isPlatform ( ) ) ) ) { } if ( images != null ) { return images ; } } return new com.android.sdklib.ISystemImage [ 0 ] ; }
Source:
public void paint ( com.intellij.openapi.editor.Editor editor , java.awt.Graphics g , java.awt.Rectangle r ) { if ( ! ( myCondition.get ( ) ) ) return ; int y = r.y ; final int gutterWidth = ( ( com.intellij.openapi.editor.ex.EditorEx ) ( editor ) ) . getGutterComponentEx ( ) . getWidth ( ) ; int lineHeight = myEditor.getLineHeight ( ) ; com.intellij.diff.util.DiffLineSeparatorRenderer.draw ( g , 0 , gutterWidth , 0 , y , lineHeight ) ; }

Target:
public void paint ( com.intellij.openapi.editor.Editor editor , java.awt.Graphics g , java.awt.Rectangle r ) { if ( ! ( myCondition.get ( ) ) ) return ; int y = r.y ; int lineHeight = myEditor.getLineHeight ( ) ; com.intellij.diff.util.DiffLineSeparatorRenderer.draw ( g , 0 , y , lineHeight ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { if ( ( method.getEnclosingType ( ) ) instanceof com.android.jack.ir.ast.JDefinedClass ) { com.android.jack.transformations.enums.SwitchEnumSupport.UsedEnumField uef = method.getEnclosingType ( ) . getMarker ( com.android.jack.transformations.enums.SwitchEnumSupport.UsedEnumField.class ) ; assert uef != null ; usedEnumFields = uef.getEnumFields ( ) ; } return super . visit ( method ) ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { com.android.jack.transformations.enums.SwitchEnumSupport.UsedEnumField uef = method.getEnclosingType ( ) . getMarker ( com.android.jack.transformations.enums.SwitchEnumSupport.UsedEnumField.class ) ; assert uef != null ; usedEnumFields = uef.getEnumFields ( ) ; return super . visit ( method ) ; }
Source:
static void getShort ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , short value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final short got = ( v == null ) ? ( ( short ) ( m.invokeExact ( ) ) ) : ( ( short ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertActualAndExpectedMatch ( exceptionThrown , expectFailure ) ; }

Target:
static void getShort ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , short value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final short got = ( v == null ) ? ( ( short ) ( m.invokeExact ( ) ) ) : ( ( short ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }
Source:
void stopKeepalive ( ) { if ( ( mKeepalive ) == null ) { return ; } mKeepalive.stop ( ) ; synchronized ( mKeepaliveSyncLock ) { if ( ( mKeepaliveStatus ) == ( ConnectivityManager.PacketKeepalive.SUCCESS ) ) { try { mKeepaliveSyncLock.wait ( 2000 ) ; } catch ( java.lang.InterruptedException e ) { } } } }

Target:
void stopKeepalive ( ) { return ; }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_single_source_ref_count s = new com.android.rs.test.ScriptC_single_source_ref_count ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; s.invoke_entrypoint ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_single_source_ref_count s = new com.android.rs.test.ScriptC_single_source_ref_count ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; s.invoke_entrypoint ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }
Source:
java.util.logging.Logger demandLogger ( java.lang.String name , java.lang.String resourceBundleName , java.lang.Class < ? > caller ) { java.util.logging.Logger result = getLogger ( name ) ; if ( result == null ) { java.util.logging.Logger newLogger = new java.util.logging.Logger ( name , resourceBundleName , caller ) ; do { if ( addLogger ( newLogger ) ) { return newLogger ; } result = getLogger ( name ) ; } while ( result == null ) ; } return result ; }

Target:
java.util.logging.Logger demandLogger ( java.lang.String name , java.lang.String resourceBundleName , java.lang.Class < ? > caller ) { java.util.logging.Logger result = getLogger ( name ) ; if ( result == null ) { java.util.logging.Logger newLogger = new java.util.logging.Logger ( name , resourceBundleName , caller , this , false ) ; do { if ( addLogger ( newLogger ) ) { return newLogger ; } result = getLogger ( name ) ; } while ( result == null ) ; } return result ; }
Source:
public void testStatements ( ) throws java.lang.Exception { com.android.tools.lint.detector.api.ConstantEvaluatorTest.checkStatements ( 9 , ( "" + ( ( ( ( "int x = +5;\n" + "int y = x;\n" ) + "int w;\n" ) + "w = -1;\n" ) + "int z = x + 5 + w;\n" ) ) , "z" ) ; com.android.tools.lint.detector.api.ConstantEvaluatorTest.checkStatements ( "hello world" , ( "" + ( ( ( "String initial = \"hello\";\n" + "String other;\n" ) + "other = \" world\";\n" ) + "String finalString = initial + other;\n" ) ) , "finalString" ) ; }

Target:
public void testStatements ( ) throws java.lang.Exception { checkStatements ( 9 , ( "" + ( ( ( ( "int x = +5;\n" + "int y = x;\n" ) + "int w;\n" ) + "w = -1;\n" ) + "int z = x + 5 + w;\n" ) ) , "z" ) ; checkStatements ( "hello world" , ( "" + ( ( ( "String initial = \"hello\";\n" + "String other;\n" ) + "other = \" world\";\n" ) + "String finalString = initial + other;\n" ) ) , "finalString" ) ; }
Source:
public static com.android.manifmerger.XmlDocument load ( java.io.File xmlFile ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.io.InputStream inputStream = new java.io.BufferedInputStream ( new java.io.FileInputStream ( xmlFile ) ) ; com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( inputStream ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , new com.android.manifmerger.XmlLoader.FileSourceLocation ( xmlFile ) , domDocument.getDocumentElement ( ) ) : null ; }

Target:
public static com.android.manifmerger.XmlDocument load ( java.io.File xmlFile ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.io.InputStream inputStream = new java.io.BufferedInputStream ( new java.io.FileInputStream ( xmlFile ) ) ; com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( inputStream ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , new com.android.manifmerger.XmlLoader.FileSourceLocation ( null , xmlFile ) , domDocument.getDocumentElement ( ) ) : null ; }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { assertEquals ( hostname , org.conscrypt.NativeCrypto.SSL_get_servername ( s ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.junit.Assert.assertEquals ( hostname , org.conscrypt.NativeCrypto.SSL_get_servername ( s ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public static final void toByteArray ( com.google.protobuf.nano.MessageNano msg , byte [ ] data , int offset , int length ) { try { final com.google.protobuf.nano.CodedOutputByteBufferNano output = com.google.protobuf.nano.CodedOutputByteBufferNano.newInstance ( data , offset , length ) ; msg.writeTo ( output ) ; output.checkNoSpaceLeft ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( ( "Serializing to a byte array threw an IOException " + "(should never happen)." ) ) ; } }

Target:
public static final void toByteArray ( com.google.protobuf.nano.MessageNano msg , byte [ ] data , int offset , int length ) { try { final com.google.protobuf.nano.CodedOutputByteBufferNano output = com.google.protobuf.nano.CodedOutputByteBufferNano.newInstance ( data , offset , length ) ; msg.writeTo ( output ) ; output.checkNoSpaceLeft ( ) ; } catch ( java.io.IOException e ) { throw new java.lang.RuntimeException ( ( "Serializing to a byte array threw an IOException " + "(should never happen)." ) , e ) ; } }
Source:
public int stopSendingOffloadedPacket ( int slot ) { try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.stopSendingOffloadedPacket ( slot ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } legacyHalWarning ( ) ; android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , ( "stopSendingOffloadedPacket " + slot ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.stopSendingOffloadedPacketNative ( com.android.server.wifi.WifiNative.sWlan0Index , slot ) ; } else { return - 1 ; } } }

Target:
public int stopSendingOffloadedPacket ( int slot ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , ( "stopSendingOffloadedPacket " + slot ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.stopSendingOffloadedPacketNative ( com.android.server.wifi.WifiNative.sWlan0Index , slot ) ; } else { return - 1 ; } } }
Source:
public void clearUidForwarding ( java.lang.String interfaze , int uidStart , int uidEnd , boolean forwardDns ) { try { mNetd.clearUidRangeRoute ( interfaze , uidStart , uidEnd ) ; if ( forwardDns ) mNetd.clearDnsInterfaceForUidRange ( uidStart , uidEnd ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public void clearUidForwarding ( java.lang.String interfaze , int uidStart , int uidEnd , boolean forwardDns ) { try { mNetd.clearUidRangeRoute ( interfaze , uidStart , uidEnd ) ; if ( forwardDns ) mNetd.clearDnsInterfaceForUidRange ( interfaze , uidStart , uidEnd ) ; } catch ( android.os.RemoteException e ) { } }
Source:
public final com.android.tools.perflib.heap.ClassObj findClass ( java.lang.String name ) { for ( com.android.tools.perflib.heap.Heap heap : mHeaps.values ( ) ) { com.android.tools.perflib.heap.ClassObj theClass = heap.getClass ( name ) ; if ( theClass != null ) { return theClass ; } } return null ; }

Target:
public final com.android.tools.perflib.heap.ClassObj findClass ( java.lang.String name ) { for ( int i = 0 ; i < ( mHeaps.size ( ) ) ; i ++ ) { com.android.tools.perflib.heap.ClassObj theClass = mHeaps.get ( i ) . getClass ( name ) ; if ( theClass != null ) { return theClass ; } } return null ; }