auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testAesCbcHmacMd5Udp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacMd5Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public void dispose ( ) { mCi.unSetOnSignalStrengthUpdate ( this ) ; mUiccController.unregisterForIccChanged ( this ) ; mCi.unregisterForCellInfoList ( this ) ; mSubscriptionManager.removeOnSubscriptionsChangedListener ( mOnSubscriptionsChangedListener ) ; mCi.unregisterForImsNetworkStateChanged ( this ) ; }

Target:
public void dispose ( ) { mCi.unSetOnSignalStrengthUpdate ( this ) ; mUiccController.unregisterForIccChanged ( this ) ; mCi.unregisterForCellInfoList ( this ) ; mSubscriptionManager.removeOnSubscriptionsChangedListener ( mOnSubscriptionsChangedListener ) ; mCi.unregisterForImsNetworkStateChanged ( this ) ; mPhone.getCarrierActionAgent ( ) . unregisterForCarrierAction ( this , com.android.internal.telephony.CarrierActionAgent.CARRIER_ACTION_SET_RADIO_ENABLED ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { mCacheQueue = new com.android.volley.mock.WaitableQueue ( ) ; mNetworkQueue = new com.android.volley.mock.WaitableQueue ( ) ; mCache = new com.android.volley.mock.MockCache ( ) ; mDelivery = new com.android.volley.mock.MockResponseDelivery ( ) ; mRequest = new com.android.volley.mock.MockRequest ( ) ; mDispatcher = new com.android.volley.CacheDispatcher ( mCacheQueue , mNetworkQueue , mCache , mDelivery ) ; mDispatcher.start ( ) ; }

Target:
public void runStopsOnQuit ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mCacheQueue.take ( ) ) . then ( new com.android.volley.CacheDispatcherTest.WaitForever ( ) ) ; mDispatcher.start ( ) ; mDispatcher.quit ( ) ; mDispatcher.join ( 1000 ) ; }
Source:
public void run ( ) { try { imsManager.getConfigInterface ( ) . setProvisionedValue ( ImsConfig.ConfigConstants.VOICE_OVER_WIFI_ROAMING , value ) ; } catch ( com.android.ims.ImsException e ) { } }

Target:
private void setWfcModeInternalForSlot ( int wfcMode ) { final int value = wfcMode ; java.lang.Thread thread = new java.lang.Thread ( ( ) -> { try { getConfigInterface ( ) . setProvisionedValue ( ImsConfig.ConfigConstants.VOICE_OVER_WIFI_MODE , value ) ; } catch ( com.android.ims.ImsException e ) { } } ) ; thread.start ( ) ; }
Source:
private com.intellij.execution.RunnerAndConfigurationSettings createConfiguration ( @ org.jetbrains.annotations.Nullable com.intellij.openapi.project.Project project , com.intellij.openapi.module.Module module ) { if ( project == null ) { return null ; } com.intellij.execution.RunnerAndConfigurationSettings settings = com.intellij.execution.RunManagerEx.getInstanceEx ( project ) . createRunConfiguration ( ( ( ( module.getName ( ) ) + " - " ) + ( AppEngineRunConfiguration.NAME ) ) , getConfigurationFactory ( ) ) ; final com.google.gct.idea.appengine.run.AppEngineRunConfiguration configuration = ( ( com.google.gct.idea.appengine.run.AppEngineRunConfiguration ) ( settings.getConfiguration ( ) ) ) ; configuration.setModule ( module ) ; return settings ; }

Target:
public boolean isConfigurationFromContext ( com.google.gct.idea.appengine.run.AppEngineRunConfiguration configuration , com.intellij.execution.actions.ConfigurationContext context ) { return false ; }
Source:
private org.eclipse.jdt.core.dom.TagElement createEscapedJciteTagElement ( org.eclipse.jdt.core.dom.TagElement tagNode ) { org.eclipse.jdt.core.dom.AST ast = tagNode.getAST ( ) ; org.eclipse.jdt.core.dom.TagElement replacement = ast.newTagElement ( ) ; replacement.fragments ( ) . add ( com.google.currysrc.api.transform.ast.AstNodes.createTextElement ( ast , "{@literal @}.jcite" ) ) ; replacement.fragments ( ) . addAll ( org.eclipse.jdt.core.dom.ASTNode.copySubtrees ( ast , tagNode.fragments ( ) ) ) ; return replacement ; }

Target:
private org.eclipse.jdt.core.dom.TagElement createEscapedJciteTagElement ( org.eclipse.jdt.core.dom.TagElement tagNode ) { org.eclipse.jdt.core.dom.AST ast = tagNode.getAST ( ) ; org.eclipse.jdt.core.dom.TagElement replacement = ast.newTagElement ( ) ; replacement.fragments ( ) . add ( com.google.currysrc.api.process.ast.AstNodes.createTextElement ( ast , com.android.icu4j.srcgen.TranslateJcite.ESCAPED_JCITE_TAG ) ) ; replacement.fragments ( ) . addAll ( org.eclipse.jdt.core.dom.ASTNode.copySubtrees ( ast , tagNode.fragments ( ) ) ) ; return replacement ; }
Source:
public void close ( ) throws java.io.IOException { if ( closed ) { return ; } closed = true ; input.close ( ) ; if ( ! ( done ) ) { try { cipher.doFinal ( ) ; } catch ( javax.crypto.BadPaddingException | javax.crypto.IllegalBlockSizeException ex ) { } } ostart = 0 ; ofinish = 0 ; }

Target:
public void close ( ) throws java.io.IOException { if ( closed ) { return ; } closed = true ; input.close ( ) ; if ( ! ( done ) ) { try { cipher.doFinal ( ) ; } catch ( javax.crypto.BadPaddingException | javax.crypto.IllegalBlockSizeException ex ) { if ( ex instanceof javax.crypto.AEADBadTagException ) { throw new java.io.IOException ( ex ) ; } } } ostart = 0 ; ofinish = 0 ; }
Source:
private boolean waitForFinalization ( java.lang.Object object ) { sleepFor ( java.lang.Daemons.FinalizerDaemon.INSTANCE.finalizingStartedNanos , java.lang.Daemons.MAX_FINALIZE_NANOS ) ; return object != ( java.lang.Daemons.FinalizerDaemon.INSTANCE.finalizingObject ) ; }

Target:
public void run ( ) { while ( isRunning ( ) ) { boolean waitSuccessful = waitForObject ( ) ; if ( waitSuccessful == false ) { continue ; } boolean finalized = waitForFinalization ( ) ; if ( ( ! finalized ) && ( ! ( dalvik.system.VMRuntime.getRuntime ( ) . isDebuggerActive ( ) ) ) ) { java.lang.Object finalizedObject = java.lang.Daemons.FinalizerDaemon.INSTANCE.finalizingObject ; if ( finalizedObject != null ) { java.lang.Daemons.FinalizerWatchdogDaemon.finalizerTimedOut ( finalizedObject ) ; break ; } } } }
Source:
public void onServiceDisconnected ( android.content.ComponentName name ) { mService.set ( null ) ; }

Target:
public void dispose ( ) { try { android.telephony.mbms.vendor.IMbmsDownloadService downloadService = mService.get ( ) ; if ( downloadService == null ) { android.util.Log.i ( android.telephony.MbmsDownloadManager.LOG_TAG , "Service already dead" ) ; return ; } downloadService.dispose ( mSubscriptionId ) ; } catch ( android.os.RemoteException e ) { android.util.Log.i ( android.telephony.MbmsDownloadManager.LOG_TAG , "Remote exception while disposing of service" ) ; } finally { mService.set ( null ) ; android.telephony.MbmsDownloadManager.sIsInitialized.set ( false ) ; } }
Source:
private static boolean isNonBridgeDefaultMethod ( int access ) { return com.google.devtools.build.android.desugar.BitFlags.noneSet ( access , ( ( ( ( org.objectweb.asm.Opcodes.ACC_ABSTRACT ) | ( org.objectweb.asm.Opcodes.ACC_STATIC ) ) | ( org.objectweb.asm.Opcodes.ACC_BRIDGE ) ) | ( org.objectweb.asm.Opcodes.ACC_PRIVATE ) ) ) ; }

Target:
private boolean shouldStubAsDefaultMethod ( int access , java.lang.String name , java.lang.String desc ) { return ( com.google.devtools.build.android.desugar.BitFlags.noneSet ( access , ( ( ( ( org.objectweb.asm.Opcodes.ACC_ABSTRACT ) | ( org.objectweb.asm.Opcodes.ACC_STATIC ) ) | ( org.objectweb.asm.Opcodes.ACC_BRIDGE ) ) | ( org.objectweb.asm.Opcodes.ACC_PRIVATE ) ) ) ) && ( ! ( instanceMethods.contains ( ( ( name + ":" ) + desc ) ) ) ) ; }
Source:
private void test_PBKDF2 ( char [ ] password , byte [ ] salt , int iterations , int keyLength , byte [ ] expected ) throws java.lang.Exception { javax.crypto.SecretKeyFactory factory = javax.crypto.SecretKeyFactory.getInstance ( "PBKDF2WithHmacSHA1" ) ; java.security.spec.KeySpec ks = new javax.crypto.spec.PBEKeySpec ( password , salt , iterations , keyLength ) ; javax.crypto.SecretKey key = factory.generateSecret ( ks ) ; assertTrue ( java.util.Arrays.equals ( expected , key.getEncoded ( ) ) ) ; }

Target:
private void test_PBKDF2_UTF8 ( char [ ] password , byte [ ] salt , int iterations , int keyLength , byte [ ] expected ) throws java.lang.Exception { javax.crypto.SecretKeyFactory factory = javax.crypto.SecretKeyFactory.getInstance ( "PBKDF2WithHmacSHA1" ) ; java.security.spec.KeySpec ks = new javax.crypto.spec.PBEKeySpec ( password , salt , iterations , keyLength ) ; javax.crypto.SecretKey key = factory.generateSecret ( ks ) ; assertTrue ( java.util.Arrays.equals ( expected , key.getEncoded ( ) ) ) ; }
Source:
private static void unprovide ( java.lang.String type , java.lang.String algorithm ) { java.util.Set < java.lang.String > algorithms = libcore.java.security.StandardNames.PROVIDER_ALGORITHMS.get ( type ) ; assertNotNull ( algorithms ) ; assertTrue ( algorithm , algorithms.remove ( algorithm.toUpperCase ( ) ) ) ; if ( algorithms.isEmpty ( ) ) { assertNotNull ( libcore.java.security.StandardNames.PROVIDER_ALGORITHMS.remove ( type ) ) ; } }

Target:
private static void unprovide ( java.lang.String type , java.lang.String algorithm ) { java.util.Set < java.lang.String > algorithms = libcore.java.security.StandardNames.PROVIDER_ALGORITHMS.get ( type ) ; assertNotNull ( algorithms ) ; assertTrue ( algorithm , algorithms.remove ( algorithm.toUpperCase ( java.util.Locale.ROOT ) ) ) ; if ( algorithms.isEmpty ( ) ) { assertNotNull ( libcore.java.security.StandardNames.PROVIDER_ALGORITHMS.remove ( type ) ) ; } }
Source:
public void checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType , java.net.Socket socket ) throws java.security.cert.CertificateException { javax.net.ssl.SSLSession session = null ; javax.net.ssl.SSLParameters parameters = null ; if ( socket instanceof javax.net.ssl.SSLSocket ) { javax.net.ssl.SSLSocket sslSocket = ( ( javax.net.ssl.SSLSocket ) ( socket ) ) ; session = org.conscrypt.TrustManagerImpl.getHandshakeSessionOrThrow ( sslSocket ) ; parameters = sslSocket.getSSLParameters ( ) ; } checkTrusted ( chain , authType , session , parameters , false ) ; }

Target:
public void checkServerTrusted ( java.security.cert.X509Certificate [ ] chain , java.lang.String authType , javax.net.ssl.SSLEngine engine ) throws java.security.cert.CertificateException { getTrustedChainForServer ( chain , authType , engine ) ; }
Source:
public byte [ ] toDex ( java.io.Writer humanOut , boolean verbose ) throws java.io.IOException { boolean annotate = humanOut != null ; com.android.dx.util.ByteArrayAnnotatedOutput result = toDex0 ( annotate , verbose ) ; if ( annotate ) { result.writeAnnotationsTo ( humanOut ) ; } return result.getArray ( ) ; }

Target:
public com.android.dx.util.ByteArrayAnnotatedOutput writeTo ( com.android.dx.dex.file.DexFile.Storage storage ) { return toDex0 ( false , false , storage ) ; }
Source:
private static boolean checkExtendedSectionExists ( java.util.List < com.android.rs.test.XmpDepthDecode.Section > sections , java.lang.String sectionName ) { java.lang.String extendedHeader = ( ( com.android.rs.test.XmpDepthDecode.XMP_EXTENSION_HEADER ) + sectionName ) + "" ; for ( com.android.rs.test.XmpDepthDecode.Section section : sections ) { if ( com.android.rs.test.XmpDepthDecode.hasHeader ( section.data , extendedHeader ) ) { return true ; } } return false ; }

Target:
private static boolean checkExtendedSectionExists ( java.util.List < com.android.rs.refocus.XmpDepthDecode.Section > sections , java.lang.String sectionName ) { java.lang.String extendedHeader = ( ( com.android.rs.refocus.XmpDepthDecode.XMP_EXTENSION_HEADER ) + sectionName ) + "" ; for ( com.android.rs.refocus.XmpDepthDecode.Section section : sections ) { if ( com.android.rs.refocus.XmpDepthDecode.hasHeader ( section.data , extendedHeader ) ) { return true ; } } return false ; }
Source:
public static final android.os.Process.ProcessStartResult start ( final java.lang.String processClass , final java.lang.String niceName , int uid , int gid , int [ ] gids , int debugFlags , int targetSdkVersion , java.lang.String [ ] zygoteArgs ) { try { return android.os.Process.startViaZygote ( processClass , niceName , uid , gid , gids , debugFlags , targetSdkVersion , zygoteArgs ) ; } catch ( android.os.ZygoteStartFailedEx ex ) { android.util.Log.e ( android.os.Process.LOG_TAG , "Starting VM process through Zygote failed" ) ; throw new java.lang.RuntimeException ( "Starting VM process through Zygote failed" , ex ) ; } }

Target:
public static final android.os.Process.ProcessStartResult start ( final java.lang.String processClass , final java.lang.String niceName , int uid , int gid , int [ ] gids , int debugFlags , int targetSdkVersion , java.lang.String seInfo , java.lang.String [ ] zygoteArgs ) { try { return android.os.Process.startViaZygote ( processClass , niceName , uid , gid , gids , debugFlags , targetSdkVersion , seInfo , zygoteArgs ) ; } catch ( android.os.ZygoteStartFailedEx ex ) { android.util.Log.e ( android.os.Process.LOG_TAG , "Starting VM process through Zygote failed" ) ; throw new java.lang.RuntimeException ( "Starting VM process through Zygote failed" , ex ) ; } }
Source:
private void explicitCallTransfer ( ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "explicitCallTransfer" ) ; if ( ( mCalls.size ( ) ) < 2 ) { return ; } if ( handleCallActionNative ( HeadsetClientHalConstants.CALL_ACTION_CHLD_4 , ( - 1 ) ) ) { addQueuedAction ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EXPLICIT_CALL_TRANSFER ) ; } else { android.util.Log.e ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "ERROR: Couldn't transfer call" ) ; } }

Target:
private void explicitCallTransfer ( ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "explicitCallTransfer" ) ; } if ( ( mCalls.size ( ) ) < 2 ) { return ; } if ( handleCallActionNative ( HeadsetClientHalConstants.CALL_ACTION_CHLD_4 , ( - 1 ) ) ) { addQueuedAction ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EXPLICIT_CALL_TRANSFER ) ; } else { android.util.Log.e ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , "ERROR: Couldn't transfer call" ) ; } }
Source:
public void testAesCbcHmacSha512Tcp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , android.net.cts.IpSecManagerTest.getKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }

Target:
public void testAuthTcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , null , auth , false , 1 , true ) ; }
Source:
public void onNewPicture ( android.graphics.Picture picture ) { if ( ( mPictureListener ) == null ) return ; org.chromium.content.common.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onNewPicture" ) ; mPictureListener.onNewPicture ( mWebView , picture ) ; org.chromium.content.common.TraceEvent.end ( ) ; }

Target:
public void onNewPicture ( android.graphics.Picture picture ) { if ( ( mPictureListener ) == null ) return ; org.chromium.base.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onNewPicture" ) ; mPictureListener.onNewPicture ( mWebView , picture ) ; org.chromium.base.TraceEvent.end ( ) ; }
Source:
public void deactivateDataCallResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo ) { }

Target:
public void iccOpenLogicalChannelResponse ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , int channelId , java.util.ArrayList < java.lang.Byte > selectResponse ) { java.util.ArrayList < java.lang.Integer > arr = new java.util.ArrayList < > ( ) ; arr.add ( channelId ) ; for ( int i = 0 ; i < ( selectResponse.size ( ) ) ; i ++ ) { arr.add ( ( ( int ) ( selectResponse.get ( i ) ) ) ) ; } responseIntArrayList ( responseInfo , arr ) ; }
Source:
public boolean configureRoaming ( com.android.server.wifi.WifiNative.RoamingConfig config ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "configureRoaming " ) ; try { if ( ( mWifiVendorHal ) != null ) { return mWifiVendorHal.configureRoaming ( config ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } return false ; }

Target:
public boolean startPktFateMonitoring ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.startPktFateMonitoring ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return ( com.android.server.wifi.WifiNative.startPktFateMonitoringNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ) == ( com.android.server.wifi.WifiNative.WIFI_SUCCESS ) ; } else { return false ; } } } }
Source:
com.android.sched.vfs.DirectFS.DirectVDir getVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.DirectFS.DirectVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotDirectoryException { assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) ) != 0 ; java.io.File file = new java.io.File ( parent.getNativePath ( ) , name ) ; com.android.sched.util.file.Directory.check ( file , new com.android.sched.util.location.DirectoryLocation ( file ) ) ; return new com.android.sched.vfs.DirectFS.DirectNonRootVDir ( this , parent , name ) ; }

Target:
com.android.sched.vfs.ParentVDir getVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotDirectoryException { assert ! ( isClosed ( ) ) ; assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) ) != 0 ; java.io.File path = getNativeFile ( parent.getPath ( ) , name ) ; com.android.sched.util.file.Directory.check ( path , new com.android.sched.util.location.DirectoryLocation ( path ) ) ; return new com.android.sched.vfs.ParentVDir ( this , parent , name ) ; }
Source:
private java.util.List < com.android.ddmuilib.logcat.LogCatMessage > applyCurrentFilters ( java.util.List < com.android.ddmuilib.logcat.LogCatMessage > msgList ) { java.util.List < com.android.ddmuilib.logcat.LogCatMessage > filteredItems = new java.util.ArrayList < com.android.ddmuilib.logcat.LogCatMessage > ( msgList.size ( ) ) ; for ( com.android.ddmuilib.logcat.LogCatMessage msg : msgList ) { if ( isMessageAccepted ( msg , mCurrentFilters ) ) { filteredItems.add ( msg ) ; } } return filteredItems ; }

Target:
private java.util.List < com.android.ddmlib.logcat.LogCatMessage > applyCurrentFilters ( java.util.List < com.android.ddmlib.logcat.LogCatMessage > msgList ) { java.util.List < com.android.ddmlib.logcat.LogCatMessage > filteredItems = new java.util.ArrayList < com.android.ddmlib.logcat.LogCatMessage > ( msgList.size ( ) ) ; for ( com.android.ddmlib.logcat.LogCatMessage msg : msgList ) { if ( isMessageAccepted ( msg , mCurrentFilters ) ) { filteredItems.add ( msg ) ; } } return filteredItems ; }
Source:
void init ( org.bouncycastle.crypto.tls.TlsContext context ) { this . context = context ; this . handshakeHash = new org.bouncycastle.crypto.tls.DeferredHash ( ) ; this . handshakeHash.init ( context ) ; }

Target:
void finaliseHandshake ( ) throws java.io.IOException { if ( ( ( ( ( readCompression ) != ( pendingCompression ) ) || ( ( writeCompression ) != ( pendingCompression ) ) ) || ( ( readCipher ) != ( pendingCipher ) ) ) || ( ( writeCipher ) != ( pendingCipher ) ) ) { throw new org.bouncycastle.crypto.tls.TlsFatalAlert ( AlertDescription.handshake_failure ) ; } this . pendingCompression = null ; this . pendingCipher = null ; }
Source:
protected boolean assertEquals ( java.lang.String message , double expected , double actual , double error ) { boolean result = ( java.lang.Double.isInfinite ( expected ) ) ? expected == actual : ! ( ( java.lang.Math.abs ( ( expected - actual ) ) ) > error ) ; return handleAssert ( result , message , ( ( java.lang.String.valueOf ( expected ) ) + ( error == 0 ? "" : ( " (within " + error ) + ")" ) ) , java.lang.String.valueOf ( actual ) ) ; }

Target:
protected static boolean assertEquals ( java.lang.String message , double expected , double actual , double error ) { boolean result = ( java.lang.Double.isInfinite ( expected ) ) ? expected == actual : ! ( ( java.lang.Math.abs ( ( expected - actual ) ) ) > error ) ; return android.icu.dev.test.TestFmwk.handleAssert ( result , message , ( ( java.lang.String.valueOf ( expected ) ) + ( error == 0 ? "" : ( " (within " + error ) + ")" ) ) , java.lang.String.valueOf ( actual ) ) ; }
Source:
public void onCallStateChanged ( int state , java.lang.String incomingNumber ) { if ( com.android.phone.CallFeaturesSetting.DBG ) com.android.phone.CallFeaturesSetting.log ( ( "PhoneStateListener onCallStateChanged: state is " + state ) ) ; if ( ( mEnableVideoCalling ) != null ) { android.telephony.TelephonyManager telephonyManager = ( ( android.telephony.TelephonyManager ) ( getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; mEnableVideoCalling.setEnabled ( ( ( telephonyManager.getCallState ( ) ) == ( android.telephony.TelephonyManager.CALL_STATE_IDLE ) ) ) ; } }

Target:
public void onCallStateChanged ( int state , java.lang.String incomingNumber ) { if ( com.android.phone.CallFeaturesSetting.DBG ) com.android.phone.CallFeaturesSetting.log ( ( "PhoneStateListener onCallStateChanged: state is " + state ) ) ; if ( ( mEnableVideoCalling ) != null ) { android.telephony.TelephonyManager telephonyManager = ( ( android.telephony.TelephonyManager ) ( getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; mEnableVideoCalling.setEnabled ( ( ( telephonyManager.getCallState ( ) ) == ( android.telephony.TelephonyManager.CALL_STATE_IDLE ) ) ) ; mButtonWifiCalling.setEnabled ( ( ( telephonyManager.getCallState ( ) ) == ( android.telephony.TelephonyManager.CALL_STATE_IDLE ) ) ) ; } }
Source:
private void queryProfileOwner ( boolean showToast ) { try { android.content.Intent intent = new android.content.Intent ( ByodHelperActivity.ACTION_QUERY_PROFILE_OWNER ) ; startActivityForResult ( intent , com.android.cts.verifier.managedprovisioning.ByodFlowTestActivity.REQUEST_PROFILE_OWNER_STATUS ) ; } catch ( android.content.ActivityNotFoundException e ) { android.util.Log.d ( TAG , "queryProfileOwner: ActivityNotFoundException" , e ) ; setTestResult ( mProfileOwnerInstalled , TestResult.TEST_RESULT_FAILED ) ; if ( showToast ) { showToast ( R.string.provisioning_byod_no_activity ) ; } } }

Target:
private void checkDiskEncryption ( ) { try { android.content.Intent intent = new android.content.Intent ( ByodHelperActivity.ACTION_CHECK_DISK_ENCRYPTION ) ; startActivityForResult ( intent , com.android.cts.verifier.managedprovisioning.ByodFlowTestActivity.REQUEST_CHECK_DISK_ENCRYPTION ) ; } catch ( android.content.ActivityNotFoundException e ) { android.util.Log.d ( com.android.cts.verifier.managedprovisioning.ByodFlowTestActivity.TAG , "checkDiskEncryption: ActivityNotFoundException" , e ) ; setTestResult ( mDiskEncryptionTest , TestResult.TEST_RESULT_FAILED ) ; showToast ( R.string.provisioning_byod_no_activity ) ; } }
Source:
private com.google.gdt.eclipse.login.common.GoogleLoginState createGoogleLoginState ( ) { com.google.gdt.eclipse.login.common.GoogleLoginState state = new com.google.gdt.eclipse.login.common.GoogleLoginState ( clientInfo.getId ( ) , clientInfo.getInfo ( ) , com.google.gct.login.OAuthScopeRegistry.getScopes ( ) , new com.google.gct.login.GoogleLogin.AndroidPreferencesOAuthDataStore ( ) , uiFacade , new com.google.gct.login.GoogleLogin.AndroidLoggerFacade ( ) ) ; return state ; }

Target:
private com.google.gdt.eclipse.login.common.GoogleLoginState createGoogleLoginState ( boolean initializingUsers ) { com.google.gdt.eclipse.login.common.GoogleLoginState state = new com.google.gdt.eclipse.login.common.GoogleLoginState ( clientInfo.getId ( ) , clientInfo.getInfo ( ) , com.google.gct.login.OAuthScopeRegistry.getScopes ( ) , new com.google.gct.login.GoogleLogin.AndroidPreferencesOAuthDataStore ( ) , uiFacade , new com.google.gct.login.GoogleLogin.AndroidLoggerFacade ( ) ) ; if ( initializingUsers && ( ! ( state.isLoggedIn ( ) ) ) ) { return null ; } return state ; }
Source:
public void testWrongPassword ( ) throws java.lang.Throwable { java.util.List < org.jetbrains.plugins.github.api.GithubGist.FileContent > expected = createContent ( ) ; org.jetbrains.plugins.github.GithubAuthData auth = myGitHubSettings.getAuthData ( ) ; org.jetbrains.plugins.github.GithubAuthData myAuth = org.jetbrains.plugins.github.GithubAuthData.createBasicAuth ( auth.getHost ( ) , myLogin1 , ( ( myPassword ) + "some_suffix" ) ) ; java.lang.String url = org.jetbrains.plugins.github.GithubCreateGistAction.createGist ( myProject , myAuth , expected , true , org.jetbrains.plugins.github.GIST_DESCRIPTION , null ) ; assertNull ( "Gist was created" , url ) ; checkNotification ( NotificationType.ERROR , "Can't create Gist" , null ) ; }

Target:
public void testWrongPassword ( ) throws java.lang.Throwable { java.util.List < org.jetbrains.plugins.github.api.GithubGist.FileContent > expected = createContent ( ) ; org.jetbrains.plugins.github.util.GithubAuthData auth = myGitHubSettings.getAuthData ( ) ; org.jetbrains.plugins.github.util.GithubAuthData myAuth = org.jetbrains.plugins.github.util.GithubAuthData.createBasicAuth ( auth.getHost ( ) , myLogin1 , ( ( myPassword ) + "some_suffix" ) ) ; java.lang.String url = org.jetbrains.plugins.github.GithubCreateGistAction.createGist ( myProject , myAuth , expected , true , org.jetbrains.plugins.github.GIST_DESCRIPTION , null ) ; assertNull ( "Gist was created" , url ) ; checkNotification ( NotificationType.ERROR , "Can't create Gist" , null ) ; }
Source:
public static com.google.common.collect.ImmutableSet < java.lang.String > getValidAccountTypes ( android.content.Context context ) { return com.google.common.collect.ImmutableSet.copyOf ( com.android.dialer.configprovider.ConfigProviderComponent.get ( context ) . getConfigProvider ( ) . getString ( "preferred_sim_valid_account_types" , ( "com.google;" + ( ( ( "com.osp.app.signin;" + "com.android.exchange;" ) + "com.google.android.exchange;" ) + "com.google.android.gm.exchange" ) ) ) . split ( ";" ) ) ; }

Target:
public static com.google.common.collect.ImmutableSet < java.lang.String > getValidAccountTypes ( android.content.Context context ) { return com.google.common.collect.ImmutableSet.copyOf ( com.android.dialer.configprovider.ConfigProviderBindings.get ( context ) . getString ( "preferred_sim_valid_account_types" , ( "com.google;" + ( ( ( "com.osp.app.signin;" + "com.android.exchange;" ) + "com.google.android.exchange;" ) + "com.google.android.gm.exchange" ) ) ) . split ( ";" ) ) ; }
Source:
public void run ( com.android.tradefed.result.ITestInvocationListener listener ) throws com.android.tradefed.device.DeviceNotAvailableException { for ( com.android.graphics.benchmark.ApkInfo apk : mApks ) { getDevice ( ) . installPackage ( new java.io.File ( mApkDir , apk.getFileName ( ) ) , true ) ; runDeviceTests ( com.android.graphics.benchmark.testtype.GraphicsBenchmarkHostsideController.PACKAGE , com.android.graphics.benchmark.testtype.GraphicsBenchmarkHostsideController.CLASS , ( ( "run[" + ( apk.name ( ) ) ) + "]" ) ) ; } }

Target:
private java.lang.String getApkDir ( ) { if ( ( mApkDir ) == null ) { mApkDir = ( java.lang.System.getenv ( "ANDROID_PRODUCT_OUT" ) ) + "/data/app" ; } return mApkDir ; }
Source:
private void configAudioParameters ( android.bluetooth.BluetoothDevice device ) { mAudioParams.put ( "NREC" , 1 ) ; mSystemInterface.getAudioManager ( ) . setParameters ( ( ( ( ( ( ( com.android.bluetooth.hfp.HeadsetStateMachine.HEADSET_NAME ) + "=" ) + ( getCurrentDeviceName ( device ) ) ) + ";" ) + ( com.android.bluetooth.hfp.HeadsetStateMachine.HEADSET_NREC ) ) + "=on" ) ) ; android.util.Log.d ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , ( ( ( "configAudioParameters for device:" + device ) + " are: nrec = " ) + ( mAudioParams.get ( "NREC" ) ) ) ) ; }

Target:
private void processNoiseReductionEvent ( boolean enable ) { java.lang.String prevNrec = mAudioParams.getOrDefault ( com.android.bluetooth.hfp.HeadsetStateMachine.HEADSET_NREC , com.android.bluetooth.hfp.HeadsetStateMachine.HEADSET_AUDIO_FEATURE_OFF ) ; java.lang.String newNrec = ( enable ) ? com.android.bluetooth.hfp.HeadsetStateMachine.HEADSET_AUDIO_FEATURE_ON : com.android.bluetooth.hfp.HeadsetStateMachine.HEADSET_AUDIO_FEATURE_OFF ; mAudioParams.put ( com.android.bluetooth.hfp.HeadsetStateMachine.HEADSET_NREC , newNrec ) ; log ( ( ( ( ( ( "processNoiseReductionEvent: " + ( com.android.bluetooth.hfp.HeadsetStateMachine.HEADSET_NREC ) ) + " change " ) + prevNrec ) + " -> " ) + newNrec ) ) ; if ( ( getAudioState ( ) ) == ( android.bluetooth.BluetoothHeadset.STATE_AUDIO_CONNECTED ) ) { setAudioParameters ( ) ; } }
Source:
public void set ( android.graphics.Paint src ) { if ( ( this ) != src ) { mColor = src.mColor ; mTextSize = src.mTextSize ; mScaleX = src.mScaleX ; mSkewX = src.mSkewX ; mAlign = src.mAlign ; mStyle = src.mStyle ; mFlags = src.mFlags ; super . set ( src ) ; } }

Target:
public void set ( android.graphics.Paint src ) { if ( ( this ) != src ) { mColor = src.mColor ; mTextSize = src.mTextSize ; mScaleX = src.mScaleX ; mSkewX = src.mSkewX ; mAlign = src.mAlign ; mStyle = src.mStyle ; mFlags = src.mFlags ; updateFontObject ( ) ; super . set ( src ) ; } }
Source:
private void handleUserUnlockOrSwitch ( int userId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Loading from store after user switch/unlock for " + userId ) ) ; } if ( loadFromUserStoreAfterUnlockOrSwitch ( userId ) ) { saveToStore ( true ) ; mPendingUnlockStoreRead = false ; } }

Target:
private void handleUserUnlockOrSwitch ( int userId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Loading from store after user switch/unlock for " + userId ) ) ; } if ( ( mWifiConfigStoreLegacy.areStoresPresent ( ) ) && ( ! ( mWifiConfigStore.areStoresPresent ( ) ) ) ) { android.util.Log.d ( com.android.server.wifi.WifiConfigManager.TAG , ( "Legacy store files found. Ignore user switch/unlock until migration is " + "complete!" ) ) ; return ; } if ( loadFromUserStoreAfterUnlockOrSwitch ( userId ) ) { saveToStore ( true ) ; mPendingUnlockStoreRead = false ; } }
Source:
static boolean issep ( char c , boolean parenIsSep ) { if ( parenIsSep ) { if ( ( c == '(' ) || ( c == ')' ) ) { return true ; } } return ( ( ( ( ( c == '{' ) || ( c == '}' ) ) || ( c == ',' ) ) || ( c == ';' ) ) || ( c == '<' ) ) || ( c == '>' ) ; }

Target:
static boolean isSeparator ( char c , boolean parenIsSep ) { if ( parenIsSep ) { if ( ( c == '(' ) || ( c == ')' ) ) { return true ; } } return ( ( ( ( ( c == '{' ) || ( c == '}' ) ) || ( c == ',' ) ) || ( c == ';' ) ) || ( c == '<' ) ) || ( c == '>' ) ; }
Source:
public void onServiceConnected ( android.content.ComponentName name , android.os.IBinder service ) { android.media.midi.IMidiDeviceServer server = IMidiDeviceServer.Stub.asInterface ( service ) ; setDeviceServer ( server ) ; }

Target:
public void onServiceConnected ( android.content.ComponentName name , android.os.IBinder service ) { android.media.midi.IMidiDeviceServer server = null ; if ( ( mBluetoothDevice ) != null ) { android.media.midi.IBluetoothMidiService mBluetoothMidiService = IBluetoothMidiService.Stub.asInterface ( service ) ; try { android.os.IBinder deviceBinder = mBluetoothMidiService.addBluetoothDevice ( mBluetoothDevice ) ; server = IMidiDeviceServer.Stub.asInterface ( deviceBinder ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.midi.MidiService.TAG , "Could not call addBluetoothDevice()" , e ) ; } } else { server = IMidiDeviceServer.Stub.asInterface ( service ) ; } setDeviceServer ( server ) ; }
Source:
public void test_SSL_check_private_key_cert_then_key ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; org.conscrypt.NativeCrypto.SSL_use_certificate ( s , org.conscrypt.NativeCryptoTest.getServerCertificates ( ) ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , org.conscrypt.NativeCryptoTest.getServerPrivateKey ( ) . getPkeyContext ( ) ) ; org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }

Target:
public void test_SSL_check_private_key_key_then_cert ( ) throws java.lang.Exception { long c = org.conscrypt.NativeCrypto.SSL_CTX_new ( ) ; long s = org.conscrypt.NativeCrypto.SSL_new ( c ) ; org.conscrypt.NativeCrypto.SSL_use_PrivateKey ( s , org.conscrypt.NativeCryptoTest.getServerPrivateKey ( ) . getPkeyContext ( ) ) ; try { org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; fail ( ) ; } catch ( javax.net.ssl.SSLException expected ) { } org.conscrypt.NativeCrypto.SSL_use_certificate ( s , org.conscrypt.NativeCryptoTest.getServerCertificates ( ) ) ; org.conscrypt.NativeCrypto.SSL_check_private_key ( s ) ; org.conscrypt.NativeCrypto.SSL_free ( s ) ; org.conscrypt.NativeCrypto.SSL_CTX_free ( c ) ; }
Source:
public final void testPkgTypeSysImg ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_SYS_IMAGES ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertTrue ( p.hasPath ( ) ) ; assertFalse ( p.hasVendorId ( ) ) ; assertFalse ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }

Target:
public final void testPkgTypeSysImg ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_SYS_IMAGES ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertTrue ( p.hasPath ( ) ) ; assertFalse ( p.hasVendor ( ) ) ; assertFalse ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }
Source:
public void startSmoothTrickplay ( android.media.PlaybackParams playbackParams ) { com.android.tv.common.SoftPreconditions.checkState ( supportSmoothTrickPlay ( playbackParams.getSpeed ( ) ) ) ; mPlayer.setPlayWhenReady ( true ) ; mTrickplayRunning = true ; if ( ( mAudioRenderer ) instanceof com.android.tv.tuner.exoplayer.ac3.Ac3PassthroughTrackRenderer ) { mPlayer.sendMessage ( mAudioRenderer , Ac3PassthroughTrackRenderer.MSG_SET_PLAYBACK_SPEED , playbackParams.getSpeed ( ) ) ; } else { mPlayer.sendMessage ( mAudioRenderer , MediaCodecAudioTrackRenderer.MSG_SET_PLAYBACK_PARAMS , playbackParams ) ; } }

Target:
public void startSmoothTrickplay ( android.media.PlaybackParams playbackParams ) { com.android.tv.common.SoftPreconditions.checkState ( supportSmoothTrickPlay ( playbackParams.getSpeed ( ) ) ) ; mPlayer.setPlayWhenReady ( true ) ; mTrickplayRunning = true ; if ( ( mAudioRenderer ) instanceof com.android.tv.tuner.exoplayer.ac3.Ac3DefaultTrackRenderer ) { mPlayer.sendMessage ( mAudioRenderer , Ac3DefaultTrackRenderer.MSG_SET_PLAYBACK_SPEED , playbackParams.getSpeed ( ) ) ; } else { mPlayer.sendMessage ( mAudioRenderer , MediaCodecAudioTrackRenderer.MSG_SET_PLAYBACK_PARAMS , playbackParams ) ; } }
Source:
public void testGetUsesLibraries ( ) { assertEquals ( 1 , mManifestTestApp.getUsesLibraries ( ) . length ) ; assertEquals ( com.android.sdklib.xml.AndroidManifestParserTest.LIBRARY_NAME , mManifestTestApp.getUsesLibraries ( ) [ 0 ] ) ; }

Target:
public void testGetUsesFeatures ( ) { com.android.sdklib.xml.ManifestData.UsesFeature [ ] features = mManifestTestApp.getUsesFeatures ( ) ; assertEquals ( 2 , features.length ) ; assertEquals ( 131073 , features [ 0 ] . mGlEsVersion ) ; assertEquals ( java.lang.Boolean.TRUE , features [ 0 ] . getRequired ( ) ) ; assertEquals ( com.android.sdklib.xml.AndroidManifestParserTest.FEATURE_NAME , features [ 1 ] . getName ( ) ) ; assertEquals ( java.lang.Boolean.TRUE , features [ 1 ] . getRequired ( ) ) ; }
Source:
public void verifyCommandDispatchKeyEvent ( ) { mTvView.dispatchKeyEvent ( new android.view.KeyEvent ( android.view.KeyEvent.ACTION_DOWN , android.view.KeyEvent.KEYCODE_K ) ) ; mInstrumentation.waitForIdleSync ( ) ; new android.cts.util.PollingCheck ( android.media.tv.cts.TvInputServiceTest.TIME_OUT ) { @ java.lang.Override protected boolean check ( ) { android.media.tv.cts.TvInputServiceTest.CountingTvInputService.CountingSession session = android.media.tv.cts.TvInputServiceTest.CountingTvInputService.sSession ; return ( session != null ) && ( ( session.mKeyDownCount ) > 0 ) ; } } . run ( ) ; }

Target:
public void verifyCommandDispatchKeyDown ( ) { resetCounts ( ) ; mTvView.dispatchKeyEvent ( new android.view.KeyEvent ( android.view.KeyEvent.ACTION_DOWN , android.view.KeyEvent.KEYCODE_K ) ) ; mInstrumentation.waitForIdleSync ( ) ; new android.cts.util.PollingCheck ( android.media.tv.cts.TvInputServiceTest.TIME_OUT ) { @ java.lang.Override protected boolean check ( ) { android.media.tv.cts.TvInputServiceTest.CountingTvInputService.CountingSession session = android.media.tv.cts.TvInputServiceTest.CountingTvInputService.sSession ; return ( session != null ) && ( ( session.mKeyDownCount ) > 0 ) ; } } . run ( ) ; }
Source:
public void testSp ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/textsize.xml:11: Warning: Should use \"sp\" instead of \"dp\" for text sizes [SpUsage]\n" + ( ( ( ( ( " android:textSize=\"14dp\" />\n" + " ~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/textsize.xml:16: Warning: Should use \"sp\" instead of \"dp\" for text sizes [SpUsage]\n" ) + " android:textSize=\"14dip\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 2 warnings\n" ) ) , lintFiles ( "res/layout/textsize.xml" ) ) ; }

Target:
public void testSp ( ) throws java.lang.Exception { assertEquals ( ( "res/layout/textsize.xml:11: Warning: Should use \"sp\" instead of \"dp\" for text sizes [SpUsage]\n" + ( ( ( ( ( ( ( ( ( ( ( " android:textSize=\"14dp\" />\n" + " ~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/textsize.xml:16: Warning: Should use \"sp\" instead of \"dp\" for text sizes [SpUsage]\n" ) + " android:textSize=\"14dip\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/textsize.xml:33: Warning: Avoid using sizes smaller than 12sp: 11sp [SmallSp]\n" ) + " android:textSize=\"11sp\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "res/layout/textsize.xml:37: Warning: Avoid using sizes smaller than 12sp: 6sp [SmallSp]\n" ) + " android:layout_height=\"6sp\" />\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 4 warnings\n" ) ) , lintFiles ( "res/layout/textsize.xml" ) ) ; }
Source:
public static com.android.jack.dx.rop.cst.CstMethodRef createMethodRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JReferenceType type , @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { com.android.jack.dx.rop.cst.CstType definingClass = com.android.jack.backend.dex.rop.RopHelper.getCstType ( type ) ; com.android.jack.dx.rop.cst.CstNat nat = com.android.jack.backend.dex.rop.RopHelper.createSignature ( method ) ; com.android.jack.dx.rop.cst.CstMethodRef methodRef = new com.android.jack.dx.rop.cst.CstMethodRef ( definingClass , nat ) ; return methodRef ; }

Target:
public static com.android.jack.dx.rop.cst.CstMethodRef createMethodRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JReferenceType type , @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod method ) { com.android.jack.dx.rop.cst.CstType definingClass = com.android.jack.backend.dex.rop.RopHelper.getCstType ( type ) ; com.android.jack.dx.rop.cst.CstString name = new com.android.jack.dx.rop.cst.CstString ( method.getName ( ) ) ; com.android.jack.dx.rop.cst.CstNat nat = com.android.jack.backend.dex.rop.RopHelper.createSignature ( method ) ; com.android.jack.dx.rop.cst.CstMethodRef methodRef = new com.android.jack.dx.rop.cst.CstMethodRef ( definingClass , name , nat ) ; return methodRef ; }
Source:
public void onPnoNetworkFound ( android.net.wifi.ScanResult [ ] results ) { if ( com.android.server.wifi.WifiStateMachine.DBG ) { android.util.Log.e ( com.android.server.wifi.WifiStateMachine.TAG , ( "onPnoNetworkFound event received num = " + ( results.length ) ) ) ; for ( int i = 0 ; i < ( results.length ) ; i ++ ) { android.util.Log.e ( com.android.server.wifi.WifiStateMachine.TAG , results [ i ] . toString ( ) ) ; } } sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_PNO_NETWORK_FOUND , results.length , 0 , results ) ; }

Target:
public void onRssiThresholdBreached ( byte curRssi ) { if ( mVerboseLoggingEnabled ) { android.util.Log.e ( com.android.server.wifi.WifiStateMachine.TAG , ( "onRssiThresholdBreach event. Cur Rssi = " + curRssi ) ) ; } sendMessage ( com.android.server.wifi.WifiStateMachine.CMD_RSSI_THRESHOLD_BREACH , curRssi ) ; }
Source:
private void sendExpireMsgForFeature ( android.net.NetworkCapabilities netCap , int seqNum , int delay ) { if ( delay >= 0 ) { android.util.Log.d ( android.net.ConnectivityManager.TAG , ( ( ( "sending expire msg with seqNum " + seqNum ) + " and delay " ) + delay ) ) ; android.os.Message msg = android.net.ConnectivityManager.sCallbackHandler.obtainMessage ( android.net.ConnectivityManager.EXPIRE_LEGACY_REQUEST , seqNum , 0 , netCap ) ; android.net.ConnectivityManager.sCallbackHandler.sendMessageDelayed ( msg , delay ) ; } }

Target:
private void sendExpireMsgForFeature ( android.net.NetworkCapabilities netCap , int seqNum , int delay ) { if ( delay >= 0 ) { android.util.Log.d ( android.net.ConnectivityManager.TAG , ( ( ( "sending expire msg with seqNum " + seqNum ) + " and delay " ) + delay ) ) ; android.net.ConnectivityManager.CallbackHandler handler = getDefaultHandler ( ) ; android.os.Message msg = handler.obtainMessage ( android.net.ConnectivityManager.EXPIRE_LEGACY_REQUEST , seqNum , 0 , netCap ) ; handler.sendMessageDelayed ( msg , delay ) ; } }
Source:
public void testDisableSupplicantErrorWhenNoClientInterfaceConfigured ( ) throws java.lang.Exception { mWificondControl.setupDriverForClientMode ( ) ; org.junit.Assert.assertFalse ( mWificondControl.disableSupplicant ( ) ) ; }

Target:
public void testSignalPoll ( ) throws java.lang.Exception { android.net.wifi.IWificond wificond = org.mockito.Mockito.mock ( android.net.wifi.IWificond.class ) ; android.net.wifi.IClientInterface clientInterface = org.mockito.Mockito.mock ( android.net.wifi.IClientInterface.class ) ; org.mockito.Mockito.when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( wificond ) ; org.mockito.Mockito.when ( wificond.createClientInterface ( ) ) . thenReturn ( clientInterface ) ; mWificondControl.setupDriverForClientMode ( ) ; mWificondControl.signalPoll ( ) ; org.mockito.Mockito.verify ( clientInterface ) . signalPoll ( ) ; }
Source:
protected void engineInit ( int opmode , java.security.Key key , java.security.spec.AlgorithmParameterSpec params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { if ( ( params != null ) && ( ( padding ) != ( NativeConstants.RSA_PKCS1_OAEP_PADDING ) ) ) { throw new java.security.InvalidAlgorithmParameterException ( ( "unknown param type: " + ( params.getClass ( ) . getName ( ) ) ) ) ; } engineInitInternal ( opmode , key ) ; }

Target:
protected void engineSetPadding ( java.lang.String padding ) throws javax.crypto.NoSuchPaddingException { java.lang.String paddingUpper = padding.toUpperCase ( java.util.Locale.US ) ; if ( paddingUpper.equals ( "OAEPPadding" ) ) { this . padding = NativeConstants.RSA_PKCS1_OAEP_PADDING ; return ; } throw new javax.crypto.NoSuchPaddingException ( "Only OAEP padding is supported" ) ; }
Source:
private void checkCT ( java.util.List < java.security.cert.X509Certificate > chain , byte [ ] ocspData , byte [ ] tlsData ) throws java.security.cert.CertificateException { org.conscrypt.ct.CTVerificationResult result = ctVerifier.verifySignedCertificateTimestamps ( chain , tlsData , ocspData ) ; if ( ( result.getValidSCTs ( ) . size ( ) ) == 0 ) { throw new java.security.cert.CertificateException ( "No valid SCT found" ) ; } }

Target:
private void checkCT ( java.lang.String host , java.util.List < java.security.cert.X509Certificate > chain , byte [ ] ocspData , byte [ ] tlsData ) throws java.security.cert.CertificateException { org.conscrypt.ct.CTVerificationResult result = ctVerifier.verifySignedCertificateTimestamps ( chain , tlsData , ocspData ) ; if ( ! ( ctPolicy.doesResultConformToPolicy ( result , host , chain.toArray ( new java.security.cert.X509Certificate [ chain.size ( ) ] ) ) ) ) { throw new java.security.cert.CertificateException ( "Certificate chain does not conform to required transparency policy." ) ; } }
Source:
public void enableKeyguard ( boolean enabled ) { if ( ( mKeyguardMediator ) != null ) { mKeyguardMediator.setKeyguardEnabled ( enabled ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( Intent.ACTION_DREAMING_STARTED.equals ( intent.getAction ( ) ) ) { if ( ( mKeyguardMediator ) != null ) { mKeyguardMediator.onDreamingStarted ( ) ; } } else if ( Intent.ACTION_DREAMING_STOPPED.equals ( intent.getAction ( ) ) ) { if ( ( mKeyguardMediator ) != null ) { mKeyguardMediator.onDreamingStopped ( ) ; } } }
Source:
private void setButtons ( int positiveResId , int negativeResId , int neutralResId ) { final android.content.Context context = getContext ( ) ; if ( positiveResId > 0 ) { setButton ( context.getString ( positiveResId ) , this ) ; } if ( negativeResId > 0 ) { setButton2 ( context.getString ( negativeResId ) , this ) ; } if ( neutralResId > 0 ) { setButton3 ( context.getString ( neutralResId ) , this ) ; } }

Target:
private void setButtons ( int positiveResId , int negativeResId , int neutralResId ) { final android.content.Context context = getContext ( ) ; if ( positiveResId > 0 ) { setButton ( com.android.settings.wifi.BUTTON_POSITIVE , context.getString ( positiveResId ) , this ) ; } if ( negativeResId > 0 ) { setButton ( com.android.settings.wifi.BUTTON_NEGATIVE , context.getString ( negativeResId ) , this ) ; } if ( neutralResId > 0 ) { setButton ( com.android.settings.wifi.BUTTON_NEUTRAL , context.getString ( neutralResId ) , this ) ; } }