auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
static void native_setSkew ( int native_object , float kx , float ky ) { android.graphics.Matrix_Delegate d = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_object ) ; if ( d == null ) { return ; } d.mValues [ 0 ] = 1 ; d.mValues [ 1 ] = kx ; d.mValues [ 2 ] = - 0 ; d.mValues [ 3 ] = ky ; d.mValues [ 4 ] = 1 ; d.mValues [ 5 ] = 0 ; d.mValues [ 6 ] = 0 ; d.mValues [ 7 ] = 0 ; d.mValues [ 8 ] = 1 ; }

Target:
static void native_setSkew ( long native_object , float kx , float ky ) { android.graphics.Matrix_Delegate d = android.graphics.Matrix_Delegate.sManager.getDelegate ( native_object ) ; if ( d == null ) { return ; } d.mValues [ 0 ] = 1 ; d.mValues [ 1 ] = kx ; d.mValues [ 2 ] = - 0 ; d.mValues [ 3 ] = ky ; d.mValues [ 4 ] = 1 ; d.mValues [ 5 ] = 0 ; d.mValues [ 6 ] = 0 ; d.mValues [ 7 ] = 0 ; d.mValues [ 8 ] = 1 ; }
Source:
protected void mergeDex ( @ javax.annotation.Nonnull com.android.jack.tools.merger.JackMerger merger , com.android.sched.vfs.InputVFile inputDex ) throws com.android.jack.backend.dex.DexWritingException , com.android.jack.tools.merger.MergingOverflowException { try { merger.addDexFile ( new com.android.jack.dx.io.DexBuffer ( inputDex.openRead ( ) ) ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.backend.dex.DexWritingException ( new com.android.sched.util.file.CannotReadException ( inputDex.getLocation ( ) , e ) ) ; } }

Target:
protected void mergeDex ( @ javax.annotation.Nonnull com.android.jack.tools.merger.JackMerger merger , com.android.sched.vfs.InputVFile inputDex ) throws com.android.jack.backend.dex.DexWritingException , com.android.jack.tools.merger.MergingOverflowException { try { merger.addDexFile ( new com.android.jack.dx.io.DexBuffer ( inputDex.openRead ( ) ) ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.backend.dex.DexWritingException ( new com.android.sched.util.file.CannotReadException ( inputDex , e ) ) ; } }
Source:
public static libcore.javax.net.ssl.TestSSLContext create ( libcore.java.security.TestKeyStore client , libcore.java.security.TestKeyStore server , java.lang.String clientProvider , java.lang.String serverProvider ) { java.lang.String protocol = "TLS" ; javax.net.ssl.SSLContext clientContext = libcore.javax.net.ssl.TestSSLContext.createSSLContext ( protocol , clientProvider , client.keyManagers , client.trustManagers ) ; javax.net.ssl.SSLContext serverContext = libcore.javax.net.ssl.TestSSLContext.createSSLContext ( protocol , serverProvider , server.keyManagers , server.trustManagers ) ; return libcore.javax.net.ssl.TestSSLContext.create ( client.keyStore , client.storePassword , server.keyStore , server.storePassword , client.keyManagers [ 0 ] , server.keyManagers [ 0 ] , client.trustManagers [ 0 ] , server.trustManagers [ 0 ] , clientContext , serverContext ) ; }

Target:
public static libcore.javax.net.ssl.TestSSLContext create ( libcore.java.security.TestKeyStore client , libcore.java.security.TestKeyStore server ) { java.lang.String protocol = "TLS" ; javax.net.ssl.SSLContext clientContext = libcore.javax.net.ssl.TestSSLContext.createSSLContext ( protocol , client.keyManagers , client.trustManagers ) ; javax.net.ssl.SSLContext serverContext = libcore.javax.net.ssl.TestSSLContext.createSSLContext ( protocol , server.keyManagers , server.trustManagers ) ; return libcore.javax.net.ssl.TestSSLContext.create ( client.keyStore , client.storePassword , server.keyStore , server.storePassword , client.keyManagers [ 0 ] , server.keyManagers [ 0 ] , client.trustManagers [ 0 ] , server.trustManagers [ 0 ] , clientContext , serverContext ) ; }
Source:
public java.util.Collection < com.android.builder.model.JavaLibrary > getJavaLibraries ( ) { java.util.Set < java.io.File > files = configuration.getFiles ( ) ; if ( files.isEmpty ( ) ) { return java.util.Collections.emptySet ( ) ; } java.util.Set < com.android.builder.model.JavaLibrary > javaLibraries = com.google.common.collect.Sets.newHashSet ( ) ; for ( java.io.File file : files ) { javaLibraries.add ( new com.android.build.gradle.internal.model.JavaLibraryImpl ( file ) ) ; } return javaLibraries ; }

Target:
public java.util.Collection < com.android.builder.model.JavaLibrary > getJavaLibraries ( ) { java.util.Set < java.io.File > files = configuration.getFiles ( ) ; if ( files.isEmpty ( ) ) { return java.util.Collections.emptySet ( ) ; } java.util.Set < com.android.builder.model.JavaLibrary > javaLibraries = com.google.common.collect.Sets.newHashSet ( ) ; for ( java.io.File file : files ) { javaLibraries.add ( new com.android.build.gradle.internal.model.JavaLibraryImpl ( file , null , null ) ) ; } return javaLibraries ; }
Source:
static int native_setRasterizer ( int native_object , int rasterizer ) { android.graphics.Paint_Delegate delegate = android.graphics.Paint_Delegate.sManager.getDelegate ( native_object ) ; if ( delegate == null ) { return rasterizer ; } delegate.mRasterizer = android.graphics.Rasterizer_Delegate.getDelegate ( rasterizer ) ; if ( ( ( delegate.mRasterizer ) != null ) && ( ( delegate.mRasterizer.isSupported ( ) ) == false ) ) { com.android.layoutlib.bridge.Bridge.getLog ( ) . fidelityWarning ( LayoutLog.TAG_RASTERIZER , delegate.mRasterizer.getSupportMessage ( ) , null , null ) ; } return rasterizer ; }

Target:
static long native_setRasterizer ( long native_object , long rasterizer ) { android.graphics.Paint_Delegate delegate = android.graphics.Paint_Delegate.sManager.getDelegate ( native_object ) ; if ( delegate == null ) { return rasterizer ; } delegate.mRasterizer = android.graphics.Rasterizer_Delegate.getDelegate ( rasterizer ) ; if ( ( ( delegate.mRasterizer ) != null ) && ( ( delegate.mRasterizer.isSupported ( ) ) == false ) ) { com.android.layoutlib.bridge.Bridge.getLog ( ) . fidelityWarning ( LayoutLog.TAG_RASTERIZER , delegate.mRasterizer.getSupportMessage ( ) , null , null ) ; } return rasterizer ; }
Source:
public static void deleteContents ( java.io.File dir ) throws java.io.IOException { java.io.File [ ] files = dir.listFiles ( ) ; if ( files == null ) { throw new java.lang.IllegalArgumentException ( ( "not a directory: " + dir ) ) ; } for ( java.io.File file : files ) { if ( file.isDirectory ( ) ) { libcore.io.IoUtils.deleteContents ( file ) ; } if ( ! ( file.delete ( ) ) ) { throw new java.io.IOException ( ( "failed to delete file: " + file ) ) ; } } }

Target:
public static void deleteContents ( java.io.File dir ) throws java.io.IOException { java.io.File [ ] files = dir.listFiles ( ) ; if ( files != null ) { for ( java.io.File file : files ) { if ( file.isDirectory ( ) ) { libcore.io.IoUtils.deleteContents ( file ) ; } file.delete ( ) ; } } }
Source:
public void telecomAcceptRingingCall ( @ com.googlecode.android_scripting.rpc.RpcOptional java.lang.String videoState ) { if ( videoState == null ) { mTelecomManager.acceptRingingCall ( ) ; } else { int state = com.googlecode.android_scripting.facade.telephony.InCallServiceImpl.getVideoCallState ( videoState ) ; if ( state == ( InCallServiceImpl.STATE_INVALID ) ) { com.googlecode.android_scripting.Log.e ( "telecomAcceptRingingCall: video state is invalid!" ) ; return ; } mTelecomManager.acceptRingingCall ( state ) ; } }

Target:
public void telecomAcceptRingingCall ( ) { mTelecomManager.acceptRingingCall ( ) ; }
Source:
public android.net.LinkProperties.CompareResult < java.net.InetAddress > compareDnses ( android.net.LinkProperties target ) { android.net.LinkProperties.CompareResult < java.net.InetAddress > result = new android.net.LinkProperties.CompareResult < java.net.InetAddress > ( ) ; result.removed = new java.util.ArrayList < java.net.InetAddress > ( mDnses ) ; result.added.clear ( ) ; if ( target != null ) { for ( java.net.InetAddress newAddress : target.getDnsServers ( ) ) { if ( ! ( result.removed.remove ( newAddress ) ) ) { result.added.add ( newAddress ) ; } } } return result ; }

Target:
public android.net.LinkProperties.CompareResult < java.net.InetAddress > compareDnses ( android.net.LinkProperties target ) { return new android.net.LinkProperties.CompareResult < > ( mDnses , ( target != null ? target.getDnsServers ( ) : null ) ) ; }
Source:
public void onDataPathRequestNotification ( int pubSubId , byte [ ] mac , int ndpId , byte [ ] message ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_TYPE_NOTIFICATION ) ; msg.arg1 = com.android.server.wifi.aware.WifiAwareStateManager.NOTIFICATION_TYPE_ON_DATA_PATH_REQUEST ; msg.arg2 = pubSubId ; msg.obj = ndpId ; msg.getData ( ) . putByteArray ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_BUNDLE_KEY_MAC_ADDRESS , mac ) ; msg.getData ( ) . putByteArray ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_BUNDLE_KEY_MESSAGE_DATA , message ) ; mSm.sendMessage ( msg ) ; }

Target:
public void onDataPathRequestNotification ( int pubSubId , byte [ ] mac , int ndpId ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_TYPE_NOTIFICATION ) ; msg.arg1 = com.android.server.wifi.aware.WifiAwareStateManager.NOTIFICATION_TYPE_ON_DATA_PATH_REQUEST ; msg.arg2 = pubSubId ; msg.obj = ndpId ; msg.getData ( ) . putByteArray ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_BUNDLE_KEY_MAC_ADDRESS , mac ) ; mSm.sendMessage ( msg ) ; }
Source:
public void externalScoreEvaluator_nullScores ( ) { com.android.server.wifi.WifiQualifiedNetworkSelector.ExternalScoreEvaluator evaluator = new com.android.server.wifi.WifiQualifiedNetworkSelector.ExternalScoreEvaluator ( mLocalLog , true ) ; evaluator.evalUntrustedCandidate ( null , new android.net.wifi.ScanResult ( ) ) ; org.junit.Assert.assertEquals ( WifiQualifiedNetworkSelector.ExternalScoreEvaluator.BestCandidateType.NONE , evaluator.getBestCandidateType ( ) ) ; evaluator.evalSavedCandidate ( null , new android.net.wifi.WifiConfiguration ( ) , new android.net.wifi.ScanResult ( ) ) ; org.junit.Assert.assertEquals ( WifiQualifiedNetworkSelector.ExternalScoreEvaluator.BestCandidateType.NONE , evaluator.getBestCandidateType ( ) ) ; }

Target:
public void externalScoreEvaluator_nullScores ( ) { com.android.server.wifi.WifiQualifiedNetworkSelector.ExternalScoreEvaluator evaluator = new com.android.server.wifi.WifiQualifiedNetworkSelector.ExternalScoreEvaluator ( mLocalLog , true ) ; evaluator.evalUntrustedCandidate ( null , new android.net.wifi.ScanResult ( ) ) ; assertEquals ( WifiQualifiedNetworkSelector.ExternalScoreEvaluator.BestCandidateType.NONE , evaluator.getBestCandidateType ( ) ) ; evaluator.evalSavedCandidate ( null , new android.net.wifi.WifiConfiguration ( ) , new android.net.wifi.ScanResult ( ) ) ; assertEquals ( WifiQualifiedNetworkSelector.ExternalScoreEvaluator.BestCandidateType.NONE , evaluator.getBestCandidateType ( ) ) ; }
Source:
private static void assertMultipleDefinitionCharacteristics ( java.util.concurrent.Callable < java.lang.String > r1 , java.util.concurrent.Callable < java.lang.String > r2 ) throws java.lang.Exception { assertEquals ( r1.call ( ) , r2.call ( ) ) ; assertNotSame ( r1 , r2 ) ; assertTrue ( ( ! ( r1.equals ( r2 ) ) ) ) ; }

Target:
private static void assertMultipleDefinitionCharacteristics ( java.util.concurrent.Callable < java.lang.String > r1 , java.util.concurrent.Callable < java.lang.String > r2 ) throws java.lang.Exception { assertEquals ( r1.call ( ) , r2.call ( ) ) ; }
Source:
public java.lang.String getISO3Country ( ) { java.lang.String code = libcore.icu.ICU.getISO3CountryNative ( getIcuLocaleId ( ) ) ; if ( ( ! ( countryCode.isEmpty ( ) ) ) && ( code.isEmpty ( ) ) ) { throw new java.util.MissingResourceException ( ( "No 3-letter country code for locale: " + ( this ) ) , ( "FormatData_" + ( this ) ) , "ShortCountry" ) ; } return code ; }

Target:
public java.lang.String getISO3Country ( ) { java.lang.String code = libcore.icu.ICU.getISO3Country ( this ) ; if ( ( ! ( countryCode.isEmpty ( ) ) ) && ( code.isEmpty ( ) ) ) { throw new java.util.MissingResourceException ( ( "No 3-letter country code for locale: " + ( this ) ) , ( "FormatData_" + ( this ) ) , "ShortCountry" ) ; } return code ; }
Source:
public boolean accept ( java.io.File pathname ) { if ( ( ! ( com.android.cts.verifier.suid.SuidFilesActivity.WHITELIST.contains ( pathname.getName ( ) ) ) ) && ( com.android.cts.verifier.os.FileUtils.getFileStatus ( pathname.getPath ( ) , status , true ) ) ) { return ( ( ! ( status.isDirectory ( ) ) ) && ( ! ( status.isSymbolicLink ( ) ) ) ) && ( status.isSetUid ( ) ) ; } else { android.util.Log.w ( com.android.cts.verifier.suid.SuidFilesActivity.TAG , ( "Could not stat " + pathname ) ) ; return false ; } }

Target:
public boolean accept ( java.io.File pathname ) { if ( com.android.cts.verifier.os.FileUtils.getFileStatus ( pathname.getPath ( ) , status , true ) ) { return ( ( ! ( status.isDirectory ( ) ) ) && ( ! ( status.isSymbolicLink ( ) ) ) ) && ( status.isSetUid ( ) ) ; } else { android.util.Log.w ( com.android.cts.verifier.suid.SuidFilesActivity.TAG , ( "Could not stat " + pathname ) ) ; return false ; } }
Source:
private java.math.BigInteger calculateE ( java.math.BigInteger n , byte [ ] message ) { int log2n = n.bitLength ( ) ; int messageBitLength = ( message.length ) * 8 ; java.math.BigInteger e = new java.math.BigInteger ( 1 , message ) ; if ( log2n < messageBitLength ) { e = e.shiftRight ( ( messageBitLength - log2n ) ) ; } return e ; }

Target:
protected java.math.BigInteger calculateE ( java.math.BigInteger n , byte [ ] message ) { int log2n = n.bitLength ( ) ; int messageBitLength = ( message.length ) * 8 ; java.math.BigInteger e = new java.math.BigInteger ( 1 , message ) ; if ( log2n < messageBitLength ) { e = e.shiftRight ( ( messageBitLength - log2n ) ) ; } return e ; }
Source:
public void setSystemProperty ( java.lang.String property , java.lang.String value ) { if ( getUnitTestMode ( ) ) { return ; } if ( ( isPhoneTypeGsm ( ) ) || ( isPhoneTypeCdmaLte ( ) ) ) { android.telephony.TelephonyManager.setTelephonyProperty ( mPhoneId , property , value ) ; } else { super . setSystemProperty ( property , value ) ; } }

Target:
public void setSystemProperty ( java.lang.String property , java.lang.String value ) { if ( getUnitTestMode ( ) ) { return ; } android.telephony.TelephonyManager.setTelephonyProperty ( mPhoneId , property , value ) ; }
Source:
public void testRendering800x480Locally ( ) throws java.lang.Throwable { android.util.Log.i ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "testRendering800x480Locally" ) ; android.util.Pair < java.lang.Integer , java.lang.Integer > maxRes = checkMaxConcurrentEncodingDecodingResolution ( ) ; if ( ( ( maxRes.first ) >= 800 ) && ( ( maxRes.second ) >= 480 ) ) { runTestRenderingInSeparateThread ( 800 , 480 , false , false ) ; } else { android.util.Log.w ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "This H/W does not support 800x480" ) ; } }

Target:
public void testRendering800x480Locally ( ) throws java.lang.Throwable { android.util.Log.i ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "testRendering800x480Locally" ) ; android.util.Pair < java.lang.Integer , java.lang.Integer > maxRes = checkMaxConcurrentEncodingDecodingResolution ( ) ; if ( maxRes == null ) return ; if ( ( ( maxRes.first ) >= 800 ) && ( ( maxRes.second ) >= 480 ) ) { runTestRenderingInSeparateThread ( 800 , 480 , false , false ) ; } else { android.util.Log.w ( android.media.cts.EncodeVirtualDisplayWithCompositionTest.TAG , "This H/W does not support 800x480" ) ; } }
Source:
public void maybeShowErrorDialogOnDisconnect ( com.android.services.telephony.common.Call.DisconnectCause cause ) { com.android.incallui.Log.d ( this , "maybeShowErrorDialogOnDisconnect" ) ; if ( ! ( isFinishing ( ) ) ) { final int resId = getResIdForDisconnectCause ( cause ) ; if ( resId != ( com.android.incallui.InCallActivity.INVALID_RES_ID ) ) { showErrorDialog ( resId ) ; } } }

Target:
public void maybeShowErrorDialogOnDisconnect ( int cause ) { com.android.incallui.Log.d ( this , "maybeShowErrorDialogOnDisconnect" ) ; if ( ! ( isFinishing ( ) ) ) { final int resId = getResIdForDisconnectCause ( cause ) ; if ( resId != ( com.android.incallui.InCallActivity.INVALID_RES_ID ) ) { showErrorDialog ( resId ) ; } } }
Source:
public void run ( ) { com.android.rs.test_v11.RenderScript pRS = com.android.rs.test_v11.RenderScript.create ( mCtx ) ; com.android.rs.test_v11.ScriptC_rstime s = new com.android.rs.test_v11.ScriptC_rstime ( pRS , mRes , R.raw.rstime ) ; pRS.setMessageHandler ( mRsMessage ) ; s.setTimeZone ( "America/Los_Angeles" ) ; s.invoke_test_rstime ( 0 , 0 ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { com.android.rs.test_v11.RenderScript pRS = com.android.rs.test_v11.RenderScript.create ( mCtx ) ; com.android.rs.test_v11.ScriptC_rstime s = new com.android.rs.test_v11.ScriptC_rstime ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; s.setTimeZone ( "America/Los_Angeles" ) ; s.invoke_test_rstime ( 0 , 0 ) ; pRS.finish ( ) ; waitForMessage ( ) ; pRS.destroy ( ) ; }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeInt ( this . mMasInstanceId ) ; dest.writeInt ( this . mL2capPsm ) ; dest.writeInt ( this . mRfcommChannelNumber ) ; dest.writeInt ( this . mProfileVersion ) ; dest.writeInt ( this . mSupportedFeatures ) ; dest.writeInt ( this . mSupportedMessageTypes ) ; dest.writeString ( this . mServiceName ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeInt ( mMasInstanceId ) ; dest.writeInt ( mL2capPsm ) ; dest.writeInt ( mRfcommChannelNumber ) ; dest.writeInt ( mProfileVersion ) ; dest.writeInt ( mSupportedFeatures ) ; dest.writeInt ( mSupportedMessageTypes ) ; dest.writeString ( mServiceName ) ; }
Source:
public java.lang.String getDisplayScript ( java.util.Locale locale ) { if ( scriptCode.isEmpty ( ) ) { return "" ; } java.lang.String result = libcore.icu.ICU.getDisplayScriptNative ( getIcuLocaleId ( ) , locale.getIcuLocaleId ( ) ) ; if ( result == null ) { result = libcore.icu.ICU.getDisplayScriptNative ( getIcuLocaleId ( ) , java.util.Locale.getDefault ( ) . getIcuLocaleId ( ) ) ; } return result ; }

Target:
public java.lang.String getDisplayScript ( java.util.Locale locale ) { if ( scriptCode.isEmpty ( ) ) { return "" ; } java.lang.String result = libcore.icu.ICU.getDisplayScript ( this , locale ) ; if ( result == null ) { result = libcore.icu.ICU.getDisplayScript ( this , java.util.Locale.getDefault ( ) ) ; } return result ; }
Source:
com.android.jack.ir.JNodeInternalError translateException ( org.eclipse.jdt.internal.compiler.ast.ASTNode node , java.lang.Throwable e ) { com.android.jack.ir.JNodeInternalError ice = translateException ( e ) ; if ( node != null ) { ice.addNode ( node.getClass ( ) . getName ( ) , node.toString ( ) , makeSourceInfo ( node ) ) ; } return ice ; }

Target:
private com.android.jack.ir.JNodeInternalError translateException ( org.eclipse.jdt.internal.compiler.ast.ASTNode node , java.lang.Exception e ) { com.android.jack.ir.JNodeInternalError ice = translateException ( e ) ; if ( node != null ) { ice.addNode ( node.getClass ( ) . getName ( ) , node.toString ( ) , makeSourceInfo ( node ) ) ; } return ice ; }
Source:
public void testHeadsetAnswerCallNull ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mMockCallsManager.getRingingCall ( ) ) . thenReturn ( null ) ; boolean callAnswered = mBluetoothPhoneService.mBinder.answerCall ( ) ; org.mockito.Mockito.verify ( mMockCallsManager , org.mockito.Mockito.never ( ) ) . answerCall ( org.mockito.Matchers.any ( com.android.server.telecom.Call.class ) , org.mockito.Matchers.any ( int . class ) ) ; assertEquals ( callAnswered , false ) ; }

Target:
public void testHeadsetAnswerCallNull ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mMockCallsManager.getRingingCall ( ) ) . thenReturn ( null ) ; boolean callAnswered = mBluetoothPhoneService.mBinder.answerCall ( ) ; org.mockito.Mockito.verify ( mMockCallsManager , org.mockito.Mockito.never ( ) ) . answerCall ( org.mockito.Matchers.any ( com.android.server.telecom.Call.class ) , org.mockito.Matchers.any ( int . class ) ) ; org.junit.Assert.assertEquals ( callAnswered , false ) ; }
Source:
public javax.crypto.SecretKey getSecretKeyById ( java.lang.String id , java.lang.String algorithm ) throws java.security.InvalidKeyException { if ( id == null ) { throw new java.lang.NullPointerException ( "id == null" ) ; } final int keyRef = org.apache.harmony.xnet.provider.jsse.NativeCrypto.ENGINE_load_private_key ( ctx , id ) ; if ( keyRef == 0 ) { return null ; } org.apache.harmony.xnet.provider.jsse.OpenSSLKey pkey = new org.apache.harmony.xnet.provider.jsse.OpenSSLKey ( keyRef , this , id ) ; try { return pkey.getSecretKey ( algorithm ) ; } catch ( java.security.NoSuchAlgorithmException e ) { throw new java.security.InvalidKeyException ( e ) ; } }

Target:
public javax.crypto.SecretKey getSecretKeyById ( java.lang.String id , java.lang.String algorithm ) throws java.security.InvalidKeyException { if ( id == null ) { throw new java.lang.NullPointerException ( "id == null" ) ; } final long keyRef = org.apache.harmony.xnet.provider.jsse.NativeCrypto.ENGINE_load_private_key ( ctx , id ) ; if ( keyRef == 0 ) { return null ; } org.apache.harmony.xnet.provider.jsse.OpenSSLKey pkey = new org.apache.harmony.xnet.provider.jsse.OpenSSLKey ( keyRef , this , id ) ; try { return pkey.getSecretKey ( algorithm ) ; } catch ( java.security.NoSuchAlgorithmException e ) { throw new java.security.InvalidKeyException ( e ) ; } }
Source:
private com.android.jack.ir.ast.JExpressionStatement makeResetCall ( com.android.jack.ir.sourceinfo.SourceInfo info ) { assert ( ( lockClass ) != null ) && ( ( resetMethodId ) != null ) ; return new com.android.jack.ir.ast.JExpressionStatement ( info , new com.android.jack.ir.ast.JMethodCall ( info , null , resetClass , resetMethodId , JPrimitiveTypeEnum.VOID.getType ( ) , false ) ) ; }

Target:
private com.android.jack.ir.ast.JExpressionStatement makeResetCall ( com.android.jack.ir.sourceinfo.SourceInfo info ) { assert ( ( ( lockClass ) != null ) && ( ( resetClass ) != null ) ) && ( ( resetMethodId ) != null ) ; return new com.android.jack.ir.ast.JExpressionStatement ( info , new com.android.jack.ir.ast.JMethodCall ( info , null , resetClass , resetMethodId , JPrimitiveTypeEnum.VOID.getType ( ) , false ) ) ; }
Source:
public void testNotifyResponseUnknown ( ) throws org.json.JSONException { final int invalidTransactionId = 99999 ; final short transactionId = 46 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "status" , WifiAwareNative.AWARE_STATUS_SUCCESS ) ; args.putInt ( "value" , 0 ) ; args.putInt ( "response_type" , invalidTransactionId ) ; com.android.server.wifi.aware.WifiAwareHalMock.callNotifyResponse ( transactionId , com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }

Target:
public void testNotifyResponseUnknown ( ) throws org.json.JSONException { final int invalidTransactionId = 99999 ; final short transactionId = 46 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "status" , WifiAwareNative.AWARE_STATUS_SUCCESS ) ; args.putInt ( "response_type" , invalidTransactionId ) ; com.android.server.wifi.aware.WifiAwareHalMock.callNotifyResponse ( transactionId , com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }
Source:
public vogar.target.TargetRunner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile , java.lang.String [ ] args ) { if ( ( ( benchmarkClassChecker ) != null ) && ( benchmarkClassChecker.isBenchmark ( klass ) ) ) { return new vogar.target.CaliperTargetRunner ( monitor , profile , klass , args ) ; } else { return null ; } }

Target:
public vogar.target.TargetRunner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , java.lang.String [ ] args ) { if ( ( ( benchmarkClassChecker ) != null ) && ( benchmarkClassChecker.isBenchmark ( klass ) ) ) { return new vogar.target.CaliperTargetRunner ( monitor , klass , args ) ; } else { return null ; } }
Source:
private void reloadLogBuffer ( ) { mTable.removeAll ( ) ; synchronized ( mLogBuffer ) { mLogBuffer.clear ( ) ; mDeletedLogCount = 0 ; } if ( ( mReceiver ) == null ) { return ; } java.util.List < com.android.ddmuilib.logcat.LogCatMessage > addedMessages = mReceiver.getMessages ( ) . getAllMessages ( ) ; java.util.List < com.android.ddmuilib.logcat.LogCatMessage > deletedMessages = java.util.Collections.emptyList ( ) ; bufferChanged ( addedMessages , deletedMessages ) ; }

Target:
private void reloadLogBuffer ( ) { mTable.removeAll ( ) ; synchronized ( mLogBuffer ) { mLogBuffer.clear ( ) ; mDeletedLogCount = 0 ; } if ( ( ( mReceiver ) == null ) || ( ( mReceiver.getMessages ( ) ) == null ) ) { return ; } java.util.List < com.android.ddmuilib.logcat.LogCatMessage > addedMessages = mReceiver.getMessages ( ) . getAllMessages ( ) ; java.util.List < com.android.ddmuilib.logcat.LogCatMessage > deletedMessages = java.util.Collections.emptyList ( ) ; bufferChanged ( addedMessages , deletedMessages ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; if ( ( Build.VERSION.SDK_INT ) > 15 ) { android.support.test.espresso.base.InputManagerEventInjectionStrategy strat = new android.support.test.espresso.base.InputManagerEventInjectionStrategy ( ) ; strat.initialize ( ) ; injector = new android.support.test.espresso.base.EventInjector ( strat ) ; } else { android.support.test.espresso.base.WindowManagerEventInjectionStrategy strat = new android.support.test.espresso.base.WindowManagerEventInjectionStrategy ( ) ; strat.initialize ( ) ; injector = new android.support.test.espresso.base.EventInjector ( strat ) ; } }

Target:
public void setUp ( ) throws java.lang.Exception { if ( ( Build.VERSION.SDK_INT ) > 15 ) { android.support.test.espresso.base.InputManagerEventInjectionStrategy strat = new android.support.test.espresso.base.InputManagerEventInjectionStrategy ( ) ; strat.initialize ( ) ; injector = new android.support.test.espresso.base.EventInjector ( strat ) ; } else { android.support.test.espresso.base.WindowManagerEventInjectionStrategy strat = new android.support.test.espresso.base.WindowManagerEventInjectionStrategy ( ) ; strat.initialize ( ) ; injector = new android.support.test.espresso.base.EventInjector ( strat ) ; } }
Source:
public void setWallpaperPosition ( android.os.IBinder window , float x , float y , float xStep , float yStep ) { synchronized ( mWindowMap ) { long ident = android.os.Binder.clearCallingIdentity ( ) ; try { setWindowWallpaperPositionLocked ( windowForClientLocked ( this , window ) , x , y , xStep , yStep ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }

Target:
public void setWallpaperPosition ( android.os.IBinder window , float x , float y , float xStep , float yStep ) { synchronized ( mWindowMap ) { long ident = android.os.Binder.clearCallingIdentity ( ) ; try { setWindowWallpaperPositionLocked ( windowForClientLocked ( this , window , true ) , x , y , xStep , yStep ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }
Source:
public final java.util.stream.Stream < P_OUT > peek ( java.util.function.Consumer < ? super P_OUT > action ) { java.util.Objects.requireNonNull ( action ) ; return new java.util.stream.ReferencePipeline.StatelessOp < P_OUT , P_OUT > ( this , java.util.stream.StreamShape.REFERENCE , 0 ) { @ java.lang.Override java.util.stream.Sink < P_OUT > opWrapSink ( int flags , java.util.stream.Sink < P_OUT > sink ) { return new java.util.stream.Sink.ChainedReference < P_OUT , P_OUT > ( sink ) { @ java.lang.Override public void accept ( P_OUT u ) { action.accept ( u ) ; downstream.accept ( u ) ; } } ; } } ; }

Target:
public final java.util.stream.Stream < P_OUT > peek ( java.util.function.Consumer < ? super P_OUT > action ) { java.util.Objects.requireNonNull ( action ) ; return new java.util.stream.ReferencePipeline.StatelessOp < P_OUT , P_OUT > ( this , java.util.stream.StreamShape.REFERENCE , 0 ) { @ java.lang.Override public java.util.stream.Sink < P_OUT > opWrapSink ( int flags , java.util.stream.Sink < P_OUT > sink ) { return new java.util.stream.Sink.ChainedReference < P_OUT , P_OUT > ( sink ) { @ java.lang.Override public void accept ( P_OUT u ) { action.accept ( u ) ; downstream.accept ( u ) ; } } ; } } ; }
Source:
public void afterHandshake ( int session , int s , int c , java.net.Socket sock , java.io.FileDescriptor fd , org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] buffer = new byte [ 1 ] ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_read ( s , fd , callback , buffer , 0 , 1 , 0 ) ; assertEquals ( 42 , buffer [ 0 ] ) ; 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.apache.harmony.xnet.provider.jsse.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] buffer = new byte [ 1 ] ; org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_read ( s , fd , callback , buffer , 0 , 1 , 0 ) ; assertEquals ( 42 , buffer [ 0 ] ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }
Source:
public void run ( ) { synchronized ( this ) { if ( ( this . image ) != null ) { this . image.dispose ( ) ; } this . image = image ; this . viewNode = viewNode ; this . selected = null ; } }

Target:
public void run ( ) { synchronized ( this ) { this . image = image ; } }
Source:
public void callOnDropped ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.eclipse.adt.editors.layout.gscripts.IDragElement [ ] elements , com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback feedback , com.android.ide.eclipse.adt.editors.layout.gscripts.Point where , boolean isCopy , boolean sameCanvas ) { com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { rule.onDropped ( targetNode , elements , feedback , where , isCopy , sameCanvas ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDropped() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }

Target:
public void callOnDropped ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy targetNode , com.android.ide.eclipse.adt.editors.layout.gscripts.IDragElement [ ] elements , com.android.ide.eclipse.adt.editors.layout.gscripts.DropFeedback feedback , com.android.ide.eclipse.adt.editors.layout.gscripts.Point where ) { com.android.ide.eclipse.adt.editors.layout.gscripts.IViewRule rule = loadRule ( targetNode.getNode ( ) ) ; if ( rule != null ) { try { rule.onDropped ( targetNode , elements , feedback , where ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onDropped() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }
Source:
public void testEquals ( ) throws java.lang.Exception { com.android.internal.telephony.dataconnection.DataProfile dp1 = new com.android.internal.telephony.dataconnection.DataProfile ( mApn1 , false ) ; com.android.internal.telephony.dataconnection.DataProfile dp2 = new com.android.internal.telephony.dataconnection.DataProfile ( mApn1 , false ) ; assertEquals ( dp1 , dp2 ) ; dp2 = new com.android.internal.telephony.dataconnection.DataProfile ( mApn1 , true ) ; assertFalse ( dp1.equals ( dp2 ) ) ; dp2 = new com.android.internal.telephony.dataconnection.DataProfile ( mApn2 , false ) ; assertFalse ( dp1.equals ( dp2 ) ) ; }

Target:
public void testEquals ( ) throws java.lang.Exception { com.android.internal.telephony.dataconnection.DataProfile dp1 = new com.android.internal.telephony.dataconnection.DataProfile ( mApn1 ) ; com.android.internal.telephony.dataconnection.DataProfile dp2 = new com.android.internal.telephony.dataconnection.DataProfile ( mApn1 ) ; assertEquals ( dp1 , dp2 ) ; dp2 = new com.android.internal.telephony.dataconnection.DataProfile ( mApn2 ) ; assertFalse ( dp1.equals ( dp2 ) ) ; }
Source:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( ( method.getEnclosingType ( ) . isExternal ( ) ) || ( method.isNative ( ) ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.request.TransformationRequest tr = new com.android.jack.transformations.request.TransformationRequest ( method ) ; com.android.jack.transformations.ast.switches.SwitchStringSupport.Visitor visitor = new com.android.jack.transformations.ast.switches.SwitchStringSupport.Visitor ( tr , method ) ; visitor.accept ( method ) ; tr.commit ( ) ; }

Target:
public void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.request.TransformationRequest tr = new com.android.jack.transformations.request.TransformationRequest ( method ) ; com.android.jack.transformations.ast.switches.SwitchStringSupport.Visitor visitor = new com.android.jack.transformations.ast.switches.SwitchStringSupport.Visitor ( tr , method ) ; visitor.accept ( method ) ; tr.commit ( ) ; }
Source:
public void setOutput ( java.io.Writer writer ) { if ( writer instanceof java.io.BufferedWriter ) { this . writer = ( ( java.io.BufferedWriter ) ( writer ) ) ; } else { this . writer = new java.io.BufferedWriter ( writer , org.kxml2.io.KXmlSerializer.WRITE_BUFFER_SIZE ) ; } nspCounts [ 0 ] = 2 ; nspCounts [ 1 ] = 2 ; nspStack [ 0 ] = "" ; nspStack [ 1 ] = "" ; nspStack [ 2 ] = "xml" ; nspStack [ 3 ] = "http://www.w3.org/XML/1998/namespace" ; pending = false ; auto = 0 ; depth = 0 ; unicode = false ; }

Target:
public void setOutput ( java.io.Writer writer ) { this . writer = writer ; nspCounts [ 0 ] = 2 ; nspCounts [ 1 ] = 2 ; nspStack [ 0 ] = "" ; nspStack [ 1 ] = "" ; nspStack [ 2 ] = "xml" ; nspStack [ 3 ] = "http://www.w3.org/XML/1998/namespace" ; pending = false ; auto = 0 ; depth = 0 ; unicode = false ; }
Source:
public void test_flush ( ) throws java.io.IOException { java.util.zip.InflaterOutputStream ios = new java.util.zip.InflaterOutputStream ( os ) ; ios.close ( ) ; try { ios.flush ( ) ; fail ( "Should throw IOException" ) ; } catch ( java.io.IOException e ) { } ios = new java.util.zip.InflaterOutputStream ( os ) ; ios.flush ( ) ; ios.flush ( ) ; }

Target:
public void test_flush ( ) throws java.io.IOException { java.util.zip.InflaterOutputStream ios = new java.util.zip.InflaterOutputStream ( os ) ; ios.close ( ) ; try { ios.flush ( ) ; fail ( "Should throw IOException" ) ; } catch ( java.io.IOException e ) { } ios = new java.util.zip.InflaterOutputStream ( os ) ; ios.flush ( ) ; ios.flush ( ) ; ios.close ( ) ; }
Source:
public synchronized void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( ( method.getEnclosingType ( ) . isExternal ( ) ) || ( method.isNative ( ) ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.AssertionTransformer.Visitor visitor = new com.android.jack.transformations.AssertionTransformer.Visitor ( method.getEnclosingType ( ) ) ; visitor.accept ( method ) ; }

Target:
public synchronized void run ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) throws java.lang.Exception { if ( ( ( method.isNative ( ) ) || ( method.isAbstract ( ) ) ) || ( ! ( filter.accept ( this . getClass ( ) , method ) ) ) ) { return ; } com.android.jack.transformations.AssertionTransformer.Visitor visitor = new com.android.jack.transformations.AssertionTransformer.Visitor ( method.getEnclosingType ( ) ) ; visitor.accept ( method ) ; }
Source:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "SSL_RSA_WITH_RC4_128_MD5" , "SSL_RSA_WITH_RC4_128_SHA" , "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDH_RSA_WITH_RC4_128_SHA" , "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "SSL_RSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA" , "SSL_RSA_WITH_DES_CBC_SHA" , "SSL_DHE_RSA_WITH_DES_CBC_SHA" , "SSL_DHE_DSS_WITH_DES_CBC_SHA" , "SSL_RSA_EXPORT_WITH_RC4_40_MD5" , "SSL_RSA_EXPORT_WITH_DES40_CBC_SHA" , "SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA" , "SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }

Target:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "SSL_RSA_WITH_RC4_128_MD5" , "SSL_RSA_WITH_RC4_128_SHA" , "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDH_RSA_WITH_RC4_128_SHA" , "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "SSL_RSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }
Source:
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 ) ; } }

Target:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; mNM.notify ( 2 , notificationWithNumbers ( 2 ) ) ; mNM.cancel ( 2 ) ; }
Source:
public boolean isCallerActiveScorer ( int callingUid ) { android.net.NetworkScorerAppManager.NetworkScorerAppData defaultApp = getActiveScorer ( ) ; if ( defaultApp == null ) { return false ; } if ( callingUid != ( defaultApp.packageUid ) ) { return false ; } return ( mContext.checkCallingPermission ( Manifest.permission.SCORE_NETWORKS ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ; }

Target:
public boolean isCallerActiveScorer ( int callingUid ) { android.net.NetworkScorerAppManager.NetworkScorerAppData defaultApp = getActiveScorer ( ) ; if ( defaultApp == null ) { return false ; } return callingUid == ( defaultApp.packageUid ) ; }
Source:
public void testEndCallWithNoForegroundCall ( ) throws java.lang.Exception { com.android.server.telecom.Call call = org.mockito.Mockito.mock ( com.android.server.telecom.Call.class ) ; org.mockito.Mockito.when ( call.getState ( ) ) . thenReturn ( CallState.ACTIVE ) ; org.mockito.Mockito.when ( mFakeCallsManager.getFirstCallWithState ( org.mockito.Matchers.any ( ) ) ) . thenReturn ( call ) ; org.junit.Assert.assertTrue ( mTSIBinder.endCall ( ) ) ; org.mockito.Mockito.verify ( call ) . disconnect ( ) ; }

Target:
public void testEndCallWithNoForegroundCall ( ) throws java.lang.Exception { com.android.server.telecom.Call call = org.mockito.Mockito.mock ( com.android.server.telecom.Call.class ) ; org.mockito.Mockito.when ( call.getState ( ) ) . thenReturn ( CallState.ACTIVE ) ; org.mockito.Mockito.when ( mFakeCallsManager.getFirstCallWithState ( org.mockito.Matchers.any ( ) ) ) . thenReturn ( call ) ; org.junit.Assert.assertTrue ( mTSIBinder.endCall ( null ) ) ; org.mockito.Mockito.verify ( call ) . disconnect ( ) ; }
Source:
private synchronized void updateNewIds ( int addrId , int browseId ) { mCurrAddrPlayerID = addrId ; mCurrBrowsePlayerID = browseId ; if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( ( ( ( ( "Updated CurrentIds: AddrPlayerID:" + ( mCurrAddrPlayerID ) ) + " to " ) + addrId ) + ", BrowsePlayerID:" ) + ( mCurrBrowsePlayerID ) ) + " to " ) + browseId ) ) ; }

Target:
private void updateNewIds ( int addrId , int browseId ) { mCurrAddrPlayerID = addrId ; mCurrBrowsePlayerID = browseId ; if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( ( ( ( ( ( ( "Updated CurrentIds: AddrPlayerID:" + ( mCurrAddrPlayerID ) ) + " to " ) + addrId ) + ", BrowsePlayerID:" ) + ( mCurrBrowsePlayerID ) ) + " to " ) + browseId ) ) ; }
Source:
private void answerIncomingCall ( android.content.Context context , int videoState ) { com.android.incallui.call.CallList callList = com.android.incallui.InCallPresenter.getInstance ( ) . getCallList ( ) ; if ( callList == null ) { com.android.incallui.StatusBarNotifier.clearAllCallNotifications ( context ) ; com.android.dialer.common.LogUtil.e ( "NotificationBroadcastReceiver.answerIncomingCall" , "call list is empty" ) ; } else { com.android.incallui.call.DialerCall call = callList.getIncomingCall ( ) ; if ( call != null ) { call.answer ( videoState ) ; com.android.incallui.InCallPresenter.getInstance ( ) . showInCall ( false , false ) ; } } }

Target:
private void answerIncomingCall ( int videoState ) { com.android.incallui.call.CallList callList = com.android.incallui.InCallPresenter.getInstance ( ) . getCallList ( ) ; if ( callList == null ) { com.android.incallui.StatusBarNotifier.clearAllCallNotifications ( ) ; com.android.dialer.common.LogUtil.e ( "NotificationBroadcastReceiver.answerIncomingCall" , "call list is empty" ) ; } else { com.android.incallui.call.DialerCall call = callList.getIncomingCall ( ) ; if ( call != null ) { call.answer ( videoState ) ; com.android.incallui.InCallPresenter.getInstance ( ) . showInCall ( false , false ) ; } } }
Source:
public com.google.common.collect.ImmutableMap.Builder < K , V > putAll ( java.util.Map < ? extends K , ? extends V > map ) { entries.ensureCapacity ( ( ( entries.size ( ) ) + ( map.size ( ) ) ) ) ; for ( java.util.Map.Entry < ? extends K , ? extends V > entry : map.entrySet ( ) ) { put ( entry.getKey ( ) , entry.getValue ( ) ) ; } return this ; }

Target:
public com.google.common.collect.ImmutableMap.Builder < K , V > putAll ( java.util.Map < ? extends K , ? extends V > map ) { ensureCapacity ( ( ( size ) + ( map.size ( ) ) ) ) ; for ( java.util.Map.Entry < ? extends K , ? extends V > entry : map.entrySet ( ) ) { put ( entry ) ; } return this ; }
Source:
public void testToXml3 ( ) throws java.lang.Exception { java.lang.String xml = "" + ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<root>\n" ) + " <!-- ============== -->\n" ) + " <!-- Generic styles -->\n" ) + " <!-- ============== -->\n" ) + "</root>" ) ; org.w3c.dom.Document doc = com.android.utils.XmlUtilsTest.parse ( xml ) ; java.lang.String formatted = com.android.utils.XmlUtils.toXml ( doc , true ) ; assertEquals ( xml , formatted ) ; }

Target:
public void testToXml3 ( ) throws java.lang.Exception { java.lang.String xml = "" + ( ( ( ( ( "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" + "<root>\n" ) + " <!-- ============== -->\n" ) + " <!-- Generic styles -->\n" ) + " <!-- ============== -->\n" ) + "</root>" ) ; org.w3c.dom.Document doc = com.android.utils.XmlUtilsTest.parse ( xml ) ; java.lang.String formatted = com.android.utils.XmlUtils.toXml ( doc ) ; assertEquals ( xml , formatted ) ; }
Source:
public synchronized java.lang.Throwable [ ] getSuppressed ( java.lang.Throwable receiver ) { java.util.List < java.lang.Throwable > list = map.get ( receiver ) ; if ( ( list == null ) || ( list.isEmpty ( ) ) ) { return com.google.devtools.build.android.desugar.runtime.ThrowableExtension.AbstractDesugaringStrategy.EMPTY_THROWABLE_ARRAY ; } return list.toArray ( new java.lang.Throwable [ 0 ] ) ; }

Target:
public java.lang.Throwable [ ] getSuppressed ( java.lang.Throwable receiver ) { java.util.List < java.lang.Throwable > list = map.get ( receiver , false ) ; if ( ( list == null ) || ( list.isEmpty ( ) ) ) { return com.google.devtools.build.android.desugar.runtime.ThrowableExtension.AbstractDesugaringStrategy.EMPTY_THROWABLE_ARRAY ; } return list.toArray ( com.google.devtools.build.android.desugar.runtime.ThrowableExtension.AbstractDesugaringStrategy.EMPTY_THROWABLE_ARRAY ) ; }
Source:
public boolean mkdirs ( ) { if ( exists ( ) ) { return false ; } if ( mkdir ( ) ) { return true ; } java.lang.String parentDir = getParent ( ) ; if ( parentDir == null ) { return false ; } return ( new java.io.File ( parentDir ) . mkdirs ( ) ) && ( mkdir ( ) ) ; }

Target:
public boolean mkdirs ( ) { return mkdirs ( false ) ; }
Source:
public synchronized void reset ( ) throws java.io.IOException { if ( ( buf ) == null ) { throw new java.io.IOException ( "Stream is closed" ) ; } if ( ( - 1 ) == ( markpos ) ) { throw new java.io.IOException ( "Mark has been invalidated." ) ; } pos = markpos ; }

Target:
public synchronized void reset ( ) throws java.io.IOException { if ( ( buf ) == null ) { throw new java.io.IOException ( "Stream is closed" ) ; } if ( ( markpos ) == ( - 1 ) ) { throw new java.io.IOException ( "Mark has been invalidated." ) ; } pos = markpos ; }
Source:
public com.android.sched.util.codec.KeyValueCodec < T > ignoreCase ( ) { this . ignoreCase = true ; for ( int idx = 0 ; idx < ( this . entries.length ) ; idx ++ ) { this . entries [ idx ] . key = this . entries [ idx ] . key.toLowerCase ( ) ; } return this ; }

Target:
public com.android.sched.util.codec.KeyValueCodec < T > ignoreCase ( ) { this . ignoreCase = true ; return this ; }
Source:
void startQueuedActions ( ) { assertRunOnServiceThread ( ) ; for ( com.android.server.hdmi.HdmiCecFeatureAction action : mActions ) { if ( ! ( action.started ( ) ) ) { android.util.Slog.i ( com.android.server.hdmi.HdmiCecLocalDevice.TAG , ( "Starting queued action:" + action ) ) ; action.start ( ) ; } } }

Target:
void startQueuedActions ( ) { assertRunOnServiceThread ( ) ; for ( com.android.server.hdmi.HdmiCecFeatureAction action : new java.util.ArrayList ( mActions ) ) { if ( ! ( action.started ( ) ) ) { android.util.Slog.i ( com.android.server.hdmi.HdmiCecLocalDevice.TAG , ( "Starting queued action:" + action ) ) ; action.start ( ) ; } } }
Source:
public boolean equals ( java.lang.Object obj ) { if ( obj instanceof com.android.sdklib.internal.repository.SdkSource ) { com.android.sdklib.internal.repository.SdkSource rs = ( ( com.android.sdklib.internal.repository.SdkSource ) ( obj ) ) ; return ( ( rs.isUserSource ( ) ) == ( this . isUserSource ( ) ) ) && ( rs.getUrl ( ) . equals ( this . getUrl ( ) ) ) ; } return false ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( obj instanceof com.android.sdklib.internal.repository.SdkSource ) { com.android.sdklib.internal.repository.SdkSource rs = ( ( com.android.sdklib.internal.repository.SdkSource ) ( obj ) ) ; return rs.getUrl ( ) . equals ( this . getUrl ( ) ) ; } return false ; }