auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public static void test_Float_floatToRawIntBits ( ) { junit.framework.Assert.assertEquals ( java.lang.Float.floatToRawIntBits ( ( - 1.0F ) ) , - 1082130432 ) ; junit.framework.Assert.assertEquals ( java.lang.Float.floatToRawIntBits ( 0.0F ) , 0 ) ; junit.framework.Assert.assertEquals ( java.lang.Float.floatToRawIntBits ( 1.0F ) , 1065353216 ) ; junit.framework.Assert.assertEquals ( java.lang.Float.floatToRawIntBits ( java.lang.Float.NaN ) , 2143289344 ) ; junit.framework.Assert.assertEquals ( java.lang.Float.floatToRawIntBits ( java.lang.Float.POSITIVE_INFINITY ) , 2139095040 ) ; junit.framework.Assert.assertEquals ( java.lang.Float.floatToRawIntBits ( java.lang.Float.NEGATIVE_INFINITY ) , - 8388608 ) ; }

Target:
public static void test_Float_floatToRawIntBits ( ) { java.lang.Float.floatToRawIntBits ( ( - 1.0F ) ) ; junit.framework.Assert.assertEquals ( java.lang.Float.floatToRawIntBits ( ( - 1.0F ) ) , - 1082130432 ) ; junit.framework.Assert.assertEquals ( java.lang.Float.floatToRawIntBits ( 0.0F ) , 0 ) ; junit.framework.Assert.assertEquals ( java.lang.Float.floatToRawIntBits ( 1.0F ) , 1065353216 ) ; junit.framework.Assert.assertEquals ( java.lang.Float.floatToRawIntBits ( java.lang.Float.NaN ) , 2143289344 ) ; junit.framework.Assert.assertEquals ( java.lang.Float.floatToRawIntBits ( java.lang.Float.POSITIVE_INFINITY ) , 2139095040 ) ; junit.framework.Assert.assertEquals ( java.lang.Float.floatToRawIntBits ( java.lang.Float.NEGATIVE_INFINITY ) , - 8388608 ) ; }
Source:
public void stopEditors ( ) { com.android.ide.eclipse.adt.AdtPlugin.sAndroidLogo.dispose ( ) ; com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) . dispose ( ) ; org.eclipse.core.resources.IWorkspace ws = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) ; com.android.ide.eclipse.adt.internal.resources.manager.GlobalProjectMonitor.stopMonitoring ( ws ) ; mRed.dispose ( ) ; }

Target:
public void stopEditors ( ) { com.android.ide.eclipse.adt.AdtPlugin.sAndroidLogo.dispose ( ) ; com.android.ide.eclipse.adt.internal.editors.IconFactory.getInstance ( ) . dispose ( ) ; org.eclipse.core.resources.IWorkspace ws = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) ; com.android.ide.eclipse.adt.internal.resources.manager.GlobalProjectMonitor.stopMonitoring ( ws ) ; if ( ( mRed ) != null ) { mRed.dispose ( ) ; mRed = null ; } }
Source:
public final void setHostname ( java.lang.String hostname ) { if ( ( hostname != null ) && ( ! ( org.conscrypt.AddressUtils.isValidSniHostname ( hostname ) ) ) ) { throw new java.lang.IllegalArgumentException ( ( "Invalid SNI hostname: " + hostname ) ) ; } sslParameters.setUseSni ( ( hostname != null ) ) ; super . setHostname ( hostname ) ; }

Target:
public final void setHostname ( java.lang.String hostname ) { sslParameters.setUseSni ( ( hostname != null ) ) ; super . setHostname ( hostname ) ; }
Source:
public void tearDown ( ) throws java.lang.Exception { if ( testSystemTzDataDir.exists ( ) ) { com.android.timezone.distro.FileUtils.deleteRecursive ( testInstallDir ) ; } if ( testInstallDir.exists ( ) ) { com.android.timezone.distro.FileUtils.deleteRecursive ( testInstallDir ) ; } if ( tempDir.exists ( ) ) { com.android.timezone.distro.FileUtils.deleteRecursive ( tempDir ) ; } super . tearDown ( ) ; }

Target:
public void tearDown ( ) throws java.lang.Exception { if ( tempDir.exists ( ) ) { com.android.timezone.distro.FileUtils.deleteRecursive ( tempDir ) ; } super . tearDown ( ) ; }
Source:
private boolean shouldShowUI ( int flags ) { updateStatusBar ( ) ; return ( ( ( ( ( mStatusBar ) != null ) && ( ( mStatusBar.getWakefulnessState ( ) ) != ( com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_ASLEEP ) ) ) && ( ( mStatusBar.getWakefulnessState ( ) ) != ( com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_GOING_TO_SLEEP ) ) ) && ( mStatusBar.isDeviceInteractive ( ) ) ) && ( ( flags & ( android.media.AudioManager.FLAG_SHOW_UI ) ) != 0 ) ; }

Target:
private boolean shouldShowUI ( int flags ) { updateStatusBar ( ) ; return ( mStatusBar ) != null ? ( ( ( ( mStatusBar.getWakefulnessState ( ) ) != ( com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_ASLEEP ) ) && ( ( mStatusBar.getWakefulnessState ( ) ) != ( com.android.systemui.keyguard.WakefulnessLifecycle.WAKEFULNESS_GOING_TO_SLEEP ) ) ) && ( mStatusBar.isDeviceInteractive ( ) ) ) && ( ( flags & ( android.media.AudioManager.FLAG_SHOW_UI ) ) != 0 ) : ( flags & ( android.media.AudioManager.FLAG_SHOW_UI ) ) != 0 ; }
Source:
public void test_getLimits ( ) { double [ ] orgLimits = ( ( double [ ] ) ( limits.clone ( ) ) ) ; double [ ] l = f1.getLimits ( ) ; assertTrue ( "Wrong limits" , l.equals ( limits ) ) ; l [ 0 ] = 3.14527 ; assertTrue ( "Limits copied" , ( ! ( l.equals ( orgLimits ) ) ) ) ; }

Target:
public void test_getLimits ( ) { double [ ] orgLimits = ( ( double [ ] ) ( limits.clone ( ) ) ) ; double [ ] l = f1.getLimits ( ) ; assertTrue ( "Wrong limits" , ( l == ( limits ) ) ) ; l [ 0 ] = 3.14527 ; assertTrue ( "Limits copied" , ( l != orgLimits ) ) ; }
Source:
public android.security.KeyPairGeneratorSpec.Builder setKeyType ( java.lang.String keyType ) throws java.security.NoSuchAlgorithmException { if ( keyType == null ) { throw new java.lang.NullPointerException ( "keyType == null" ) ; } else { try { android.security.KeyStore.getKeyTypeForAlgorithm ( keyType ) ; } catch ( java.lang.IllegalArgumentException e ) { throw new java.security.NoSuchAlgorithmException ( ( "Unsupported key type: " + keyType ) ) ; } } mKeyType = keyType ; return this ; }

Target:
public android.security.KeyPairGeneratorSpec.Builder setKeyType ( java.lang.String keyType ) throws java.security.NoSuchAlgorithmException { if ( keyType == null ) { throw new java.lang.NullPointerException ( "keyType == null" ) ; } else { if ( ( android.security.KeyStore.getKeyTypeForAlgorithm ( keyType ) ) == ( - 1 ) ) { throw new java.security.NoSuchAlgorithmException ( ( "Unsupported key type: " + keyType ) ) ; } } mKeyType = keyType ; return this ; }
Source:
public java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > getConfiguredProjectResources ( ) { if ( ( ( mConfiguredProjectRes ) == null ) && ( ( mConfigComposite ) != null ) ) { com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources project = getProjectResources ( ) ; project.loadAll ( ) ; mConfiguredProjectRes = project.getConfiguredResources ( mConfigComposite.getCurrentConfig ( ) ) ; } return mConfiguredProjectRes ; }

Target:
public java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > getConfiguredProjectResources ( ) { if ( ( ( mConfiguredProjectRes ) == null ) && ( ( mConfigComposite ) != null ) ) { com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources project = getProjectResources ( ) ; mConfiguredProjectRes = project.getConfiguredResources ( mConfigComposite.getCurrentConfig ( ) ) ; } return mConfiguredProjectRes ; }
Source:
private static void extractVariantSubtags ( java.lang.String [ ] subtags , int startIndex , int endIndex , java.util.List < java.lang.String > normalizedVariants ) { for ( int i = startIndex ; i < endIndex ; i ++ ) { final java.lang.String subtag = subtags [ i ] ; if ( java.util.Locale.Builder.isValidVariantSubtag ( subtag ) ) { normalizedVariants.add ( subtag.toUpperCase ( java.util.Locale.ROOT ) ) ; } else { break ; } } }

Target:
private static void extractVariantSubtags ( java.lang.String [ ] subtags , int startIndex , int endIndex , java.util.List < java.lang.String > normalizedVariants ) { for ( int i = startIndex ; i < endIndex ; i ++ ) { final java.lang.String subtag = subtags [ i ] ; if ( java.util.Locale.Builder.isValidVariantSubtag ( subtag ) ) { normalizedVariants.add ( subtag ) ; } else { break ; } } }
Source:
public void testPoll ( ) { java.util.concurrent.DelayQueue q = populatedQueue ( jsr166.SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { assertEquals ( new jsr166.DelayQueueTest.PDelay ( i ) , ( ( jsr166.DelayQueueTest.PDelay ) ( q.poll ( ) ) ) ) ; } assertNull ( q.poll ( ) ) ; }

Target:
public void testPoll ( ) { java.util.concurrent.DelayQueue q = populatedQueue ( jsr166.SIZE ) ; for ( int i = 0 ; i < ( SIZE ) ; ++ i ) { assertEquals ( new jsr166.DelayQueueTest.PDelay ( i ) , q.poll ( ) ) ; } assertNull ( q.poll ( ) ) ; }
Source:
public void testNetworkStatsWithSet ( ) throws java.lang.Exception { final android.net.NetworkStats stats = parseDetailedStats ( R.raw.xt_qtaguid_typical ) ; assertEquals ( 70 , stats.size ( ) ) ; com.android.internal.net.NetworkStatsFactoryTest.assertStatsEntry ( stats , "rmnet1" , 10021 , android.net.NetworkStats.SET_DEFAULT , 806354944 , 219110L , 578L , 227423L , 676L ) ; com.android.internal.net.NetworkStatsFactoryTest.assertStatsEntry ( stats , "rmnet1" , 10021 , android.net.NetworkStats.SET_FOREGROUND , 806354944 , 742L , 3L , 1265L , 3L ) ; }

Target:
public void testNetworkStatsWithSet ( ) throws java.lang.Exception { final android.net.NetworkStats stats = parseDetailedStats ( R.raw.xt_qtaguid_typical ) ; org.junit.Assert.assertEquals ( 70 , stats.size ( ) ) ; com.android.internal.net.NetworkStatsFactoryTest.assertStatsEntry ( stats , "rmnet1" , 10021 , android.net.NetworkStats.SET_DEFAULT , 806354944 , 219110L , 578L , 227423L , 676L ) ; com.android.internal.net.NetworkStatsFactoryTest.assertStatsEntry ( stats , "rmnet1" , 10021 , android.net.NetworkStats.SET_FOREGROUND , 806354944 , 742L , 3L , 1265L , 3L ) ; }
Source:
public com.android.ahat.proguard.ProguardMap.Frame getFrame ( java.lang.String clearClassName , java.lang.String obfuscatedMethodName , java.lang.String clearSignature , java.lang.String obfuscatedFilename , int obfuscatedLine ) { java.lang.String key = obfuscatedMethodName + clearSignature ; com.android.ahat.proguard.ProguardMap.FrameData frame = mFrames.get ( key ) ; if ( frame == null ) { return new com.android.ahat.proguard.ProguardMap.Frame ( obfuscatedMethodName , clearSignature , obfuscatedFilename , obfuscatedLine ) ; } return new com.android.ahat.proguard.ProguardMap.Frame ( frame.clearMethodName , clearSignature , com.android.ahat.proguard.ProguardMap.getFileName ( clearClassName , frame.clearMethodName ) , ( obfuscatedLine - ( frame.lineDelta ) ) ) ; }

Target:
public com.android.ahat.proguard.ProguardMap.Frame getFrame ( java.lang.String clearClassName , java.lang.String obfuscatedMethodName , java.lang.String clearSignature , java.lang.String obfuscatedFilename , int obfuscatedLine ) { java.lang.String key = obfuscatedMethodName + clearSignature ; com.android.ahat.proguard.ProguardMap.FrameData frame = mFrames.get ( key ) ; if ( frame == null ) { frame = new com.android.ahat.proguard.ProguardMap.FrameData ( obfuscatedMethodName , 0 ) ; } return new com.android.ahat.proguard.ProguardMap.Frame ( frame.clearMethodName , clearSignature , com.android.ahat.proguard.ProguardMap.getFileName ( clearClassName ) , ( obfuscatedLine - ( frame.lineDelta ) ) ) ; }
Source:
private int getCmasMessageClass ( ) { switch ( messageIdentifier ) { case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_PRESIDENTIAL_LEVEL_ALERT ; case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_OBSERVED : case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_LIKELY : case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_EXPECTED_OBSERVED : case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_EXPECTED_LIKELY : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_EXTREME_THREAT ; case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_SEVERE_IMMEDIATE_OBSERVED : case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_SEVERE_IMMEDIATE_LIKELY : case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_SEVERE_EXPECTED_OBSERVED : case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_SEVERE_EXPECTED_LIKELY : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_SEVERE_THREAT ; case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_CHILD_ABDUCTION_EMERGENCY ; case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_REQUIRED_MONTHLY_TEST : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_REQUIRED_MONTHLY_TEST ; case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXERCISE : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_CMAS_EXERCISE ; case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_OPERATOR_DEFINED_USE : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_OPERATOR_DEFINED_USE ; default : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_UNKNOWN ; } }

Target:
private int getCmasMessageClass ( ) { switch ( messageIdentifier ) { case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_PRESIDENTIAL_LEVEL : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_PRESIDENTIAL_LEVEL_ALERT ; case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_OBSERVED : case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_LIKELY : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_EXTREME_THREAT ; case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_EXPECTED_OBSERVED : case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_EXPECTED_LIKELY : case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_SEVERE_IMMEDIATE_OBSERVED : case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_SEVERE_IMMEDIATE_LIKELY : case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_SEVERE_EXPECTED_OBSERVED : case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_SEVERE_EXPECTED_LIKELY : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_SEVERE_THREAT ; case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_CHILD_ABDUCTION_EMERGENCY ; case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_REQUIRED_MONTHLY_TEST : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_REQUIRED_MONTHLY_TEST ; case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXERCISE : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_CMAS_EXERCISE ; case SmsCbConstants.MESSAGE_ID_CMAS_ALERT_OPERATOR_DEFINED_USE : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_OPERATOR_DEFINED_USE ; default : return android.telephony.SmsCbCmasInfo.CMAS_CLASS_UNKNOWN ; } }
Source:
synchronized int nTypeCreate ( int eid , int x , int y , int z , boolean mips , boolean faces , int yuv ) { validate ( ) ; return rsnTypeCreate ( mContext , eid , x , y , z , mips , faces , yuv ) ; }

Target:
synchronized long nTypeCreate ( long eid , int x , int y , int z , boolean mips , boolean faces , int yuv ) { validate ( ) ; return rsnTypeCreate ( mContext , eid , x , y , z , mips , faces , yuv ) ; }
Source:
public void onProxySessionTerminated ( int reason ) { if ( android.net.wifi.aware.WifiAwareManager.VDBG ) android.util.Log.v ( android.net.wifi.aware.WifiAwareManager.TAG , ( "Proxy: onSessionTerminated: reason=" + reason ) ) ; if ( ( mSession ) != null ) { mSession.setTerminated ( ) ; mSession = null ; } else { android.util.Log.w ( android.net.wifi.aware.WifiAwareManager.TAG , "Proxy: onSessionTerminated called but mSession is null!?" ) ; } mAwareManager.clear ( ) ; mOriginalCallback.onSessionTerminated ( reason ) ; }

Target:
public void onProxySessionTerminated ( int reason ) { if ( android.net.wifi.aware.WifiAwareManager.VDBG ) android.util.Log.v ( android.net.wifi.aware.WifiAwareManager.TAG , ( "Proxy: onSessionTerminated: reason=" + reason ) ) ; if ( ( mSession ) != null ) { mSession.setTerminated ( ) ; mSession = null ; } else { android.util.Log.w ( android.net.wifi.aware.WifiAwareManager.TAG , "Proxy: onSessionTerminated called but mSession is null!?" ) ; } mAwareManager.clear ( ) ; mOriginalCallback.onSessionTerminated ( ) ; }
Source:
public void enter ( ) { super . enter ( ) ; setSpeakerphoneOn ( false ) ; setBluetoothOn ( false ) ; if ( ( mAudioFocusType ) == ( com.android.server.telecom.CallAudioRouteStateMachine.ACTIVE_FOCUS ) ) { setNotificationsSuppressed ( true ) ; } android.telecom.CallAudioState newState = new android.telecom.CallAudioState ( mIsMuted , com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_EARPIECE , mAvailableRoutes ) ; setSystemAudioState ( newState ) ; updateInternalCallAudioState ( ) ; }

Target:
public void enter ( ) { super . enter ( ) ; setSpeakerphoneOn ( false ) ; setBluetoothOn ( false ) ; if ( ( mAudioFocusType ) == ( com.android.server.telecom.CallAudioRouteStateMachine.ACTIVE_FOCUS ) ) { setNotificationsSuppressed ( true ) ; } android.telecom.CallAudioState newState = new android.telecom.CallAudioState ( mIsMuted , com.android.server.telecom.CallAudioRouteStateMachine.ROUTE_EARPIECE , mAvailableRoutes ) ; setSystemAudioState ( newState , true ) ; updateInternalCallAudioState ( ) ; }
Source:
private com.android.jack.ir.ast.JMethod findMethod ( @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.lookup.MethodBinding binding , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface enclosingType ) { com.android.jack.ir.ast.JMethod method = null ; java.lang.String searchedSignature = ( new java.lang.String ( binding.selector ) ) + ( new java.lang.String ( binding.signature ( ) ) ) ; for ( com.android.jack.ir.ast.JMethod existing : enclosingType.getMethods ( ) ) { if ( searchedSignature.equals ( com.android.jack.Jack.getLookupFormatter ( ) . getName ( existing ) ) ) { method = existing ; break ; } } return method ; }

Target:
private com.android.jack.ir.ast.JMethod findMethod ( @ javax.annotation.Nonnull org.eclipse.jdt.internal.compiler.lookup.MethodBinding binding , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface enclosingType ) { com.android.jack.ir.ast.JMethod method = null ; java.lang.String searchedSignature = ( new java.lang.String ( binding.selector ) ) + ( new java.lang.String ( binding.signature ( ) ) ) ; for ( com.android.jack.ir.ast.JMethod existing : enclosingType.getMethods ( ) ) { if ( equals ( binding , searchedSignature , existing ) ) { method = existing ; break ; } } return method ; }
Source:
public android.drm.DrmConvertedStatus convertData ( int convertId , byte [ ] inputData ) { if ( ( null == inputData ) || ( 0 >= ( inputData.length ) ) ) { throw new java.lang.IllegalArgumentException ( "Given inputData should be non null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _convertData ( mUniqueId , convertId , inputData ) ; }

Target:
public android.drm.DrmConvertedStatus convertData ( int convertId , byte [ ] inputData ) { if ( ( null == inputData ) || ( 0 >= ( inputData.length ) ) ) { throw new java.lang.IllegalArgumentException ( "Given inputData should be non null" ) ; } return _convertData ( mUniqueId , convertId , inputData ) ; }
Source:
public void fidelityWarning ( java.lang.String tag , java.lang.String message , java.lang.Throwable throwable ) { java.lang.String description = describe ( message ) ; com.android.ide.eclipse.adt.AdtPlugin.log ( throwable , "%1$s: %2$s" , mName , description ) ; if ( throwable != null ) { mHaveExceptions = true ; } addFidelityWarning ( tag , description ) ; }

Target:
public void fidelityWarning ( java.lang.String tag , java.lang.String message , java.lang.Throwable throwable , java.lang.Object data ) { java.lang.String description = describe ( message ) ; com.android.ide.eclipse.adt.AdtPlugin.log ( throwable , "%1$s: %2$s" , mName , description ) ; if ( throwable != null ) { mHaveExceptions = true ; } addFidelityWarning ( tag , description ) ; }
Source:
public static boolean getBoolean ( java.lang.String key , boolean def ) { if ( ( key.length ( ) ) > ( android.os.SystemProperties.PROP_NAME_MAX ) ) { throw new java.lang.IllegalArgumentException ( ( "key.length > " + ( android.os.SystemProperties.PROP_NAME_MAX ) ) ) ; } if ( android.os.SystemProperties.TRACK_KEY_ACCESS ) android.os.SystemProperties.onKeyAccess ( key ) ; return android.os.SystemProperties.native_get_boolean ( key , def ) ; }

Target:
public static boolean getBoolean ( java.lang.String key , boolean def ) { if ( android.os.SystemProperties.TRACK_KEY_ACCESS ) android.os.SystemProperties.onKeyAccess ( key ) ; return android.os.SystemProperties.native_get_boolean ( key , def ) ; }
Source:
protected void fillRtTestInfos ( ) { rtTestInfos.add ( CLAZZ ) ; rtTestInfos.add ( TEST001 ) ; rtTestInfos.add ( TEST002 ) ; rtTestInfos.add ( TEST003 ) ; rtTestInfos.add ( TEST004 ) ; rtTestInfos.add ( TEST005 ) ; rtTestInfos.add ( TEST006 ) ; rtTestInfos.add ( TEST007 ) ; }

Target:
protected void fillRtTestInfos ( ) { rtTestInfos.add ( CLAZZ ) ; rtTestInfos.add ( TEST001 ) ; rtTestInfos.add ( TEST002 ) ; rtTestInfos.add ( TEST003 ) ; rtTestInfos.add ( TEST004 ) ; rtTestInfos.add ( TEST006 ) ; rtTestInfos.add ( TEST007 ) ; }
Source:
private void responseIccIo ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , com.android.internal.telephony.V1_0.IccIoResult result ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.uicc.IccIoResult ret = null ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { ret = new com.android.internal.telephony.uicc.IccIoResult ( result.sw1 , result.sw2 , result.simResponse ) ; com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }

Target:
private void responseIccIo ( android.hardware.radio.V1_0.RadioResponseInfo responseInfo , com.android.internal.telephony.V1_0.IccIoResult result ) { com.android.internal.telephony.RILRequest rr = mRil.processResponse ( responseInfo ) ; if ( rr != null ) { com.android.internal.telephony.uicc.IccIoResult ret = new com.android.internal.telephony.uicc.IccIoResult ( result.sw1 , result.sw2 , result.simResponse ) ; if ( ( responseInfo.error ) == ( android.hardware.radio.V1_0.RadioError.NONE ) ) { com.android.internal.telephony.RadioResponse.sendMessageResponse ( rr.mResult , ret ) ; } mRil.processResponseDone ( rr , responseInfo , ret ) ; } }
Source:
public void updateSubscriptionNickname ( int subscriptionId , java.lang.String nickname , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { android.telephony.euicc.EuiccManager.getIEuiccController ( ) . updateSubscriptionNickname ( subscriptionId , nickname , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void updateSubscriptionNickname ( int subscriptionId , java.lang.String nickname , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { getIEuiccController ( ) . updateSubscriptionNickname ( subscriptionId , nickname , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public char [ ] getDigits ( ) { if ( ( digits ) != null ) { return digits.clone ( ) ; } else { char [ ] digitArray = new char [ 10 ] ; for ( int i = 0 ; i < 10 ; i ++ ) { digitArray [ i ] = ( ( char ) ( ( zeroDigit ) + i ) ) ; } return digitArray ; } }

Target:
public char [ ] getDigits ( ) { return digits.clone ( ) ; }
Source:
private void addFolder ( com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources resources , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config , com.android.ide.eclipse.mock.FileMock [ ] memberList ) throws java.lang.Exception { java.lang.String folderName = config.getFolderName ( ResourceFolderType.LAYOUT , ( ( com.android.sdklib.IAndroidTarget ) ( null ) ) ) ; com.android.ide.eclipse.mock.FolderMock folder = new com.android.ide.eclipse.mock.FolderMock ( folderName , memberList ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder resFolder = _addProjectResourceFolder ( resources , config , folder ) ; for ( com.android.ide.eclipse.mock.FileMock file : memberList ) { resFolder.addFile ( new com.android.ide.eclipse.adt.internal.resources.manager.SingleResourceFile ( new com.android.ide.eclipse.adt.io.IFileWrapper ( file ) , resFolder ) ) ; } }

Target:
private void addFolder ( com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources resources , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config , com.android.ide.eclipse.mock.FileMock [ ] memberList ) throws java.lang.Exception { java.lang.String folderName = config.getFolderName ( ResourceFolderType.LAYOUT ) ; com.android.ide.eclipse.mock.FolderMock folder = new com.android.ide.eclipse.mock.FolderMock ( folderName , memberList ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceFolder resFolder = _addProjectResourceFolder ( resources , config , folder ) ; for ( com.android.ide.eclipse.mock.FileMock file : memberList ) { resFolder.addFile ( new com.android.ide.eclipse.adt.internal.resources.manager.SingleResourceFile ( new com.android.ide.eclipse.adt.io.IFileWrapper ( file ) , resFolder ) ) ; } }
Source:
public java.io.FileDescriptor open ( java.lang.String path , int flags , int mode ) throws android.system.ErrnoException { dalvik.system.BlockGuard.getThreadPolicy ( ) . onReadFromDisk ( ) ; if ( ( mode & ( O_ACCMODE ) ) != ( O_RDONLY ) ) { dalvik.system.BlockGuard.getThreadPolicy ( ) . onWriteToDisk ( ) ; } return os.open ( path , flags , mode ) ; }

Target:
public java.io.FileDescriptor open ( java.lang.String path , int flags , int mode ) throws android.system.ErrnoException { dalvik.system.BlockGuard.getThreadPolicy ( ) . onReadFromDisk ( ) ; if ( ( flags & ( O_ACCMODE ) ) != ( O_RDONLY ) ) { dalvik.system.BlockGuard.getThreadPolicy ( ) . onWriteToDisk ( ) ; } return os.open ( path , flags , mode ) ; }
Source:
public java.lang.Package getPackage ( ) { java.lang.Package pkg = super . getPackage ( ) ; if ( pkg == null ) { try { pkg = com.android.sdklib.internal.repository.packages.PlatformToolPackage.create ( null , getSourceProperties ( ) , 0 , null , "Platform Tools" , null , com.android.sdklib.internal.repository.archives.Archive.Os.getCurrentOs ( ) , com.android.sdklib.internal.repository.archives.Archive.Arch.getCurrentArch ( ) , getLocalDir ( ) . getPath ( ) ) ; setPackage ( pkg ) ; } catch ( java.lang.Exception e ) { appendLoadError ( "Failed to parse package: %1$s" , e.toString ( ) ) ; } } return pkg ; }

Target:
public java.lang.Package getPackage ( ) { java.lang.Package pkg = super . getPackage ( ) ; if ( pkg == null ) { try { pkg = com.android.sdklib.internal.repository.packages.PlatformToolPackage.create ( null , getSourceProperties ( ) , 0 , null , "Platform Tools" , null , getLocalDir ( ) . getPath ( ) ) ; setPackage ( pkg ) ; } catch ( java.lang.Exception e ) { appendLoadError ( "Failed to parse package: %1$s" , e.toString ( ) ) ; } } return pkg ; }
Source:
public java.lang.String getSymbol ( java.util.Locale locale ) { if ( ( locale.getCountry ( ) . length ( ) ) == 0 ) { return currencyCode ; } libcore.icu.LocaleData localeData = libcore.icu.LocaleData.get ( locale ) ; if ( localeData.internationalCurrencySymbol.equals ( currencyCode ) ) { return localeData.currencySymbol ; } java.lang.String symbol = libcore.icu.ICU.getCurrencySymbol ( locale.toString ( ) , currencyCode ) ; return symbol != null ? symbol : currencyCode ; }

Target:
public java.lang.String getSymbol ( java.util.Locale locale ) { libcore.icu.LocaleData localeData = libcore.icu.LocaleData.get ( locale ) ; if ( localeData.internationalCurrencySymbol.equals ( currencyCode ) ) { return localeData.currencySymbol ; } java.lang.String symbol = libcore.icu.ICU.getCurrencySymbol ( locale , currencyCode ) ; return symbol != null ? symbol : currencyCode ; }
Source:
public void test_get_RSA_private_params ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.get_RSA_private_params ( org.conscrypt.NativeCryptoTest.NULL_EVP_PKEY ) ; } catch ( java.lang.NullPointerException expected ) { } try { org.conscrypt.NativeCrypto.get_RSA_private_params ( org.conscrypt.NativeCryptoTest.NULL_EVP_PKEY ) ; } catch ( java.lang.NullPointerException expected ) { } final byte [ ] seed = new byte [ 20 ] ; long group = org.conscrypt.NativeCrypto.EC_GROUP_new_by_curve_name ( "prime256v1" ) ; org.conscrypt.NativeRef.EVP_PKEY ctx = new org.conscrypt.NativeRef.EVP_PKEY ( org.conscrypt.NativeCrypto.EC_KEY_generate_key ( group ) ) ; try { org.conscrypt.NativeCrypto.get_RSA_private_params ( ctx ) ; fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }

Target:
public void test_get_RSA_private_params ( ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.get_RSA_private_params ( org.conscrypt.NativeCryptoTest.NULL_EVP_PKEY ) ; } catch ( java.lang.NullPointerException expected ) { } try { org.conscrypt.NativeCrypto.get_RSA_private_params ( org.conscrypt.NativeCryptoTest.NULL_EVP_PKEY ) ; } catch ( java.lang.NullPointerException expected ) { } long group = org.conscrypt.NativeCrypto.EC_GROUP_new_by_curve_name ( "prime256v1" ) ; org.conscrypt.NativeRef.EVP_PKEY ctx = new org.conscrypt.NativeRef.EVP_PKEY ( org.conscrypt.NativeCrypto.EC_KEY_generate_key ( group ) ) ; try { org.conscrypt.NativeCrypto.get_RSA_private_params ( ctx ) ; fail ( ) ; } catch ( java.lang.RuntimeException expected ) { } }
Source:
public static com.android.jack.dx.rop.cst.CstMethodRef createMethodRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall methodCall ) { com.android.jack.dx.rop.cst.CstType definingClass = com.android.jack.backend.dex.rop.RopHelper.getCstType ( methodCall.getReceiverType ( ) ) ; java.lang.String signatureWithoutName = com.android.jack.backend.dex.rop.RopHelper.getMethodSignatureWithoutName ( methodCall ) ; com.android.jack.dx.rop.cst.CstNat nat = new com.android.jack.dx.rop.cst.CstNat ( new com.android.jack.dx.rop.cst.CstString ( signatureWithoutName ) ) ; com.android.jack.dx.rop.cst.CstMethodRef methodRef = new com.android.jack.dx.rop.cst.CstMethodRef ( definingClass , new com.android.jack.dx.rop.cst.CstString ( methodCall.getMethodName ( ) ) , nat ) ; return methodRef ; }

Target:
public static com.android.jack.dx.rop.cst.CstMethodRef createMethodRef ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodCall methodCall ) { com.android.jack.dx.rop.cst.CstType definingClass = com.android.jack.backend.dex.rop.RopHelper.getCstType ( methodCall.getReceiverType ( ) ) ; java.lang.String signatureWithoutName = com.android.jack.backend.dex.rop.RopHelper.getMethodSignatureWithoutName ( methodCall ) ; com.android.jack.dx.rop.cst.CstMethodRef methodRef = new com.android.jack.dx.rop.cst.CstMethodRef ( definingClass , new com.android.jack.dx.rop.cst.CstString ( methodCall.getMethodName ( ) ) , new com.android.jack.dx.rop.cst.CstString ( signatureWithoutName ) ) ; return methodRef ; }
Source:
public java.lang.String getVisualVoicemailPackageName ( java.lang.String callingPackage , int subId ) { mAppOps.checkPackage ( android.os.Binder.getCallingUid ( ) , callingPackage ) ; if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getVisualVoicemailPackageName" ) ) ) { return null ; } return com.android.phone.vvm.RemoteVvmTaskManager.getRemotePackage ( mPhone.getContext ( ) , subId ) . getPackageName ( ) ; }

Target:
public java.lang.String getVisualVoicemailPackageName ( java.lang.String callingPackage , int subId ) { mAppOps.checkPackage ( android.os.Binder.getCallingUid ( ) , callingPackage ) ; if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , subId , callingPackage , "getVisualVoicemailPackageName" ) ) ) { return null ; } return com.android.phone.vvm.RemoteVvmTaskManager.getRemotePackage ( mPhone.getContext ( ) , subId ) . getPackageName ( ) ; }
Source:
public void listen ( android.telephony.PhoneStateListener listener , int events ) { java.lang.String pkgForDebug = ( ( android.telephony.TelephonyManager.sContext ) != null ) ? android.telephony.TelephonyManager.sContext.getPackageName ( ) : "<unknown>" ; try { java.lang.Boolean notifyNow = ( getITelephony ( ) ) != null ; android.telephony.TelephonyManager.sRegistry.listen ( pkgForDebug , listener.callback , events , notifyNow ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } }

Target:
public void listen ( android.telephony.PhoneStateListener listener , int events ) { java.lang.String pkgForDebug = ( ( mContext ) != null ) ? mContext.getPackageName ( ) : "<unknown>" ; try { java.lang.Boolean notifyNow = true ; android.telephony.TelephonyManager.sRegistry.listen ( pkgForDebug , listener.callback , events , notifyNow ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } }
Source:
public static com.intellij.lang.properties.IProperty createProperty ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.NonNls java.lang.String name , @ org.jetbrains.annotations.NonNls java.lang.String value ) { java.lang.String text = com.intellij.lang.properties.psi.PropertiesElementFactory.getPropertyText ( name , value ) ; final com.intellij.lang.properties.psi.PropertiesFile dummyFile = com.intellij.lang.properties.psi.PropertiesElementFactory.createPropertiesFile ( project , text ) ; return dummyFile.getProperties ( ) . get ( 0 ) ; }

Target:
public static com.intellij.lang.properties.IProperty createProperty ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.project.Project project , @ org.jetbrains.annotations.NonNls java.lang.String name , @ org.jetbrains.annotations.NonNls java.lang.String value ) { java.lang.String text = com.intellij.lang.properties.psi.PropertiesElementFactory.getPropertyText ( name , value , null , project ) ; final com.intellij.lang.properties.psi.PropertiesFile dummyFile = com.intellij.lang.properties.psi.PropertiesElementFactory.createPropertiesFile ( project , text ) ; return dummyFile.getProperties ( ) . get ( 0 ) ; }
Source:
public void setTrafficClass ( int tc ) throws java.net.SocketException { if ( ( tc < 0 ) || ( tc > 255 ) ) throw new java.lang.IllegalArgumentException ( "tc is not in range 0 -- 255" ) ; if ( isClosed ( ) ) throw new java.net.SocketException ( "Socket is closed" ) ; try { getImpl ( ) . setOption ( java.net.SocketOptions.IP_TOS , tc ) ; } catch ( java.net.SocketException se ) { if ( ! ( isConnected ( ) ) ) throw se ; } }

Target:
public void setTrafficClass ( int tc ) throws java.net.SocketException { if ( ( tc < 0 ) || ( tc > 255 ) ) throw new java.lang.IllegalArgumentException ( "tc is not in range 0 -- 255" ) ; if ( isClosed ( ) ) throw new java.net.SocketException ( "Socket is closed" ) ; getImpl ( ) . setOption ( java.net.SocketOptions.IP_TOS , new java.lang.Integer ( tc ) ) ; }
Source:
public void testSubjectAltNameAndCn ( ) { assertFalse ( verifyWithServerCertificate ( "imap.g.com" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_DNS_NAME , "a.y.com" ) ) ) ; assertFalse ( verifyWithServerCertificate ( "imap.g.com" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "cn=imap.g.com" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_DNS_NAME , "a.y.com" ) ) ) ; assertTrue ( verifyWithServerCertificate ( "imap.g.com" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_DNS_NAME , "imap.g.com" ) ) ) ; }

Target:
public void testSubjectAltNameAndCn ( ) { assertFalse ( verifyWithServerCertificate ( "imap.g.com" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_DNS_NAME , "a.y.com" ) ) ) ; assertFalse ( verifyWithServerCertificate ( "imap.g.com" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "imap.g.com" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_DNS_NAME , "a.y.com" ) ) ) ; assertTrue ( verifyWithServerCertificate ( "imap.g.com" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_DNS_NAME , "imap.g.com" ) ) ) ; }
Source:
private android.graphics.Rect getVisibleBounds ( android.view.accessibility.AccessibilityNodeInfo node ) { if ( ! ( visible ) ) { return new android.graphics.Rect ( ) ; } android.graphics.Rect visibleBounds = getBounds ( ) ; io.appium.droiddriver.uiautomation.UiAutomationElement parent = getParent ( ) ; android.graphics.Rect parentBounds ; while ( parent != null ) { parentBounds = parent.getBounds ( ) ; if ( ! ( visibleBounds.intersect ( parentBounds ) ) ) { return new android.graphics.Rect ( ) ; } parent = parent.getParent ( ) ; } return visibleBounds ; }

Target:
private android.graphics.Rect getVisibleBounds ( android.view.accessibility.AccessibilityNodeInfo node ) { if ( ! ( visible ) ) { return new android.graphics.Rect ( ) ; } android.graphics.Rect visibleBounds = getBounds ( ) ; io.appium.droiddriver.uiautomation.UiAutomationElement parent = getParent ( ) ; android.graphics.Rect parentBounds ; while ( parent != null ) { parentBounds = parent.getBounds ( ) ; visibleBounds.intersect ( parentBounds ) ; parent = parent.getParent ( ) ; } return visibleBounds ; }
Source:
public final void createBaseTest ( com.android.rs.imagejb.ImageProcessingActivityJB ipact ) { act = ipact ; mRS = ipact.mProcessor.mRS ; mRS.setMessageHandler ( new com.android.rs.imagejb.TestBase.MessageProcessor ( act ) ) ; mInPixelsAllocation = ipact.mProcessor.mInPixelsAllocation ; mInPixelsAllocation2 = ipact.mProcessor.mInPixelsAllocation2 ; mOutPixelsAllocation = ipact.mProcessor.mOutPixelsAllocation ; createTest ( act.getResources ( ) ) ; }

Target:
public final void createBaseTest ( com.android.rs.imagejb.ImageProcessingActivityJB ipact ) { act = ipact ; mRS = ipact.mProcessor.mRS ; mInPixelsAllocation = ipact.mProcessor.mInPixelsAllocation ; mInPixelsAllocation2 = ipact.mProcessor.mInPixelsAllocation2 ; mOutPixelsAllocation = ipact.mProcessor.mOutPixelsAllocation ; createTest ( act.getResources ( ) ) ; }
Source:
static void getInt ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , int value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final int got = ( v == null ) ? ( ( int ) ( m.invokeExact ( ) ) ) : ( ( int ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertActualAndExpectedMatch ( exceptionThrown , expectFailure ) ; }

Target:
static void getInt ( java.lang.invoke.MethodHandle m , Main.ValueHolder v , int value , boolean expectFailure ) throws java.lang.Throwable { boolean exceptionThrown = false ; try { final int got = ( v == null ) ? ( ( int ) ( m.invokeExact ( ) ) ) : ( ( int ) ( m.invokeExact ( v ) ) ) ; Main.Tester.assertTrue ( ( got == value ) ) ; } catch ( java.lang.invoke.WrongMethodTypeException e ) { exceptionThrown = true ; } Main.Tester.assertEquals ( exceptionThrown , expectFailure ) ; }
Source:
public void setErrorHandler ( android.support.v8.renderscript.RenderScript.RSErrorHandler msg ) { mErrorCallback = msg ; if ( android.support.v8.renderscript.RenderScript.isNative ) { android.support.v8.renderscript.RenderScriptThunker rst = ( ( android.support.v8.renderscript.RenderScriptThunker ) ( this ) ) ; android.support.v8.renderscript.RenderScript.RSErrorHandler newmsg = new android.support.v8.renderscript.RenderScript.RSErrorHandler ( ) { public void run ( ) { mErrorCallback.mErrorMessage = mErrorMessage ; mErrorCallback.mErrorNum = mErrorNum ; mErrorCallback.run ( ) ; } } ; rst.mN.setErrorHandler ( newmsg ) ; } }

Target:
public void setErrorHandler ( android.support.v8.renderscript.RenderScript.RSErrorHandler msg ) { mErrorCallback = msg ; if ( android.support.v8.renderscript.RenderScript.isNative ) { android.support.v8.renderscript.RenderScriptThunker rst = ( ( android.support.v8.renderscript.RenderScriptThunker ) ( this ) ) ; rst.setErrorHandler ( msg ) ; } }
Source:
public static synchronized com.android.bluetooth.btservice.AdapterService getAdapterService ( ) { if ( ( ( com.android.bluetooth.btservice.AdapterService.sAdapterService ) != null ) && ( ! ( com.android.bluetooth.btservice.AdapterService.sAdapterService.mCleaningUp ) ) ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , ( "getAdapterService() - returning " + ( com.android.bluetooth.btservice.AdapterService.sAdapterService ) ) ) ; return com.android.bluetooth.btservice.AdapterService.sAdapterService ; } if ( com.android.bluetooth.btservice.AdapterService.DBG ) { if ( ( com.android.bluetooth.btservice.AdapterService.sAdapterService ) == null ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , "getAdapterService() - Service not available" ) ; } else if ( com.android.bluetooth.btservice.AdapterService.sAdapterService.mCleaningUp ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , "getAdapterService() - Service is cleaning up" ) ; } } return null ; }

Target:
public static synchronized com.android.bluetooth.btservice.AdapterService getAdapterService ( ) { android.util.Log.d ( com.android.bluetooth.btservice.AdapterService.TAG , ( "getAdapterService() - returning " + ( com.android.bluetooth.btservice.AdapterService.sAdapterService ) ) ) ; return com.android.bluetooth.btservice.AdapterService.sAdapterService ; }
Source:
private void finishInputEvent ( int id , boolean handled ) { int index = mActiveEventArray.indexOfKey ( id ) ; if ( index >= 0 ) { android.view.InputQueue.ActiveInputEvent e = mActiveEventArray.valueAt ( index ) ; mActiveEventArray.removeAt ( index ) ; e.mCallback.onFinishedInputEvent ( e.mToken , handled ) ; recycleActiveInputEvent ( e ) ; } }

Target:
private void finishInputEvent ( long id , boolean handled ) { int index = mActiveEventArray.indexOfKey ( id ) ; if ( index >= 0 ) { android.view.InputQueue.ActiveInputEvent e = mActiveEventArray.valueAt ( index ) ; mActiveEventArray.removeAt ( index ) ; e.mCallback.onFinishedInputEvent ( e.mToken , handled ) ; recycleActiveInputEvent ( e ) ; } }
Source:
public static void startCallForRow ( android.app.Activity activity , com.android.dialer.calllog.model.CoalescedRow row ) { com.android.dialer.precall.PreCall.start ( activity , new com.android.dialer.callintent.CallIntentBuilder ( row.getNumber ( ) . getNormalizedNumber ( ) , CallInitiationType.Type.CALL_LOG ) . setPhoneAccountHandle ( com.android.dialer.telecom.TelecomUtil.composePhoneAccountHandle ( row.getPhoneAccountComponentName ( ) , row.getPhoneAccountId ( ) ) ) . setIsVideoCall ( ( ( ( row.getFeatures ( ) ) & ( android.provider.CallLog.Calls.FEATURES_VIDEO ) ) == ( android.provider.CallLog.Calls.FEATURES_VIDEO ) ) ) ) ; }

Target:
public static void startCallForRow ( android.app.Activity activity , com.android.dialer.calllog.model.CoalescedRow row ) { com.android.dialer.precall.PreCall.start ( activity , new com.android.dialer.callintent.CallIntentBuilder ( row.getNumber ( ) . getNormalizedNumber ( ) , CallInitiationType.Type.CALL_LOG ) . setIsVideoCall ( ( ( ( row.getFeatures ( ) ) & ( android.provider.CallLog.Calls.FEATURES_VIDEO ) ) == ( android.provider.CallLog.Calls.FEATURES_VIDEO ) ) ) ) ; }
Source:
boolean stop ( ) { if ( ! ( mStarted ) ) { return false ; } mDeviceMonitor.stop ( ) ; mDeviceMonitor = null ; if ( ! ( stopAdb ( ) ) ) { return false ; } mStarted = false ; return true ; }

Target:
boolean stop ( ) { if ( ! ( mStarted ) ) { return false ; } if ( ( mDeviceMonitor ) != null ) { mDeviceMonitor.stop ( ) ; mDeviceMonitor = null ; } if ( ! ( stopAdb ( ) ) ) { return false ; } mStarted = false ; return true ; }
Source:
public boolean startWpsPbc ( java.lang.String iface , java.lang.String bssid ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.startWpsPbc ( iface , bssid ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " WPS_PBC" ) ) ; } else { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PBC " ) + bssid ) ) ; } } } }

Target:
public boolean startWpsPbc ( java.lang.String iface , java.lang.String bssid ) { return mSupplicantP2pIfaceHal.startWpsPbc ( iface , bssid ) ; }
Source:
public javax.net.ssl.SSLSession getSession ( byte [ ] sessionId ) { if ( sessionId == null ) { throw new java.lang.NullPointerException ( "session id cannot be null" ) ; } sun.security.ssl.SSLSessionImpl sess = ( ( sun.security.ssl.SSLSessionImpl ) ( sessionCache.get ( new sun.security.ssl.SessionId ( sessionId ) ) ) ) ; if ( ! ( isTimedout ( sess ) ) ) { return sess ; } return null ; }

Target:
public javax.net.ssl.SSLSession getSession ( byte [ ] sessionId ) { if ( sessionId == null ) { throw new java.lang.NullPointerException ( "session id cannot be null" ) ; } sun.security.ssl.SSLSessionImpl sess = sessionCache.get ( new sun.security.ssl.SessionId ( sessionId ) ) ; if ( ! ( isTimedout ( sess ) ) ) { return sess ; } return null ; }
Source:
private java.util.List < com.android.sdklib.devices.Device > getDefaultDevices ( ) { synchronized ( this ) { if ( ( mDefaultDevices ) == null ) { try { mDefaultDevices = com.android.sdklib.devices.DeviceParser.parse ( com.android.sdklib.devices.DeviceManager.class . getResourceAsStream ( SdkConstants.FN_DEVICES_XML ) ) ; } catch ( java.lang.IllegalStateException e ) { mLog.error ( e , null ) ; mDefaultDevices = new java.util.ArrayList < com.android.sdklib.devices.Device > ( ) ; } catch ( java.lang.Exception e ) { mLog.error ( null , "Error reading default devices" ) ; mDefaultDevices = new java.util.ArrayList < com.android.sdklib.devices.Device > ( ) ; } } } return mDefaultDevices ; }

Target:
public java.util.List < com.android.sdklib.devices.Device > getDefaultDevices ( ) { synchronized ( this ) { if ( ( mDefaultDevices ) == null ) { try { mDefaultDevices = com.android.sdklib.devices.DeviceParser.parse ( com.android.sdklib.devices.DeviceManager.class . getResourceAsStream ( SdkConstants.FN_DEVICES_XML ) ) ; } catch ( java.lang.IllegalStateException e ) { mLog.error ( e , null ) ; mDefaultDevices = new java.util.ArrayList < com.android.sdklib.devices.Device > ( ) ; } catch ( java.lang.Exception e ) { mLog.error ( null , "Error reading default devices" ) ; mDefaultDevices = new java.util.ArrayList < com.android.sdklib.devices.Device > ( ) ; } } } return mDefaultDevices ; }
Source:
public boolean isTrue ( ) throws java.lang.Exception { java.lang.String result = device.executeShellCommand ( ( "ls " + BUG_REPORT_DIR ) ) ; android.util.Log.d ( TAG , ( "ls result " + result ) ) ; boolean success = ( ( testFramework.getApi ( ) ) >= 25 ) ? ( result.matches ( "(?s).*bugreport.*\\.png.*" ) ) && ( result.matches ( "(?s).*bugreport.*\\.zip.*" ) ) : ( result.matches ( "(?s).*bugreport[-0-9]+\\.png.*" ) ) && ( result.matches ( "(?s).*bugreport[-0-9]+\\.zip.*" ) ) ; return success ; }

Target:
public boolean isTrue ( ) throws java.lang.Exception { java.lang.String result = device.executeShellCommand ( ( "ls " + BUG_REPORT_DIR ) ) ; android.util.Log.d ( TAG , ( "ls result " + result ) ) ; boolean success = ( result.matches ( "(?s).*bugreport.*\\.png.*" ) ) && ( result.matches ( "(?s).*bugreport.*\\.zip.*" ) ) ; return success ; }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_vector s = new com.android.rs.test.ScriptC_vector ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; if ( ! ( initializeGlobals ( s ) ) ) { failTest ( ) ; } else { s.invoke_vector_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; } pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.test.ScriptC_vector s = new com.android.rs.test.ScriptC_vector ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; if ( ! ( initializeGlobals ( s ) ) ) { failTest ( ) ; } else { s.invoke_vector_test ( ) ; pRS.finish ( ) ; waitForMessage ( ) ; } s.destroy ( ) ; pRS.destroy ( ) ; }