auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.google.android.gles_jni.EGLContext eglCreateContext ( com.google.android.gles_jni.EGLDisplay display , com.google.android.gles_jni.EGLConfig config , com.google.android.gles_jni.EGLContext share_context , int [ ] attrib_list ) { int eglContextId = _eglCreateContext ( display , config , share_context , attrib_list ) ; if ( eglContextId == 0 ) { return EGL10.EGL_NO_CONTEXT ; } return new com.google.android.gles_jni.EGLContextImpl ( eglContextId ) ; }

Target:
public com.google.android.gles_jni.EGLContext eglCreateContext ( com.google.android.gles_jni.EGLDisplay display , com.google.android.gles_jni.EGLConfig config , com.google.android.gles_jni.EGLContext share_context , int [ ] attrib_list ) { long eglContextId = _eglCreateContext ( display , config , share_context , attrib_list ) ; if ( eglContextId == 0 ) { return EGL10.EGL_NO_CONTEXT ; } return new com.google.android.gles_jni.EGLContextImpl ( eglContextId ) ; }
Source:
public static < TValue extends java.lang.Number > double getVariance ( java.util.Collection < TValue > collection ) { android.hardware.cts.helpers.SensorCtsHelper.validateCollection ( collection ) ; double mean = android.hardware.cts.helpers.SensorCtsHelper.getMean ( collection ) ; java.util.ArrayList < java.lang.Double > squaredDifferences = new java.util.ArrayList < java.lang.Double > ( ) ; for ( TValue value : collection ) { double difference = mean - ( value.doubleValue ( ) ) ; squaredDifferences.add ( java.lang.Math.pow ( difference , 2 ) ) ; } double variance = android.hardware.cts.helpers.SensorCtsHelper.getMean ( squaredDifferences ) ; return variance ; }

Target:
public static < TValue extends java.lang.Number > double getVariance ( java.util.Collection < TValue > collection ) { android.hardware.cts.helpers.SensorCtsHelper.validateCollection ( collection ) ; double mean = android.hardware.cts.helpers.SensorCtsHelper.getMean ( collection ) ; java.util.ArrayList < java.lang.Double > squaredDifferences = new java.util.ArrayList < java.lang.Double > ( ) ; for ( TValue value : collection ) { double difference = mean - ( value.doubleValue ( ) ) ; squaredDifferences.add ( java.lang.Math.pow ( difference , 2 ) ) ; } return android.hardware.cts.helpers.SensorCtsHelper.getMean ( squaredDifferences ) ; }
Source:
public static java.lang.String getMimeType ( android.content.Context context , java.lang.String uriString ) { android.content.ContentResolver resolver = context.getContentResolver ( ) ; android.net.Uri uri = android.net.Uri.parse ( uriString ) ; if ( org.chromium.base.ContentUriUtils.isVirtualDocument ( uri , context ) ) { java.lang.String [ ] streamTypes = resolver.getStreamTypes ( uri , "*/*" ) ; return ( streamTypes != null ) && ( ( streamTypes.length ) > 0 ) ? streamTypes [ 0 ] : null ; } return resolver.getType ( uri ) ; }

Target:
public static java.lang.String getMimeType ( android.content.Context context , java.lang.String uriString ) { android.content.ContentResolver resolver = context.getContentResolver ( ) ; if ( resolver == null ) return null ; android.net.Uri uri = android.net.Uri.parse ( uriString ) ; return resolver.getType ( uri ) ; }
Source:
public java.nio.ByteBuffer putInt ( int x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putInt ( ix ( nextPutIndex ( SizeOf.INT ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer putInt ( int x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putInt ( ix ( nextPutIndex ( SizeOf.INT ) ) , x ) ; return this ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) return true ; if ( ( getClass ( ) ) != ( obj.getClass ( ) ) ) return false ; com.android.ide.common.resources.configuration.ScreenHeightQualifier other = ( ( com.android.ide.common.resources.configuration.ScreenHeightQualifier ) ( obj ) ) ; if ( ( mValue ) != ( other.mValue ) ) return false ; return true ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) { return true ; } if ( obj == null ) { return false ; } if ( ( getClass ( ) ) != ( obj.getClass ( ) ) ) { return false ; } com.android.ide.common.resources.configuration.ScreenHeightQualifier other = ( ( com.android.ide.common.resources.configuration.ScreenHeightQualifier ) ( obj ) ) ; if ( ( mValue ) != ( other.mValue ) ) { return false ; } return true ; }
Source:
private static com.ibm.icu.util.Calendar.PatternData make ( com.ibm.icu.util.Calendar cal , com.ibm.icu.util.ULocale loc ) { java.lang.String calType = cal.getType ( ) ; java.lang.String key = ( ( loc.getBaseName ( ) ) + "+" ) + calType ; com.ibm.icu.util.Calendar.PatternData patternData = com.ibm.icu.util.Calendar.PATTERN_CACHE.get ( key ) ; if ( patternData == null ) { try { patternData = com.ibm.icu.util.Calendar.getPatternData ( loc , calType ) ; } catch ( java.util.MissingResourceException e ) { patternData = new com.ibm.icu.util.Calendar.PatternData ( com.ibm.icu.util.Calendar.DEFAULT_PATTERNS , null ) ; } com.ibm.icu.util.Calendar.PATTERN_CACHE.put ( key , patternData ) ; } return patternData ; }

Target:
private static com.ibm.icu.util.Calendar.PatternData make ( com.ibm.icu.util.ULocale loc , java.lang.String calType ) { java.lang.String key = ( ( loc.getBaseName ( ) ) + "+" ) + calType ; com.ibm.icu.util.Calendar.PatternData patternData = com.ibm.icu.util.Calendar.PATTERN_CACHE.get ( key ) ; if ( patternData == null ) { try { patternData = com.ibm.icu.util.Calendar.getPatternData ( loc , calType ) ; } catch ( java.util.MissingResourceException e ) { patternData = new com.ibm.icu.util.Calendar.PatternData ( com.ibm.icu.util.Calendar.DEFAULT_PATTERNS , null ) ; } com.ibm.icu.util.Calendar.PATTERN_CACHE.put ( key , patternData ) ; } return patternData ; }
Source:
protected void close ( ) throws java.io.IOException { synchronized ( fdLock ) { if ( ( fd ) != null ) { if ( ! ( stream ) ) { sun.net.ResourceManager.afterUdpClose ( ) ; } if ( closePending ) { return ; } closePending = true ; socketClose ( ) ; fd = null ; return ; } } }

Target:
protected void close ( ) throws java.io.IOException { synchronized ( fdLock ) { if ( ( ( fd ) != null ) && ( fd.valid ( ) ) ) { if ( ! ( stream ) ) { sun.net.ResourceManager.afterUdpClose ( ) ; } if ( closePending ) { return ; } closePending = true ; socketClose ( ) ; return ; } } }
Source:
protected boolean isValidSourceFile ( java.io.File sourceFolder , java.io.File file ) { return file.getParentFile ( ) . equals ( sourceFolder ) ; }

Target:
protected boolean isValidSourceFile ( java.io.File sourceFolder , java.io.File file ) { java.io.File parent = file.getParentFile ( ) ; while ( ( parent != null ) && ( ! ( parent.equals ( sourceFolder ) ) ) ) { parent = parent.getParentFile ( ) ; } return parent != null ; }
Source:
public E next ( ) { if ( ( cursor ) == ( fence ) ) throw new java.util.NoSuchElementException ( ) ; cursor = ( ( cursor ) - 1 ) & ( ( elements.length ) - 1 ) ; E result = elements [ cursor ] ; if ( ( ( head ) != ( fence ) ) || ( result == null ) ) throw new java.util.ConcurrentModificationException ( ) ; lastRet = cursor ; return result ; }

Target:
public E next ( ) { if ( ( cursor ) == ( fence ) ) throw new java.util.NoSuchElementException ( ) ; cursor = ( ( cursor ) - 1 ) & ( ( elements.length ) - 1 ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) E result = ( ( E ) ( elements [ cursor ] ) ) ; if ( ( ( head ) != ( fence ) ) || ( result == null ) ) throw new java.util.ConcurrentModificationException ( ) ; lastRet = cursor ; return result ; }
Source:
protected final void finalize ( ) throws java.lang.Throwable { try { if ( ( guard ) != null ) { org.conscrypt.Platform.closeGuardWarnIfOpen ( guard ) ; } if ( ( ssl ) != null ) { synchronized ( ssl ) { transitionTo ( EngineStates.STATE_CLOSED ) ; } } } finally { super . finalize ( ) ; } }

Target:
protected final void finalize ( ) throws java.lang.Throwable { try { if ( ( guard ) != null ) { org.conscrypt.Platform.closeGuardWarnIfOpen ( guard ) ; } synchronized ( ssl ) { transitionTo ( EngineStates.STATE_CLOSED ) ; } } finally { super . finalize ( ) ; } }
Source:
public void testNetworkEventSerialization ( ) { android.net.ConnectivityMetricsEvent ev = com.android.server.connectivity.MetricsTestUtil.describeIpEvent ( com.android.server.connectivity.MetricsTestUtil.aType ( android.net.metrics.NetworkEvent.class ) , com.android.server.connectivity.MetricsTestUtil.anInt ( 100 ) , com.android.server.connectivity.MetricsTestUtil.anInt ( 5 ) , com.android.server.connectivity.MetricsTestUtil.aLong ( 20410 ) ) ; java.lang.String want = java.lang.String.join ( "\n" , "dropped_events: 0" , "events <" , " if_name: \"\"" , " link_layer: 0" , " network_id: 0" , " time_ms: 1" , " transports: 0" , " network_event <" , " event_type: 5" , " latency_ms: 20410" , " network_id <" , " network_id: 100" , " >" , " >" , ">" , "version: 2\n" ) ; com.android.server.connectivity.IpConnectivityEventBuilderTest.verifySerialization ( want , ev ) ; }

Target:
public void testNetworkEventSerialization ( ) { android.net.ConnectivityMetricsEvent ev = com.android.server.connectivity.MetricsTestUtil.describeIpEvent ( com.android.server.connectivity.MetricsTestUtil.aType ( android.net.metrics.NetworkEvent.class ) , com.android.server.connectivity.MetricsTestUtil.anInt ( 5 ) , com.android.server.connectivity.MetricsTestUtil.aLong ( 20410 ) ) ; java.lang.String want = java.lang.String.join ( "\n" , "dropped_events: 0" , "events <" , " if_name: \"\"" , " link_layer: 0" , " network_id: 0" , " time_ms: 1" , " transports: 0" , " network_event <" , " event_type: 5" , " latency_ms: 20410" , " >" , ">" , "version: 2\n" ) ; com.android.server.connectivity.IpConnectivityEventBuilderTest.verifySerialization ( want , ev ) ; }
Source:
private void selectItemName ( java.lang.String itemName ) { if ( itemName == null ) { return ; } com.android.ide.eclipse.adt.internal.resources.IResourceRepository repo = getCurrentRepository ( ) ; com.android.ide.eclipse.adt.internal.resources.ResourceItem [ ] items = repo.getResources ( mResourceType ) ; for ( com.android.ide.eclipse.adt.internal.resources.ResourceItem item : items ) { if ( itemName.equals ( item.getName ( ) ) ) { setSelection ( new java.lang.Object [ ] { item } ) ; break ; } } }

Target:
private void selectItemName ( java.lang.String itemName , com.android.ide.eclipse.adt.internal.resources.ResourceItem [ ] items ) { if ( ( itemName == null ) || ( items == null ) ) { return ; } for ( com.android.ide.eclipse.adt.internal.resources.ResourceItem item : items ) { if ( itemName.equals ( item.getName ( ) ) ) { setSelection ( new java.lang.Object [ ] { item } ) ; break ; } } }
Source:
public void afterCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( mPendingFields ) != null ) { for ( java.util.List < com.android.utils.Pair < java.lang.String , com.android.tools.lint.detector.api.Location > > list : mPendingFields.values ( ) ) { for ( com.android.utils.Pair < java.lang.String , com.android.tools.lint.detector.api.Location > pair : list ) { java.lang.String message = pair.getFirst ( ) ; com.android.tools.lint.detector.api.Location location = pair.getSecond ( ) ; context.report ( com.android.tools.lint.checks.ApiDetector.INLINED , location , message , null ) ; } } } super . afterCheckProject ( context ) ; }

Target:
public void afterCheckProject ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { if ( ( mPendingFields ) != null ) { for ( java.util.List < com.android.utils.Pair < java.lang.String , com.android.tools.lint.detector.api.Location > > list : mPendingFields.values ( ) ) { for ( com.android.utils.Pair < java.lang.String , com.android.tools.lint.detector.api.Location > pair : list ) { java.lang.String message = pair.getFirst ( ) ; com.android.tools.lint.detector.api.Location location = pair.getSecond ( ) ; context.report ( com.android.tools.lint.checks.ApiDetector.INLINED , location , message ) ; } } } super . afterCheckProject ( context ) ; }
Source:
private static void checkInputFile ( java.io.File file ) throws com.android.builder.packaging.PackagerException , java.io.FileNotFoundException { if ( file.isDirectory ( ) ) { throw new com.android.builder.packaging.PackagerException ( "%s is a directory!" , file ) ; } if ( file.exists ( ) ) { if ( ( file.canRead ( ) ) == false ) { throw new com.android.builder.packaging.PackagerException ( "Cannot read %s" , file ) ; } } else { throw new java.io.FileNotFoundException ( java.lang.String.format ( "%s does not exist" , file ) ) ; } }

Target:
private static void checkInputFile ( java.io.File file ) throws com.android.builder.packaging.PackagerException , java.io.FileNotFoundException { if ( file.isDirectory ( ) ) { throw new com.android.builder.packaging.PackagerException ( "%s is a directory!" , file ) ; } if ( file.exists ( ) ) { if ( ! ( file.canRead ( ) ) ) { throw new com.android.builder.packaging.PackagerException ( "Cannot read %s" , file ) ; } } else { throw new java.io.FileNotFoundException ( java.lang.String.format ( "%s does not exist" , file ) ) ; } }
Source:
private static java.lang.Class defineClass ( java.lang.String name , java.lang.ClassLoader loader , int cookie , java.util.List < java.lang.Throwable > suppressed ) { java.lang.Class result = null ; try { result = dalvik.system.DexFile.defineClassNative ( name , loader , cookie ) ; } catch ( java.lang.NoClassDefFoundError e ) { if ( suppressed != null ) { suppressed.add ( e ) ; } } catch ( java.lang.ClassNotFoundException e ) { if ( suppressed != null ) { suppressed.add ( e ) ; } } return result ; }

Target:
private static java.lang.Class defineClass ( java.lang.String name , java.lang.ClassLoader loader , long cookie , java.util.List < java.lang.Throwable > suppressed ) { java.lang.Class result = null ; try { result = dalvik.system.DexFile.defineClassNative ( name , loader , cookie ) ; } catch ( java.lang.NoClassDefFoundError e ) { if ( suppressed != null ) { suppressed.add ( e ) ; } } catch ( java.lang.ClassNotFoundException e ) { if ( suppressed != null ) { suppressed.add ( e ) ; } } return result ; }
Source:
private void setNextTrack ( ) { mNextPlayPos = getNextPosition ( false ) ; if ( ( mNextPlayPos ) >= 0 ) { long id = mPlayList [ mNextPlayPos ] ; mPlayer.setNextDataSource ( ( ( ( MediaStore.Audio.Media.EXTERNAL_CONTENT_URI ) + "/" ) + id ) ) ; } }

Target:
private void setNextTrack ( ) { mNextPlayPos = getNextPosition ( false ) ; if ( ( mNextPlayPos ) >= 0 ) { long id = mPlayList [ mNextPlayPos ] ; mPlayer.setNextDataSource ( ( ( ( MediaStore.Audio.Media.EXTERNAL_CONTENT_URI ) + "/" ) + id ) ) ; } else { mPlayer.setNextDataSource ( null ) ; } }
Source:
public final java.nio.ByteBuffer putFloat ( float x ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } putFloat ( ix ( nextPutIndex ( SizeOf.FLOAT ) ) , x ) ; return this ; }

Target:
public final java.nio.ByteBuffer putFloat ( float x ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } putFloat ( ix ( nextPutIndex ( SizeOf.FLOAT ) ) , x ) ; return this ; }
Source:
public void notifyStartPublishResponse ( short id , android.hardware.wifi.V1_0.WifiNanStatus status , short publishId ) { if ( com.android.server.wifi.aware.WifiAwareNativeCallback.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNativeCallback.TAG , ( ( ( ( ( "notifyStartPublishResponse: id=" + id ) + ", status=" ) + ( com.android.server.wifi.aware.WifiAwareNativeCallback.statusString ( status ) ) ) + ", publishId=" ) + publishId ) ) ; } if ( ( status.status ) == ( android.hardware.wifi.V1_0.NanStatusType.SUCCESS ) ) { mWifiAwareStateManager.onSessionConfigSuccessResponse ( id , true , publishId ) ; } else { mWifiAwareStateManager.onSessionConfigFailResponse ( id , true , status.status ) ; } }

Target:
public void notifyStartPublishResponse ( short id , android.hardware.wifi.V1_0.WifiNanStatus status , byte publishId ) { if ( com.android.server.wifi.aware.WifiAwareNativeCallback.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNativeCallback.TAG , ( ( ( ( ( "notifyStartPublishResponse: id=" + id ) + ", status=" ) + ( com.android.server.wifi.aware.WifiAwareNativeCallback.statusString ( status ) ) ) + ", publishId=" ) + publishId ) ) ; } if ( ( status.status ) == ( android.hardware.wifi.V1_0.NanStatusType.SUCCESS ) ) { mWifiAwareStateManager.onSessionConfigSuccessResponse ( id , true , publishId ) ; } else { mWifiAwareStateManager.onSessionConfigFailResponse ( id , true , status.status ) ; } }
Source:
public boolean disableRttResponder ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.disableRttResponder ( ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( ! ( isHalStarted ( ) ) ) return false ; if ( ( com.android.server.wifi.WifiNative.sRttResponderCmdId ) == 0 ) { android.util.Log.e ( mTAG , "responder role not enabled yet" ) ; return true ; } com.android.server.wifi.WifiNative.sRttResponderCmdId = 0 ; return com.android.server.wifi.WifiNative.disableRttResponderNative ( com.android.server.wifi.WifiNative.sWlan0Index , com.android.server.wifi.WifiNative.sRttResponderCmdId ) ; } } }

Target:
public boolean disableRttResponder ( ) { return mWifiVendorHal.disableRttResponder ( ) ; }
Source:
public boolean p2pGroupRemove ( java.lang.String iface ) { if ( android.text.TextUtils.isEmpty ( iface ) ) return false ; if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.groupRemove ( iface ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " P2P_GROUP_REMOVE " ) + iface ) ) ; } } }

Target:
public boolean p2pGroupRemove ( java.lang.String iface ) { return mSupplicantP2pIfaceHal.groupRemove ( iface ) ; }
Source:
public void onUiShowing ( boolean showing ) { if ( ( statusBarNotifier ) != null ) { statusBarNotifier.updateNotification ( ) ; } if ( ( proximitySensor ) != null ) { proximitySensor.onInCallShowing ( showing ) ; } if ( ! showing ) { updateIsChangingConfigurations ( ) ; } for ( com.android.incallui.InCallPresenter.InCallUiListener listener : inCallUiListeners ) { listener.onUiShowing ( showing ) ; } if ( ( inCallActivity ) != null ) { inCallActivity.onPrimaryCallStateChanged ( ) ; } }

Target:
void updateNotification ( ) { if ( ( statusBarNotifier ) != null ) { statusBarNotifier.updateNotification ( ) ; } }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession x ) { for ( int i = 0 ; i < ( x.getTypesToEmit ( ) . size ( ) ) ; ++ i ) { com.android.jack.ir.ast.JDefinedClassOrInterface type = x.getTypesToEmit ( ) . get ( i ) ; if ( ! ( type.isExternal ( ) ) ) { accept ( type ) ; newline ( ) ; newline ( ) ; } } return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession x ) { for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : x.getTypesToEmit ( ) ) { if ( ! ( type.isExternal ( ) ) ) { accept ( type ) ; newline ( ) ; newline ( ) ; } } return false ; }
Source:
synchronized void nAllocationData2D ( int id , int xoff , int yoff , int mip , int face , int w , int h , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }
Source:
public void delete ( int key ) { int i = com.android.layoutlib.bridge.util.SparseWeakArray.binarySearch ( mKeys , 0 , mSize , key ) ; if ( i >= 0 ) { if ( ( mValues [ i ] ) != ( com.android.layoutlib.bridge.util.SparseWeakArray.DELETED ) ) { mValues [ i ] = com.android.layoutlib.bridge.util.SparseWeakArray.DELETED ; mGarbage = true ; } } }

Target:
public void delete ( long key ) { int i = com.android.layoutlib.bridge.util.SparseWeakArray.binarySearch ( mKeys , 0 , mSize , key ) ; if ( i >= 0 ) { if ( ( mValues [ i ] ) != ( com.android.layoutlib.bridge.util.SparseWeakArray.DELETED ) ) { mValues [ i ] = com.android.layoutlib.bridge.util.SparseWeakArray.DELETED ; mGarbage = true ; } } }
Source:
public boolean sendReport ( android.bluetooth.BluetoothDevice device , int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) android.util.Log.v ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( ( ( "sendReport(): device=" + device ) + " id=" ) + id ) ) ; com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.sendReport ( device , id , data ) ; }

Target:
public boolean sendReport ( android.bluetooth.BluetoothDevice device , int id , byte [ ] data ) { if ( com.android.bluetooth.hid.HidDevService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDevService.BluetoothHidDeviceBinder.TAG , ( ( ( "sendReport(): device=" + device ) + " id=" ) + id ) ) ; } com.android.bluetooth.hid.HidDevService service = getService ( ) ; if ( service == null ) { return false ; } return service.sendReport ( device , id , data ) ; }
Source:
public void drawBitmap ( android.graphics.Bitmap bitmap , android.graphics.Matrix matrix , android.graphics.Paint paint ) { throwIfCannotDraw ( bitmap ) ; int modifiers = ( paint != null ) ? setupModifiers ( bitmap , paint ) : android.view.GLES20Canvas.MODIFIER_NONE ; try { final int nativePaint = ( paint == null ) ? 0 : paint.mNativePaint ; android.view.GLES20Canvas.nDrawBitmap ( mRenderer , bitmap.mNativeBitmap , bitmap.mBuffer , matrix.native_instance , nativePaint ) ; } finally { if ( modifiers != ( android.view.GLES20Canvas.MODIFIER_NONE ) ) android.view.GLES20Canvas.nResetModifiers ( mRenderer , modifiers ) ; } }

Target:
public void drawBitmap ( android.graphics.Bitmap bitmap , android.graphics.Matrix matrix , android.graphics.Paint paint ) { throwIfCannotDraw ( bitmap ) ; int modifiers = ( paint != null ) ? setupModifiers ( bitmap , paint ) : android.view.GLES20Canvas.MODIFIER_NONE ; try { final long nativePaint = ( paint == null ) ? 0 : paint.mNativePaint ; android.view.GLES20Canvas.nDrawBitmap ( mRenderer , bitmap.mNativeBitmap , bitmap.mBuffer , matrix.native_instance , nativePaint ) ; } finally { if ( modifiers != ( android.view.GLES20Canvas.MODIFIER_NONE ) ) android.view.GLES20Canvas.nResetModifiers ( mRenderer , modifiers ) ; } }
Source:
public void test_EVP_CIPHER_iv_length ( ) throws java.lang.Exception { int aes128ecb = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_get_cipherbyname ( "aes-128-ecb" ) ; assertEquals ( 0 , org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CIPHER_iv_length ( aes128ecb ) ) ; int aes128cbc = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_get_cipherbyname ( "aes-128-cbc" ) ; assertEquals ( 16 , org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CIPHER_iv_length ( aes128cbc ) ) ; }

Target:
public void test_EVP_CIPHER_iv_length ( ) throws java.lang.Exception { long aes128ecb = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_get_cipherbyname ( "aes-128-ecb" ) ; assertEquals ( 0 , org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CIPHER_iv_length ( aes128ecb ) ) ; long aes128cbc = org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_get_cipherbyname ( "aes-128-cbc" ) ; assertEquals ( 16 , org.apache.harmony.xnet.provider.jsse.NativeCrypto.EVP_CIPHER_iv_length ( aes128cbc ) ) ; }
Source:
private void testAES_ECB_NoPadding_IvParameters_Failure ( java.lang.String provider ) throws java.lang.Exception { javax.crypto.SecretKey key = new javax.crypto.spec.SecretKeySpec ( libcore.javax.crypto.CipherTest.AES_128_KEY , "AES" ) ; javax.crypto.Cipher c = javax.crypto.Cipher.getInstance ( "AES/ECB/NoPadding" , provider ) ; java.security.spec.AlgorithmParameterSpec spec = new javax.crypto.spec.IvParameterSpec ( libcore.javax.crypto.CipherTest.AES_IV_ZEROES ) ; try { c.init ( javax.crypto.Cipher.ENCRYPT_MODE , key , spec ) ; fail ( ( "Should not accept an IV in ECB mode; provider=" + provider ) ) ; } catch ( java.security.InvalidAlgorithmParameterException expected ) { } }

Target:
private void testAES_ECB_NoPadding_IvParameters_Failure ( java.lang.String provider ) throws java.lang.Exception { javax.crypto.Cipher c = javax.crypto.Cipher.getInstance ( "AES/ECB/NoPadding" , provider ) ; java.security.spec.AlgorithmParameterSpec spec = new javax.crypto.spec.IvParameterSpec ( libcore.javax.crypto.CipherTest.AES_IV_ZEROES ) ; try { c.init ( javax.crypto.Cipher.ENCRYPT_MODE , libcore.javax.crypto.CipherTest.AES_128_KEY , spec ) ; fail ( ( "Should not accept an IV in ECB mode; provider=" + provider ) ) ; } catch ( java.security.InvalidAlgorithmParameterException expected ) { } }
Source:
private void processSlcConnected ( ) { if ( ( mPhoneProxy ) != null ) { try { mPhoneProxy.queryPhoneState ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } } else { android.util.Log.e ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "Handsfree phone proxy null for query phone state" ) ; } }

Target:
private void queryPhoneState ( ) { if ( ( mPhoneProxy ) != null ) { try { mPhoneProxy.queryPhoneState ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } } else { android.util.Log.e ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "Handsfree phone proxy null for query phone state" ) ; } }
Source:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDH_RSA_WITH_AES_256_CBC_SHA" , "TLS_RSA_WITH_AES_128_GCM_SHA256" , "TLS_RSA_WITH_AES_256_GCM_SHA384" , "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "TLS_ECDH_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDH_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_MD5" , "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_RSA_WITH_3DES_EDE_CBC_SHA" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }

Target:
public static java.lang.String [ ] getDefaultCipherSuites ( ) { return new java.lang.String [ ] { "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" , "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" , "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" , "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" , "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" , "TLS_RSA_WITH_AES_128_GCM_SHA256" , "TLS_RSA_WITH_AES_256_GCM_SHA384" , "TLS_RSA_WITH_AES_128_CBC_SHA" , "TLS_RSA_WITH_AES_256_CBC_SHA" , "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA" , "TLS_ECDHE_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_SHA" , "SSL_RSA_WITH_RC4_128_MD5" , "TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA" , "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA" , "SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA" , "SSL_RSA_WITH_3DES_EDE_CBC_SHA" , org.conscrypt.NativeCrypto.TLS_EMPTY_RENEGOTIATION_INFO_SCSV } ; }
Source:
public void testHandleUserUnlockAfterBootupBeforeLegacyStoreMigration ( ) throws java.lang.Exception { int user1 = com.android.server.wifi.WifiConfigManagerTest.TEST_DEFAULT_USER ; mWifiConfigManager.handleUserUnlock ( user1 ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . switchUserStoreAndRead ( any ( WifiConfigStore.StoreFile.class ) ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . write ( anyBoolean ( ) , any ( com.android.server.wifi.WifiConfigStoreData.class ) ) ; }

Target:
public void testHandleUserUnlockAfterBootupBeforeLegacyStoreMigration ( ) throws java.lang.Exception { int user1 = com.android.server.wifi.WifiConfigManagerTest.TEST_DEFAULT_USER ; mWifiConfigManager.handleUserUnlock ( user1 ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . switchUserStoreAndRead ( any ( WifiConfigStore.StoreFile.class ) ) ; mContextConfigStoreMockOrder.verify ( mWifiConfigStore , never ( ) ) . write ( anyBoolean ( ) ) ; }
Source:
public void logAndClear ( ) { if ( ( mEventCount ) == 0 ) { return ; } byte [ ] eventTypes = java.util.Arrays.copyOf ( mEventTypes , mEventCount ) ; byte [ ] returnCodes = java.util.Arrays.copyOf ( mReturnCodes , mEventCount ) ; int [ ] latenciesMs = java.util.Arrays.copyOf ( mLatenciesMs , mEventCount ) ; mMetricsLog.log ( new android.net.metrics.DnsEvent ( mNetId , eventTypes , returnCodes , latenciesMs ) ) ; com.android.server.connectivity.NetdEventListenerService.maybeLog ( java.lang.String.format ( "Logging %d results for netId %d" , mEventCount , mNetId ) ) ; mEventCount = 0 ; }

Target:
public void logAndClear ( ) { if ( ( mEventCount ) == 0 ) { return ; } byte [ ] eventTypes = java.util.Arrays.copyOf ( mEventTypes , mEventCount ) ; byte [ ] returnCodes = java.util.Arrays.copyOf ( mReturnCodes , mEventCount ) ; int [ ] latenciesMs = java.util.Arrays.copyOf ( mLatenciesMs , mEventCount ) ; mMetricsLog.log ( new android.net.metrics.DnsEvent ( mNetId , eventTypes , returnCodes , latenciesMs ) ) ; com.android.server.connectivity.NetdEventListenerService.maybeLog ( "Logging %d results for netId %d" , mEventCount , mNetId ) ; mEventCount = 0 ; }
Source:
public void test_unmodifiableMap_replace$K$V$V ( ) { try { java.util.Collections.unmodifiableMap ( new java.util.HashMap < > ( ) ) . replace ( 1 , 5.0 , 1.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } java.util.HashMap < java.lang.Integer , java.lang.Double > m = new java.util.HashMap < > ( ) ; m.put ( 1 , 5.0 ) ; try { java.util.Collections.unmodifiableMap ( m ) . replace ( 1 , 5.0 , 1.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }

Target:
public void test_unmodifiableMap_replace$K$V$V ( ) { try { java.util.Collections.unmodifiableMap ( new java.util.HashMap < > ( ) ) . replace ( 1 , 5.0 , 1.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } java.util.Map < java.lang.Integer , java.lang.Double > m = new java.util.HashMap < > ( ) ; m.put ( 1 , 5.0 ) ; try { java.util.Collections.unmodifiableMap ( m ) . replace ( 1 , 5.0 , 1.0 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }
Source:
public com.google.android.mms.pdu.EncodedStringValue [ ] split ( java.lang.String pattern ) { java.lang.String [ ] temp = getString ( ) . split ( pattern ) ; com.google.android.mms.pdu.EncodedStringValue [ ] ret = new com.google.android.mms.pdu.EncodedStringValue [ temp.length ] ; for ( int i = 0 ; i < ( ret.length ) ; ++ i ) { try { ret [ i ] = new com.google.android.mms.pdu.EncodedStringValue ( mCharacterSet , temp [ i ] . getBytes ( ) ) ; } catch ( java.lang.NullPointerException _ ) { return null ; } } return ret ; }

Target:
public com.google.android.mms.pdu.EncodedStringValue [ ] split ( java.lang.String pattern ) { java.lang.String [ ] temp = getString ( ) . split ( pattern ) ; com.google.android.mms.pdu.EncodedStringValue [ ] ret = new com.google.android.mms.pdu.EncodedStringValue [ temp.length ] ; for ( int i = 0 ; i < ( ret.length ) ; ++ i ) { try { ret [ i ] = new com.google.android.mms.pdu.EncodedStringValue ( mCharacterSet , temp [ i ] . getBytes ( ) ) ; } catch ( java.lang.NullPointerException e ) { return null ; } } return ret ; }
Source:
private void validateSdk ( com.android.ide.eclipse.adt.internal.sdk.Sdk sdk ) { assertTrue ( "sdk has no targets" , ( ( sdk.getTargets ( ) . length ) > 0 ) ) ; for ( com.android.sdklib.IAndroidTarget target : sdk.getTargets ( ) ) { org.eclipse.core.runtime.IStatus status = new com.android.ide.eclipse.adt.internal.sdk.AndroidTargetParser ( target ) . run ( new org.eclipse.core.runtime.NullProgressMonitor ( ) ) ; if ( ( status.getCode ( ) ) != ( org.eclipse.core.runtime.IStatus.OK ) ) { fail ( "Failed to parse targets data" ) ; } } }

Target:
private void validateSdk ( com.android.ide.eclipse.adt.internal.sdk.Sdk sdk ) { assertTrue ( "sdk has no targets" , ( ( sdk.getTargets ( ) . length ) > 0 ) ) ; for ( com.android.sdklib.IAndroidTarget target : sdk.getTargets ( ) ) { if ( ! ( validateSdk ( target ) ) ) { continue ; } org.eclipse.core.runtime.IStatus status = new com.android.ide.eclipse.adt.internal.sdk.AndroidTargetParser ( target ) . run ( new org.eclipse.core.runtime.NullProgressMonitor ( ) ) ; if ( ( status.getCode ( ) ) != ( org.eclipse.core.runtime.IStatus.OK ) ) { fail ( "Failed to parse targets data" ) ; } } }
Source:
public static java.lang.String getStringValue ( @ com.android.annotations.NonNull org.w3c.dom.Element element ) { org.w3c.dom.NodeList children = element.getChildNodes ( ) ; for ( int j = 0 ; j < ( children.getLength ( ) ) ; j ++ ) { org.w3c.dom.Node child = children.item ( j ) ; if ( ( child.getNodeType ( ) ) == ( org.w3c.dom.Node.TEXT_NODE ) ) { return child.getNodeValue ( ) . trim ( ) ; } } return null ; }

Target:
private static java.lang.String getStringValue ( @ com.android.annotations.NonNull org.w3c.dom.Element element ) { org.w3c.dom.NodeList children = element.getChildNodes ( ) ; for ( int j = 0 ; j < ( children.getLength ( ) ) ; j ++ ) { org.w3c.dom.Node child = children.item ( j ) ; if ( ( child.getNodeType ( ) ) == ( org.w3c.dom.Node.TEXT_NODE ) ) { return child.getNodeValue ( ) . trim ( ) ; } } return null ; }
Source:
private void enable ( ) { if ( ( mBluetoothAdapter ) == null ) return ; com.android.cts.deviceowner.BluetoothRestrictionTest.sleep ( com.android.cts.deviceowner.BluetoothRestrictionTest.CHECK_WAIT_TIME_MS ) ; if ( ( mBluetoothAdapter.getState ( ) ) == ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) { assertTrue ( mBluetoothAdapter.isEnabled ( ) ) ; return ; } assertEquals ( BluetoothAdapter.STATE_OFF , mBluetoothAdapter.getState ( ) ) ; assertFalse ( mBluetoothAdapter.isEnabled ( ) ) ; mBluetoothAdapter.enable ( ) ; assertEnabledAfterTimeout ( ) ; }

Target:
private void enable ( ) { com.android.cts.deviceowner.BluetoothRestrictionTest.sleep ( com.android.cts.deviceowner.BluetoothRestrictionTest.CHECK_WAIT_TIME_MS ) ; if ( ( mBluetoothAdapter.getState ( ) ) == ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) { assertTrue ( mBluetoothAdapter.isEnabled ( ) ) ; return ; } assertEquals ( BluetoothAdapter.STATE_OFF , mBluetoothAdapter.getState ( ) ) ; assertFalse ( mBluetoothAdapter.isEnabled ( ) ) ; mBluetoothAdapter.enable ( ) ; assertEnabledAfterTimeout ( ) ; }
Source:
public void testAddAll2 ( ) { try { java.util.NavigableSet q = jsr166.ConcurrentSkipListSubSetTest.set0 ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }

Target:
public void testAddAll2 ( ) { java.util.NavigableSet q = jsr166.ConcurrentSkipListSubSetTest.set0 ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; try { q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }
Source:
synchronized long nScriptGroupCreate ( int [ ] kernels , int [ ] src , int [ ] dstk , int [ ] dstf , int [ ] types ) { validate ( ) ; return rsnScriptGroupCreate ( mContext , kernels , src , dstk , dstf , types ) ; }

Target:
synchronized long nScriptGroupCreate ( long [ ] kernels , long [ ] src , long [ ] dstk , long [ ] dstf , long [ ] types ) { validate ( ) ; return rsnScriptGroupCreate ( mContext , kernels , src , dstk , dstf , types ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String [ ] pkgs = intent.getStringArrayExtra ( Intent.EXTRA_PACKAGES ) ; if ( pkgs != null ) { for ( java.lang.String pkg : pkgs ) { if ( forceStopPackageLocked ( pkg , ( - 1 ) , false , false , false ) ) { setResultCode ( Activity.RESULT_OK ) ; return ; } } } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String [ ] pkgs = intent.getStringArrayExtra ( Intent.EXTRA_PACKAGES ) ; if ( pkgs != null ) { for ( java.lang.String pkg : pkgs ) { synchronized ( this ) { if ( forceStopPackageLocked ( pkg , ( - 1 ) , false , false , false ) ) { setResultCode ( Activity.RESULT_OK ) ; return ; } } } } }
Source:
void putDecString ( java.lang.String original ) { java.lang.String s = checkString ( original , 10 ) ; this . makeValid ( ) ; int usedLen = java.math.NativeBN.BN_dec2bn ( this . bignum , s ) ; java.math.BigInt.Check ( ( usedLen > 0 ) ) ; if ( usedLen < ( s.length ( ) ) ) { throw invalidBigInteger ( original ) ; } }

Target:
void putDecString ( java.lang.String original ) { java.lang.String s = checkString ( original , 10 ) ; this . makeValid ( ) ; int usedLen = java.math.NativeBN.BN_dec2bn ( this . bignum , s ) ; if ( usedLen < ( s.length ( ) ) ) { throw invalidBigInteger ( original ) ; } }
Source:
private void runFieldLocationTest ( boolean modification ) { final byte eventKind = org.apache.harmony.jpda.tests.jdwp.Events.FieldWithLocationTest.getFieldEventKind ( modification ) ; final java.lang.String capabilityname = org.apache.harmony.jpda.tests.jdwp.Events.FieldWithLocationTest.getFieldCapabilityName ( modification ) ; logWriter.println ( ( "Check capability " + capabilityname ) ) ; if ( supportFieldCapability ( modification ) ) { runEventWithLocationTest ( eventKind ) ; } else { logWriter.println ( ( "##WARNING: this VM doesn't possess capability " + capabilityname ) ) ; } }

Target:
private void runFieldLocationTest ( boolean modification ) { final byte eventKind = org.apache.harmony.jpda.tests.jdwp.Events.FieldWithLocationTest.getFieldEventKind ( modification ) ; final java.lang.String capabilityname = org.apache.harmony.jpda.tests.jdwp.Events.FieldWithLocationTest.getFieldCapabilityName ( modification ) ; logWriter.println ( ( "Check capability " + capabilityname ) ) ; runEventWithLocationTest ( eventKind ) ; }
Source:
void replySucceeded ( android.os.Message msg ) { if ( ( msg.replyTo ) != null ) { android.os.Message reply = android.os.Message.obtain ( ) ; reply.what = android.net.wifi.WifiScanner.CMD_OP_SUCCEEDED ; reply.arg2 = msg.arg2 ; try { msg.replyTo.send ( reply ) ; } catch ( android.os.RemoteException e ) { } } else { } }

Target:
void replySucceeded ( android.os.Message msg ) { if ( ( msg.replyTo ) != null ) { android.os.Message reply = android.os.Message.obtain ( ) ; reply.what = android.net.wifi.WifiScanner.CMD_OP_SUCCEEDED ; reply.arg2 = msg.arg2 ; if ( ( msg.obj ) != null ) { reply.obj = msg.obj ; } try { msg.replyTo.send ( reply ) ; } catch ( android.os.RemoteException e ) { } } else { } }
Source:
private android.view.animation.Animation loadAnimation ( java.lang.String packageName , int resId ) { int anim = 0 ; android.content.Context context = mContext ; if ( resId >= 0 ) { com.android.server.AttributeCache.Entry ent = getCachedAnimations ( packageName , resId ) ; if ( ent != null ) { context = ent.context ; anim = resId ; } } if ( anim != 0 ) { return android.view.animation.AnimationUtils.loadAnimation ( context , anim ) ; } return null ; }

Target:
private android.view.animation.Animation loadAnimation ( int userId , java.lang.String packageName , int resId ) { int anim = 0 ; android.content.Context context = mContext ; if ( resId >= 0 ) { com.android.server.AttributeCache.Entry ent = getCachedAnimations ( userId , packageName , resId ) ; if ( ent != null ) { context = ent.context ; anim = resId ; } } if ( anim != 0 ) { return android.view.animation.AnimationUtils.loadAnimation ( context , anim ) ; } return null ; }
Source:
protected void handle ( long taskId , @ javax.annotation.Nonnull org.simpleframework.http.Request request , @ javax.annotation.Nonnull org.simpleframework.http.Response response ) { com.android.jack.server.tasks.Stop.logger.log ( java.util.logging.Level.INFO , "Force stop" ) ; java.lang.Thread thread = new java.lang.Thread ( ) { @ java.lang.Override public void run ( ) { jackServer.shutdown ( ) ; } } ; thread.setName ( "jack-server-shutdown" ) ; thread.start ( ) ; response.setStatus ( Status.OK ) ; }

Target:
protected void handle ( long taskId , @ javax.annotation.Nonnull org.simpleframework.http.Request request , @ javax.annotation.Nonnull org.simpleframework.http.Response response ) { com.android.jack.server.tasks.Stop.logger.log ( java.util.logging.Level.INFO , "Force stop" ) ; jackServer.shutdown ( ) ; response.setStatus ( Status.OK ) ; }
Source:
static com.android.builder.model.ProductFlavorContainer createPFC ( @ com.android.annotations.NonNull com.android.build.gradle.internal.ProductFlavorData productFlavorData , @ com.android.annotations.NonNull java.util.Collection < com.android.builder.model.SourceProviderContainer > sourceProviderContainers ) { java.util.List < com.android.builder.model.SourceProviderContainer > clonedContainer = com.android.build.gradle.internal.model.SourceProviderContainerImpl.cloneCollection ( sourceProviderContainers ) ; com.android.builder.model.SourceProviderContainer testASP = com.android.build.gradle.internal.model.SourceProviderContainerImpl.create ( com.android.builder.model.AndroidProject.ARTIFACT_ANDROID_TEST , productFlavorData.getTestSourceSet ( ) ) ; clonedContainer.add ( testASP ) ; return new com.android.build.gradle.internal.model.ProductFlavorContainerImpl ( com.android.build.gradle.internal.model.ProductFlavorImpl.cloneFlavor ( productFlavorData.getProductFlavor ( ) ) , com.android.build.gradle.internal.model.SourceProviderImpl.cloneProvider ( productFlavorData.getSourceSet ( ) ) , clonedContainer ) ; }

Target:
static com.android.builder.model.ProductFlavorContainer createPFC ( @ com.android.annotations.NonNull com.android.build.gradle.internal.ProductFlavorData productFlavorData , @ com.android.annotations.NonNull java.util.Collection < com.android.builder.model.SourceProviderContainer > sourceProviderContainers ) { java.util.List < com.android.builder.model.SourceProviderContainer > clonedContainer = com.android.build.gradle.internal.model.SourceProviderContainerImpl.cloneCollection ( sourceProviderContainers ) ; com.android.builder.model.SourceProviderContainer testASP = com.android.build.gradle.internal.model.SourceProviderContainerImpl.create ( com.android.builder.model.AndroidProject.ARTIFACT_ANDROID_TEST , productFlavorData.getTestSourceSet ( ) ) ; clonedContainer.add ( testASP ) ; return new com.android.build.gradle.internal.model.ProductFlavorContainerImpl ( com.android.build.gradle.internal.model.ProductFlavorImpl.cloneFlavor ( productFlavorData.getProductFlavor ( ) , null , null ) , com.android.build.gradle.internal.model.SourceProviderImpl.cloneProvider ( productFlavorData.getSourceSet ( ) ) , clonedContainer ) ; }
Source:
public void run ( ) { try { V newValue = getAndRecordStats ( key , hash , loadingValueReference , loadingFuture ) ; loadingValueReference.set ( newValue ) ; } catch ( java.lang.Throwable t ) { com.google.common.cache.LocalCache.logger.log ( java.util.logging.Level.WARNING , "Exception thrown during refresh" , t ) ; loadingValueReference.setException ( t ) ; } }

Target:
public void run ( ) { try { V newValue = getAndRecordStats ( key , hash , loadingValueReference , loadingFuture ) ; } catch ( java.lang.Throwable t ) { com.google.common.cache.LocalCache.logger.log ( java.util.logging.Level.WARNING , "Exception thrown during refresh" , t ) ; loadingValueReference.setException ( t ) ; } }
Source:
private static void setUnsignedInt32 ( java.nio.ByteBuffer buffer , int offset , long value ) { if ( ( value < 0 ) || ( value > 4294967295L ) ) { throw new java.lang.IllegalArgumentException ( ( "uint32 value of out range: " + value ) ) ; } buffer.putInt ( ( ( buffer.position ( ) ) + offset ) , ( ( int ) ( value ) ) ) ; }

Target:
private static void setUnsignedInt32 ( java.nio.ByteBuffer buffer , int offset , long value ) { if ( ( value < 0 ) || ( value > 4294967295L ) ) { throw new java.lang.IllegalArgumentException ( ( "uint32 value of out range: " + value ) ) ; } buffer.putInt ( offset , ( ( int ) ( value ) ) ) ; }
Source:
public void verifyFormatTimezone ( java.lang.String timeZoneId , java.lang.String expected1 , java.lang.String expected2 , java.util.Date date ) { org.apache.harmony.tests.java.text.SimpleDateFormatTest.format.setTimeZone ( java.util.SimpleTimeZone.getTimeZone ( timeZoneId ) ) ; org.apache.harmony.tests.java.text.SimpleDateFormatTest.format.applyPattern ( "z, zzzz" ) ; assertEquals ( ( "Test z for TimeZone : " + timeZoneId ) , expected1 , org.apache.harmony.tests.java.text.SimpleDateFormatTest.format.format ( date ) ) ; org.apache.harmony.tests.java.text.SimpleDateFormatTest.format.applyPattern ( "Z, ZZZZ" ) ; assertEquals ( ( "Test Z for TimeZone : " + timeZoneId ) , expected2 , org.apache.harmony.tests.java.text.SimpleDateFormatTest.format.format ( date ) ) ; }

Target:
private void verifyFormatTimezone ( java.lang.String timeZoneId , java.lang.String expected1 , java.lang.String expected2 , java.util.Date date ) { format.setTimeZone ( java.util.SimpleTimeZone.getTimeZone ( timeZoneId ) ) ; format.applyPattern ( "z, zzzz" ) ; assertEquals ( ( "Test z for TimeZone : " + timeZoneId ) , expected1 , format.format ( date ) ) ; format.applyPattern ( "Z, ZZZZ" ) ; assertEquals ( ( "Test Z for TimeZone : " + timeZoneId ) , expected2 , format.format ( date ) ) ; }
Source:
public java.io.OutputStream openWrite ( ) throws com.android.sched.util.file.CannotCreateFileException , com.android.sched.util.file.NotFileException , com.android.sched.util.file.WrongPermissionException { if ( ( vfs ) instanceof com.android.sched.vfs.SequentialOutputVFS ) { if ( ( ( com.android.sched.vfs.SequentialOutputVFS ) ( vfs ) ) . notifyVFileOpenAndReturnPreviousState ( ) ) { throw new java.lang.AssertionError ( ( ( getLocation ( ) . getDescription ( ) ) + " cannot be written to because a previous stream has not been closed." ) ) ; } } return new com.android.sched.vfs.DirectFile.VFileOutputStream ( new com.android.sched.util.file.OutputStreamFile ( file.getPath ( ) , null ) . getOutputStream ( ) , vfs ) ; }

Target:
public java.io.OutputStream openWrite ( ) throws com.android.sched.util.file.CannotCreateFileException , com.android.sched.util.file.NotFileException , com.android.sched.util.file.WrongPermissionException { return new com.android.sched.util.file.OutputStreamFile ( file.getPath ( ) , null ) . getOutputStream ( ) ; }