auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testKeyguardLock ( ) throws java.lang.Exception { if ( ! ( isHandheld ( ) ) ) { return ; } gotoKeyguard ( ) ; mAmWmState.waitForKeyguardShowingAndNotOccluded ( mDevice ) ; assertShowingAndNotOccluded ( ) ; launchActivity ( "KeyguardLockActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "KeyguardLockActivity" } ) ; mAmWmState.assertVisibility ( "KeyguardLockActivity" , true ) ; executeShellCommand ( android.server.cts.FINISH_ACTIVITY_BROADCAST ) ; mAmWmState.waitForKeyguardShowingAndNotOccluded ( mDevice ) ; assertShowingAndNotOccluded ( ) ; }

Target:
public void testKeyguardLock ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } gotoKeyguard ( ) ; mAmWmState.waitForKeyguardShowingAndNotOccluded ( mDevice ) ; assertShowingAndNotOccluded ( ) ; launchActivity ( "KeyguardLockActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "KeyguardLockActivity" } ) ; mAmWmState.assertVisibility ( "KeyguardLockActivity" , true ) ; executeShellCommand ( android.server.cts.FINISH_ACTIVITY_BROADCAST ) ; mAmWmState.waitForKeyguardShowingAndNotOccluded ( mDevice ) ; assertShowingAndNotOccluded ( ) ; }
Source:
public java.time.Instant getNotUsedAfterInstant ( java.lang.String zoneId ) { com.android.libcore.timezone.tzlookup.zonetree.CountryZoneUsage.Entry entry = zoneIdEntryMap.get ( zoneId ) ; if ( entry == null ) { throw new java.lang.IllegalArgumentException ( ( ( ( "No entry for " + zoneId ) + " for " ) + ( isoCode ) ) ) ; } return entry.endInstant ; }

Target:
public java.time.Instant getNotUsedAfterInstant ( java.lang.String zoneId ) { com.android.libcore.timezone.tzlookup.zonetree.CountryZoneUsage.Entry entry = zoneIdEntryMap.get ( zoneId ) ; if ( entry == null ) { throw new java.lang.IllegalArgumentException ( ( ( ( "No entry for " + zoneId ) + " for isoCode=" ) + ( isoCode ) ) ) ; } return entry.notUsedAfter ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , byte [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , data.length ) ; }

Target:
public void copy2DRangeTo ( int xoff , int yoff , int w , int h , byte [ ] data ) { validateIsInt8 ( ) ; copy2DRangeToUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_8 , data.length ) ; }
Source:
private boolean isWindowsExecutable ( org.eclipse.core.runtime.IPath commandPath ) { if ( com.android.ide.eclipse.ndk.internal.build.NdkCommandLauncher.WINDOWS_EXE.equalsIgnoreCase ( commandPath.getFileExtension ( ) ) ) { return true ; } java.io.File exeFile = commandPath.addFileExtension ( com.android.ide.eclipse.ndk.internal.build.NdkCommandLauncher.WINDOWS_EXE ) . toFile ( ) ; if ( exeFile.exists ( ) ) { return true ; } return false ; }

Target:
private boolean isWindowsExecutable ( org.eclipse.core.runtime.IPath commandPath ) { java.lang.String ext = commandPath.getFileExtension ( ) ; if ( isWindowsExecutableExtension ( ext ) ) { return true ; } ext = findWindowsExecutableExtension ( commandPath ) ; if ( ext != null ) { return true ; } return false ; }
Source:
public int getRssi ( ) { int rssi = java.lang.Integer.MIN_VALUE ; for ( android.net.wifi.ScanResult result : mScanResultCache.snapshot ( ) . values ( ) ) { if ( ( result.level ) > rssi ) { rssi = result.level ; } } return rssi ; }

Target:
private void evictOldScanResults ( ) { long nowMs = android.os.SystemClock.elapsedRealtime ( ) ; for ( java.util.Iterator < android.net.wifi.ScanResult > iter = mScanResultCache.values ( ) . iterator ( ) ; iter.hasNext ( ) ; ) { android.net.wifi.ScanResult result = iter.next ( ) ; if ( ( nowMs - ( ( result.timestamp ) / 1000 ) ) > ( com.android.settingslib.wifi.AccessPoint.MAX_SCAN_RESULT_AGE_MS ) ) { iter.remove ( ) ; } } }
Source:
private static void onDisabledEvent ( int status ) { if ( com.android.server.wifi.nan.WifiNanNative.VDBG ) android.util.Log.v ( com.android.server.wifi.nan.WifiNanNative.TAG , ( "onDisabledEvent: status=" + status ) ) ; com.android.server.wifi.nan.WifiNanStateManager.getInstance ( ) . onNanDownNotification ( com.android.server.wifi.nan.WifiNanNative.translateHalStatusToNanEventCallbackReason ( status ) ) ; }

Target:
private static void onTransmitFollowupEvent ( short transactionId , int reason ) { if ( com.android.server.wifi.nan.WifiNanNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.nan.WifiNanNative.TAG , ( ( ( "onTransmitFollowupEvent: transactionId=" + transactionId ) + ", reason=" ) + reason ) ) ; } if ( reason == ( com.android.server.wifi.nan.WifiNanNative.NAN_STATUS_SUCCESS ) ) { com.android.server.wifi.nan.WifiNanStateManager.getInstance ( ) . onMessageSendSuccessNotification ( transactionId ) ; } else { com.android.server.wifi.nan.WifiNanStateManager.getInstance ( ) . onMessageSendFailNotification ( transactionId , reason ) ; } }
Source:
public void test_getPrivateExponent ( ) throws java.lang.Exception { java.security.KeyFactory gen = java.security.KeyFactory.getInstance ( "RSA" ) ; final java.math.BigInteger n = java.math.BigInteger.valueOf ( 3233 ) ; final java.math.BigInteger d = java.math.BigInteger.valueOf ( 2753 ) ; java.security.interfaces.RSAPrivateKey key = ( ( java.security.interfaces.RSAPrivateKey ) ( gen.generatePrivate ( new java.security.spec.RSAPrivateKeySpec ( n , d ) ) ) ) ; assertEquals ( "invalid private exponent" , d , key.getPrivateExponent ( ) ) ; }

Target:
public void test_getPrivateExponent ( ) throws java.lang.Exception { for ( java.security.Provider p : java.security.Security.getProviders ( "KeyFactory.RSA" ) ) { java.security.interfaces.RSAPrivateKey key = tests.security.interfaces.RSAPrivateKeyTest.getNonCRTKey ( p ) ; assertEquals ( "invalid private exponent" , tests.security.interfaces.RSAPrivateKeyTest.SIMPLE_D , key.getPrivateExponent ( ) ) ; } }
Source:
public java.lang.String getNamespace ( ) { if ( ( mNamespace ) == null ) { com.android.sdklib.xml.AndroidManifestParser.ManifestData manifestData = com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData ( mProject ) ; if ( manifestData != null ) { java.lang.String javaPackage = manifestData.getPackage ( ) ; mNamespace = java.lang.String.format ( AndroidConstants.NS_CUSTOM_RESOURCES , javaPackage ) ; } } return mNamespace ; }

Target:
public java.lang.String getNamespace ( ) { if ( ( mNamespace ) == null ) { com.android.sdklib.xml.ManifestData manifestData = com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData ( mProject ) ; if ( manifestData != null ) { java.lang.String javaPackage = manifestData.getPackage ( ) ; mNamespace = java.lang.String.format ( AndroidConstants.NS_CUSTOM_RESOURCES , javaPackage ) ; } } return mNamespace ; }
Source:
public android.net.IpSecTransform buildTransportModeTransform ( java.net.InetAddress localAddress ) throws IpSecManager.ResourceUnavailableException , IpSecManager.SpiUnavailableException , java.io.IOException { mConfig.setMode ( android.net.IpSecTransform.MODE_TRANSPORT ) ; mConfig.setLocalAddress ( localAddress.getHostAddress ( ) ) ; return new android.net.IpSecTransform ( mContext , mConfig ) . activate ( ) ; }

Target:
public android.net.IpSecTransform buildTransportModeTransform ( @ android.annotation.NonNull java.net.InetAddress sourceAddress , @ android.annotation.NonNull android.net.IpSecManager.SecurityParameterIndex spi ) throws IpSecManager.ResourceUnavailableException , IpSecManager.SpiUnavailableException , java.io.IOException { com.android.internal.util.Preconditions.checkNotNull ( sourceAddress ) ; com.android.internal.util.Preconditions.checkNotNull ( spi ) ; if ( ( spi.getResourceId ( ) ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { throw new java.lang.IllegalArgumentException ( "Invalid SecurityParameterIndex" ) ; } mConfig.setMode ( android.net.IpSecTransform.MODE_TRANSPORT ) ; mConfig.setSourceAddress ( sourceAddress.getHostAddress ( ) ) ; mConfig.setSpiResourceId ( spi.getResourceId ( ) ) ; return new android.net.IpSecTransform ( mContext , mConfig ) . activate ( ) ; }
Source:
public static long IntMatCond_LongVarVar ( int a , int b , long x , long y ) { long result = ( a > b ) ? x : y ; return result + ( a > b ? 0L : 1L ) ; }

Target:
public static int IntMatCond_IntVarVar ( int a , int b , int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int result = ( a > b ) ? x : y ; return result + ( a > b ? 0 : 1 ) ; }
Source:
private void getIccCardStatusDone ( android.os.AsyncResult ar ) { if ( ( ar.exception ) != null ) { android.util.Log.e ( mLogTag , ( "Error getting ICC status. " + ( "RIL_REQUEST_GET_ICC_STATUS should " + "never return an error" ) ) , ar.exception ) ; return ; } handleIccCardStatus ( ( ( com.android.internal.telephony.IccCardStatus ) ( ar.result ) ) ) ; }

Target:
private void getIccCardStatusDone ( com.android.internal.telephony.IccCardStatus ics ) { handleIccCardStatus ( ics ) ; }
Source:
public static final double nextDouble ( double value ) { if ( value == ( java.lang.Double.POSITIVE_INFINITY ) ) { return value ; } long bits ; if ( value == 0 ) { bits = 0 ; } else { bits = java.lang.Double.doubleToLongBits ( value ) ; } return java.lang.Double.longBitsToDouble ( ( value < 0 ? bits - 1 : bits + 1 ) ) ; }

Target:
public static final double nextDouble ( double value ) { return java.lang.Math.nextUp ( value ) ; }
Source:
public void afterHandshake ( long session , long ssl , long context , java.net.Socket socket , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; assertEquals ( "ALPN should not enable cutthrough on the client" , 0 , ( ( org.conscrypt.NativeCrypto.SSL_get_mode ( ssl ) ) & ( org.conscrypt.NativeConstants.SSL_MODE_HANDSHAKE_CUTTHROUGH ) ) ) ; super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long ssl , long context , java.net.Socket socket , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; if ( ! ( NativeCrypto.isBoringSSL ) ) { assertEquals ( "ALPN should not enable cutthrough on the client" , 0 , ( ( org.conscrypt.NativeCrypto.SSL_get_mode ( ssl ) ) & ( org.conscrypt.NativeConstants.SSL_MODE_HANDSHAKE_CUTTHROUGH ) ) ) ; } super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }
Source:
public android.app.ContextImpl getSystemContext ( ) { synchronized ( this ) { if ( ( android.app.ActivityThread.mSystemContext ) == null ) { android.app.ContextImpl context = android.app.ContextImpl.createSystemContext ( this ) ; android.app.LoadedApk info = new android.app.LoadedApk ( this , "android" , context , null , android.content.res.CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO ) ; context.init ( info , null , this ) ; context.getResources ( ) . updateConfiguration ( getConfiguration ( ) , getDisplayMetricsLocked ( Display.DEFAULT_DISPLAY , CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO ) ) ; android.app.ActivityThread.mSystemContext = context ; } } return android.app.ActivityThread.mSystemContext ; }

Target:
public android.app.ContextImpl getSystemContext ( ) { synchronized ( this ) { if ( ( android.app.ActivityThread.mSystemContext ) == null ) { android.app.ContextImpl context = android.app.ContextImpl.createSystemContext ( this ) ; android.app.LoadedApk info = new android.app.LoadedApk ( this , "android" , context , null , android.content.res.CompatibilityInfo.DEFAULT_COMPATIBILITY_INFO ) ; context.init ( info , null , this ) ; context.getResources ( ) . updateConfiguration ( mResourcesManager.getConfiguration ( ) , mResourcesManager.getDisplayMetricsLocked ( Display.DEFAULT_DISPLAY ) ) ; android.app.ActivityThread.mSystemContext = context ; } } return android.app.ActivityThread.mSystemContext ; }
Source:
public void continueButtonClickHandler ( android.view.View target ) { startActivity ( new android.content.Intent ( this , com.android.cts.verifier.TestListActivity.class ) ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R.layout.main ) ; findViewById ( R.id.continue_button ) . setOnClickListener ( new android.view.View.OnClickListener ( ) { @ java.lang.Override public void onClick ( android.view.View v ) { startActivity ( new android.content.Intent ( com.android.cts.verifier.CtsVerifierActivity.this , com.android.cts.verifier.TestListActivity.class ) ) ; } } ) ; }
Source:
public static java.lang.String getMethodName ( java.lang.reflect.ArtMethod artMethod ) { artMethod = artMethod.findOverriddenMethodIfProxy ( ) ; com.android.dex.Dex dex = artMethod.getDeclaringClass ( ) . getDex ( ) ; int nameIndex = dex.nameIndexFromMethodIndex ( artMethod.getDexMethodIndex ( ) ) ; return artMethod.getDexCacheString ( dex , nameIndex ) ; }

Target:
public static java.lang.String getMethodName ( java.lang.reflect.ArtMethod artMethod ) { java.lang.Class < ? > declClass = artMethod.getDeclaringClass ( ) ; com.android.dex.Dex dex = declClass.getDex ( ) ; int nameIndex = dex.nameIndexFromMethodIndex ( artMethod.getDexMethodIndex ( ) ) ; return declClass.getDexCacheString ( dex , nameIndex ) ; }
Source:
public boolean createBondOutOfBand ( int transport , android.bluetooth.OobData oobData ) { try { return android.bluetooth.BluetoothDevice.sService.createBondOutOfBand ( this , transport , oobData ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }

Target:
public boolean isBondingInitiatedLocally ( ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { android.util.Log.w ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled, isBondingInitiatedLocally failed" ) ; return false ; } try { return service.isBondingInitiatedLocally ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return false ; }
Source:
private void loadResources ( ) { com.android.ddmuilib.ImageLoader loader = com.android.ddmuilib.ImageLoader.getLoader ( this . getClass ( ) ) ; com.android.hierarchyviewerlib.ui.TreeViewOverview.notSelectedImage = loader.loadImage ( "not-selected.png" , org.eclipse.swt.widgets.Display.getDefault ( ) ) ; com.android.hierarchyviewerlib.ui.TreeViewOverview.selectedImage = loader.loadImage ( "selected-small.png" , org.eclipse.swt.widgets.Display.getDefault ( ) ) ; com.android.hierarchyviewerlib.ui.TreeViewOverview.filteredImage = loader.loadImage ( "filtered.png" , org.eclipse.swt.widgets.Display.getDefault ( ) ) ; com.android.hierarchyviewerlib.ui.TreeViewOverview.filteredSelectedImage = loader.loadImage ( "selected-filtered-small.png" , org.eclipse.swt.widgets.Display.getDefault ( ) ) ; }

Target:
private void loadResources ( ) { com.android.ddmuilib.ImageLoader loader = com.android.ddmuilib.ImageLoader.getLoader ( this . getClass ( ) ) ; com.android.hierarchyviewerlib.ui.TreeViewOverview.sNotSelectedImage = loader.loadImage ( "not-selected.png" , org.eclipse.swt.widgets.Display.getDefault ( ) ) ; com.android.hierarchyviewerlib.ui.TreeViewOverview.sSelectedImage = loader.loadImage ( "selected-small.png" , org.eclipse.swt.widgets.Display.getDefault ( ) ) ; com.android.hierarchyviewerlib.ui.TreeViewOverview.sFilteredImage = loader.loadImage ( "filtered.png" , org.eclipse.swt.widgets.Display.getDefault ( ) ) ; com.android.hierarchyviewerlib.ui.TreeViewOverview.sFilteredSelectedImage = loader.loadImage ( "selected-filtered-small.png" , org.eclipse.swt.widgets.Display.getDefault ( ) ) ; }
Source:
public void forgotPattern ( boolean isForgotten ) { if ( mEnableFallback ) { mForgotPattern = isForgotten ; updateScreen ( com.android.internal.policy.impl.LockPatternKeyguardView.Mode.UnlockScreen ) ; } }

Target:
public void goToUnlockScreen ( ) { final com.android.internal.telephony.IccCard.State simState = mUpdateMonitor.getSimState ( ) ; if ( ( stuckOnLockScreenBecauseSimMissing ( ) ) || ( simState == ( IccCard.State.PUK_REQUIRED ) ) ) { return ; } if ( ! ( isSecure ( ) ) ) { getCallback ( ) . keyguardDone ( true ) ; } else { updateScreen ( com.android.internal.policy.impl.LockPatternKeyguardView.Mode.UnlockScreen ) ; } }
Source:
public static int getSlotId ( int subId ) { if ( ! ( android.telephony.SubscriptionManager.isValidSubscriptionId ( subId ) ) ) { if ( android.telephony.SubscriptionManager.DBG ) { android.telephony.SubscriptionManager.logd ( "[getSlotId]- fail" ) ; } } int result = android.telephony.SubscriptionManager.INVALID_SIM_SLOT_INDEX ; try { com.android.internal.telephony.ISub iSub = ISub.Stub.asInterface ( android.os.ServiceManager.getService ( "isub" ) ) ; if ( iSub != null ) { result = iSub.getSlotId ( subId ) ; } } catch ( android.os.RemoteException ex ) { } return result ; }

Target:
public static int getSlotIndex ( int subId ) { if ( ! ( android.telephony.SubscriptionManager.isValidSubscriptionId ( subId ) ) ) { if ( android.telephony.SubscriptionManager.DBG ) { android.telephony.SubscriptionManager.logd ( "[getSlotIndex]- fail" ) ; } } int result = android.telephony.SubscriptionManager.INVALID_SIM_SLOT_INDEX ; try { com.android.internal.telephony.ISub iSub = ISub.Stub.asInterface ( android.os.ServiceManager.getService ( "isub" ) ) ; if ( iSub != null ) { result = iSub.getSlotIndex ( subId ) ; } } catch ( android.os.RemoteException ex ) { } return result ; }
Source:
private void launchFinish ( byte [ ] token ) { android.content.Intent intent = getFinishIntent ( ) ; intent.addFlags ( Intent.FLAG_ACTIVITY_FORWARD_RESULT ) ; intent.putExtra ( ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE_TOKEN , token ) ; startActivity ( intent ) ; finish ( ) ; }

Target:
private void launchFinish ( byte [ ] token ) { android.content.Intent intent = getFinishIntent ( ) ; intent.addFlags ( Intent.FLAG_ACTIVITY_FORWARD_RESULT ) ; intent.putExtra ( ChooseLockSettingsHelper.EXTRA_KEY_CHALLENGE_TOKEN , token ) ; if ( ( mUserId ) != ( android.os.UserHandle.USER_NULL ) ) { intent.putExtra ( Intent.EXTRA_USER_ID , mUserId ) ; } startActivity ( intent ) ; finish ( ) ; }
Source:
public void testAospServiceContexts ( ) throws java.lang.Exception { deviceSvcFile = java.io.File.createTempFile ( "service_contexts" , ".tmp" ) ; deviceSvcFile.deleteOnExit ( ) ; mDevice.pullFile ( "/plat_service_contexts" , deviceSvcFile ) ; aospSvcFile = copyResourceToTempFile ( "/plat_service_contexts" ) ; assertFileEquals ( aospSvcFile , deviceSvcFile ) ; }

Target:
public void testAospServiceContexts ( ) throws java.lang.Exception { deviceSvcFile = java.io.File.createTempFile ( "service_contexts" , ".tmp" ) ; deviceSvcFile.deleteOnExit ( ) ; if ( ! ( mDevice.pullFile ( "/system/etc/selinux/plat_service_contexts" , deviceSvcFile ) ) ) { mDevice.pullFile ( "/plat_service_contexts" , deviceSvcFile ) ; } aospSvcFile = copyResourceToTempFile ( "/plat_service_contexts" ) ; assertFileEquals ( aospSvcFile , deviceSvcFile ) ; }
Source:
public void testN1 ( ) { dot.junit.opcodes.move_exception.d.T_move_exception_1 t = new dot.junit.opcodes.move_exception.d.T_move_exception_1 ( ) ; try { t.run ( ) ; fail ( "ArithmeticException was not thrown" ) ; } catch ( java.lang.ArithmeticException ae ) { } catch ( java.lang.Exception ex ) { fail ( ( ( "Exception " + ex ) + " was thrown instead off ArithmeticException" ) ) ; } }

Target:
public void testN1 ( ) { loadAndRun ( "dot.junit.opcodes.move_exception.d.T_move_exception_1" , java.lang.ArithmeticException.class ) ; }
Source:
public void testSecurityPatchFound ( ) { if ( ( Build.VERSION.SDK_INT ) < ( Build.VERSION_CODES.M ) ) { android.util.Log.w ( android.os.cts.SecurityPatchTest.TAG , "Skipping M+ Test." ) ; return ; } java.lang.String buildSecurityPatch = android.os.SystemProperties.get ( "ro.build.version.security_patch" , "" ) ; java.lang.String error = java.lang.String.format ( android.os.cts.SecurityPatchTest.SECURITY_PATCH_ERROR , buildSecurityPatch ) ; assertTrue ( error , ( ! ( buildSecurityPatch.isEmpty ( ) ) ) ) ; }

Target:
protected void setUp ( ) { mSkipTests = ( Build.VERSION.SDK_INT ) < ( Build.VERSION_CODES.M ) ; }
Source:
public void invoke ( java.lang.Thread t , java.lang.reflect.Method method , int depth ) { try { java.lang.Object res = get.GetVar ( t , depth ) ; java.lang.System.out.println ( ( ( ( ( ( this ) + " on " ) + method ) + " got value: " ) + res ) ) ; } catch ( java.lang.Exception e ) { java.lang.System.out.println ( ( ( ( ( ( this ) + " on " ) + method ) + " failed due to " ) + ( e.getMessage ( ) ) ) ) ; } }

Target:
public void invoke ( java.lang.Thread t , java.lang.reflect.Method method , int depth ) { try { java.lang.Object res = get.GetVar ( t , depth ) ; java.lang.System.out.println ( ( ( ( ( ( this ) + " on " ) + method ) + " got value: " ) + ( art.Test1939.SafeToString ( res ) ) ) ) ; } catch ( java.lang.Exception e ) { java.lang.System.out.println ( ( ( ( ( ( this ) + " on " ) + method ) + " failed due to " ) + ( e.getMessage ( ) ) ) ) ; } }
Source:
public void test_d2i_SSL_SESSION ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 0 ] ) ; fail ( "Should throw IOException with invalid SSL_SESSION data" ) ; } catch ( java.io.IOException expected ) { } try { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( new byte [ 1 ] ) ; fail ( "Should throw IOException with invalid SSL_SESSION data" ) ; } catch ( java.io.IOException expected ) { } }

Target:
public void d2i_SSL_SESSION_NullArgument ( ) throws java.lang.Exception { org.conscrypt.NativeCrypto.d2i_SSL_SESSION ( null ) ; }
Source:
public void visitProgramMethod ( proguard.obfuscate.ProgramClass programClass , proguard.obfuscate.ProgramMethod programMethod ) { java.lang.String name = programMethod.getName ( programClass ) ; if ( ( name.equals ( ClassConstants.INTERNAL_METHOD_NAME_CLINIT ) ) || ( name.equals ( ClassConstants.INTERNAL_METHOD_NAME_INIT ) ) ) { return ; } visitMember ( programClass , programMethod , false ) ; }

Target:
public void visitProgramMethod ( proguard.obfuscate.ProgramClass programClass , proguard.obfuscate.ProgramMethod programMethod ) { java.lang.String name = programMethod.getName ( programClass ) ; if ( proguard.obfuscate.ClassUtil.isInitializer ( name ) ) { return ; } visitMember ( programClass , programMethod , false ) ; }
Source:
private boolean contactsDeleted ( long lastModified ) { try ( android.database.Cursor cursor = appContext.getContentResolver ( ) . query ( DeletedContacts.CONTENT_URI , new java.lang.String [ ] { android.provider.ContactsContract.DeletedContacts.CONTACT_DELETED_TIMESTAMP } , ( ( android.provider.ContactsContract.DeletedContacts.CONTACT_DELETED_TIMESTAMP ) + " > ?" ) , new java.lang.String [ ] { java.lang.Long.toString ( lastModified ) } , null ) ) { if ( cursor == null ) { com.android.dialer.common.LogUtil.w ( "Cp2PhoneLookup.contactsDeleted" , "null cursor" ) ; return false ; } return ( cursor.getCount ( ) ) > 0 ; } }

Target:
private boolean noContactsModifiedSince ( long lastModified ) { try ( android.database.Cursor cursor = appContext.getContentResolver ( ) . query ( Contacts.CONTENT_URI , new java.lang.String [ ] { android.provider.ContactsContract.Contacts._ID } , ( ( android.provider.ContactsContract.Contacts.CONTACT_LAST_UPDATED_TIMESTAMP ) + " > ?" ) , new java.lang.String [ ] { java.lang.Long.toString ( lastModified ) } , ( ( android.provider.ContactsContract.Contacts._ID ) + " limit 1" ) ) ) { if ( cursor == null ) { com.android.dialer.common.LogUtil.w ( "Cp2PhoneLookup.noContactsModifiedSince" , "null cursor" ) ; return false ; } return ( cursor.getCount ( ) ) == 0 ; } }
Source:
public void onGuidedActionClicked ( android.support.v17.leanback.widget.GuidedAction action ) { if ( ( action.getId ( ) ) == ( com.android.tv.dvr.ui.DvrInsufficientSpaceErrorFragment.ACTION_OPEN_DVR ) ) { android.content.Intent intent = new android.content.Intent ( getActivity ( ) , com.android.tv.dvr.ui.DvrActivity.class ) ; getActivity ( ) . startActivity ( intent ) ; } dismissDialog ( ) ; }

Target:
public void onGuidedActionClicked ( android.support.v17.leanback.widget.GuidedAction action ) { if ( ( action.getId ( ) ) == ( com.android.tv.dvr.ui.DvrInsufficientSpaceErrorFragment.ACTION_VIEW_RECENT_RECORDINGS ) ) { android.content.Intent intent = new android.content.Intent ( getActivity ( ) , com.android.tv.dvr.ui.browse.DvrBrowseActivity.class ) ; getActivity ( ) . startActivity ( intent ) ; } dismissDialog ( ) ; }
Source:
private static java.util.Set < java.lang.String > getSchemaSet ( android.database.sqlite.SQLiteDatabase db ) { java.util.Set < java.lang.String > schemaSet = com.google.android.collect.Sets.newHashSet ( ) ; android.database.Cursor entityCursor = db.rawQuery ( "SELECT sql FROM sqlite_master" , null ) ; try { while ( entityCursor.moveToNext ( ) ) { java.lang.String sql = entityCursor.getString ( 0 ) ; schemaSet.add ( sql ) ; } } finally { entityCursor.close ( ) ; } return schemaSet ; }

Target:
private static java.util.Set < java.lang.String > getSchemaSet ( android.database.sqlite.SQLiteDatabase db ) { java.util.Set < java.lang.String > schemaSet = new java.util.HashSet < > ( ) ; android.database.Cursor entityCursor = db.rawQuery ( "SELECT sql FROM sqlite_master" , null ) ; try { while ( entityCursor.moveToNext ( ) ) { java.lang.String sql = entityCursor.getString ( 0 ) ; schemaSet.add ( sql ) ; } } finally { entityCursor.close ( ) ; } return schemaSet ; }
Source:
public void run ( ) { mTextView.setText ( "" , BufferType.EDITABLE ) ; mTextView.requestFocus ( ) ; android.text.Selection.setSelection ( ( ( android.text.Editable ) ( mTextView.getText ( ) ) ) , 0 , 0 ) ; mTextView.setKeyListener ( multiTapKeyListener ) ; }

Target:
public void run ( ) { for ( int i = 0 ; i < numTimes ; i ++ ) { keyListener.onKeyDown ( mTextView , mTextView.getEditableText ( ) , keyCode , new android.view.KeyEvent ( android.view.KeyEvent.ACTION_DOWN , keyCode ) ) ; } }
Source:
private com.android.apigenerator.ApiClass addClass ( java.util.HashMap < java.lang.String , com.android.apigenerator.ApiClass > classes , java.lang.String name , int apiLevel ) { com.android.apigenerator.ApiClass theClass = classes.get ( name ) ; if ( theClass == null ) { theClass = new com.android.apigenerator.ApiClass ( name , apiLevel ) ; classes.put ( name , theClass ) ; } return theClass ; }

Target:
private com.android.apigenerator.ApiClass addClass ( java.util.HashMap < java.lang.String , com.android.apigenerator.ApiClass > classes , java.lang.String name , int apiLevel , boolean deprecated ) { com.android.apigenerator.ApiClass theClass = classes.get ( name ) ; if ( theClass == null ) { theClass = new com.android.apigenerator.ApiClass ( name , apiLevel ) ; classes.put ( name , theClass ) ; } if ( deprecated && ( apiLevel < ( theClass.deprecatedIn ) ) ) { theClass.deprecatedIn = apiLevel ; } return theClass ; }
Source:
public void test_getIntegerInstance_ar ( ) throws java.lang.Exception { if ( ! ( tests.support.Support_Locale.isLocaleAvailable ( new java.util.Locale ( "ar" ) ) ) ) { return ; } java.text.NumberFormat numberFormat = java.text.NumberFormat.getNumberInstance ( new java.util.Locale ( "ar" ) ) ; assertEquals ( "#,##0.###;#,##0.###-" , ( ( java.text.DecimalFormat ) ( numberFormat ) ) . toPattern ( ) ) ; java.text.NumberFormat integerFormat = java.text.NumberFormat.getIntegerInstance ( new java.util.Locale ( "ar" ) ) ; assertEquals ( "#,##0;#,##0-" , ( ( java.text.DecimalFormat ) ( integerFormat ) ) . toPattern ( ) ) ; }

Target:
public void test_getIntegerInstance_ar ( ) throws java.lang.Exception { if ( ! ( tests.support.Support_Locale.isLocaleAvailable ( new java.util.Locale ( "ar" ) ) ) ) { return ; } java.text.NumberFormat numberFormat = java.text.NumberFormat.getNumberInstance ( new java.util.Locale ( "ar" ) ) ; assertEquals ( "#0.###;#0.###-" , ( ( java.text.DecimalFormat ) ( numberFormat ) ) . toPattern ( ) ) ; java.text.NumberFormat integerFormat = java.text.NumberFormat.getIntegerInstance ( new java.util.Locale ( "ar" ) ) ; assertEquals ( "#0;#0-" , ( ( java.text.DecimalFormat ) ( integerFormat ) ) . toPattern ( ) ) ; }
Source:
public static com.android.dx.rop.cst.CstType intern ( com.android.dx.rop.type.Type type ) { synchronized ( com.android.dx.rop.cst.CstType.interns ) { com.android.dx.rop.cst.CstType cst = com.android.dx.rop.cst.CstType.interns.get ( type ) ; if ( cst == null ) { cst = new com.android.dx.rop.cst.CstType ( type ) ; com.android.dx.rop.cst.CstType.interns.put ( type , cst ) ; } return cst ; } }

Target:
public static com.android.dx.rop.cst.CstType intern ( com.android.dx.rop.type.Type type ) { com.android.dx.rop.cst.CstType cst = new com.android.dx.rop.cst.CstType ( type ) ; com.android.dx.rop.cst.CstType result = com.android.dx.rop.cst.CstType.interns.putIfAbsent ( type , cst ) ; return result != null ? result : cst ; }
Source:
public void test_unmodifiableList_replaceAll ( ) { try { java.util.Collections.unmodifiableList ( new java.util.ArrayList < > ( ) ) . replaceAll ( ( k ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } try { java.util.ArrayList l = new java.util.ArrayList ( ) ; l.add ( 1 ) ; l.add ( 2 ) ; java.util.Collections.unmodifiableList ( l ) . replaceAll ( ( k ) -> 1 ) ; fail ( ) ; } catch ( java.lang.UnsupportedOperationException expected ) { } }

Target:
public void test_EmptyList_replaceAll ( ) { java.util.Collections.emptyList ( ) . replaceAll ( ( k ) -> 1 ) ; try { java.util.Collections.emptyList ( ) . replaceAll ( null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
public static < T > io.appium.droiddriver.finders.Predicate < T > allOf ( final io.appium.droiddriver.finders.Predicate < ? super T > ... components ) { return io.appium.droiddriver.finders.Predicates.< T > allOf ( java.util.Arrays.asList ( components ) ) ; }

Target:
public static < T > io.appium.droiddriver.finders.Predicate < T > anyOf ( final io.appium.droiddriver.finders.Predicate < ? super T > ... components ) { return new io.appium.droiddriver.finders.Predicate < T > ( ) { @ java.lang.Override public boolean apply ( T input ) { for ( io.appium.droiddriver.finders.Predicate < ? super T > each : components ) { if ( each.apply ( input ) ) { return true ; } } return false ; } @ java.lang.Override public java.lang.String toString ( ) { return ( "anyOf(" + ( android.text.TextUtils.join ( ", " , components ) ) ) + ")" ; } } ; }
Source:
public void testAdd2_IndexOutOfBoundsException ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.add ( "asdasd" ) ; c.add ( "asdasdasd" ) ; c.add ( 100 , "qwerty" ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testAdd2_IndexOutOfBoundsException ( ) { java.util.concurrent.CopyOnWriteArrayList c = jsr166.CopyOnWriteArrayListTest.populatedArray ( 5 ) ; java.util.List [ ] lists = new java.util.List [ ] { c , c.subList ( 1 , ( ( c.size ( ) ) - 1 ) ) } ; for ( java.util.List list : lists ) { try { list.add ( ( ( list.size ( ) ) + 1 ) , "qwerty" ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
public boolean setNetworkSelectionModeManual ( int subId , com.android.internal.telephony.OperatorInfo operator , boolean persistSelection ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.setNetworkSelectionModeManual ( subId , operator , persistSelection ) ; } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeManual RemoteException" , ex ) ; } catch ( java.lang.NullPointerException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeManual NPE" , ex ) ; } return false ; }

Target:
public boolean setNetworkSelectionModeManual ( java.lang.String operatorNumeric , boolean persistSelection ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.setNetworkSelectionModeManual ( getSubId ( ) , operatorNumeric , persistSelection ) ; } } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeManual RemoteException" , ex ) ; } catch ( java.lang.NullPointerException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeManual NPE" , ex ) ; } return false ; }
Source:
public static byte [ ] encode ( java.lang.String s ) throws java.io.UTFDataFormatException { int utfCount = ( ( int ) ( com.android.dx.util.Mutf8.countBytes ( s , true ) ) ) ; byte [ ] result = new byte [ utfCount ] ; com.android.dx.util.Mutf8.encode ( result , 0 , s ) ; return result ; }

Target:
public static byte [ ] encode ( java.lang.String s ) throws java.io.UTFDataFormatException { int utfCount = ( ( int ) ( com.android.dex.Mutf8.countBytes ( s , true ) ) ) ; byte [ ] result = new byte [ utfCount ] ; com.android.dex.Mutf8.encode ( result , 0 , s ) ; return result ; }
Source:
public void onDataCallListChanged ( java.util.List < android.telephony.data.DataCallResponse > dataCallList ) { android.telephony.data.IDataServiceCallback callback = mCallback.get ( ) ; if ( callback != null ) { try { callback.onDataCallListChanged ( dataCallList ) ; } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.data.DataServiceCallback.mTag , "Failed to onDataCallListChanged on the remote" ) ; } } }

Target:
public void onDataCallListChanged ( java.util.List < android.telephony.data.DataCallResponse > dataCallList ) { android.telephony.data.IDataServiceCallback callback = mCallback.get ( ) ; if ( callback != null ) { try { callback.onDataCallListChanged ( dataCallList ) ; } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.data.DataServiceCallback.TAG , "Failed to onDataCallListChanged on the remote" ) ; } } }
Source:
public void testRunEnded ( long elapsedTime , java.util.Map < java.lang.String , java.lang.String > metrics ) { mCurrentModuleResult.addRuntime ( elapsedTime ) ; mCurrentModuleResult.setDone ( ( ( mCurrentTestNum ) >= ( mTotalTestsInModule ) ) ) ; mCurrentModuleResult.setNotExecuted ( java.lang.Math.max ( ( ( mTotalTestsInModule ) - ( mCurrentTestNum ) ) , 0 ) ) ; if ( isShardResultReporter ( ) ) { mMasterResultReporter.mergeModuleResult ( mCurrentModuleResult ) ; } }

Target:
public void testRunEnded ( long elapsedTime , java.util.Map < java.lang.String , java.lang.String > metrics ) { mCurrentModuleResult.addRuntime ( elapsedTime ) ; if ( ( mCanMarkDone ) || ( mModuleWasDone ) ) { mCurrentModuleResult.setDone ( ( ( mCurrentTestNum ) >= ( mTotalTestsInModule ) ) ) ; } mCurrentModuleResult.setNotExecuted ( java.lang.Math.max ( ( ( mTotalTestsInModule ) - ( mCurrentTestNum ) ) , 0 ) ) ; if ( isShardResultReporter ( ) ) { mMasterResultReporter.mergeModuleResult ( mCurrentModuleResult ) ; } }
Source:
public static double max ( double a , double b ) { if ( a != a ) return a ; if ( ( ( a == 0.0 ) && ( b == 0.0 ) ) && ( ( java.lang.Double.doubleToRawLongBits ( a ) ) == ( java.lang.StrictMath.negativeZeroDoubleBits ) ) ) { return b ; } return a >= b ? a : b ; }

Target:
public static double max ( double a , double b ) { return java.lang.Math.max ( a , b ) ; }
Source:
private void expectSwPnoScan ( org.mockito.InOrder order , com.android.server.wifi.WifiNative.ScanSettings nativeScanSettings , com.android.server.wifi.ScanResults results ) { when ( mWifiScannerImpl.isHwPnoSupported ( anyBoolean ( ) ) ) . thenReturn ( false ) ; when ( mWifiScannerImpl.shouldScheduleBackgroundScanForHwPno ( ) ) . thenReturn ( true ) ; expectSuccessfulBackgroundScan ( order , nativeScanSettings , results ) ; }

Target:
private void expectSwPnoScan ( org.mockito.InOrder order , com.android.server.wifi.WifiNative.ScanSettings nativeScanSettings , com.android.server.wifi.ScanResults results ) { org.mockito.Mockito.when ( mWifiScannerImpl.isHwPnoSupported ( org.mockito.Mockito.anyBoolean ( ) ) ) . thenReturn ( false ) ; org.mockito.Mockito.when ( mWifiScannerImpl.shouldScheduleBackgroundScanForHwPno ( ) ) . thenReturn ( true ) ; expectSuccessfulBackgroundScan ( order , nativeScanSettings , results ) ; }
Source:
public void disconnectCall ( com.android.server.telecom.Call call ) { com.android.server.telecom.Log.v ( this , "disconnectCall %s" , call ) ; if ( ! ( mCalls.contains ( call ) ) ) { com.android.server.telecom.Log.w ( this , "Unknown call (%s) asked to disconnect" , call ) ; } else { mLocallyDisconnectingCalls.add ( call ) ; call.disconnect ( ) ; } }

Target:
public void disconnectCall ( com.android.server.telecom.Call call ) { android.telecom.Log.v ( this , "disconnectCall %s" , call ) ; if ( ! ( mCalls.contains ( call ) ) ) { android.telecom.Log.w ( this , "Unknown call (%s) asked to disconnect" , call ) ; } else { mLocallyDisconnectingCalls.add ( call ) ; call.disconnect ( ) ; } }
Source:
void init ( com.android.phone.TimeConsumingPreferenceListener listener , boolean skipReading , com.android.internal.telephony.Phone phone ) { mPhone = phone ; mTcpListener = listener ; if ( ! skipReading ) { mPhone.getOutgoingCallerIdDisplay ( mHandler.obtainMessage ( com.android.phone.CLIRListPreference.MyHandler.MESSAGE_GET_CLIR , com.android.phone.CLIRListPreference.MyHandler.MESSAGE_GET_CLIR , com.android.phone.CLIRListPreference.MyHandler.MESSAGE_GET_CLIR ) ) ; if ( ( mTcpListener ) != null ) { mTcpListener.onStarted ( this , true ) ; } } }

Target:
void init ( com.android.phone.TimeConsumingPreferenceListener listener , boolean skipReading , com.android.internal.telephony.Phone phone ) { mPhone = phone ; mTcpListener = listener ; if ( ! skipReading ) { android.util.Log.i ( com.android.phone.CLIRListPreference.LOG_TAG , "init: requesting CLIR" ) ; mPhone.getOutgoingCallerIdDisplay ( mHandler.obtainMessage ( com.android.phone.CLIRListPreference.MyHandler.MESSAGE_GET_CLIR , com.android.phone.CLIRListPreference.MyHandler.MESSAGE_GET_CLIR , com.android.phone.CLIRListPreference.MyHandler.MESSAGE_GET_CLIR ) ) ; if ( ( mTcpListener ) != null ) { mTcpListener.onStarted ( this , true ) ; } } }
Source:
protected synchronized void implCloseSelectableChannel ( ) throws java.io.IOException { onDisconnect ( true ) ; libcore.io.IoBridge.closeSocket ( fd ) ; multicastMembershipHandler = null ; if ( ( ( socket ) != null ) && ( ! ( socket.isClosed ( ) ) ) ) { socket.onClose ( ) ; } }

Target:
protected synchronized void implCloseSelectableChannel ( ) throws java.io.IOException { onDisconnect ( true ) ; libcore.io.IoBridge.closeAndSignalBlockedThreads ( fd ) ; multicastMembershipHandler = null ; if ( ( ( socket ) != null ) && ( ! ( socket.isClosed ( ) ) ) ) { socket.onClose ( ) ; } }
Source:
public boolean onKeyMultiple ( final int keyCode , final int repeatCount , final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onKeyMultiple ( keyCode , repeatCount , event ) ; } } ) ; return ret ; } com.android.webview.chromium.UnimplementedWebViewApi.invoke ( ) ; return false ; }

Target:
public boolean onKeyDown ( final int keyCode , final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onKeyDown ( keyCode , event ) ; } } ) ; return ret ; } com.android.webview.chromium.UnimplementedWebViewApi.invoke ( ) ; return false ; }
Source:
private static void assertMeidFormat ( java.lang.String deviceId ) { java.lang.String meidPattern = "[0-9a-fA-F]{14}" ; org.junit.Assert.assertTrue ( ( ( ( "MEID device id " + deviceId ) + " does not match pattern " ) + meidPattern ) , java.util.regex.Pattern.matches ( meidPattern , deviceId ) ) ; }

Target:
private static void assertMeidFormat ( java.lang.String deviceId ) { java.lang.String meidPattern = "[0-9a-fA-F]{14}" ; java.lang.String invalidPattern = "[0]{14}" ; org.junit.Assert.assertTrue ( ( ( ( "MEID device id " + deviceId ) + " does not match pattern " ) + meidPattern ) , java.util.regex.Pattern.matches ( meidPattern , deviceId ) ) ; org.junit.Assert.assertFalse ( ( ( "MEID device id " + deviceId ) + "must not be a zero sequence" ) , java.util.regex.Pattern.matches ( invalidPattern , deviceId ) ) ; }
Source:
public void onMessageReceived ( int peerId , byte [ ] message ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "peerId" , peerId ) ; mResults.putByteArray ( "message" , message ) ; mResults.putString ( "messageAsString" , new java.lang.String ( message ) ) ; mEventFacade.postEvent ( "WifiNanSessionOnMessageReceived" , mResults ) ; }

Target:
public void onMessageReceived ( java.lang.Object peerHandle , byte [ ] message ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "peerId" , ( ( java.lang.Integer ) ( peerHandle ) ) ) ; mResults.putByteArray ( "message" , message ) ; mResults.putString ( "messageAsString" , new java.lang.String ( message ) ) ; mEventFacade.postEvent ( "WifiNanSessionOnMessageReceived" , mResults ) ; }
Source:
private com.android.jack.ir.ast.JPackage getPackage ( @ javax.annotation.Nonnull java.lang.String [ ] splitClassOrInterfaceName ) { com.android.jack.ir.ast.JPackage currentPackage = topLevelPackage ; int packageLength = ( splitClassOrInterfaceName.length ) - 1 ; for ( int i = 0 ; i < packageLength ; i ++ ) { currentPackage = currentPackage.getOrCreateSubPackage ( splitClassOrInterfaceName [ i ] ) ; } return currentPackage ; }

Target:
public com.android.jack.ir.ast.JClass getDefined ( @ javax.annotation.Nonnull java.lang.String signature ) { return jackLookup.getClass ( signature ) ; }
Source:
public void testE3 ( ) { dot.junit.opcodes.aput.d.T_aput_1 t = new dot.junit.opcodes.aput.d.T_aput_1 ( ) ; int [ ] arr = new int [ 2 ] ; try { t.run ( arr , ( - 1 ) , 100000000 ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testVFE4 ( ) { load ( "dot.junit.opcodes.aput.d.T_aput_5" , java.lang.VerifyError.class ) ; }
Source:
com.google.common.collect.ImmutableSet < com.google.common.collect.Multiset.Entry < E > > createEntrySet ( ) { final com.google.common.collect.ImmutableSet < com.google.common.collect.Multiset.Entry < E > > forwardEntrySet = forward.entrySet ( ) ; return new com.google.common.collect.EntrySet ( ) { @ java.lang.Override public int size ( ) { return forwardEntrySet.size ( ) ; } @ java.lang.Override public com.google.common.collect.UnmodifiableIterator < com.google.common.collect.Multiset.Entry < E > > iterator ( ) { return asList ( ) . iterator ( ) ; } @ java.lang.Override com.google.common.collect.ImmutableList < com.google.common.collect.Multiset.Entry < E > > createAsList ( ) { return forwardEntrySet.asList ( ) . reverse ( ) ; } } ; }

Target:
com.google.common.collect.Multiset.Entry < E > getEntry ( int index ) { return forward.entrySet ( ) . asList ( ) . reverse ( ) . get ( index ) ; }
Source:
public void testQuotaReported ( ) throws java.lang.Exception { if ( ! ( isBackupSupported ( ) ) ) { return ; } java.lang.String separator = clearLogcat ( ) ; exec ( ( "bmgr backupnow " + ( android.backup.cts.KeyValueQuotaTest.BACKUP_APP_NAME ) ) ) ; waitForLogcat ( android.backup.cts.KeyValueQuotaTest.TIMEOUT_SECONDS , separator , ( "quota is " + ( android.backup.cts.KeyValueQuotaTest.LOCAL_TRANSPORT_BACKUP_QUOTA ) ) ) ; }

Target:
public void testQuotaReported ( ) throws java.lang.Exception { if ( ! ( isBackupSupported ( ) ) ) { return ; } createTestFileOfSize ( android.backup.cts.KeyValueQuotaTest.BACKUP_APP_NAME , 1 ) ; java.lang.String separator = clearLogcat ( ) ; exec ( ( "bmgr backupnow " + ( android.backup.cts.KeyValueQuotaTest.BACKUP_APP_NAME ) ) ) ; waitForLogcat ( android.backup.cts.KeyValueQuotaTest.TIMEOUT_SECONDS , separator , ( "quota is " + ( android.backup.cts.KeyValueQuotaTest.LOCAL_TRANSPORT_BACKUP_QUOTA ) ) ) ; }
Source:
public android.os.Bundle hasFeatures ( android.accounts.AccountAuthenticatorResponse r , android.accounts.Account account , java.lang.String [ ] strings ) throws android.accounts.NetworkErrorException { android.util.Log.d ( com.android.bluetooth.pbapclient.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; final android.os.Bundle result = new android.os.Bundle ( ) ; result.putBoolean ( AccountManager.KEY_BOOLEAN_RESULT , false ) ; return result ; }

Target:
public android.os.Bundle updateCredentials ( android.accounts.AccountAuthenticatorResponse r , android.accounts.Account account , java.lang.String s , android.os.Bundle bundle ) throws android.accounts.NetworkErrorException { if ( com.android.bluetooth.pbapclient.Authenticator.DBG ) android.util.Log.d ( com.android.bluetooth.pbapclient.Authenticator.TAG , "got call" , new java.lang.Exception ( ) ) ; return null ; }
Source:
public void testAesGcm64Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm authCrypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_CRYPT_AES_GCM , android.net.cts.IpSecManagerTest.getKey ( 288 ) , 64 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , null , authCrypt , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , null , authCrypt , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha256Tcp4UdpEncap ( ) 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_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , true , 1 , false ) ; }
Source:
public void run ( com.android.tradefed.result.ITestInvocationListener listener ) throws com.android.tradefed.device.DeviceNotAvailableException { for ( java.util.Map.Entry < java.lang.String , java.lang.String > entry : com.android.tradefed.testtype.GraphicsBenchmarkHostsideController.testList.entrySet ( ) ) { java.io.File apk = new java.io.File ( mApkDir , entry.getValue ( ) ) ; getDevice ( ) . installPackage ( apk , true ) ; runDeviceTests ( com.android.tradefed.testtype.GraphicsBenchmarkHostsideController.PACKAGE , com.android.tradefed.testtype.GraphicsBenchmarkHostsideController.CLASS , entry.getKey ( ) ) ; } }

Target:
public void run ( com.android.tradefed.result.ITestInvocationListener listener ) throws com.android.tradefed.device.DeviceNotAvailableException { for ( com.android.gfx.benchmark.ApkInfo apk : com.android.gfx.benchmark.ApkInfo.values ( ) ) { getDevice ( ) . installPackage ( new java.io.File ( mApkDir , apk.getFileName ( ) ) , true ) ; runDeviceTests ( com.android.tradefed.testtype.GraphicsBenchmarkHostsideController.PACKAGE , com.android.tradefed.testtype.GraphicsBenchmarkHostsideController.CLASS , ( ( "run[" + ( apk.name ( ) ) ) + "]" ) ) ; } }