auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void test_UTF_16BE ( ) throws java.lang.Exception { java.nio.charset.Charset cs = java.nio.charset.Charset.forName ( "UTF-16BE" ) ; assertEncodes ( cs , "a٦" , 0 , 'a' , 6 , 102 ) ; assertDecodes ( cs , "�a٦" , 255 , 254 , 0 , 'a' , 6 , 102 ) ; assertDecodes ( cs , "﻿a٦" , 254 , 255 , 0 , 'a' , 6 , 102 ) ; assertDecodes ( cs , "a٦" , 0 , 'a' , 6 , 102 ) ; }

Target:
public void test_UTF_16BE ( ) throws java.lang.Exception { java.nio.charset.Charset cs = java.nio.charset.Charset.forName ( "UTF-16BE" ) ; assertEncodes ( cs , "a٦" , 0 , 'a' , 6 , 102 ) ; assertDecodes ( cs , "﻿a٦" , 254 , 255 , 0 , 'a' , 6 , 102 ) ; assertDecodes ( cs , "a٦" , 0 , 'a' , 6 , 102 ) ; }
Source:
public boolean isMatchFor ( com.android.ide.common.resources.configuration.ResourceQualifier qualifier ) { if ( qualifier instanceof com.android.ide.common.resources.configuration.VersionQualifier ) { return ( mVersion ) <= ( ( ( com.android.ide.common.resources.configuration.VersionQualifier ) ( qualifier ) ) . mVersion ) ; } return false ; }

Target:
public boolean isMatchFor ( com.android.ide.common.resources.configuration.ResourceQualifier qualifier ) { if ( qualifier instanceof com.android.ide.common.resources.configuration.VersionQualifier ) { return ( ( mVersion ) <= ( ( ( com.android.ide.common.resources.configuration.VersionQualifier ) ( qualifier ) ) . mVersion ) ) || ( ( ( ( com.android.ide.common.resources.configuration.VersionQualifier ) ( qualifier ) ) . mVersion ) == ( - 1 ) ) ; } return false ; }
Source:
public void setUp ( ) throws java.lang.Exception { com.android.jack.frontend.TypeModifierTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.Options jackArgs = com.android.jack.TestTools.buildCommandLineArgs ( com.android.jack.TestTools.getJackTestFromBinaryName ( com.android.jack.frontend.TypeModifierTest.OUTER_CLASS_BINARY_NAME ) ) ; jackArgs.addProperty ( Options.METHOD_FILTER.getName ( ) , "reject-all-methods" ) ; session = com.android.jack.TestTools.buildSession ( jackArgs ) ; junit.framework.Assert.assertNotNull ( session ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { com.android.jack.Options jackArgs = com.android.jack.TestTools.buildCommandLineArgs ( com.android.jack.TestTools.getJackTestFromBinaryName ( com.android.jack.frontend.TypeModifierTest.OUTER_CLASS_BINARY_NAME ) ) ; jackArgs.addProperty ( Options.METHOD_FILTER.getName ( ) , "reject-all-methods" ) ; session = com.android.jack.TestTools.buildSession ( jackArgs ) ; junit.framework.Assert.assertNotNull ( session ) ; }
Source:
public void run ( ) { mLogDescription.setText ( description ) ; if ( acceptLog ( description , true ) ) { appendLine ( com.android.sdkuilib.internal.repository.sdkman2.LogWindow.TextStyle.TITLE , description ) ; if ( ( mSecondaryLog ) != null ) { mSecondaryLog.printf ( "%1$s" , description ) ; } } }

Target:
public void run ( ) { mLogDescription.setText ( description ) ; if ( acceptLog ( description , true ) ) { appendLine ( com.android.sdkuilib.internal.repository.sdkman2.LogWindow.TextStyle.TITLE , description ) ; if ( ( mSecondaryLog ) != null ) { mSecondaryLog.info ( "%1$s" , description ) ; } } }
Source:
public boolean importKey ( java.lang.String keyName , byte [ ] key ) { try { return ( mBinder.import_key ( keyName , key ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public boolean importKey ( java.lang.String keyName , byte [ ] key ) { try { return ( mBinder.import_key ( keyName , key , ( - 1 ) ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }
Source:
public static android.renderscript.Font createFromAsset ( android.renderscript.RenderScript rs , android.content.res.Resources res , java.lang.String path , float pointSize ) { rs.validate ( ) ; android.content.res.AssetManager mgr = res.getAssets ( ) ; int dpi = res.getDisplayMetrics ( ) . densityDpi ; int fontId = rs.nFontCreateFromAsset ( mgr , path , pointSize , dpi ) ; if ( fontId == 0 ) { throw new android.renderscript.RSRuntimeException ( ( "Unable to create font from asset " + path ) ) ; } android.renderscript.Font rsFont = new android.renderscript.Font ( fontId , rs ) ; return rsFont ; }

Target:
public static android.renderscript.Font createFromAsset ( android.renderscript.RenderScript rs , android.content.res.Resources res , java.lang.String path , float pointSize ) { rs.validate ( ) ; android.content.res.AssetManager mgr = res.getAssets ( ) ; int dpi = res.getDisplayMetrics ( ) . densityDpi ; long fontId = rs.nFontCreateFromAsset ( mgr , path , pointSize , dpi ) ; if ( fontId == 0 ) { throw new android.renderscript.RSRuntimeException ( ( "Unable to create font from asset " + path ) ) ; } android.renderscript.Font rsFont = new android.renderscript.Font ( fontId , rs ) ; return rsFont ; }
Source:
protected void finishMerge ( @ javax.annotation.Nonnull com.android.jack.tools.merger.JackMerger merger , @ javax.annotation.Nonnull com.android.sched.vfs.OutputVFile out ) throws com.android.jack.backend.dex.DexWritingException { java.io.OutputStream os = null ; try { try { os = new java.io.BufferedOutputStream ( out.getOutputStream ( ) ) ; merger.finish ( os ) ; } finally { if ( os != null ) { os.close ( ) ; } } } catch ( java.io.IOException e ) { throw new com.android.jack.backend.dex.DexWritingException ( e ) ; } }

Target:
private void finishMerge ( @ javax.annotation.Nonnull com.android.jack.tools.merger.JackMerger merger , @ javax.annotation.Nonnull com.android.sched.vfs.OutputVFile out ) throws com.android.jack.backend.dex.DexWritingException { java.io.OutputStream os = null ; try { try { os = new java.io.BufferedOutputStream ( out.getOutputStream ( ) ) ; merger.finish ( os ) ; } finally { if ( os != null ) { os.close ( ) ; } } } catch ( java.io.IOException e ) { throw new com.android.jack.backend.dex.DexWritingException ( e ) ; } }
Source:
public javax.lang.model.element.TypeElement getTypeElement ( ) throws com.android.sched.build.SchedAnnotationProcessor.AbortException { assert ( com.android.sched.build.SchedAnnotationProcessor.Items.env ) != null ; if ( ( typeElement ) == null ) { typeElement = com.android.sched.build.SchedAnnotationProcessor.Items.env.getElementUtils ( ) . getTypeElement ( com.android.sched.build.SchedAnnotationProcessor.getCanonicalName ( fqName ) ) ; if ( ( typeElement ) == null ) { com.android.sched.build.SchedAnnotationProcessor.Items.env.getMessager ( ) . printMessage ( javax.tools.Diagnostic.Kind.ERROR , ( ( "Can not get element type '" + ( fqName ) ) + "'" ) ) ; throw new com.android.sched.build.SchedAnnotationProcessor.AbortException ( ) ; } } return typeElement ; }

Target:
public javax.lang.model.element.TypeElement getTypeElement ( ) throws com.android.sched.build.SchedAnnotationProcessor.AbortException { assert ( com.android.sched.build.SchedAnnotationProcessor.Items.env ) != null ; if ( ( typeElement ) == null ) { typeElement = com.android.sched.build.SchedAnnotationProcessor.Items.env.getElementUtils ( ) . getTypeElement ( com.android.sched.build.SchedAnnotationProcessor.getCanonicalName ( fqName ) ) ; if ( ( typeElement ) == null ) { assert ( com.android.sched.build.SchedAnnotationProcessor.Items.env ) != null ; com.android.sched.build.SchedAnnotationProcessor.Items.env.getMessager ( ) . printMessage ( javax.tools.Diagnostic.Kind.ERROR , ( ( "Can not get element type '" + ( fqName ) ) + "'" ) ) ; throw new com.android.sched.build.SchedAnnotationProcessor.AbortException ( ) ; } } return typeElement ; }
Source:
static float native_getTextRunAdvances ( int native_object , java.lang.String text , int start , int end , int contextStart , int contextEnd , int flags , float [ ] advances , int advancesIndex ) { int count = end - start ; char [ ] buffer = android.graphics.TemporaryBuffer.obtain ( count ) ; android.text.TextUtils.getChars ( text , start , end , buffer , 0 ) ; return android.graphics.Paint_Delegate.native_getTextRunAdvances ( native_object , buffer , 0 , count , contextStart , ( contextEnd - contextStart ) , flags , advances , advancesIndex ) ; }

Target:
static float native_getTextRunAdvances ( long native_object , java.lang.String text , int start , int end , int contextStart , int contextEnd , int flags , float [ ] advances , int advancesIndex ) { int count = end - start ; char [ ] buffer = android.graphics.TemporaryBuffer.obtain ( count ) ; android.text.TextUtils.getChars ( text , start , end , buffer , 0 ) ; return android.graphics.Paint_Delegate.native_getTextRunAdvances ( native_object , buffer , 0 , count , contextStart , ( contextEnd - contextStart ) , flags , advances , advancesIndex ) ; }
Source:
synchronized void nAllocationElementRead ( long id , int xoff , int yoff , int zoff , int mip , int compIdx , java.lang.Object d , int sizeBytes , android.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationElementRead ( mContext , id , xoff , yoff , zoff , mip , compIdx , d , sizeBytes , dt.mID ) ; }

Target:
synchronized void nAllocationElementRead ( long id , int xoff , int yoff , int zoff , int mip , int compIdx , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationElementRead ( mContext , id , xoff , yoff , zoff , mip , compIdx , d , sizeBytes ) ; }
Source:
public android.app.Notification.Builder setActions ( android.app.Notification.Action ... actions ) { mActions.clear ( ) ; for ( int i = 0 ; i < ( actions.length ) ; i ++ ) { mActions.add ( actions [ i ] ) ; } return this ; }

Target:
public android.app.Notification.Builder setActions ( android.app.Notification.Action ... actions ) { mActions.clear ( ) ; for ( int i = 0 ; i < ( actions.length ) ; i ++ ) { if ( ( actions [ i ] ) != null ) { mActions.add ( actions [ i ] ) ; } } return this ; }
Source:
public void close ( ) { synchronized ( this ) { if ( ! ( closing ) ) { closing = true ; try { textOut.close ( ) ; out.close ( ) ; } catch ( java.io.IOException x ) { trouble = true ; } textOut = null ; charOut = null ; out = null ; } } }

Target:
public void close ( ) { synchronized ( this ) { if ( ! ( closing ) ) { closing = true ; try { if ( ( textOut ) != null ) { textOut.close ( ) ; } out.close ( ) ; } catch ( java.io.IOException x ) { trouble = true ; } textOut = null ; charOut = null ; out = null ; } } }
Source:
private void callStatusCallback ( android.bluetooth.BluetoothHealthAppConfiguration config , int status ) { if ( com.android.bluetooth.hdp.HealthService.VDBG ) { log ( ( ( ( "Health Device Application: " + config ) + " State Change: status:" ) + status ) ) ; } android.bluetooth.IBluetoothHealthCallback callback = mApps.get ( config ) . mCallback ; if ( callback == null ) { android.util.Log.e ( com.android.bluetooth.hdp.HealthService.TAG , "Callback object null" ) ; } try { callback.onHealthAppConfigurationStatusChange ( config , status ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.bluetooth.hdp.HealthService.TAG , ( "Remote Exception:" + e ) ) ; } }

Target:
private void callStatusCallback ( android.bluetooth.BluetoothHealthAppConfiguration config , int status ) { if ( com.android.bluetooth.hdp.HealthService.VDBG ) { android.util.Log.d ( com.android.bluetooth.hdp.HealthService.TAG , ( ( ( "Health Device Application: " + config ) + " State Change: status:" ) + status ) ) ; } android.bluetooth.IBluetoothHealthCallback callback = mApps.get ( config ) . mCallback ; if ( callback == null ) { android.util.Log.e ( com.android.bluetooth.hdp.HealthService.TAG , "Callback object null" ) ; } try { callback.onHealthAppConfigurationStatusChange ( config , status ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.bluetooth.hdp.HealthService.TAG , ( "Remote Exception:" + e ) ) ; } }
Source:
static void getDouble ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , double value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final double got = ( v == null ) ? ( ( double ) ( m.invokeExact ( ) ) ) : ( ( double ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }

Target:
static void getDouble ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , double value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final double got = ( v == null ) ? ( ( double ) ( m.invokeExact ( ) ) ) : ( ( double ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( expectFailure , exceptionThrown ) ; }
Source:
static void native_drawTextRun ( int nativeCanvas , java.lang.String text , int start , int end , int contextStart , int contextEnd , float x , float y , int flags , int paint ) { int count = end - start ; char [ ] buffer = android.graphics.TemporaryBuffer.obtain ( count ) ; android.text.TextUtils.getChars ( text , start , end , buffer , 0 ) ; android.graphics.Canvas_Delegate.native_drawText ( nativeCanvas , buffer , 0 , count , x , y , flags , paint ) ; }

Target:
static void native_drawTextRun ( long nativeCanvas , java.lang.String text , int start , int end , int contextStart , int contextEnd , float x , float y , int flags , long paint ) { int count = end - start ; char [ ] buffer = android.graphics.TemporaryBuffer.obtain ( count ) ; android.text.TextUtils.getChars ( text , start , end , buffer , 0 ) ; android.graphics.Canvas_Delegate.native_drawText ( nativeCanvas , buffer , 0 , count , x , y , flags , paint ) ; }
Source:
public void deviceStatusChanged ( com.android.server.midi.MidiService.Device device , android.media.midi.MidiDeviceStatus status ) { if ( ! ( device.isUidAllowed ( mUid ) ) ) return ; try { for ( android.media.midi.IMidiDeviceListener listener : mListeners ) { listener.onDeviceStatusChanged ( status ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.midi.MidiService.TAG , "remote exception" , e ) ; } }

Target:
public void deviceStatusChanged ( com.android.server.midi.MidiService.Device device , android.media.midi.MidiDeviceStatus status ) { if ( ! ( device.isUidAllowed ( mUid ) ) ) return ; try { for ( android.media.midi.IMidiDeviceListener listener : mListeners.values ( ) ) { listener.onDeviceStatusChanged ( status ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.server.midi.MidiService.TAG , "remote exception" , e ) ; } }
Source:
static int getKeyTypeForAlgorithm ( java.lang.String keyType ) throws java.lang.IllegalArgumentException { if ( "RSA" . equalsIgnoreCase ( keyType ) ) { return com.android.org.conscrypt.NativeCrypto.EVP_PKEY_RSA ; } else if ( "EC" . equalsIgnoreCase ( keyType ) ) { return com.android.org.conscrypt.NativeCrypto.EVP_PKEY_EC ; } else { throw new java.lang.IllegalArgumentException ( ( "Unsupported key type: " + keyType ) ) ; } }

Target:
static int getKeyTypeForAlgorithm ( java.lang.String keyType ) { if ( "RSA" . equalsIgnoreCase ( keyType ) ) { return com.android.org.conscrypt.NativeCrypto.EVP_PKEY_RSA ; } else if ( "EC" . equalsIgnoreCase ( keyType ) ) { return com.android.org.conscrypt.NativeCrypto.EVP_PKEY_EC ; } else { return - 1 ; } }
Source:
private void onAvailable ( android.net.Network network , android.net.NetworkCapabilities networkCapabilities , android.net.LinkProperties linkProperties ) { onAvailable ( network ) ; if ( ! ( networkCapabilities.hasCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED ) ) ) { onNetworkSuspended ( network ) ; } onCapabilitiesChanged ( network , networkCapabilities ) ; onLinkPropertiesChanged ( network , linkProperties ) ; }

Target:
public void onAvailable ( android.net.Network network , android.net.NetworkCapabilities networkCapabilities , android.net.LinkProperties linkProperties ) { onAvailable ( network ) ; if ( ! ( networkCapabilities.hasCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED ) ) ) { onNetworkSuspended ( network ) ; } onCapabilitiesChanged ( network , networkCapabilities ) ; onLinkPropertiesChanged ( network , linkProperties ) ; }
Source:
public void testConditionals ( ) throws java.lang.Exception { com.android.tools.lint.detector.api.ConstantEvaluatorTest.checkStatements ( ( - 5 ) , ( "" + ( ( "boolean condition = false;\n" + "condition = !condition;\n" ) + "int z = condition ? -5 : 4;\n" ) ) , "z" ) ; com.android.tools.lint.detector.api.ConstantEvaluatorTest.checkStatements ( ( - 4 ) , ( "" + ( "boolean condition = true && false;\n" + "int z = condition ? 5 : -4;\n" ) ) , "z" ) ; }

Target:
public void testConditionals ( ) throws java.lang.Exception { checkStatements ( ( - 5 ) , ( "" + ( ( "boolean condition = false;\n" + "condition = !condition;\n" ) + "int z = condition ? -5 : 4;\n" ) ) , "z" ) ; checkStatements ( ( - 4 ) , ( "" + ( "boolean condition = true && false;\n" + "int z = condition ? 5 : -4;\n" ) ) , "z" ) ; }
Source:
public void testAesCbcHmacSha512Tcp4 ( ) 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_SHA512 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacSha512Tcp4 ( ) 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_SHA512 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 ) ; }
Source:
static void native_addRoundRect ( int nPath , android.graphics.RectF rect , float rx , float ry , int dir ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } pathDelegate.mPath.append ( new java.awt.geom.RoundRectangle2D.Float ( rect.left , rect.top , rect.width ( ) , rect.height ( ) , ( rx * 2 ) , ( ry * 2 ) ) , false ) ; }

Target:
static void native_addRoundRect ( long nPath , android.graphics.RectF rect , float rx , float ry , int dir ) { android.graphics.Path_Delegate pathDelegate = android.graphics.Path_Delegate.sManager.getDelegate ( nPath ) ; if ( pathDelegate == null ) { return ; } pathDelegate.mPath.append ( new java.awt.geom.RoundRectangle2D.Float ( rect.left , rect.top , rect.width ( ) , rect.height ( ) , ( rx * 2 ) , ( ry * 2 ) ) , false ) ; }
Source:
public synchronized void add ( long time , int type , int id , float ... values ) { assert ( values.length ) == ( myStreams ) ; float total = 0.0F ; for ( float value : values ) { total += value ; } mMaxTotal = java.lang.Math.max ( mMaxTotal , total ) ; mSamples.add ( new com.android.tools.chartlib.TimelineData.Sample ( ( ( time - ( mStart ) ) / 1000.0F ) , type , id , values ) ) ; }

Target:
public synchronized void add ( long time , int type , float ... values ) { assert ( values.length ) == ( myStreams ) ; float total = 0.0F ; for ( float value : values ) { total += value ; } mMaxTotal = java.lang.Math.max ( mMaxTotal , total ) ; mSamples.add ( new com.android.tools.chartlib.TimelineData.Sample ( ( ( time - ( mStart ) ) / 1000.0F ) , type , values ) ) ; }
Source:
public int getCountLocked ( int which ) { int val ; if ( which == ( STATS_LAST ) ) { val = mLastCount ; } else { val = mCount ; if ( which == ( STATS_UNPLUGGED ) ) { val -= mUnpluggedCount ; } else if ( which != ( STATS_TOTAL ) ) { val -= mLoadedCount ; } } return val ; }

Target:
public int getCountLocked ( int which ) { int val ; if ( which == ( STATS_LAST ) ) { val = mLastCount ; } else { val = mCount.get ( ) ; if ( which == ( STATS_UNPLUGGED ) ) { val -= mUnpluggedCount ; } else if ( which != ( STATS_TOTAL ) ) { val -= mLoadedCount ; } } return val ; }
Source:
private void enableDSASignatureNonceHardeningIfApplicable ( ) { final org.conscrypt.OpenSSLKey key = this . key ; switch ( engineType ) { case DSA : org.conscrypt.NativeCrypto.set_DSA_flag_nonce_from_hash ( key.getPkeyContext ( ) ) ; break ; case EC : org.conscrypt.NativeCrypto.EC_KEY_set_nonce_from_hash ( key.getPkeyContext ( ) , true ) ; break ; default : } }

Target:
private void enableDSASignatureNonceHardeningIfApplicable ( ) { final org.conscrypt.OpenSSLKey key = this . key ; switch ( engineType ) { case EC : org.conscrypt.NativeCrypto.EC_KEY_set_nonce_from_hash ( key.getPkeyContext ( ) , true ) ; break ; default : } }
Source:
public boolean startWpsPinKeypad ( java.lang.String iface , java.lang.String pin ) { if ( android.text.TextUtils.isEmpty ( pin ) ) return false ; if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.startWpsPinKeypad ( iface , pin ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PIN any " ) + pin ) ) ; } } }

Target:
public boolean startWpsPinKeypad ( java.lang.String iface , java.lang.String pin ) { return mSupplicantP2pIfaceHal.startWpsPinKeypad ( iface , pin ) ; }
Source:
boolean attachFunctor ( android.view.View.AttachInfo attachInfo , int functor ) { if ( ( mCanvas ) != null ) { mCanvas.attachFunctor ( functor ) ; mFunctorsRunnable.attachInfo = attachInfo ; attachInfo.mHandler.removeCallbacks ( mFunctorsRunnable ) ; attachInfo.mHandler.postDelayed ( mFunctorsRunnable , 0 ) ; return true ; } return false ; }

Target:
boolean attachFunctor ( android.view.View.AttachInfo attachInfo , long functor ) { if ( ( mCanvas ) != null ) { mCanvas.attachFunctor ( functor ) ; mFunctorsRunnable.attachInfo = attachInfo ; attachInfo.mHandler.removeCallbacks ( mFunctorsRunnable ) ; attachInfo.mHandler.postDelayed ( mFunctorsRunnable , 0 ) ; return true ; } return false ; }
Source:
public final com.android.jack.dx.rop.type.Prototype getPrototype ( boolean isStatic ) { if ( isStatic ) { return prototype ; } else { if ( ( instancePrototype ) == null ) { com.android.jack.dx.rop.type.Type thisType = getDefiningClass ( ) . getClassType ( ) ; instancePrototype = prototype.withFirstParameter ( thisType ) ; } return instancePrototype ; } }

Target:
public final com.android.jack.dx.rop.type.Prototype getPrototype ( boolean isStatic ) { if ( isStatic ) { return prototype ; } else { if ( ( instancePrototype ) == null ) { com.android.jack.dx.rop.type.Type thisType = getDefiningClass ( ) ; instancePrototype = prototype.withFirstParameter ( thisType ) ; } return instancePrototype ; } }
Source:
protected void methodSetUp ( ) { mv = cv.visitMethod ( 0 , "<init>" , "()V" , null , null ) ; mv.visitCode ( ) ; mv.visitVarInsn ( org.objectweb.asm.xml.ALOAD , 0 ) ; mv.visitMethodInsn ( org.objectweb.asm.xml.INVOKESPECIAL , "java/lang/Object" , "<init>" , "()V" ) ; }

Target:
protected void methodSetUp ( ) { mv = cv.visitMethod ( 0 , "<init>" , "()V" , null , null ) ; mv.visitCode ( ) ; mv.visitVarInsn ( org.objectweb.asm.xml.ALOAD , 0 ) ; mv.visitMethodInsn ( org.objectweb.asm.xml.INVOKESPECIAL , "java/lang/Object" , "<init>" , "()V" , false ) ; }
Source:
private void testRSA_ECB_NoPadding_GetParameters_NoneProvided_Success ( java.lang.String provider ) throws java.lang.Exception { final java.security.PublicKey pubKey = ( ( java.security.PublicKey ) ( libcore.javax.crypto.CipherTest.getEncryptKey ( "RSA" ) ) ) ; javax.crypto.Cipher c = javax.crypto.Cipher.getInstance ( "RSA/ECB/NoPadding" , provider ) ; assertNull ( "Parameters should be null" , c.getParameters ( ) ) ; }

Target:
private void testRSA_ECB_NoPadding_GetParameters_NoneProvided_Success ( java.lang.String provider ) throws java.lang.Exception { javax.crypto.Cipher c = javax.crypto.Cipher.getInstance ( "RSA/ECB/NoPadding" , provider ) ; assertNull ( "Parameters should be null" , c.getParameters ( ) ) ; }
Source:
public java.lang.Boolean wifiConnect ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "config" ) org.json.JSONObject config ) throws java.net.ConnectException , org.json.JSONException { android.net.wifi.WifiConfiguration wifiConfig = genWifiConfig ( config ) ; int nId = mWifi.addNetwork ( wifiConfig ) ; if ( nId < 0 ) { com.googlecode.android_scripting.Log.e ( "Got negative network Id." ) ; return false ; } mWifi.disconnect ( ) ; mWifi.enableNetwork ( nId , true ) ; return mWifi.reconnect ( ) ; }

Target:
public java.lang.Boolean wifiConnect ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "config" ) org.json.JSONObject config ) throws java.net.ConnectException , org.json.JSONException { android.net.wifi.WifiConfiguration wifiConfig = genWifiConfig ( config ) ; int nId = mWifi.addNetwork ( wifiConfig ) ; if ( nId < 0 ) { com.googlecode.android_scripting.Log.e ( "Got negative network Id." ) ; return false ; } mWifi.enableNetwork ( nId , true ) ; return mWifi.reconnect ( ) ; }
Source:
private void deleteFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath vpath ) throws com.android.jack.incremental.IncrementalException { assert ( incrementalInputLibrary ) != null ; try { incrementalInputLibrary.getFile ( fileType , vpath ) ; try { incrementalInputLibrary.delete ( fileType , vpath ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.sched.util.ConcurrentIOException ( e ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.sched.util.ConcurrentIOException ( e ) ; } } catch ( com.android.jack.library.FileTypeDoesNotExistException e ) { } catch ( com.android.sched.util.file.CannotDeleteFileException e ) { throw new com.android.jack.incremental.IncrementalException ( e ) ; } }

Target:
private void deleteFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath vpath ) throws com.android.jack.incremental.IncrementalException { assert ( incrementalInputLibrary ) != null ; try { incrementalInputLibrary.getFile ( fileType , vpath ) ; incrementalInputLibrary.delete ( fileType , vpath ) ; } catch ( com.android.jack.library.FileTypeDoesNotExistException e ) { } catch ( com.android.sched.util.file.CannotDeleteFileException e ) { throw new com.android.jack.incremental.IncrementalException ( e ) ; } }
Source:
private void handleNetworkConnectionFailure ( int netId , int disableReason ) { if ( com.android.server.wifi.SupplicantStateTracker.DBG ) { android.util.Log.d ( com.android.server.wifi.SupplicantStateTracker.TAG , ( ( ( ( ( "handleNetworkConnectionFailure netId=" + ( java.lang.Integer.toString ( netId ) ) ) + " reason " ) + ( java.lang.Integer.toString ( disableReason ) ) ) + " mNetworksDisabledDuringConnect=" ) + ( mNetworksDisabledDuringConnect ) ) ) ; } if ( mNetworksDisabledDuringConnect ) { mWifiConfigManager.enableAllNetworks ( ) ; mNetworksDisabledDuringConnect = false ; } mWifiConfigManager.updateNetworkSelectionStatus ( netId , disableReason ) ; }

Target:
private void handleNetworkConnectionFailure ( int netId , int disableReason ) { if ( com.android.server.wifi.SupplicantStateTracker.DBG ) { android.util.Log.d ( com.android.server.wifi.SupplicantStateTracker.TAG , ( ( ( ( ( "handleNetworkConnectionFailure netId=" + ( java.lang.Integer.toString ( netId ) ) ) + " reason " ) + ( java.lang.Integer.toString ( disableReason ) ) ) + " mNetworksDisabledDuringConnect=" ) + ( mNetworksDisabledDuringConnect ) ) ) ; } if ( mNetworksDisabledDuringConnect ) { mNetworksDisabledDuringConnect = false ; } mWifiConfigManager.updateNetworkSelectionStatus ( netId , disableReason ) ; }
Source:
public boolean isMatchFor ( com.android.ide.common.resources.configuration.FolderConfiguration referenceConfig ) { if ( referenceConfig == null ) { return false ; } for ( int i = 0 ; i < ( com.android.ide.common.resources.configuration.FolderConfiguration.INDEX_COUNT ) ; i ++ ) { com.android.ide.common.resources.configuration.ResourceQualifier testQualifier = mQualifiers [ i ] ; com.android.ide.common.resources.configuration.ResourceQualifier referenceQualifier = referenceConfig.mQualifiers [ i ] ; if ( ( ( testQualifier != null ) && ( referenceQualifier != null ) ) && ( ( testQualifier.isMatchFor ( referenceQualifier ) ) == false ) ) { return false ; } } return true ; }

Target:
public boolean isMatchFor ( com.android.ide.common.resources.configuration.FolderConfiguration referenceConfig ) { if ( referenceConfig == null ) { return false ; } for ( int i = 0 ; i < ( com.android.ide.common.resources.configuration.FolderConfiguration.INDEX_COUNT ) ; i ++ ) { com.android.ide.common.resources.configuration.ResourceQualifier testQualifier = mQualifiers [ i ] ; com.android.ide.common.resources.configuration.ResourceQualifier referenceQualifier = referenceConfig.mQualifiers [ i ] ; if ( ( ( testQualifier != null ) && ( referenceQualifier != null ) ) && ( ! ( testQualifier.isMatchFor ( referenceQualifier ) ) ) ) { return false ; } } return true ; }
Source:
public java.util.List < ? extends com.google.gct.testing.dimension.GoogleCloudTestingType > getSupportedDomain ( ) { return com.google.common.collect.Lists.newArrayList ( com.google.common.collect.Iterables.filter ( getAppSupportedDomain ( ) , new com.google.common.base.Predicate < com.google.gct.testing.dimension.GoogleCloudTestingType > ( ) { @ java.lang.Override public boolean apply ( com.google.gct.testing.dimension.GoogleCloudTestingType type ) { return com.google.gct.testing.dimension.ApiDimension.BACKEND_SUPPORTED_API_VERSIONS.contains ( type ) ; } } ) ) ; }

Target:
public java.util.List < ? extends com.google.gct.testing.dimension.GoogleCloudTestingType > getSupportedDomain ( ) { return com.google.common.collect.Lists.newArrayList ( com.google.common.collect.Iterables.filter ( getAppSupportedDomain ( ) , new com.google.common.base.Predicate < com.google.gct.testing.dimension.GoogleCloudTestingType > ( ) { @ java.lang.Override public boolean apply ( com.google.gct.testing.dimension.GoogleCloudTestingType type ) { return true ; } } ) ) ; }
Source:
private void updateConnectionServiceFocus ( com.android.server.telecom.ConnectionServiceFocusManager.ConnectionServiceFocus connSvrFocus ) { if ( ! ( java.util.Objects.equals ( mCurrentFocus , connSvrFocus ) ) ) { if ( connSvrFocus != null ) { connSvrFocus.setConnectionServiceFocusListener ( mConnectionServiceFocusListener ) ; connSvrFocus.connectionServiceFocusGained ( ) ; } mCurrentFocus = connSvrFocus ; android.telecom.Log.d ( this , "updateConnectionServiceFocus connSvr = %s" , connSvrFocus ) ; } }

Target:
private void updateConnectionServiceFocus ( com.android.server.telecom.ConnectionServiceFocusManager.ConnectionServiceFocus connSvrFocus ) { if ( ! ( java.util.Objects.equals ( mCurrentFocus , connSvrFocus ) ) ) { if ( connSvrFocus != null ) { connSvrFocus.setConnectionServiceFocusListener ( mConnectionServiceFocusListener ) ; connSvrFocus.connectionServiceFocusGained ( ) ; } mCurrentFocus = connSvrFocus ; } }
Source:
public void testConstructor ( ) throws java.lang.Exception { try { java.util.jar.StrictJarFile jarFile = new java.util.jar.StrictJarFile ( "Wrong.file" ) ; fail ( "Should throw IOException" ) ; } catch ( java.io.IOException e ) { } tests.support.resource.Support_Resources.copyFile ( resources , null , libcore.java.util.jar.StrictJarFileTest.JAR_1 ) ; java.lang.String fileName = new java.io.File ( resources , libcore.java.util.jar.StrictJarFileTest.JAR_1 ) . getCanonicalPath ( ) ; java.util.jar.StrictJarFile jarFile = new java.util.jar.StrictJarFile ( fileName ) ; jarFile.close ( ) ; }

Target:
public void testConstructor ( ) throws java.lang.Exception { try { java.util.jar.StrictJarFile jarFile = new java.util.jar.StrictJarFile ( "Wrong.file" ) ; fail ( "Should throw IOException" ) ; } catch ( java.io.IOException e ) { } tests.support.resource.Support_Resources.copyFile ( resources , null , libcore.java.util.jar.StrictJarFileTest.JAR_1 ) ; java.lang.String fileName = new java.io.File ( resources , libcore.java.util.jar.StrictJarFileTest.JAR_1 ) . getCanonicalPath ( ) ; java.util.jar.StrictJarFile jarFile = new java.util.jar.StrictJarFile ( fileName ) ; assertEquals ( fileName , jarFile.getName ( ) ) ; jarFile.close ( ) ; }
Source:
public java.lang.String toString ( ) { byte [ ] bytes = asBytes ( ) ; java.lang.StringBuilder sb = new java.lang.StringBuilder ( ( 2 * ( bytes.length ) ) ) ; for ( byte b : bytes ) { sb.append ( com.google.common.hash.HashCode.hexDigits [ ( ( b > > 4 ) & 15 ) ] ) . append ( com.google.common.hash.HashCode.hexDigits [ ( b & 15 ) ] ) ; } return sb.toString ( ) ; }

Target:
public final java.lang.String toString ( ) { byte [ ] bytes = asBytes ( ) ; java.lang.StringBuilder sb = new java.lang.StringBuilder ( ( 2 * ( bytes.length ) ) ) ; for ( byte b : bytes ) { sb.append ( com.google.common.hash.HashCode.hexDigits [ ( ( b > > 4 ) & 15 ) ] ) . append ( com.google.common.hash.HashCode.hexDigits [ ( b & 15 ) ] ) ; } return sb.toString ( ) ; }
Source:
public boolean countryUsesUtc ( java.lang.String isoCountryCode , long whenMillis ) { if ( android.text.TextUtils.isEmpty ( isoCountryCode ) ) { return false ; } libcore.util.CountryTimeZones countryTimeZones = libcore.util.TimeZoneFinder.getInstance ( ) . lookupCountryTimeZones ( isoCountryCode ) ; if ( countryTimeZones == null ) { return false ; } return countryTimeZones.hasUtcZone ( whenMillis ) ; }

Target:
public boolean countryUsesUtc ( java.lang.String isoCountryCode , long whenMillis ) { if ( android.text.TextUtils.isEmpty ( isoCountryCode ) ) { return false ; } libcore.util.CountryTimeZones countryTimeZones = libcore.util.TimeZoneFinder.getInstance ( ) . lookupCountryTimeZones ( isoCountryCode ) ; return ( countryTimeZones != null ) && ( countryTimeZones.hasUtcZone ( whenMillis ) ) ; }
Source:
public void testConstructor_CaliperBenchmark_Profile ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( "-i" , "runtime" ) ; runner.run ( ) ; java.lang.String out = ios.contents ( Stream.OUT ) ; org.junit.Assert.assertTrue ( out.startsWith ( "Profiling is disabled: " ) ) ; out = out.replaceAll ( "^Profiling is disabled:[^\n]+\\n" , "" ) ; out = out.replaceAll ( "\t[^\n]+\\n" , "" ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "" + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.class . getName ( ) ) ) + "\"}\n" ) + "Experiment selection: \n" ) + " Benchmark Methods: [timeMethod]\n" ) + " Instruments: [runtime]\n" ) + " User parameters: {}\n" ) + " Virtual machines: [default]\n" ) + " Selection type: Full cartesian product\n" ) + "\n" ) + "This selection yields 1 experiments.\n" ) + ( com.google.caliper.runner.UserCodeException.class . getName ( ) ) ) + ": An exception was thrown from the benchmark code\n" ) + "Caused by: " ) + ( java.lang.IllegalStateException.class . getName ( ) ) ) + ": " ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.CALIPER_BENCHMARK_MESSAGE ) ) + "\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , out ) ; }

Target:
public void testConstructor_CaliperBenchmark_Profile ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( "-i" , "runtime" ) ; runner.run ( ) ; java.lang.String out = ios.contents ( Stream.OUT ) ; org.junit.Assert.assertTrue ( out.startsWith ( "Profiling is disabled: " ) ) ; out = out.replaceAll ( "^Profiling is disabled:[^\n]+\\n" , "" ) ; out = out.replaceAll ( "\t[^\n]+\\n" , "" ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "" + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.class . getName ( ) ) ) + "\"}\n" ) + "Experiment selection: \n" ) + " Benchmark Methods: [timeMethod]\n" ) + " Instruments: [runtime]\n" ) + " User parameters: {}\n" ) + " Virtual machines: [default]\n" ) + " Selection type: Full cartesian product\n" ) + "\n" ) + "This selection yields 1 experiments.\n" ) + "1\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , out ) ; }
Source:
public int getBuildSdk ( ) { java.lang.String compileTarget = mProject.getCompileTarget ( ) ; if ( compileTarget != null ) { com.android.sdklib.AndroidVersion version = com.android.sdklib.AndroidTargetHash.getPlatformVersion ( compileTarget ) ; if ( version != null ) { return version.getApiLevel ( ) ; } } return super . getBuildSdk ( ) ; }

Target:
public int getBuildSdk ( ) { java.lang.String compileTarget = mProject.getCompileTarget ( ) ; com.android.sdklib.AndroidVersion version = com.android.sdklib.AndroidTargetHash.getPlatformVersion ( compileTarget ) ; if ( version != null ) { return version.getApiLevel ( ) ; } return super . getBuildSdk ( ) ; }
Source:
public android.net.wifi.nan.ConfigRequest createFromParcel ( android.os.Parcel in ) { boolean support5gBand = ( in.readInt ( ) ) != 0 ; int masterPreference = in.readInt ( ) ; int clusterLow = in.readInt ( ) ; int clusterHigh = in.readInt ( ) ; boolean enableIdentityChangeCallback = ( in.readInt ( ) ) != 0 ; return new android.net.wifi.nan.ConfigRequest ( support5gBand , masterPreference , clusterLow , clusterHigh , enableIdentityChangeCallback ) ; }

Target:
public android.net.wifi.nan.ConfigRequest createFromParcel ( android.os.Parcel in ) { boolean support5gBand = ( in.readInt ( ) ) != 0 ; int masterPreference = in.readInt ( ) ; int clusterLow = in.readInt ( ) ; int clusterHigh = in.readInt ( ) ; return new android.net.wifi.nan.ConfigRequest ( support5gBand , masterPreference , clusterLow , clusterHigh ) ; }
Source:
private void verifyNoNetwork ( ) { assertNull ( mCm.getActiveNetworkInfo ( ) ) ; assertNull ( mCm.getActiveNetwork ( ) ) ; assertNull ( mCm.getActiveNetworkForUid ( java.lang.Process.myUid ( ) ) ) ; com.android.server.ConnectivityServiceTest.assertEmpty ( mCm.getAllNetworks ( ) ) ; }

Target:
private void verifyNoNetwork ( ) { assertNull ( mCm.getActiveNetworkInfo ( ) ) ; assertNull ( mCm.getActiveNetwork ( ) ) ; assertNull ( mCm.getActiveNetworkForUid ( java.lang.Process.myUid ( ) ) ) ; assertEquals ( 0 , mCm.getAllNetworks ( ) . length ) ; }
Source:
public int checkUriPermission ( android.net.Uri uri , int pid , int uid , int modeFlags ) { enforceNotIsolatedCaller ( "checkUriPermission" ) ; com.android.server.am.ActivityManagerService.Identity tlsIdentity = com.android.server.am.ActivityManagerService.sCallerIdentity.get ( ) ; if ( tlsIdentity != null ) { uid = tlsIdentity.uid ; pid = tlsIdentity.pid ; } uid = android.os.UserId.getAppId ( uid ) ; if ( pid == ( com.android.server.am.ActivityManagerService.MY_PID ) ) { return android.content.pm.PackageManager.PERMISSION_GRANTED ; } synchronized ( this ) { return checkUriPermissionLocked ( uri , uid , modeFlags ) ? android.content.pm.PackageManager.PERMISSION_GRANTED : android.content.pm.PackageManager.PERMISSION_DENIED ; } }

Target:
public int checkUriPermission ( android.net.Uri uri , int pid , int uid , int modeFlags ) { enforceNotIsolatedCaller ( "checkUriPermission" ) ; com.android.server.am.ActivityManagerService.Identity tlsIdentity = com.android.server.am.ActivityManagerService.sCallerIdentity.get ( ) ; if ( tlsIdentity != null ) { uid = tlsIdentity.uid ; pid = tlsIdentity.pid ; } if ( pid == ( com.android.server.am.ActivityManagerService.MY_PID ) ) { return android.content.pm.PackageManager.PERMISSION_GRANTED ; } synchronized ( this ) { return checkUriPermissionLocked ( uri , uid , modeFlags ) ? android.content.pm.PackageManager.PERMISSION_GRANTED : android.content.pm.PackageManager.PERMISSION_DENIED ; } }
Source:
public void onStart ( ) { com.android.dialer.common.LogUtil.enterBlock ( "CallLogFragment.onStart" ) ; super . onStart ( ) ; com.android.dialer.oem.CequintCallerIdManager cequintCallerIdManager = null ; if ( com.android.dialer.oem.CequintCallerIdManager.isCequintCallerIdEnabled ( getContext ( ) ) ) { cequintCallerIdManager = com.android.dialer.oem.CequintCallerIdManager.createInstanceForCallLog ( ) ; } contactInfoCache.setCequintCallerIdManager ( cequintCallerIdManager ) ; }

Target:
public void onStart ( ) { com.android.dialer.common.LogUtil.enterBlock ( "CallLogFragment.onStart" ) ; super . onStart ( ) ; com.android.dialer.oem.CequintCallerIdManager cequintCallerIdManager = null ; if ( com.android.dialer.oem.CequintCallerIdManager.isCequintCallerIdEnabled ( getContext ( ) ) ) { cequintCallerIdManager = new com.android.dialer.oem.CequintCallerIdManager ( ) ; } contactInfoCache.setCequintCallerIdManager ( cequintCallerIdManager ) ; }
Source:
private void deleteFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath vpath ) throws com.android.jack.incremental.IncrementalException { assert ( incrementalInputLibrary ) != null ; try { incrementalInputLibrary.getFile ( fileType , vpath ) ; incrementalInputLibrary.delete ( fileType , vpath ) ; } catch ( com.android.jack.library.FileTypeDoesNotExistException e ) { } catch ( com.android.sched.util.file.CannotDeleteFileException e ) { throw new com.android.jack.incremental.IncrementalException ( e ) ; } }

Target:
private void deleteFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath vpath ) throws com.android.jack.incremental.IncrementalException { assert ( incrementalInputLibrary ) != null ; try { incrementalInputLibrary.delete ( fileType , vpath ) ; } catch ( com.android.jack.library.FileTypeDoesNotExistException e ) { } catch ( com.android.sched.util.file.CannotDeleteFileException e ) { throw new com.android.jack.incremental.IncrementalException ( e ) ; } }
Source:
public static boolean showIncomingVideo ( int videoState , int callState ) { if ( ! ( com.android.dialer.compat.CompatUtils.isVideoCompatible ( ) ) ) { return false ; } boolean isPaused = android.telecom.VideoProfile.isPaused ( videoState ) ; boolean isCallActive = callState == ( com.android.incallui.call.DialerCall.State.ACTIVE ) ; boolean isCallOutgoingPending = ( DialerCall.State.isDialing ( callState ) ) || ( callState == ( com.android.incallui.call.DialerCall.State.CONNECTING ) ) ; return ( ( ! isPaused ) && ( isCallActive || isCallOutgoingPending ) ) && ( android.telecom.VideoProfile.isReceptionEnabled ( videoState ) ) ; }

Target:
static boolean showIncomingVideo ( int videoState , int callState ) { boolean isPaused = android.telecom.VideoProfile.isPaused ( videoState ) ; boolean isCallActive = callState == ( com.android.incallui.call.DialerCall.State.ACTIVE ) ; boolean isCallOutgoingPending = ( DialerCall.State.isDialing ( callState ) ) || ( callState == ( com.android.incallui.call.DialerCall.State.CONNECTING ) ) ; return ( ( ! isPaused ) && ( isCallActive || isCallOutgoingPending ) ) && ( android.telecom.VideoProfile.isReceptionEnabled ( videoState ) ) ; }
Source:
private void addListValue ( java.lang.reflect.Field field , java.lang.Object value , com.google.devtools.common.options.OptionPriority priority , java.lang.String source , java.lang.String implicitDependant , java.lang.String expandedFrom ) { com.google.devtools.common.options.OptionsParser.OptionValueDescription entry = parsedValues.get ( field ) ; if ( entry == null ) { entry = new com.google.devtools.common.options.OptionsParser.OptionValueDescription ( field.getName ( ) , com.google.common.collect.ArrayListMultimap.create ( ) , priority , source , implicitDependant , expandedFrom , true ) ; parsedValues.put ( field , entry ) ; maybeAddDeprecationWarning ( field ) ; } entry.addValue ( priority , value ) ; }

Target:
private void addListValue ( java.lang.reflect.Field field , java.lang.Object value , com.google.devtools.common.options.OptionPriority priority , java.lang.String source , java.lang.String implicitDependant , java.lang.String expandedFrom ) { com.google.devtools.common.options.OptionsParser.OptionValueDescription entry = parsedValues.get ( field ) ; if ( entry == null ) { entry = new com.google.devtools.common.options.OptionsParser.OptionValueDescription ( field.getName ( ) , null , com.google.common.collect.ArrayListMultimap.create ( ) , priority , source , implicitDependant , expandedFrom , true ) ; parsedValues.put ( field , entry ) ; maybeAddDeprecationWarning ( field ) ; } entry.addValue ( priority , value ) ; }
Source:
void registerServer ( java.util.UUID uuid , android.bluetooth.IBluetoothGattServerCallback callback ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "registerServer() - UUID=" + uuid ) ) ; mServerMap.add ( uuid , callback , this ) ; gattServerRegisterAppNative ( uuid.getLeastSignificantBits ( ) , uuid.getMostSignificantBits ( ) ) ; }

Target:
void registerServer ( java.util.UUID uuid , android.bluetooth.IBluetoothGattServerCallback callback ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "registerServer() - UUID=" + uuid ) ) ; mServerMap.add ( uuid , null , callback , this ) ; gattServerRegisterAppNative ( uuid.getLeastSignificantBits ( ) , uuid.getMostSignificantBits ( ) ) ; }
Source:
private static void onSuccess ( android.content.Context context , android.telecom.PhoneAccountHandle phoneAccountHandle ) { com.android.voicemail.impl.OmtpVvmCarrierConfigHelper helper = new com.android.voicemail.impl.OmtpVvmCarrierConfigHelper ( context , phoneAccountHandle ) ; helper.handleEvent ( com.android.voicemail.impl.VoicemailStatus.edit ( context , phoneAccountHandle ) , OmtpEvents.CONFIG_REQUEST_STATUS_SUCCESS ) ; com.android.voicemail.impl.ActivationTask.clearLegacyVoicemailNotification ( context , phoneAccountHandle ) ; com.android.voicemail.impl.sync.SyncTask.start ( context , phoneAccountHandle ) ; }

Target:
private static void onSuccess ( android.content.Context context , android.telecom.PhoneAccountHandle phoneAccountHandle , com.android.voicemail.impl.OmtpVvmCarrierConfigHelper config ) { config.handleEvent ( com.android.voicemail.impl.VoicemailStatus.edit ( context , phoneAccountHandle ) , OmtpEvents.CONFIG_REQUEST_STATUS_SUCCESS ) ; com.android.voicemail.impl.ActivationTask.clearLegacyVoicemailNotification ( context , phoneAccountHandle ) ; com.android.voicemail.impl.sync.SyncTask.start ( context , phoneAccountHandle ) ; }