auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void disableUsageLocal ( ) { if ( com.android.server.wifi.nan.WifiNanStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.nan.WifiNanStateManager.TAG , ( "disableUsageLocal: mUsageEnabled=" + ( mUsageEnabled ) ) ) ; if ( ! ( mUsageEnabled ) ) { return ; } onNanDownLocal ( ) ; deleteAllDataPathInterfaces ( ) ; mUsageEnabled = false ; com.android.server.wifi.nan.WifiNanNative.getInstance ( ) . disable ( ( ( short ) ( 0 ) ) ) ; com.android.server.wifi.nan.WifiNanNative.getInstance ( ) . deInitNan ( ) ; sendNanStateChangedBroadcast ( false ) ; }

Target:
private void disableUsageLocal ( ) { if ( com.android.server.wifi.aware.WifiAwareStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareStateManager.TAG , ( "disableUsageLocal: mUsageEnabled=" + ( mUsageEnabled ) ) ) ; if ( ! ( mUsageEnabled ) ) { return ; } onAwareDownLocal ( ) ; deleteAllDataPathInterfaces ( ) ; mUsageEnabled = false ; com.android.server.wifi.aware.WifiAwareNative.getInstance ( ) . disable ( ( ( short ) ( 0 ) ) ) ; com.android.server.wifi.aware.WifiAwareNative.getInstance ( ) . deInitAware ( ) ; sendAwareStateChangedBroadcast ( false ) ; }
Source:
private void insertExtractAsInclude ( java.lang.String endId ) { org.eclipse.jface.action.IAction extractIncludeAction = new com.android.ide.eclipse.adt.internal.editors.layout.gle2.ExtractIncludeAction ( mCanvas ) ; if ( extractIncludeAction.isEnabled ( ) ) { mMenuManager.insertBefore ( endId , new org.eclipse.jface.action.Separator ( ) ) ; mMenuManager.insertBefore ( endId , extractIncludeAction ) ; mMenuManager.insertBefore ( endId , new org.eclipse.jface.action.Separator ( ) ) ; } }

Target:
private void insertVisualRefactorings ( java.lang.String endId ) { mMenuManager.insertBefore ( endId , new org.eclipse.jface.action.Separator ( ) ) ; mMenuManager.insertBefore ( endId , com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ExtractIncludeAction.create ( mEditor ) ) ; mMenuManager.insertBefore ( endId , com.android.ide.eclipse.adt.internal.editors.layout.refactoring.WrapInAction.create ( mEditor ) ) ; mMenuManager.insertBefore ( endId , com.android.ide.eclipse.adt.internal.editors.layout.refactoring.ChangeLayoutAction.create ( mEditor ) ) ; mMenuManager.insertBefore ( endId , new org.eclipse.jface.action.Separator ( ) ) ; }
Source:
public boolean acquireWifiLock ( android.os.IBinder binder , int lockMode , java.lang.String tag , android.os.WorkSource ws ) { if ( mWifiLockManager.acquireWifiLock ( lockMode , tag , binder , ws ) ) { mWifiController.sendMessage ( com.android.server.wifi.WifiController.CMD_LOCKS_CHANGED ) ; return true ; } return false ; }

Target:
public boolean acquireWifiLock ( android.os.IBinder binder , int lockMode , java.lang.String tag , android.os.WorkSource ws ) { mLog.trace ( "acquireWifiLock uid=% lockMode=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . c ( lockMode ) . flush ( ) ; if ( mWifiLockManager.acquireWifiLock ( lockMode , tag , binder , ws ) ) { mWifiController.sendMessage ( com.android.server.wifi.WifiController.CMD_LOCKS_CHANGED ) ; return true ; } return false ; }
Source:
private void renameDocuments ( com.android.documentsui.dirlist.MultiSelectManager.Selection selected ) { com.android.documentsui.Metrics.logUserAction ( getContext ( ) , Metrics.USER_ACTION_RENAME ) ; assert ( selected.size ( ) ) == 1 ; new com.android.documentsui.dirlist.DirectoryFragment.GetDocumentsTask ( ) { @ java.lang.Override void onDocumentsReady ( java.util.List < com.android.documentsui.model.DocumentInfo > docs ) { com.android.documentsui.dirlist.RenameDocumentFragment.show ( getFragmentManager ( ) , docs.get ( 0 ) ) ; } } . execute ( selected ) ; }

Target:
private void renameDocuments ( com.android.documentsui.dirlist.MultiSelectManager.Selection selected ) { com.android.documentsui.Metrics.logUserAction ( getContext ( ) , Metrics.USER_ACTION_RENAME ) ; assert ( selected.size ( ) ) == 1 ; java.util.List < com.android.documentsui.model.DocumentInfo > docs = mModel.getDocuments ( selected ) ; com.android.documentsui.dirlist.RenameDocumentFragment.show ( getFragmentManager ( ) , docs.get ( 0 ) ) ; }
Source:
public void testCameraAppDisabled ( ) throws java.lang.Exception { final android.support.test.uiautomator.UiDevice device = testFramework.getDevice ( ) ; enableSampleDeviceAdmin ( ) ; disableCamera ( ) ; gotoCameraApp ( ) ; new com.android.devtools.systemimage.uitest.watchers.CameraAccessPermissionsWatcher ( device ) . checkForCondition ( ) ; org.junit.Assert.assertTrue ( verifyCameraAppDisabled ( ) ) ; }

Target:
public void testCameraAppDisabled ( ) throws java.lang.Exception { final android.support.test.uiautomator.UiDevice device = testFramework.getDevice ( ) ; enableSampleDeviceAdmin ( ) ; if ( verifyCameraAppDisabled ( ) ) { setCameraEnabled ( true ) ; } org.junit.Assert.assertFalse ( verifyCameraAppDisabled ( ) ) ; setCameraEnabled ( false ) ; gotoCameraApp ( ) ; new com.android.devtools.systemimage.uitest.watchers.CameraAccessPermissionsWatcher ( device ) . checkForCondition ( ) ; org.junit.Assert.assertTrue ( verifyCameraAppDisabled ( ) ) ; setCameraEnabled ( true ) ; org.junit.Assert.assertFalse ( verifyCameraAppDisabled ( ) ) ; }
Source:
public static java.lang.Class $noinline$inlineCache ( Main m , boolean isSecondInvocation ) { if ( ! ( Main.ensureInInterpreter ( ) ) ) { return SubMain.class ; } Main.ensureHasProfilingInfo ( ) ; if ( isSecondInvocation ) { Main.ensureHasOsrCode ( ) ; } Main other = m.inlineCache ( ) ; if ( isSecondInvocation ) { while ( ! ( Main.ensureInOsrCode ( ) ) ) { } } return other.returnClass ( ) ; }

Target:
public static java.lang.Class $noinline$inlineCache ( Main m , boolean isSecondInvocation ) { if ( ! ( Main.isInInterpreter ( "$noinline$inlineCache" ) ) ) { return SubMain.class ; } Main.ensureHasProfilingInfo ( ) ; if ( isSecondInvocation ) { Main.ensureHasOsrCode ( "$noinline$inlineCache" ) ; } Main other = m.inlineCache ( ) ; if ( isSecondInvocation ) { while ( ! ( Main.isInOsrCode ( "$noinline$inlineCache" ) ) ) { } } return other.returnClass ( ) ; }
Source:
public void testGetProperty_unknown ( ) throws java.lang.Exception { com.android.ddmlib.IDevice mockDevice = org.easymock.EasyMock.createMock ( com.android.ddmlib.IDevice.class ) ; injectShellResponse ( mockDevice , com.android.ddmlib.PropertyFetcherTest.GETPROP_RESPONSE ) ; org.easymock.EasyMock.replay ( mockDevice ) ; com.android.ddmlib.PropertyFetcher fetcher = new com.android.ddmlib.PropertyFetcher ( mockDevice ) ; assertNull ( fetcher.getProperty ( "unknown" ) . get ( ) ) ; }

Target:
public void testGetProperty_unknown ( ) throws java.lang.Exception { com.android.ddmlib.IDevice mockDevice = org.easymock.EasyMock.createMock ( com.android.ddmlib.IDevice.class ) ; com.android.ddmlib.DeviceTest.injectShellResponse ( mockDevice , com.android.ddmlib.PropertyFetcherTest.GETPROP_RESPONSE ) ; org.easymock.EasyMock.replay ( mockDevice ) ; com.android.ddmlib.PropertyFetcher fetcher = new com.android.ddmlib.PropertyFetcher ( mockDevice ) ; assertNull ( fetcher.getProperty ( "unknown" ) . get ( ) ) ; }
Source:
public void testEndCallWithRingingForegroundCall ( ) throws java.lang.Exception { com.android.server.telecom.Call call = org.mockito.Mockito.mock ( com.android.server.telecom.Call.class ) ; org.mockito.Mockito.when ( call.getState ( ) ) . thenReturn ( CallState.RINGING ) ; org.mockito.Mockito.when ( mFakeCallsManager.getForegroundCall ( ) ) . thenReturn ( call ) ; org.junit.Assert.assertTrue ( mTSIBinder.endCall ( null ) ) ; org.mockito.Mockito.verify ( call ) . reject ( false , null ) ; }

Target:
public void testEndCallWithRingingForegroundCall ( ) throws java.lang.Exception { com.android.server.telecom.Call call = org.mockito.Mockito.mock ( com.android.server.telecom.Call.class ) ; org.mockito.Mockito.when ( call.getState ( ) ) . thenReturn ( CallState.RINGING ) ; org.mockito.Mockito.when ( mFakeCallsManager.getForegroundCall ( ) ) . thenReturn ( call ) ; org.junit.Assert.assertTrue ( mTSIBinder.endCall ( com.android.server.telecom.tests.TelecomServiceImplTest.TEST_PACKAGE ) ) ; org.mockito.Mockito.verify ( call ) . reject ( org.mockito.Matchers.eq ( false ) , org.mockito.Matchers.isNull ( ) , org.mockito.Matchers.eq ( com.android.server.telecom.tests.TelecomServiceImplTest.TEST_PACKAGE ) ) ; }
Source:
public void testDescendingAddAll1 ( ) { try { java.util.NavigableSet q = jsr166.ConcurrentSkipListSubSetTest.dset0 ( ) ; q.addAll ( null ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }

Target:
public void testDescendingAddAll2 ( ) { java.util.NavigableSet q = jsr166.ConcurrentSkipListSubSetTest.dset0 ( ) ; java.lang.Integer [ ] ints = new java.lang.Integer [ SIZE ] ; try { q.addAll ( java.util.Arrays.asList ( ints ) ) ; shouldThrow ( ) ; } catch ( java.lang.NullPointerException success ) { } }
Source:
public void testLogging ( ) { com.android.manifmerger.MergingReport mergingReport = new com.android.manifmerger.MergingReport.Builder ( mLoggerMock ) . addInfo ( "merging info" ) . addWarning ( "something weird happened" ) . addError ( "something bad happened" ) . build ( ) ; mergingReport.log ( mLoggerMock ) ; org.mockito.Mockito.verify ( mLoggerMock ) . info ( "merging info" ) ; org.mockito.Mockito.verify ( mLoggerMock ) . warning ( "something weird happened" ) ; org.mockito.Mockito.verify ( mLoggerMock ) . error ( null , "something bad happened" ) ; org.mockito.Mockito.verify ( mLoggerMock ) . info ( Actions.HEADER ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mLoggerMock ) ; }

Target:
public void testJustWarningAndError ( ) { com.android.manifmerger.MergingReport mergingReport = new com.android.manifmerger.MergingReport.Builder ( mLoggerMock ) . addMessage ( mSourceLocation , 0 , 0 , Severity.WARNING , "something weird happened" ) . addMessage ( mSourceLocation , 0 , 0 , Severity.ERROR , "something bad happened" ) . build ( ) ; assertEquals ( MergingReport.Result.ERROR , mergingReport.getResult ( ) ) ; }
Source:
private final int getFinalOutputSize ( int inputLen ) { if ( ( modeBlockSize ) == 1 ) { return getUpdateOutputSize ( inputLen ) ; } else { return ( getUpdateOutputSize ( inputLen ) ) + ( modeBlockSize ) ; } }

Target:
private int getOutputSize ( int inputLen ) { if ( ( modeBlockSize ) == 1 ) { return inputLen ; } else { final int buffered = org.apache.harmony.xnet.provider.jsse.NativeCrypto.get_EVP_CIPHER_CTX_buf_len ( cipherCtx.getContext ( ) ) ; if ( ( ! ( encrypting ) ) || ( ( padding ) == ( org.apache.harmony.xnet.provider.jsse.OpenSSLCipher.Padding.NOPADDING ) ) ) { return buffered + inputLen ; } else { final int totalLen = ( inputLen + buffered ) + ( modeBlockSize ) ; return totalLen - ( totalLen % ( modeBlockSize ) ) ; } } }
Source:
public java.nio.ByteBuffer putChar ( int index , char value ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.CHAR ) ; this . block.pokeShort ( ( ( offset ) + index ) , ( ( short ) ( value ) ) , order ) ; return this ; }

Target:
public java.nio.ByteBuffer putChar ( char value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.CHAR ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeShort ( ( ( offset ) + ( position ) ) , ( ( short ) ( value ) ) , order ) ; position = newPosition ; return this ; }
Source:
private void changeCallsState ( int old_state , int new_state ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( ( ( "changeStateFromCalls old:" + old_state ) + " new: " ) + new_state ) ) ; for ( android.bluetooth.BluetoothHeadsetClientCall c : mCalls.values ( ) ) { if ( ( c.getState ( ) ) == old_state ) { setCallState ( c , new_state ) ; } } }

Target:
private void sendCallChangedIntent ( android.bluetooth.BluetoothHeadsetClientCall c ) { if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "sendCallChangedIntent " + c ) ) ; } android.content.Intent intent = new android.content.Intent ( android.bluetooth.BluetoothHeadsetClient.ACTION_CALL_CHANGED ) ; intent.addFlags ( Intent.FLAG_RECEIVER_FOREGROUND ) ; intent.putExtra ( BluetoothHeadsetClient.EXTRA_CALL , c ) ; mService.sendBroadcast ( intent , ProfileService.BLUETOOTH_PERM ) ; }
Source:
public void onPreferencesMenuSelected ( ) { com.android.sdkuilib.internal.repository.SettingsDialog sd = new com.android.sdkuilib.internal.repository.SettingsDialog ( mShell , mUpdaterData ) ; sd.open ( ) ; }

Target:
public void onPreferencesMenuSelected ( ) { com.android.sdkuilib.internal.repository.SettingsController.Settings settings1 = new com.android.sdkuilib.internal.repository.SettingsController.Settings ( mSettingsController.getSettings ( ) ) ; com.android.sdkuilib.internal.repository.SettingsDialog sd = new com.android.sdkuilib.internal.repository.SettingsDialog ( mShell , mUpdaterData ) ; sd.open ( ) ; com.android.sdkuilib.internal.repository.SettingsController.Settings settings2 = mSettingsController.getSettings ( ) ; if ( ( ( settings1.getForceHttp ( ) ) != ( settings2.getForceHttp ( ) ) ) || ( ( settings1.getEnablePreviews ( ) ) != ( settings2.getEnablePreviews ( ) ) ) ) { mPkgPage.onSdkReload ( ) ; } }
Source:
private void checkMethods ( com.android.jack.dx.io.ClassData classDataItem , com.android.jack.dx.io.ClassData candidateClassDataItem , com.android.jack.dx.io.ClassDef classDefItem ) throws com.android.jack.DifferenceFoundException { java.lang.String className = com.android.jack.DexComparator.getClassName ( referenceDexFile , classDefItem ) ; com.android.jack.dx.io.ClassData [ ] methods = classDataItem.allMethods ( ) ; com.android.jack.dx.io.ClassData [ ] candidateMethods = candidateClassDataItem.allMethods ( ) ; handleMethods ( methods , candidateMethods , className ) ; }

Target:
private void checkMethods ( com.android.jack.dx.io.ClassData classDataItem , com.android.jack.dx.io.ClassData candidateClassDataItem , com.android.jack.dx.io.ClassDef classDefItem ) throws com.android.jack.DifferenceFoundException { java.lang.String className = classDefItem.getTypeName ( ) ; com.android.jack.dx.io.ClassData [ ] methods = classDataItem.allMethods ( ) ; com.android.jack.dx.io.ClassData [ ] candidateMethods = candidateClassDataItem.allMethods ( ) ; handleMethods ( methods , candidateMethods , className ) ; }
Source:
private static java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > getPositiveCurrencyVectorTR ( ) { java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > v = new java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > ( ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 0 , 3 , java.text.NumberFormat.Field.INTEGER ) ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 4 , 6 , java.text.NumberFormat.Field.CURRENCY ) ) ; return v ; }

Target:
private static java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > getNegativeCurrencyVectorTR ( ) { java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > v = new java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > ( ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 1 , 4 , java.text.NumberFormat.Field.INTEGER ) ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 4 , 5 , java.text.NumberFormat.Field.DECIMAL_SEPARATOR ) ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 5 , 7 , java.text.NumberFormat.Field.FRACTION ) ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 8 , 10 , java.text.NumberFormat.Field.CURRENCY ) ) ; return v ; }
Source:
private static int linearDoWhile ( ) { int [ ] x = new int [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 } ; int result = 0 ; int i = 0 ; do { result += x [ ( i ++ ) ] ; } while ( i < 10 ) ; return result ; }

Target:
private static int linearDoWhileUp ( ) { int [ ] x = new int [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 } ; int result = 0 ; int i = 0 ; do { result += x [ ( i ++ ) ] ; } while ( i < 10 ) ; return result ; }
Source:
public void performReceive ( android.content.Intent intent , int resultCode , java.lang.String data , android.os.Bundle extras , boolean ordered , boolean sticky , int sendingUser ) { finishUserStop ( uss ) ; }

Target:
public void startConfirmDeviceCredentialIntent ( android.content.Intent intent ) { enforceCallingPermission ( android.Manifest.permission.MANAGE_ACTIVITY_STACKS , "startConfirmDeviceCredentialIntent" ) ; synchronized ( this ) { final long ident = android.os.Binder.clearCallingIdentity ( ) ; try { mActivityStarter.startConfirmCredentialIntent ( intent ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }
Source:
public java.util.Set < java.io.File > call ( ) { if ( ( config.isMinifyEnabled ( ) ) && ( ( variantData.obfuscationTask ) != null ) ) { return variantData.obfuscationTask.getOutputs ( ) . getFiles ( ) . getFiles ( ) ; } return scope.getGlobalScope ( ) . getAndroidBuilder ( ) . getPackagedJars ( config ) ; }

Target:
public java.util.Set < java.io.File > call ( ) { com.google.common.collect.ImmutableSet.Builder < java.io.File > jarFiles = com.google.common.collect.ImmutableSet.builder ( ) ; for ( com.android.build.gradle.tasks.JavaResourcesProvider.JavaResourcesLocation javaResourcesProvider : scope.getVariantScope ( ) . getJavaResourcesProvider ( ) . getJavaResourcesLocations ( ) ) { if ( ( javaResourcesProvider.type ) == ( JavaResourcesProvider.Type.JAR ) ) { jarFiles.add ( javaResourcesProvider.location ) ; } } return jarFiles.build ( ) ; }
Source:
private void onTimeout ( ) { mTimeout = true ; if ( ( mCurrentDialog ) == ( com.android.bluetooth.pbap.BluetoothPbapActivity.DIALOG_YES_NO_AUTH ) ) { mMessageView.setText ( getString ( R.string.pbap_authentication_timeout_message , com.android.bluetooth.pbap.BluetoothPbapService.getRemoteDeviceName ( ) ) ) ; mKeyView.setVisibility ( View.GONE ) ; mKeyView.clearFocus ( ) ; mKeyView.removeTextChangedListener ( this ) ; mOkButton.setEnabled ( true ) ; mAlert.getButton ( DialogInterface.BUTTON_NEGATIVE ) . setVisibility ( View.GONE ) ; } mTimeoutHandler.sendMessageDelayed ( mTimeoutHandler.obtainMessage ( com.android.bluetooth.pbap.BluetoothPbapActivity.DISMISS_TIMEOUT_DIALOG ) , com.android.bluetooth.pbap.BluetoothPbapActivity.DISMISS_TIMEOUT_DIALOG_VALUE ) ; }

Target:
private void onTimeout ( ) { mTimeout = true ; if ( ( mCurrentDialog ) == ( com.android.bluetooth.pbap.BluetoothPbapActivity.DIALOG_YES_NO_AUTH ) ) { mMessageView.setText ( getString ( R.string.pbap_authentication_timeout_message , mDevice ) ) ; mKeyView.setVisibility ( View.GONE ) ; mKeyView.clearFocus ( ) ; mKeyView.removeTextChangedListener ( this ) ; mOkButton.setEnabled ( true ) ; mAlert.getButton ( DialogInterface.BUTTON_NEGATIVE ) . setVisibility ( View.GONE ) ; } mTimeoutHandler.sendMessageDelayed ( mTimeoutHandler.obtainMessage ( com.android.bluetooth.pbap.BluetoothPbapActivity.DISMISS_TIMEOUT_DIALOG ) , com.android.bluetooth.pbap.BluetoothPbapActivity.DISMISS_TIMEOUT_DIALOG_VALUE ) ; }
Source:
public void test001 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( TEST001 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addProperty ( "jack.transformations.boost-locked-region-priority" , "true" ) . addProperty ( "jack.transformations.boost-locked-region-priority.classname" , "com.android.jack.transformations.boostlockregionpriority.test001.jack.LockedRegion" ) . addProperty ( "jack.transformations.boost-locked-region-priority.request" , ( "com.android.jack.transformations.boostlockregionpriority.test001.jack." + "Request#request" ) ) . addProperty ( "jack.transformations.boost-locked-region-priority.reset" , ( "com.android.jack.transformations.boostlockregionpriority.test001.jack." + "Reset#reset" ) ) . compileAndRunTest ( ) ; }

Target:
public void test001 ( ) throws java.lang.Exception { new com.android.jack.test.helper.RuntimeTestHelper ( TEST001 ) . addIgnoredCandidateToolchain ( com.android.jack.test.toolchain.JillBasedToolchain.class ) . addProperty ( "jack.transformations.boost-locked-region-priority" , "true" ) . addProperty ( "jack.transformations.boost-locked-region-priority.classname" , ( "com.android.jack.transformations.boostlockregionpriority.test001.jack.LockedRegion," + "com.android.jack.transformations.boostlockregionpriority.test001.jack.LockedRegion2," ) ) . addProperty ( "jack.transformations.boost-locked-region-priority.request" , ( "com.android.jack.transformations.boostlockregionpriority.test001.jack." + ( ( "Request#request," + "com.android.jack.transformations.boostlockregionpriority.test001.jack." ) + "Request2#request" ) ) ) . addProperty ( "jack.transformations.boost-locked-region-priority.reset" , ( "com.android.jack.transformations.boostlockregionpriority.test001.jack." + ( ( "Reset#reset," + "com.android.jack.transformations.boostlockregionpriority.test001.jack." ) + "Reset2#reset," ) ) ) . compileAndRunTest ( ) ; }
Source:
public static float scalb ( float f , int scale_factor ) { final int MAX_SCALE = ( ( ( sun.misc.FloatConsts.MAX_EXPONENT ) + ( - ( sun.misc.FloatConsts.MIN_EXPONENT ) ) ) + ( sun.misc.FloatConsts.SIGNIFICAND_WIDTH ) ) + 1 ; scale_factor = java.lang.Math.max ( java.lang.Math.min ( scale_factor , MAX_SCALE ) , ( - MAX_SCALE ) ) ; return ( ( float ) ( ( ( double ) ( f ) ) * ( sun.misc.FpUtils.powerOfTwoD ( scale_factor ) ) ) ) ; }

Target:
public static float signum ( float f ) { return java.lang.Math.signum ( f ) ; }
Source:
public boolean start ( ) { if ( com.android.bluetooth.opp.BluetoothOppService.V ) { android.util.Log.v ( com.android.bluetooth.opp.BluetoothOppService.TAG , "start()" ) ; } updateFromProvider ( ) ; return true ; }

Target:
public boolean start ( ) { if ( com.android.bluetooth.opp.BluetoothOppService.V ) { android.util.Log.v ( com.android.bluetooth.opp.BluetoothOppService.TAG , "start()" ) ; } mObserver = new com.android.bluetooth.opp.BluetoothOppService.BluetoothShareContentObserver ( ) ; getContentResolver ( ) . registerContentObserver ( BluetoothShare.CONTENT_URI , true , mObserver ) ; mNotifier = new com.android.bluetooth.opp.BluetoothOppNotification ( this ) ; mNotifier.mNotificationMgr.cancelAll ( ) ; mNotifier.updateNotification ( ) ; updateFromProvider ( ) ; return true ; }
Source:
protected void createFilter ( com.android.gallery3d.filtershow.filters.Resources res , float scaleFactor , int quality , android.renderscript.Allocation in ) { android.renderscript.RenderScript rsCtx = getRenderScriptContext ( ) ; android.renderscript.Type.Builder tb_float = new android.renderscript.Type.Builder ( rsCtx , android.renderscript.Element.F32_4 ( rsCtx ) ) ; tb_float.setX ( in.getType ( ) . getX ( ) ) ; tb_float.setY ( in.getType ( ) . getY ( ) ) ; mScript = new com.android.gallery3d.filtershow.filters.ScriptC_saturation ( rsCtx ) ; }

Target:
protected void createFilter ( com.android.gallery3d.filtershow.filters.Resources res , float scaleFactor , int quality , android.support.v8.renderscript.Allocation in ) { android.support.v8.renderscript.RenderScript rsCtx = getRenderScriptContext ( ) ; android.support.v8.renderscript.Type.Builder tb_float = new android.support.v8.renderscript.Type.Builder ( rsCtx , android.support.v8.renderscript.Element.F32_4 ( rsCtx ) ) ; tb_float.setX ( in.getType ( ) . getX ( ) ) ; tb_float.setY ( in.getType ( ) . getY ( ) ) ; mScript = new com.android.gallery3d.filtershow.filters.ScriptC_saturation ( rsCtx ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) { return true ; } if ( ( obj instanceof sun.security.x509.DistributionPointName ) == false ) { return false ; } sun.security.x509.DistributionPointName other = ( ( sun.security.x509.DistributionPointName ) ( obj ) ) ; return ( sun.security.x509.DistributionPointName.equals ( this . fullName , other.fullName ) ) && ( sun.security.x509.DistributionPointName.equals ( this . relativeName , other.relativeName ) ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) { return true ; } if ( ( obj instanceof sun.security.x509.DistributionPointName ) == false ) { return false ; } sun.security.x509.DistributionPointName other = ( ( sun.security.x509.DistributionPointName ) ( obj ) ) ; return ( java.util.Objects.equals ( this . fullName , other.fullName ) ) && ( java.util.Objects.equals ( this . relativeName , other.relativeName ) ) ; }
Source:
private void handleEnterEmergencyCallbackMode ( ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( "handleEnterEmergencyCallbackMode,mIsPhoneInEcmState= " + ( mIsPhoneInEcmState ) ) ) ; } if ( ( mIsPhoneInEcmState ) == false ) { setSystemProperty ( TelephonyProperties.PROPERTY_INECM_MODE , "true" ) ; mIsPhoneInEcmState = true ; sendEmergencyCallbackModeChange ( ) ; long delayInMillis = android.os.SystemProperties.getLong ( TelephonyProperties.PROPERTY_ECM_EXIT_TIMER , com.android.internal.telephony.imsphone.ImsPhone.DEFAULT_ECM_EXIT_TIMER_VALUE ) ; postDelayed ( mExitEcmRunnable , delayInMillis ) ; mWakeLock.acquire ( ) ; } }

Target:
private void handleEnterEmergencyCallbackMode ( ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( "handleEnterEmergencyCallbackMode,mIsPhoneInEcmState= " + ( isInEcm ( ) ) ) ) ; } if ( ! ( isInEcm ( ) ) ) { setIsInEcm ( true ) ; sendEmergencyCallbackModeChange ( ) ; long delayInMillis = android.os.SystemProperties.getLong ( TelephonyProperties.PROPERTY_ECM_EXIT_TIMER , com.android.internal.telephony.imsphone.ImsPhone.DEFAULT_ECM_EXIT_TIMER_VALUE ) ; postDelayed ( mExitEcmRunnable , delayInMillis ) ; mWakeLock.acquire ( ) ; } }
Source:
public static void addTask ( com.google.appengine.api.datastore.Key testRunKey ) { com.google.appengine.api.taskqueue.Queue queue = com.google.appengine.api.taskqueue.QueueFactory.getDefaultQueue ( ) ; java.lang.String keyString = com.google.appengine.api.datastore.KeyFactory.keyToString ( testRunKey ) ; queue.add ( TaskOptions.Builder.withUrl ( com.android.vts.servlet.VtsCoverageAlertJobServlet.COVERAGE_ALERT_URL ) . param ( "runKey" , keyString ) . method ( TaskOptions.Method.POST ) ) ; }

Target:
public static void addTask ( com.google.appengine.api.datastore.Key testRunKey ) { com.google.appengine.api.taskqueue.Queue queue = com.google.appengine.api.taskqueue.QueueFactory.getDefaultQueue ( ) ; java.lang.String keyString = com.google.appengine.api.datastore.KeyFactory.keyToString ( testRunKey ) ; queue.add ( TaskOptions.Builder.withUrl ( com.android.vts.job.VtsCoverageAlertJobServlet.COVERAGE_ALERT_URL ) . param ( "runKey" , keyString ) . method ( TaskOptions.Method.POST ) ) ; }
Source:
private com.android.bluetooth.hid.HidService getService ( ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.hid.HidService.TAG , "InputDevice call not allowed for non-active user" ) ; return null ; } if ( ( ( mService ) != null ) && ( mService.isAvailable ( ) ) ) { return mService ; } return null ; }

Target:
private com.android.bluetooth.hid.HidService getService ( ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.hid.HidService.TAG , "InputDevice call not allowed for non-active user" ) ; return null ; } if ( ( ( mService ) != null ) && ( mService.isAvailable ( ) ) ) { return mService ; } android.util.Log.w ( com.android.bluetooth.hid.HidService.TAG , "Service is null" ) ; return null ; }
Source:
public boolean visit ( org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall explicitConstructor , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { scope.methodScope ( ) . isConstructorCall = true ; return true ; }

Target:
public boolean visit ( org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall explicitConstructor , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding allocated = explicitConstructor.binding.declaringClass ; if ( ( ( explicitConstructor.isSuperAccess ( ) ) && ( ( explicitConstructor.qualification ) != null ) ) && ( ! ( explicitConstructor.qualification.resolvedType.isCompatibleWith ( allocated.enclosingType ( ) ) ) ) ) { scope.problemReporter ( ) . unnecessaryEnclosingInstanceSpecification ( explicitConstructor.qualification , allocated ) ; throw new com.android.jack.ir.impl.JackIrBuilder.FrontendCompilationError ( ) ; } scope.methodScope ( ) . isConstructorCall = true ; return true ; }
Source:
public static libcore.javax.net.ssl.TestSSLContext create ( libcore.java.security.TestKeyStore client , libcore.java.security.TestKeyStore server ) { java.lang.String protocol = "TLS" ; javax.net.ssl.SSLContext clientContext = libcore.javax.net.ssl.TestSSLContext.createSSLContext ( protocol , client.keyManagers , client.trustManagers ) ; javax.net.ssl.SSLContext serverContext = libcore.javax.net.ssl.TestSSLContext.createSSLContext ( protocol , server.keyManagers , server.trustManagers ) ; return libcore.javax.net.ssl.TestSSLContext.create ( client.keyStore , client.storePassword , server.keyStore , server.storePassword , client.keyManagers , server.keyManagers , client.trustManagers [ 0 ] , server.trustManagers [ 0 ] , clientContext , serverContext ) ; }

Target:
public static libcore.javax.net.ssl.TestSSLContext create ( libcore.java.security.TestKeyStore client , libcore.java.security.TestKeyStore server ) { java.lang.String protocol = "TLSv1.2" ; javax.net.ssl.SSLContext clientContext = libcore.javax.net.ssl.TestSSLContext.createSSLContext ( protocol , client.keyManagers , client.trustManagers ) ; javax.net.ssl.SSLContext serverContext = libcore.javax.net.ssl.TestSSLContext.createSSLContext ( protocol , server.keyManagers , server.trustManagers ) ; return libcore.javax.net.ssl.TestSSLContext.create ( client.keyStore , client.storePassword , server.keyStore , server.storePassword , client.keyManagers , server.keyManagers , client.trustManagers [ 0 ] , server.trustManagers [ 0 ] , clientContext , serverContext ) ; }
Source:
public com.android.ims.ImsCallProfile createCallProfile ( int slotId , int featureType , int sessionId , int callSessionType , int callType ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.createCallProfile ( sessionId , callSessionType , callType ) ; } } return null ; }

Target:
public com.android.ims.ImsCallProfile createCallProfile ( int slotId , int featureType , int sessionId , int callSessionType , int callType ) throws android.os.RemoteException { enforceCallingOrSelfPermission ( android.Manifest.permission.MODIFY_PHONE_STATE , "createCallProfile" ) ; synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { return feature.createCallProfile ( sessionId , callSessionType , callType ) ; } } return null ; }
Source:
public void onFeatureRemoved ( ) { mContext.unregisterReceiver ( mReceiver ) ; try { mCompatFeature.endSession ( mSessionId ) ; mCompatFeature.removeRegistrationListener ( mListener ) ; if ( ( mRegCompatAdapter ) != null ) { mCompatFeature.removeRegistrationListener ( mRegCompatAdapter.getRegistrationListener ( ) ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.internal.telephony.ims.MmTelFeatureCompatAdapter.TAG , ( "onFeatureRemoved: Couldn't end session: " + ( e.getMessage ( ) ) ) ) ; } }

Target:
public com.android.ims.internal.IImsEcbm getEcbmInterface ( ) throws android.os.RemoteException { return mCompatFeature.getEcbmInterface ( ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode node ) { if ( node instanceof com.android.jack.ir.ast.JSession ) { if ( ( node.getParent ( ) ) != null ) { throw new java.lang.AssertionError ( "Parent of JSession must be null." ) ; } } else { if ( ( node.getParent ( ) ) != ( nodes.peek ( ) ) ) { throw new java.lang.AssertionError ( "Node with wrong parent." ) ; } } nodes.push ( node ) ; return super . visit ( node ) ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode node ) { node.checkValidity ( ) ; if ( node instanceof com.android.jack.ir.ast.JSession ) { if ( ( node.getParent ( ) ) != null ) { throw new java.lang.AssertionError ( "Parent of JSession must be null." ) ; } } else { if ( ( node.getParent ( ) ) != ( nodes.peek ( ) ) ) { throw new java.lang.AssertionError ( "Node with wrong parent." ) ; } } nodes.push ( node ) ; return super . visit ( node ) ; }
Source:
private static libcore.java.security.TestKeyStore getTestKeyStore ( ) throws java.lang.Exception { if ( ( libcore.javax.net.ssl.KeyManagerFactoryTest.TEST_KEY_STORE ) == null ) { libcore.javax.net.ssl.KeyManagerFactoryTest.TEST_KEY_STORE = new libcore.java.security.TestKeyStore.Builder ( ) . keyAlgorithms ( "RSA" , "DH_RSA" , "DSA" , "DH_DSA" , "EC" , "EC_RSA" ) . aliasPrefix ( "rsa-dsa-ec-dh" ) . build ( ) ; } return libcore.javax.net.ssl.KeyManagerFactoryTest.TEST_KEY_STORE ; }

Target:
protected void setUp ( ) throws java.lang.Exception { testKeyStore = new libcore.java.security.TestKeyStore.Builder ( ) . keyAlgorithms ( "RSA" , "DH_RSA" , "DSA" , "DH_DSA" , "EC" , "EC_RSA" ) . aliasPrefix ( "rsa-dsa-ec-dh" ) . build ( ) ; }
Source:
public com.android.internal.telephony.uicc.UiccSlot [ ] getUiccSlots ( ) { synchronized ( com.android.internal.telephony.uicc.UiccController.mLock ) { return mUiccSlots.clone ( ) ; } }

Target:
private void logPhoneIdToSlotIdMapping ( ) { log ( "mPhoneIdToSlotId mapping:" ) ; for ( int i = 0 ; i < ( mPhoneIdToSlotId.length ) ; i ++ ) { log ( ( ( ( " phoneId " + i ) + " slotId " ) + ( mPhoneIdToSlotId [ i ] ) ) ) ; } }
Source:
protected synchronized void onDraw ( android.graphics.Canvas canvas ) { super . onDraw ( canvas ) ; if ( ( mThumb ) != null ) { canvas.save ( ) ; canvas.translate ( ( ( mPaddingLeft ) - ( mThumbOffset ) ) , mPaddingTop ) ; mThumb.draw ( canvas ) ; canvas.restore ( ) ; } }

Target:
protected synchronized void onDraw ( android.graphics.Canvas canvas ) { super . onDraw ( canvas ) ; drawThumb ( canvas ) ; }
Source:
boolean canBeInternationallyDialled ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata = getMetadataForRegion ( getRegionCodeForNumber ( number ) ) ; if ( metadata == null ) { return true ; } java.lang.String nationalSignificantNumber = getNationalSignificantNumber ( number ) ; return ! ( isNumberMatchingDesc ( nationalSignificantNumber , metadata.getNoInternationalDialling ( ) ) ) ; }

Target:
boolean canBeInternationallyDialled ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata metadata = getMetadataForRegion ( getRegionCodeForNumber ( number ) ) ; if ( metadata == null ) { return true ; } java.lang.String nationalSignificantNumber = getNationalSignificantNumber ( number ) ; return ! ( isNumberMatchingDesc ( nationalSignificantNumber , metadata.noInternationalDialling ) ) ; }
Source:
private android.telecom.PhoneAccountHandle getAnyPhoneAccount ( ) { android.telecom.PhoneAccountHandle accountHandle ; android.telecom.TelecomManager telecomManager = mContext.getSystemService ( android.telecom.TelecomManager.class ) ; accountHandle = telecomManager.getDefaultOutgoingPhoneAccount ( PhoneAccount.SCHEME_TEL ) ; if ( accountHandle == null ) { java.util.List < android.telecom.PhoneAccountHandle > accountHandles = telecomManager.getCallCapablePhoneAccounts ( ) ; if ( ! ( accountHandles.isEmpty ( ) ) ) { accountHandle = accountHandles.get ( 0 ) ; } } return accountHandle ; }

Target:
public void onImageLoadComplete ( java.lang.String callId , com.android.incallui.ContactInfoCache.ContactCacheEntry entry ) { com.android.incallui.call.DialerCall call = com.android.incallui.call.CallList.getInstance ( ) . getCallById ( callId ) ; if ( call != null ) { buildAndSendNotification ( com.android.incallui.call.CallList.getInstance ( ) , call , entry ) ; } }
Source:
boolean hasNoCallbacks ( ) { return ( ( ( trackingDefault.isEmpty ( ) ) && ( listening.isEmpty ( ) ) ) && ( requested.isEmpty ( ) ) ) && ( legacyTypeMap.isEmpty ( ) ) ; }

Target:
boolean hasNoCallbacks ( ) { return ( ( ( ( allCallbacks.isEmpty ( ) ) && ( trackingDefault.isEmpty ( ) ) ) && ( listening.isEmpty ( ) ) ) && ( requested.isEmpty ( ) ) ) && ( legacyTypeMap.isEmpty ( ) ) ; }
Source:
private java.util.Set < java.lang.String > getSerialBlacklist ( java.lang.String path ) throws java.io.IOException { com.android.org.bouncycastle.jce.provider.CertBlacklist bl = new com.android.org.bouncycastle.jce.provider.CertBlacklist ( com.android.org.bouncycastle.jce.provider.CertBlacklist.DEFAULT_PUBKEY_BLACKLIST_PATH , path ) ; java.util.Set < java.math.BigInteger > arr = bl.serialBlacklist ; java.util.Set < java.lang.String > results = new java.util.HashSet < java.lang.String > ( ) ; for ( java.math.BigInteger value : arr ) { results.add ( value.toString ( 16 ) ) ; } return results ; }

Target:
private java.util.Set < java.lang.String > getSerialBlacklist ( java.lang.String path ) throws java.io.IOException { com.android.org.bouncycastle.jce.provider.CertBlacklist bl = new com.android.org.bouncycastle.jce.provider.CertBlacklist ( "" , path ) ; java.util.Set < java.math.BigInteger > arr = bl.serialBlacklist ; java.util.Set < java.lang.String > results = new java.util.HashSet < java.lang.String > ( ) ; for ( java.math.BigInteger value : arr ) { results.add ( value.toString ( 16 ) ) ; } return results ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; setActivityInitialTouchMode ( false ) ; mActivity = getActivity ( ) ; com.android.rs.imagejb.ImageProcessingTestRunner mRunner = ( ( com.android.rs.imagejb.ImageProcessingTestRunner ) ( getInstrumentation ( ) ) ) ; mIteration = mRunner.mIteration ; assertTrue ( "please enter a valid iteration value" , ( ( mIteration ) > 0 ) ) ; }

Target:
public void testHistogramScript ( ) { com.android.rs.imagejb.ImageProcessingTest.TestAction ta = new com.android.rs.imagejb.ImageProcessingTest.TestAction ( com.android.rs.imagejb.IPTestListJB.TestName.HISTOGRAM_SCRIPT ) ; runTest ( ta , TestName.HISTOGRAM_SCRIPT.name ( ) ) ; }
Source:
private static android.net.wifi.hotspot2.pps.Credential createCredential ( android.net.wifi.hotspot2.pps.Credential.UserCredential userCred , android.net.wifi.hotspot2.pps.Credential.CertificateCredential certCred , android.net.wifi.hotspot2.pps.Credential.SimCredential simCred , java.security.cert.X509Certificate caCert , java.security.cert.X509Certificate [ ] clientCertificateChain , java.security.PrivateKey clientPrivateKey ) { android.net.wifi.hotspot2.pps.Credential cred = new android.net.wifi.hotspot2.pps.Credential ( ) ; cred.realm = "realm" ; cred.userCredential = userCred ; cred.certCredential = certCred ; cred.simCredential = simCred ; cred.caCertificate = caCert ; cred.clientCertificateChain = clientCertificateChain ; cred.clientPrivateKey = clientPrivateKey ; return cred ; }

Target:
private static android.net.wifi.hotspot2.pps.Credential createCredential ( android.net.wifi.hotspot2.pps.Credential.UserCredential userCred , android.net.wifi.hotspot2.pps.Credential.CertificateCredential certCred , android.net.wifi.hotspot2.pps.Credential.SimCredential simCred , java.security.cert.X509Certificate caCert , java.security.cert.X509Certificate [ ] clientCertificateChain , java.security.PrivateKey clientPrivateKey ) { android.net.wifi.hotspot2.pps.Credential cred = new android.net.wifi.hotspot2.pps.Credential ( ) ; cred.creationTimeInMs = 123455L ; cred.expirationTimeInMs = 2310093L ; cred.realm = "realm" ; cred.checkAAAServerCertStatus = true ; cred.userCredential = userCred ; cred.certCredential = certCred ; cred.simCredential = simCred ; cred.caCertificate = caCert ; cred.clientCertificateChain = clientCertificateChain ; cred.clientPrivateKey = clientPrivateKey ; return cred ; }
Source:
public void addI64 ( android.support.v8.renderscript.Long4 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addI64 ( new android.support.v8.renderscript.Long4 ( v.x , v.y , v.z , v.w ) ) ; return ; } addI64 ( v.x ) ; addI64 ( v.y ) ; addI64 ( v.z ) ; addI64 ( v.w ) ; }

Target:
public void addMatrix ( android.support.v8.renderscript.Matrix3f v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addMatrix ( v ) ; return ; } for ( int i = 0 ; i < ( v.mMat.length ) ; i ++ ) { addF32 ( v.mMat [ i ] ) ; } }
Source:
private void selectSingle ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi ) { mAltSelection = null ; if ( ( mSelections.size ( ) ) > 0 ) { if ( ( ( mSelections.size ( ) ) == 1 ) && ( ( mSelections.getFirst ( ) . getViewInfo ( ) ) == vi ) ) { return ; } mSelections.clear ( ) ; } if ( vi != null ) { mSelections.add ( new com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection ( vi , mRulesEngine , mNodeFactory ) ) ; } updateOulineSelection ( ) ; redraw ( ) ; }

Target:
private void selectSingle ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo vi ) { mAltSelection = null ; if ( ( mSelections.size ( ) ) > 0 ) { if ( ( ( mSelections.size ( ) ) == 1 ) && ( ( mSelections.getFirst ( ) . getViewInfo ( ) ) == vi ) ) { return ; } mSelections.clear ( ) ; } if ( vi != null ) { mSelections.add ( new com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection ( vi , mRulesEngine , mNodeFactory ) ) ; } fireSelectionChanged ( ) ; redraw ( ) ; }
Source:
static android.renderscript.cts.CoreMathVerifier.RemainderAndQuotient remainderAndQuotient ( float numerator , float denominator ) { android.renderscript.cts.CoreMathVerifier.RemainderAndQuotient result = new android.renderscript.cts.CoreMathVerifier.RemainderAndQuotient ( ) ; if ( denominator == 0.0F ) { result.quotient = 0 ; result.remainder = java.lang.Float.NaN ; } else { result.quotient = ( ( int ) ( java.lang.StrictMath.round ( ( numerator / denominator ) ) ) ) ; result.remainder = numerator - ( ( result.quotient ) * denominator ) ; } return result ; }

Target:
static native android.renderscript.cts.CoreMathVerifier.RemquoResult remquo ( float numerator , float denominator ) ;
Source:
public void enter ( ) { android.util.Log.i ( com.android.bluetooth.a2dp.A2dpStateMachine.TAG , ( ( ( "Enter Connecting(" + ( mDevice ) ) + "): " ) + ( com.android.bluetooth.a2dp.A2dpStateMachine.messageWhatToString ( getCurrentMessage ( ) . what ) ) ) ) ; mConnectionState = android.bluetooth.BluetoothProfile.STATE_CONNECTING ; broadcastConnectionState ( mConnectionState , mLastConnectionState ) ; }

Target:
public void enter ( ) { android.os.Message currentMessage = getCurrentMessage ( ) ; android.util.Log.i ( com.android.bluetooth.a2dp.A2dpStateMachine.TAG , ( ( ( "Enter Connecting(" + ( mDevice ) ) + "): " ) + ( currentMessage == null ? "null" : com.android.bluetooth.a2dp.A2dpStateMachine.messageWhatToString ( currentMessage.what ) ) ) ) ; mConnectionState = android.bluetooth.BluetoothProfile.STATE_CONNECTING ; broadcastConnectionState ( mConnectionState , mLastConnectionState ) ; }
Source:
public void onChange ( boolean selfChange , android.net.Uri uri ) { com.android.internal.telephony.CarrierIdentifier.logd ( ( "onChange URI: " + uri ) ) ; if ( com.android.internal.telephony.CarrierIdentifier.CONTENT_URL_PREFER_APN.equals ( uri.getLastPathSegment ( ) ) ) { sendEmptyMessage ( com.android.internal.telephony.CarrierIdentifier.PREFER_APN_UPDATE_EVENT ) ; } else { sendEmptyMessage ( com.android.internal.telephony.CarrierIdentifier.CARRIER_ID_DB_UPDATE_EVENT ) ; } }

Target:
public void onChange ( boolean selfChange , android.net.Uri uri ) { if ( com.android.internal.telephony.CarrierIdentifier.CONTENT_URL_PREFER_APN.equals ( uri.getLastPathSegment ( ) ) ) { com.android.internal.telephony.CarrierIdentifier.logd ( ( "onChange URI: " + uri ) ) ; sendEmptyMessage ( com.android.internal.telephony.CarrierIdentifier.PREFER_APN_UPDATE_EVENT ) ; } else if ( CarrierIdentification.All.CONTENT_URI.equals ( uri ) ) { com.android.internal.telephony.CarrierIdentifier.logd ( ( "onChange URI: " + uri ) ) ; sendEmptyMessage ( com.android.internal.telephony.CarrierIdentifier.CARRIER_ID_DB_UPDATE_EVENT ) ; } }
Source:
public void testAuthorityParsing ( ) { android.net.Uri uri = android.net.Uri.parse ( "http://localhost:42" ) ; assertEquals ( "localhost" , uri.getHost ( ) ) ; assertEquals ( 42 , uri.getPort ( ) ) ; uri = android.net.Uri.parse ( "http://bob@localhost:42" ) ; assertEquals ( "bob" , uri.getUserInfo ( ) ) ; assertEquals ( "localhost" , uri.getHost ( ) ) ; assertEquals ( 42 , uri.getPort ( ) ) ; uri = android.net.Uri.parse ( "http://bob%20lee@localhost:42" ) ; assertEquals ( "bob lee" , uri.getUserInfo ( ) ) ; assertEquals ( "bob%20lee" , uri.getEncodedUserInfo ( ) ) ; uri = android.net.Uri.parse ( "http://localhost" ) ; assertEquals ( "localhost" , uri.getHost ( ) ) ; assertEquals ( ( - 1 ) , uri.getPort ( ) ) ; }

Target:
public void testAuthorityParsing ( ) { android.net.Uri uri = android.net.Uri.parse ( "http://localhost:42" ) ; assertEquals ( "localhost" , uri.getHost ( ) ) ; assertEquals ( 42 , uri.getPort ( ) ) ; uri = android.net.Uri.parse ( "http://bob@localhost:42" ) ; assertEquals ( "bob" , uri.getUserInfo ( ) ) ; assertEquals ( "localhost" , uri.getHost ( ) ) ; assertEquals ( 42 , uri.getPort ( ) ) ; uri = android.net.Uri.parse ( "http://bob%20lee@localhost:42" ) ; assertEquals ( "bob lee" , uri.getUserInfo ( ) ) ; assertEquals ( "bob%20lee" , uri.getEncodedUserInfo ( ) ) ; uri = android.net.Uri.parse ( "http://bob%40lee%3ajr@local%68ost:4%32" ) ; assertEquals ( "bob@lee:jr" , uri.getUserInfo ( ) ) ; assertEquals ( "localhost" , uri.getHost ( ) ) ; assertEquals ( 42 , uri.getPort ( ) ) ; uri = android.net.Uri.parse ( "http://localhost" ) ; assertEquals ( "localhost" , uri.getHost ( ) ) ; assertEquals ( ( - 1 ) , uri.getPort ( ) ) ; }
Source:
private void notifyFeatureState ( @ android.telephony.ims.feature.ImsFeature.ImsState int state ) { if ( ( mStatusCallback ) != null ) { try { android.util.Log.i ( android.telephony.ims.feature.ImsFeature.LOG_TAG , "notifying ImsFeatureState" ) ; mStatusCallback.notifyImsFeatureStatus ( state ) ; } catch ( android.os.RemoteException e ) { mStatusCallback = null ; android.util.Log.w ( android.telephony.ims.feature.ImsFeature.LOG_TAG , ( "Couldn't notify feature state: " + ( e.getMessage ( ) ) ) ) ; } } }

Target:
private void notifyFeatureState ( @ android.telephony.ims.feature.ImsFeature.ImsState int state ) { if ( ( mStatusCallback ) != null ) { try { android.util.Log.i ( android.telephony.ims.feature.ImsFeature.LOG_TAG , "notifying ImsFeatureState" ) ; mStatusCallback.notifyImsFeatureStatus ( state ) ; } catch ( android.os.RemoteException e ) { mStatusCallback = null ; android.util.Log.w ( android.telephony.ims.feature.ImsFeature.LOG_TAG , ( "Couldn't notify feature state: " + ( e.getMessage ( ) ) ) ) ; } } sendImsServiceIntent ( state ) ; }
Source:
private boolean isBluetoothPersistedStateOn ( ) { int state = Settings.Global.getInt ( mContentResolver , Settings.Global.BLUETOOTH_ON , ( - 1 ) ) ; if ( com.android.server.BluetoothManagerService.DBG ) { android.util.Slog.d ( com.android.server.BluetoothManagerService.TAG , ( "Bluetooth persisted state: " + state ) ) ; } return state != ( com.android.server.BluetoothManagerService.BLUETOOTH_OFF ) ; }

Target:
private boolean isBluetoothPersistedStateOn ( ) { if ( ! ( supportBluetoothPersistedState ( ) ) ) { return false ; } int state = Settings.Global.getInt ( mContentResolver , Settings.Global.BLUETOOTH_ON , ( - 1 ) ) ; if ( com.android.server.BluetoothManagerService.DBG ) { android.util.Slog.d ( com.android.server.BluetoothManagerService.TAG , ( "Bluetooth persisted state: " + state ) ) ; } return state != ( com.android.server.BluetoothManagerService.BLUETOOTH_OFF ) ; }