auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private boolean shouldTestThisNetworkType ( int networkTypeIndex , long tolerance ) throws java.lang.Exception { android.net.NetworkInfo networkInfo = mCm.getNetworkInfo ( android.app.usage.cts.NetworkUsageStatsTest.sNetworkTypesToTest [ networkTypeIndex ] ) ; if ( ( networkInfo == null ) || ( ! ( networkInfo.isAvailable ( ) ) ) ) { return false ; } mStartTime = ( java.lang.System.currentTimeMillis ( ) ) - tolerance ; exerciseRemoteHost ( android.app.usage.cts.NetworkUsageStatsTest.sTransportTypesToTest [ networkTypeIndex ] ) ; mEndTime = ( java.lang.System.currentTimeMillis ( ) ) + tolerance ; return true ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mNsm = ( ( android.app.usage.NetworkStatsManager ) ( getInstrumentation ( ) . getContext ( ) . getSystemService ( Context.NETWORK_STATS_SERVICE ) ) ) ; mCm = ( ( android.net.ConnectivityManager ) ( getInstrumentation ( ) . getContext ( ) . getSystemService ( Context.CONNECTIVITY_SERVICE ) ) ) ; mPm = getInstrumentation ( ) . getContext ( ) . getPackageManager ( ) ; mWriteSettingsMode = getAppOpsMode ( AppOpsManager.OPSTR_WRITE_SETTINGS ) ; setAppOpsMode ( AppOpsManager.OPSTR_WRITE_SETTINGS , "allow" ) ; mUsageStatsMode = getAppOpsMode ( AppOpsManager.OPSTR_GET_USAGE_STATS ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; enableAssistant ( ) ; launchActivity ( android.server.cts.ActivityManagerAssistantStackTests.LAUNCH_ASSISTANT_ACTIVITY_INTO_STACK ) ; mAmWmState.waitForValidState ( mDevice , android.server.cts.ActivityManagerAssistantStackTests.ASSISTANT_ACTIVITY , android.server.cts.ASSISTANT_STACK_ID ) ; android.server.cts.ActivityManagerState.ActivityStack assistantStack = mAmWmState.getAmState ( ) . getStackById ( android.server.cts.ASSISTANT_STACK_ID ) ; android.server.cts.ActivityManagerAssistantStackTests.mAssistantDisplayId = assistantStack.mDisplayId ; disableAssistant ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; enableAssistant ( ) ; launchActivity ( android.server.cts.ActivityManagerAssistantStackTests.LAUNCH_ASSISTANT_ACTIVITY_INTO_STACK ) ; mAmWmState.waitForValidState ( mDevice , android.server.cts.ActivityManagerAssistantStackTests.ASSISTANT_ACTIVITY , android.server.cts.ASSISTANT_STACK_ID ) ; android.server.cts.ActivityManagerState.ActivityStack assistantStack = mAmWmState.getAmState ( ) . getStackById ( android.server.cts.ASSISTANT_STACK_ID ) ; android.server.cts.ActivityManagerAssistantStackTests.mAssistantDisplayId = assistantStack.mDisplayId ; removeStacks ( android.server.cts.ASSISTANT_STACK_ID ) ; disableAssistant ( ) ; }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newIndex ) { return new com.android.jack.dx.io.instructions.ThreeRegisterDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newIndex , getIndexType ( ) , getTarget ( ) , getLiteral ( ) , a , b , c ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction withIndex ( int newFirstIndex , int newSecondIndex ) { assert ( getSecondIndexType ( ) ) == ( com.android.jack.dx.io.IndexType.NONE ) ; return new com.android.jack.dx.io.instructions.ThreeRegisterDecodedInstruction ( getFormat ( ) , getOpcode ( ) , newFirstIndex , getFirstIndexType ( ) , getTarget ( ) , getLiteral ( ) , a , b , c ) ; }
Source:
public void setAffiliationIds ( @ android.annotation.NonNull android.content.ComponentName admin , java.util.Set < java.lang.String > ids ) { throwIfParentInstance ( "setAffiliationIds" ) ; try { mService.setAffiliationIds ( admin , new java.util.ArrayList < java.lang.String > ( ids ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void setAffiliationIds ( @ android.annotation.NonNull android.content.ComponentName admin , @ android.annotation.NonNull java.util.Set < java.lang.String > ids ) { throwIfParentInstance ( "setAffiliationIds" ) ; if ( ids == null ) { throw new java.lang.IllegalArgumentException ( "ids must not be null" ) ; } try { mService.setAffiliationIds ( admin , new java.util.ArrayList < > ( ids ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
void playDtmfTone ( char digit ) { if ( ( mConnectionService ) == null ) { com.android.server.telecom.Log.w ( this , "playDtmfTone() request on a call without a connection service." ) ; } else { com.android.server.telecom.Log.i ( this , "Send playDtmfTone to connection service for call %s" , this ) ; mConnectionService.playDtmfTone ( this , digit ) ; com.android.server.telecom.Log.event ( this , Log.Events.START_DTMF , com.android.server.telecom.Log.pii ( digit ) ) ; } }

Target:
void playDtmfTone ( char digit ) { if ( ( mConnectionService ) == null ) { android.telecom.Log.w ( this , "playDtmfTone() request on a call without a connection service." ) ; } else { android.telecom.Log.i ( this , "Send playDtmfTone to connection service for call %s" , this ) ; mConnectionService.playDtmfTone ( this , digit ) ; android.telecom.Log.addEvent ( this , LogUtils.Events.START_DTMF , android.telecom.Log.pii ( digit ) ) ; } }
Source:
public java.lang.String getStringValue ( ) { if ( ( mValue ) != null ) { return mValue.getDisplayValue ( ) ; } return "" ; }

Target:
public boolean isMatchFor ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier qualifier ) { if ( qualifier instanceof com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ) { com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier referenceQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ) ( qualifier ) ) ; if ( ( ( referenceQualifier.mValue ) == ( com.android.sdklib.resources.KeyboardState.SOFT ) ) && ( ( mValue ) == ( com.android.sdklib.resources.KeyboardState.EXPOSED ) ) ) { return true ; } return ( referenceQualifier.mValue ) == ( mValue ) ; } return false ; }
Source:
public int waitForError ( ) throws java.lang.InterruptedException { lock.lock ( ) ; if ( ( condition.awaitNanos ( TIMEOUT_NS ) ) <= 0 ) { android.util.Log.d ( android.security.cts.StagefrightTest.TAG , "timed out on waiting for error" ) ; } lock.unlock ( ) ; return what ; }

Target:
public int waitForError ( ) throws java.lang.InterruptedException { lock.lock ( ) ; if ( ( condition.awaitNanos ( TIMEOUT_NS ) ) <= 0 ) { android.util.Log.d ( android.security.cts.StagefrightTest.TAG , "timed out on waiting for error" ) ; } lock.unlock ( ) ; if ( ( what ) != 0 ) { android.os.SystemClock.sleep ( 1000 ) ; } return what ; }
Source:
public void testInstallWithInvalidBundleVersionFile ( ) throws java.lang.Exception { java.io.File workingDir = new java.io.File ( testInstallDir , TzDataBundleInstaller.WORKING_DIR_NAME ) ; assertTrue ( workingDir.mkdir ( ) ) ; libcore.tzdata.update2.ConfigBundle tzData = createTzDataBundleWithInvalidBundleVersion ( "2030a" ) ; assertFalse ( install ( tzData ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testMissingRequiredBundleFile ( ) throws java.lang.Exception { libcore.tzdata.update2.ConfigBundle installedConfigBundle = createValidTzDataBundle ( libcore.tzdata.update2.TzDataBundleInstallerTest.NEW_RULES_VERSION ) ; assertTrue ( installer.install ( installedConfigBundle.getBundleBytes ( ) ) ) ; assertTzDataInstalled ( installedConfigBundle ) ; libcore.tzdata.update2.ConfigBundle incompleteUpdate = createValidTzDataBundleBuilder ( libcore.tzdata.update2.TzDataBundleInstallerTest.NEWER_RULES_VERSION ) . clearBionicTzData ( ) . buildUnvalidated ( ) ; assertFalse ( installer.install ( incompleteUpdate.getBundleBytes ( ) ) ) ; assertTzDataInstalled ( installedConfigBundle ) ; }
Source:
public boolean isVisualVoicemailEnabled ( java.lang.String callingPackage , android.telecom.PhoneAccountHandle phoneAccountHandle ) { if ( ! ( canReadPhoneState ( callingPackage , "isVisualVoicemailEnabled" ) ) ) { return false ; } return com.android.phone.settings.VisualVoicemailSettingsUtil.isEnabled ( mPhone.getContext ( ) , phoneAccountHandle ) ; }

Target:
public void setVoicemailRingtoneUri ( java.lang.String callingPackage , android.telecom.PhoneAccountHandle phoneAccountHandle , android.net.Uri uri ) { mAppOps.checkPackage ( android.os.Binder.getCallingUid ( ) , callingPackage ) ; if ( ! ( android.text.TextUtils.equals ( callingPackage , android.telecom.TelecomManager.from ( mPhone.getContext ( ) ) . getDefaultDialerPackage ( ) ) ) ) { enforceModifyPermissionOrCarrierPrivilege ( com.android.phone.PhoneUtils.getSubIdForPhoneAccountHandle ( phoneAccountHandle ) ) ; } com.android.internal.telephony.Phone phone = com.android.phone.PhoneUtils.getPhoneForPhoneAccountHandle ( phoneAccountHandle ) ; if ( phone == null ) { phone = mPhone ; } com.android.phone.settings.VoicemailNotificationSettingsUtil.setRingtoneUri ( phone , uri ) ; }
Source:
private void onCurrentOperator ( java.lang.String name ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_OPERATOR_NAME ) ; event.valueString = name ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }

Target:
private void onCurrentCalls ( int index , int dir , int state , int mparty , java.lang.String number ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_CURRENT_CALLS ) ; event.valueInt = index ; event.valueInt2 = dir ; event.valueInt3 = state ; event.valueInt4 = mparty ; event.valueString = number ; if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; } sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }
Source:
public static java.lang.String readFile ( org.eclipse.core.resources.IFile file ) { java.io.InputStream contents = null ; try { contents = file.getContents ( ) ; java.lang.String charset = file.getCharset ( ) ; return com.android.ide.eclipse.adt.AdtPlugin.readFile ( new java.io.InputStreamReader ( contents , charset ) ) ; } catch ( org.eclipse.core.runtime.CoreException e ) { } catch ( java.io.IOException e ) { } finally { try { if ( contents != null ) { contents.close ( ) ; } } catch ( java.io.IOException e ) { } } return null ; }

Target:
public static java.lang.String readFile ( @ com.android.annotations.NonNull org.eclipse.core.resources.IFile file ) { java.io.InputStream contents = null ; java.io.InputStreamReader reader = null ; try { contents = file.getContents ( ) ; java.lang.String charset = file.getCharset ( ) ; reader = new java.io.InputStreamReader ( contents , charset ) ; return com.android.ide.eclipse.adt.AdtPlugin.readFile ( reader ) ; } catch ( org.eclipse.core.runtime.CoreException e ) { } catch ( java.io.IOException e ) { } finally { com.google.common.io.Closeables.closeQuietly ( reader ) ; com.google.common.io.Closeables.closeQuietly ( contents ) ; } return null ; }
Source:
public static java.lang.String formatDateRange ( long startMs , long endMs , int flags , java.lang.String olsonId ) { if ( ( flags & ( libcore.icu.DateIntervalFormat.FORMAT_UTC ) ) != 0 ) { olsonId = "UTC" ; } java.util.TimeZone tz = ( olsonId != null ) ? java.util.TimeZone.getTimeZone ( olsonId ) : java.util.TimeZone.getDefault ( ) ; java.util.TimeZone icuTimeZone = libcore.icu.DateIntervalFormat.icuTimeZone ( tz ) ; com.ibm.icu.util.ULocale icuLocale = com.ibm.icu.util.ULocale.getDefault ( ) ; return libcore.icu.DateIntervalFormat.formatDateRange ( icuLocale , icuTimeZone , startMs , endMs , flags ) ; }

Target:
public static java.lang.String formatDateRange ( long startMs , long endMs , int flags , java.lang.String olsonId ) { if ( ( flags & ( libcore.icu.DateUtilsBridge.FORMAT_UTC ) ) != 0 ) { olsonId = "UTC" ; } java.util.TimeZone tz = ( olsonId != null ) ? java.util.TimeZone.getTimeZone ( olsonId ) : java.util.TimeZone.getDefault ( ) ; java.util.TimeZone icuTimeZone = libcore.icu.DateUtilsBridge.icuTimeZone ( tz ) ; com.ibm.icu.util.ULocale icuLocale = com.ibm.icu.util.ULocale.getDefault ( ) ; return libcore.icu.DateIntervalFormat.formatDateRange ( icuLocale , icuTimeZone , startMs , endMs , flags ) ; }
Source:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { com.android.resources.Keyboard method = com.android.resources.Keyboard.getEnum ( value ) ; if ( method != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.TextInputMethodQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.TextInputMethodQualifier ( ) ; qualifier.mValue = method ; config.setTextInputMethodQualifier ( qualifier ) ; return true ; } return false ; }

Target:
public boolean checkAndSet ( java.lang.String value , com.android.ide.common.resources.configuration.FolderConfiguration config ) { com.android.resources.Keyboard method = com.android.resources.Keyboard.getEnum ( value ) ; if ( method != null ) { com.android.ide.common.resources.configuration.TextInputMethodQualifier qualifier = new com.android.ide.common.resources.configuration.TextInputMethodQualifier ( ) ; qualifier.mValue = method ; config.setTextInputMethodQualifier ( qualifier ) ; return true ; } return false ; }
Source:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , short [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
synchronized void nScriptForEach ( long id , int slot , long ain , long aout , byte [ ] params , boolean mUseInc ) { validate ( ) ; if ( params == null ) { rsnScriptForEach ( mContext , mIncCon , id , slot , ain , aout , mUseInc ) ; } else { rsnScriptForEach ( mContext , mIncCon , id , slot , ain , aout , params , mUseInc ) ; } }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , int [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFromUnchecked" ) ; int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( ( d.length ) * 4 ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize , Element.DataType.SIGNED_32 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
private void copy1DRangeFromUnchecked ( int off , int count , java.lang.Object array , android.renderscript.Element.DataType dt , int arrayLen ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFromUnchecked" ) ; final int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , ( arrayLen * ( dt.mSize ) ) , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , array , dataSize , dt ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }
Source:
protected static int runJill ( @ javax.annotation.Nonnull java.io.PrintStream err , @ javax.annotation.Nonnull com.android.jill.Options options ) { try { com.android.jill.Jill.process ( options ) ; } catch ( com.android.jill.JillException e ) { err.println ( ( ( ( "Binary transformation of " + ( options.getBinaryFile ( ) . getName ( ) ) ) + " failed: " ) + ( e.getMessage ( ) ) ) ) ; if ( options.isVerbose ( ) ) { e.printStackTrace ( err ) ; } return ExitStatus.FAILURE_INTERNAL ; } return ExitStatus.SUCCESS ; }

Target:
protected static int runJill ( @ javax.annotation.Nonnull java.io.PrintStream err , @ javax.annotation.Nonnull com.android.jill.Options options ) { try { com.android.jill.Jill.process ( options ) ; } catch ( com.android.jill.JillException e ) { err.println ( ( ( ( "Binary transformation of " + ( options.getBinaryFile ( ) . getPath ( ) ) ) + " failed: " ) + ( e.getMessage ( ) ) ) ) ; if ( options.isVerbose ( ) ) { e.printStackTrace ( err ) ; } return ExitStatus.FAILURE_INTERNAL ; } return ExitStatus.SUCCESS ; }
Source:
public void setUp ( ) throws java.lang.Exception { final java.lang.reflect.Constructor < com.android.server.wifi.WifiNative > wifiNativeConstructor = com.android.server.wifi.WifiNative.class . getDeclaredConstructor ( java.lang.String.class , java.lang.Boolean.TYPE ) ; wifiNativeConstructor.setAccessible ( true ) ; mWifiNative = org.mockito.Mockito.spy ( wifiNativeConstructor.newInstance ( "test" , true ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { final java.lang.reflect.Constructor < com.android.server.wifi.WifiNative > wifiNativeConstructor = com.android.server.wifi.WifiNative.class . getDeclaredConstructor ( java.lang.String.class , java.lang.Boolean.TYPE ) ; wifiNativeConstructor.setAccessible ( true ) ; mWifiNative = org.mockito.Mockito.spy ( wifiNativeConstructor.newInstance ( "test" , true ) ) ; mWifiVendorHal = org.mockito.Mockito.mock ( com.android.server.wifi.WifiVendorHal.class ) ; mWifiNative.setWifiVendorHal ( mWifiVendorHal ) ; }
Source:
public boolean hasSameBehavior ( java.lang.Object a , java.lang.Object b ) { android.icu.text.MeasureFormat a1 = ( ( android.icu.text.MeasureFormat ) ( a ) ) ; android.icu.text.MeasureFormat b1 = ( ( android.icu.text.MeasureFormat ) ( b ) ) ; return ( ( a1.getLocale ( ) . equals ( b1.getLocale ( ) ) ) && ( a1.getWidth ( ) . equals ( b1.getWidth ( ) ) ) ) && ( a1.getNumberFormat ( ) . equals ( b1.getNumberFormat ( ) ) ) ; }

Target:
public boolean hasSameBehavior ( java.lang.Object a , java.lang.Object b ) { android.icu.text.MeasureFormat a1 = ( ( android.icu.text.MeasureFormat ) ( a ) ) ; android.icu.text.MeasureFormat b1 = ( ( android.icu.text.MeasureFormat ) ( b ) ) ; return ( ( a1.getLocale ( ) . equals ( b1.getLocale ( ) ) ) && ( a1.getWidth ( ) . equals ( b1.getWidth ( ) ) ) ) && ( nfh.hasSameBehavior ( a1.getNumberFormat ( ) , b1.getNumberFormat ( ) ) ) ; }
Source:
public void copyFromUnchecked ( float [ ] d ) { mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFromUnchecked ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFromUnchecked ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFromUnchecked ( 0 , mCurrentCount , d ) ; } }

Target:
public void copyFromUnchecked ( int [ ] d ) { copyFromUnchecked ( d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public static com.android.dialer.contactactions.IntentModule newCallModule ( android.content.Context context , java.lang.String number , @ android.support.annotation.Nullable android.telecom.PhoneAccountHandle phoneAccountHandle , com.android.dialer.callintent.CallInitiationType.Type initiationType ) { return new com.android.dialer.contactactions.IntentModule ( context , new com.android.dialer.callintent.CallIntentBuilder ( number , initiationType ) . setPhoneAccountHandle ( phoneAccountHandle ) . build ( ) , R.string.call , R.drawable.quantum_ic_call_white_24 ) ; }

Target:
public static com.android.dialer.contactactions.IntentModule newCallModule ( android.content.Context context , java.lang.String number , @ android.support.annotation.Nullable android.telecom.PhoneAccountHandle phoneAccountHandle , com.android.dialer.callintent.CallInitiationType.Type initiationType ) { return new com.android.dialer.contactactions.IntentModule ( context , com.android.dialer.precall.PreCall.getIntent ( context , new com.android.dialer.callintent.CallIntentBuilder ( number , initiationType ) . setPhoneAccountHandle ( phoneAccountHandle ) ) , R.string.call , R.drawable.quantum_ic_call_white_24 ) ; }
Source:
public boolean canGoBackOrForward ( final int steps ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return canGoBackOrForward ( steps ) ; } } ) ; return ret ; } return mAwContents.canGoBackOrForward ( steps ) ; }

Target:
public void goBackOrForward ( final int steps ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { goBackOrForward ( steps ) ; } } ) ; return ; } mAwContents.goBackOrForward ( steps ) ; }
Source:
public void requestFocusNodeHref ( final android.os.Message hrefMsg ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { requestFocusNodeHref ( hrefMsg ) ; } } ) ; return ; } mAwContents.requestFocusNodeHref ( hrefMsg ) ; }

Target:
public void requestImageRef ( final android.os.Message msg ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { requestImageRef ( msg ) ; } } ) ; return ; } mAwContents.requestImageRef ( msg ) ; }
Source:
private static com.android.ide.common.blame.SourceFragmentPositionRange findMessagePositionInFile ( @ com.android.annotations.NonNull java.io.File file , @ com.android.annotations.NonNull java.lang.String msgText , int locationLine , com.android.utils.ILogger logger ) { com.android.ide.common.blame.SourceFragmentPositionRange exactPosition = com.android.ide.common.blame.parser.aapt.AbstractAaptOutputParser.findExactMessagePositionInFile ( file , msgText , locationLine , logger ) ; if ( exactPosition != null ) { return exactPosition ; } else { return new com.android.ide.common.blame.SourceFragmentPositionRange ( locationLine , ( - 1 ) , ( - 1 ) ) ; } }

Target:
private static com.android.ide.common.blame.SourcePosition findMessagePositionInFile ( @ com.android.annotations.NonNull java.io.File file , @ com.android.annotations.NonNull java.lang.String msgText , int locationLine , com.android.utils.ILogger logger ) { com.android.ide.common.blame.SourcePosition exactPosition = com.android.ide.common.blame.parser.aapt.AbstractAaptOutputParser.findExactMessagePositionInFile ( file , msgText , locationLine , logger ) ; if ( exactPosition != null ) { return exactPosition ; } else { return new com.android.ide.common.blame.SourcePosition ( locationLine , ( - 1 ) , ( - 1 ) ) ; } }
Source:
public void test_getName ( ) throws java.lang.Exception { assertEquals ( "SHA-1" , getOidName ( "1.3.14.3.2.26" ) ) ; assertEquals ( "SHA-224" , getOidName ( "2.16.840.1.101.3.4.2.4" ) ) ; assertEquals ( "SHA-256" , getOidName ( "2.16.840.1.101.3.4.2.1" ) ) ; assertEquals ( "SHA224withDSA" , getOidName ( "2.16.840.1.101.3.4.3.1" ) ) ; assertEquals ( "SHA256withDSA" , getOidName ( "2.16.840.1.101.3.4.3.2" ) ) ; assertEquals ( "SHA224withRSA" , getOidName ( "1.2.840.113549.1.1.14" ) ) ; }

Target:
public void test_getName ( ) throws java.lang.Exception { assertEquals ( "SHA-1" , getOidName ( "1.3.14.3.2.26" ) ) ; assertEquals ( "SHA-224" , getOidName ( "2.16.840.1.101.3.4.2.4" ) ) ; assertEquals ( "SHA-256" , getOidName ( "2.16.840.1.101.3.4.2.1" ) ) ; assertEquals ( "SHA224withDSA" , getOidName ( "2.16.840.1.101.3.4.3.1" ) ) ; assertEquals ( "SHA256withDSA" , getOidName ( "2.16.840.1.101.3.4.3.2" ) ) ; assertEquals ( "SHA224withRSA" , getOidName ( "1.2.840.113549.1.1.14" ) ) ; assertEquals ( "AES" , getOidName ( "2.16.840.1.101.3.4.1" ) ) ; assertEquals ( "AES" , getOidName ( "2.16.840.1.101.3.4.42" ) ) ; assertEquals ( "ECDH" , getOidName ( "1.3.132.1.12" ) ) ; }
Source:
public static org.conscrypt.OpenSSLECPointContext getInstance ( int curveType , org.conscrypt.OpenSSLECGroupContext group , java.security.spec.ECPoint javaPoint ) { org.conscrypt.OpenSSLECPointContext point = new org.conscrypt.OpenSSLECPointContext ( group , org.conscrypt.NativeCrypto.EC_POINT_new ( group.getContext ( ) ) ) ; org.conscrypt.NativeCrypto.EC_POINT_set_affine_coordinates ( group.getContext ( ) , point.getContext ( ) , javaPoint.getAffineX ( ) . toByteArray ( ) , javaPoint.getAffineY ( ) . toByteArray ( ) ) ; return point ; }

Target:
public static org.conscrypt.OpenSSLECPointContext getInstance ( int curveType , org.conscrypt.OpenSSLECGroupContext group , java.security.spec.ECPoint javaPoint ) { org.conscrypt.OpenSSLECPointContext point = new org.conscrypt.OpenSSLECPointContext ( group , new org.conscrypt.NativeRef.EC_POINT ( org.conscrypt.NativeCrypto.EC_POINT_new ( group.getNativeRef ( ) ) ) ) ; org.conscrypt.NativeCrypto.EC_POINT_set_affine_coordinates ( group.getNativeRef ( ) , point.getNativeRef ( ) , javaPoint.getAffineX ( ) . toByteArray ( ) , javaPoint.getAffineY ( ) . toByteArray ( ) ) ; return point ; }
Source:
public int shutdownAndGetConnectionCount ( ) throws java.io.IOException , java.lang.InterruptedException { try { serverSocket.close ( ) ; shutdownLatch.await ( 1 , java.util.concurrent.TimeUnit.SECONDS ) ; serverThread.join ( 1000 ) ; assertFalse ( "serverThread failed to shut down quickly" , serverThread.isAlive ( ) ) ; } finally { return connectionAttempts.get ( ) ; } }

Target:
public void waitAndAssertConnectionCount ( int expectedConnectionAttempts ) throws java.io.IOException , java.lang.InterruptedException { boolean tooManyConnections = connectionAttempts.tryAcquire ( ( expectedConnectionAttempts + 1 ) , 300 , java.util.concurrent.TimeUnit.MILLISECONDS ) ; assertFalse ( ( "Observed more connections than the expected " + expectedConnectionAttempts ) , tooManyConnections ) ; assertEquals ( expectedConnectionAttempts , connectionAttempts.availablePermits ( ) ) ; }
Source:
private static java.lang.String toUnsignedString0 ( int i , int shift ) { char [ ] buf = new char [ 32 ] ; int charPos = 32 ; int radix = 1 << shift ; int mask = radix - 1 ; do { buf [ ( -- charPos ) ] = java.lang.Integer.digits [ ( i & mask ) ] ; i >>>= shift ; } while ( i != 0 ) ; return new java.lang.String ( buf , charPos , ( 32 - charPos ) ) ; }

Target:
private static java.lang.String toUnsignedString0 ( int val , int shift ) { int mag = ( java.lang.Integer.SIZE ) - ( java.lang.Integer.numberOfLeadingZeros ( val ) ) ; int chars = java.lang.Math.max ( ( ( mag + ( shift - 1 ) ) / shift ) , 1 ) ; char [ ] buf = new char [ chars ] ; java.lang.Integer.formatUnsignedInt ( val , shift , buf , 0 , chars ) ; return new java.lang.String ( buf ) ; }
Source:
public void end ( ) throws java.io.IOException { java.io.File file = new java.io.File ( ( "/sdcard/" + ( com.android.graphics.benchmark.ResultData.RESULT_FILE_LOCATION ) ) ) ; java.nio.file.Files.deleteIfExists ( file.toPath ( ) ) ; try ( java.io.OutputStream outputStream = new java.io.FileOutputStream ( file ) ) { builder.build ( ) . writeTo ( outputStream ) ; } }

Target:
public void end ( ) throws java.io.IOException { java.io.File file = new java.io.File ( ( "/sdcard/" + ( com.android.game.qualification.ResultData.RESULT_FILE_LOCATION ) ) ) ; java.nio.file.Files.deleteIfExists ( file.toPath ( ) ) ; try ( java.io.OutputStream outputStream = new java.io.FileOutputStream ( file ) ) { builder.build ( ) . writeTo ( outputStream ) ; } }
Source:
public void testUngrant_DoubleUngrant_Failure ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to generate key for testcase" , mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; assertTrue ( "Should be able to grant key to other user" , mKeyStore.grant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertTrue ( "Should be able to ungrant key to other user" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertFalse ( "Should fail to ungrant key to other user second time" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; }

Target:
public void testUngrant_DoubleUngrant_Failure ( ) throws java.lang.Exception { assertTrue ( "Password should work for keystore" , mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ) ; assertTrue ( "Should be able to generate key for testcase" , mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , NativeCrypto.EVP_PKEY_RSA , 1024 , KeyStore.FLAG_ENCRYPTED , null ) ) ; assertTrue ( "Should be able to grant key to other user" , mKeyStore.grant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertTrue ( "Should be able to ungrant key to other user" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; assertFalse ( "Should fail to ungrant key to other user second time" , mKeyStore.ungrant ( android.security.KeyStoreTest.TEST_KEYNAME , 0 ) ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; tempDir = libcore.tzdata.update2.TzDataBundleInstallerTest.createDirectory ( "tempDir" ) ; testInstallDir = libcore.tzdata.update2.TzDataBundleInstallerTest.createDirectory ( "testInstall" ) ; installer = new libcore.tzdata.update2.TzDataBundleInstaller ( "TzDataBundleInstallerTest" , testInstallDir ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; tempDir = libcore.tzdata.update2.TzDataBundleInstallerTest.createDirectory ( "tempDir" ) ; testInstallDir = libcore.tzdata.update2.TzDataBundleInstallerTest.createDirectory ( "testInstall" ) ; testSystemTzDataDir = libcore.tzdata.update2.TzDataBundleInstallerTest.createDirectory ( "testSystemTzData" ) ; java.io.File testSystemTzDataFile = new java.io.File ( testSystemTzDataDir , "tzdata" ) ; createTzDataFile ( testSystemTzDataFile , libcore.tzdata.update2.TzDataBundleInstallerTest.SYSTEM_RULES_VERSION ) ; installer = new libcore.tzdata.update2.TzDataBundleInstaller ( "TzDataBundleInstallerTest" , testSystemTzDataFile , testInstallDir ) ; }
Source:
public void end ( ) { synchronized ( zsRef ) { long addr = zsRef.address ( ) ; zsRef.clear ( ) ; if ( addr != 0 ) { java.util.zip.Inflater.end ( addr ) ; buf = null ; } } }

Target:
public void end ( ) { synchronized ( zsRef ) { guard.close ( ) ; long addr = zsRef.address ( ) ; zsRef.clear ( ) ; if ( addr != 0 ) { java.util.zip.Inflater.end ( addr ) ; buf = null ; } } }
Source:
public static java.nio.CharBuffer wrap ( char [ ] array , int start , int charCount ) { java.util.Arrays.checkOffsetAndCount ( array.length , start , charCount ) ; java.nio.CharBuffer buf = new java.nio.ReadWriteCharArrayBuffer ( array ) ; buf.position = start ; buf.limit = start + charCount ; return buf ; }

Target:
public static java.nio.CharBuffer wrap ( char [ ] array , int start , int charCount ) { java.util.Arrays.checkOffsetAndCount ( array.length , start , charCount ) ; java.nio.CharBuffer buf = new java.nio.CharArrayBuffer ( array ) ; buf.position = start ; buf.limit = start + charCount ; return buf ; }
Source:
public void test_read ( ) throws java.io.IOException { int c = is.read ( ) ; assertEquals ( "Test 1: Read returned incorrect char;" , libcore.java.io.OldFilterInputStreamTest.testString.charAt ( 0 ) , c ) ; is.close ( ) ; try { is.read ( ) ; fail ( "Test 2: IOException expected." ) ; } catch ( java.io.IOException e ) { } }

Target:
public void test_read ( ) throws java.io.IOException { int c = is.read ( ) ; assertEquals ( "Test 1: Read returned incorrect char;" , libcore.java.io.OldFilterInputStreamTest.INPUT.charAt ( 0 ) , c ) ; is.close ( ) ; try { is.read ( ) ; fail ( "Test 2: IOException expected." ) ; } catch ( java.io.IOException e ) { } }
Source:
public void onSubscribeStarted ( android.net.wifi.nan.WifiNanSubscribeDiscoverySession discoverySession ) { synchronized ( mLock ) { mDiscoverySessions.put ( mDiscoverySessionId , discoverySession ) ; } android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mEventFacade.postEvent ( "WifiNanSessionOnSubscribeStarted" , mResults ) ; }

Target:
public void onSubscribeStarted ( android.net.wifi.nan.WifiNanSubscribeDiscoverySession discoverySession ) { synchronized ( mLock ) { mDiscoverySessions.put ( mDiscoverySessionId , discoverySession ) ; } android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putLong ( "latencyMs" , ( ( java.lang.System.currentTimeMillis ( ) ) - ( mCreateTimestampMs ) ) ) ; mResults.putLong ( "timestampMs" , java.lang.System.currentTimeMillis ( ) ) ; mEventFacade.postEvent ( "WifiNanSessionOnSubscribeStarted" , mResults ) ; }
Source:
public void stopDtmf ( ) { if ( com.android.internal.telephony.CallManager.VDBG ) { android.util.Log.d ( com.android.internal.telephony.CallManager.LOG_TAG , " stopDtmf()" ) ; android.util.Log.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } if ( hasActiveFgCall ( ) ) getFgPhone ( ) . stopDtmf ( ) ; if ( com.android.internal.telephony.CallManager.VDBG ) { android.util.Log.d ( com.android.internal.telephony.CallManager.LOG_TAG , "End stopDtmf()" ) ; android.util.Log.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } }

Target:
public void stopDtmf ( ) { if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , " stopDtmf()" ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } if ( hasActiveFgCall ( ) ) getFgPhone ( ) . stopDtmf ( ) ; if ( com.android.internal.telephony.CallManager.VDBG ) { android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , "End stopDtmf()" ) ; android.telephony.Rlog.d ( com.android.internal.telephony.CallManager.LOG_TAG , this . toString ( ) ) ; } }
Source:
private static void test_init ( dalvik.system.DexClassLoaderTest.Configuration config ) { dalvik.system.DexClassLoaderTest.createInstance ( config ) ; int expectedFiles = config.expectedFiles ; int actualFiles = config.optimizedDir.listFiles ( ) . length ; assertEquals ( expectedFiles , actualFiles ) ; }

Target:
private java.lang.String createLoaderAndGetResource ( java.lang.String resourceName , java.io.File ... files ) throws java.lang.Exception { java.lang.ClassLoader cl = createLoader ( files ) ; java.io.InputStream in = cl.getResourceAsStream ( resourceName ) ; if ( in == null ) { throw new java.lang.IllegalStateException ( ( "Resource not found: " + resourceName ) ) ; } byte [ ] contents = libcore.io.Streams.readFully ( in ) ; return new java.lang.String ( contents , "UTF-8" ) ; }
Source:
private static java.lang.String runOrThrow ( com.android.dialer.commandline.Command command ) { try { return command.run ( com.google.common.collect.ImmutableList.of ( ) ) . get ( ) ; } catch ( java.lang.InterruptedException e ) { java.lang.Thread.interrupted ( ) ; throw new java.lang.RuntimeException ( e ) ; } catch ( java.util.concurrent.ExecutionException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
private static java.lang.String runOrThrow ( com.android.dialer.commandline.Command command ) throws com.android.dialer.commandline.impl.IllegalCommandLineArgumentException { try { return command.run ( Arguments.EMPTY ) . get ( ) ; } catch ( java.lang.InterruptedException e ) { java.lang.Thread.interrupted ( ) ; throw new java.lang.RuntimeException ( e ) ; } catch ( java.util.concurrent.ExecutionException e ) { throw new java.lang.RuntimeException ( e ) ; } }
Source:
public void stopScan ( ) { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony == null ) { android.telephony.Rlog.e ( android.telephony.NetworkScan.TAG , "Failed to get the ITelephony instance." ) ; } try { telephony.stopNetworkScan ( mSubId , mScanId ) ; } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.NetworkScan.TAG , "stopNetworkScan RemoteException" , ex ) ; } }

Target:
public void stopScan ( ) { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony == null ) { android.telephony.Rlog.e ( android.telephony.NetworkScan.TAG , "Failed to get the ITelephony instance." ) ; } try { telephony.stopNetworkScan ( mSubId , mScanId ) ; } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.NetworkScan.TAG , "stopNetworkScan RemoteException" , ex ) ; } catch ( java.lang.RuntimeException ex ) { android.telephony.Rlog.e ( android.telephony.NetworkScan.TAG , "stopNetworkScan RuntimeException" , ex ) ; } }
Source:
public com.ibm.icu.impl.SimplePatternFormatter getByVariant ( java.lang.CharSequence variant ) { assert isValid ( ) ; int idx = com.ibm.icu.text.QuantityFormatter.getPluralIndex ( variant ) ; com.ibm.icu.impl.SimplePatternFormatter template = templates [ ( idx < 0 ? 0 : idx ) ] ; return template == null ? templates [ 0 ] : template ; }

Target:
public boolean isValid ( ) { return ( templates [ com.ibm.icu.text.PluralRules.StandardPluralCategories.OTHER_INDEX ] ) != null ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; myPatch = new com.intellij.updater.Patch ( myOlderDir , myNewerDir , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , TEST_UI ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; com.intellij.updater.PatchSpec spec = new com.intellij.updater.PatchSpec ( ) . setOldFolder ( myOlderDir.getAbsolutePath ( ) ) . setNewFolder ( myNewerDir.getAbsolutePath ( ) ) ; myPatch = new com.intellij.updater.Patch ( spec , TEST_UI ) ; }
Source:
private void sendTrackChangedRsp ( boolean requested ) { com.android.bluetooth.avrcp.MediaPlayerInfo info = getAddressedPlayerInfo ( ) ; if ( ( info != null ) && ( ! ( info.isBrowseSupported ( ) ) ) ) { trackChangeRspForBrowseUnsupported ( requested ) ; } else { boolean changed = mAddressedMediaPlayer.sendTrackChangeWithId ( requested , mMediaController ) ; if ( changed ) mTrackChangedNT = AvrcpConstants.NOTIFICATION_TYPE_CHANGED ; } }

Target:
private void sendTrackChangedRsp ( boolean requested ) { com.android.bluetooth.avrcp.MediaPlayerInfo info = getAddressedPlayerInfo ( ) ; if ( ( ! requested ) && ( ( mTrackChangedNT ) != ( AvrcpConstants.NOTIFICATION_TYPE_INTERIM ) ) ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "sendTrackChangedRsp: Not registered or requesting." ) ; return ; } if ( ( info != null ) && ( ! ( info.isBrowseSupported ( ) ) ) ) { trackChangeRspForBrowseUnsupported ( requested ) ; } else { boolean changed = mAddressedMediaPlayer.sendTrackChangeWithId ( requested , mMediaController ) ; if ( changed ) mTrackChangedNT = AvrcpConstants.NOTIFICATION_TYPE_CHANGED ; } }
Source:
static com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSet getCodeCfs ( @ com.android.annotations.NonNull org.eclipse.core.resources.IProject project ) { java.lang.String path = com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSetHelper.getRelativeJavaCOut ( project ) ; com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSet set = new com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSet ( "libResources" , ( ( path + "/**/*" ) + ( com.android.ide.eclipse.adt.AdtConstants.DOT_CLASS ) ) , ( ( ( com.android.sdklib.SdkConstants.FD_NATIVE_LIBS ) + "*" ) + ( com.android.ide.eclipse.adt.AdtConstants.DOT_JAR ) ) ) ; path = com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSetHelper.getRelativeAndroidOut ( project ) ; set.setOutput ( ( ( path + '/' ) + ( com.android.sdklib.SdkConstants.FN_APK_CLASSES_DEX ) ) ) ; return set ; }

Target:
static com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSet getCodeCfs ( @ com.android.annotations.NonNull org.eclipse.core.resources.IProject project ) { java.lang.String path = com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSetHelper.getRelativeJavaCOut ( project ) ; com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSet set = new com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSet ( "classAndJars" , ( ( path + "/**/*" ) + ( com.android.ide.eclipse.adt.AdtConstants.DOT_CLASS ) ) , ( ( ( com.android.sdklib.SdkConstants.FD_NATIVE_LIBS ) + "/*" ) + ( com.android.ide.eclipse.adt.AdtConstants.DOT_JAR ) ) ) ; path = com.android.ide.eclipse.adt.internal.build.builders.ChangedFileSetHelper.getRelativeAndroidOut ( project ) ; set.setOutput ( ( ( path + '/' ) + ( com.android.sdklib.SdkConstants.FN_APK_CLASSES_DEX ) ) ) ; return set ; }
Source:
public void markForAggregation ( long rawContactId , int aggregationMode , boolean force ) { if ( ( ! force ) && ( mRawContactsMarkedForAggregation.containsKey ( rawContactId ) ) ) { if ( aggregationMode == ( android.provider.ContactsContract.RawContacts.AGGREGATION_MODE_DEFAULT ) ) { aggregationMode = mRawContactsMarkedForAggregation.get ( rawContactId ) ; } } else { mMarkForAggregation.bindLong ( 1 , rawContactId ) ; mMarkForAggregation.execute ( ) ; } mRawContactsMarkedForAggregation.put ( rawContactId , aggregationMode ) ; }

Target:
public void markForAggregation ( long rawContactId , int aggregationMode , boolean force ) { final int effectiveAggregationMode ; if ( ( ! force ) && ( mRawContactsMarkedForAggregation.containsKey ( rawContactId ) ) ) { if ( aggregationMode == ( android.provider.ContactsContract.RawContacts.AGGREGATION_MODE_DEFAULT ) ) { effectiveAggregationMode = mRawContactsMarkedForAggregation.get ( rawContactId ) ; } else { effectiveAggregationMode = aggregationMode ; } } else { mMarkForAggregation.bindLong ( 1 , rawContactId ) ; mMarkForAggregation.execute ( ) ; effectiveAggregationMode = aggregationMode ; } mRawContactsMarkedForAggregation.put ( rawContactId , effectiveAggregationMode ) ; }
Source:
boolean setSimAccessPermission ( android.bluetooth.BluetoothDevice device , int value ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PRIVILEGED , "Need BLUETOOTH PRIVILEGED permission" ) ; android.content.SharedPreferences pref = getSharedPreferences ( com.android.bluetooth.btservice.AdapterService.SIM_ACCESS_PERMISSION_PREFERENCE_FILE , Context.MODE_PRIVATE ) ; android.content.SharedPreferences.Editor editor = pref.edit ( ) ; if ( value == ( android.bluetooth.BluetoothDevice.ACCESS_UNKNOWN ) ) { editor.remove ( device.getAddress ( ) ) ; } else { editor.putBoolean ( device.getAddress ( ) , ( value == ( android.bluetooth.BluetoothDevice.ACCESS_ALLOWED ) ) ) ; } return editor.commit ( ) ; }

Target:
boolean setSimAccessPermission ( android.bluetooth.BluetoothDevice device , int value ) { enforceCallingOrSelfPermission ( com.android.bluetooth.btservice.AdapterService.BLUETOOTH_PRIVILEGED , "Need BLUETOOTH PRIVILEGED permission" ) ; android.content.SharedPreferences pref = getSharedPreferences ( com.android.bluetooth.btservice.AdapterService.SIM_ACCESS_PERMISSION_PREFERENCE_FILE , Context.MODE_PRIVATE ) ; android.content.SharedPreferences.Editor editor = pref.edit ( ) ; if ( value == ( android.bluetooth.BluetoothDevice.ACCESS_UNKNOWN ) ) { editor.remove ( device.getAddress ( ) ) ; } else { editor.putBoolean ( device.getAddress ( ) , ( value == ( android.bluetooth.BluetoothDevice.ACCESS_ALLOWED ) ) ) ; } editor.apply ( ) ; return true ; }
Source:
public void run ( ) { if ( moreUsages.get ( ) ) { appendMoreUsages ( editor , popupPosition , handler , maxUsages , options ) ; return ; } com.intellij.usageView.UsageInfo usage = selectedUsage.get ( ) ; if ( usage != null ) { com.intellij.usageView.UsageViewUtil.navigateTo ( usage , true ) ; } }

Target:
public void run ( ) { if ( moreUsages.get ( ) ) { appendMoreUsages ( editor , popupPosition , handler , maxUsages , options ) ; return ; } java.lang.Object usage = selectedUsage.get ( ) ; if ( usage instanceof com.intellij.usageView.UsageInfo ) { com.intellij.usageView.UsageViewUtil.navigateTo ( ( ( com.intellij.usageView.UsageInfo ) ( usage ) ) , true ) ; } else if ( usage instanceof com.intellij.pom.Navigatable ) { ( ( com.intellij.pom.Navigatable ) ( usage ) ) . navigate ( true ) ; } }
Source:
public static org.w3c.dom.Document getMetadataDocument ( java.lang.String templateName ) { java.lang.String relative = ( ( com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler.getTemplatePath ( templateName ) ) + '/' ) + ( com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler.TEMPLATE_XML ) ; java.lang.String xml = com.android.ide.eclipse.adt.AdtPlugin.readEmbeddedTextFile ( relative ) ; return com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities.parseDocument ( xml , true ) ; }

Target:
public static com.android.ide.eclipse.adt.internal.wizards.templates.TemplateMetadata getTemplate ( java.lang.String templateName ) { java.lang.String relative = ( ( com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler.getTemplatePath ( templateName ) ) + '/' ) + ( com.android.ide.eclipse.adt.internal.wizards.templates.TemplateHandler.TEMPLATE_XML ) ; java.lang.String xml = com.android.ide.eclipse.adt.AdtPlugin.readEmbeddedTextFile ( relative ) ; org.w3c.dom.Document doc = com.android.ide.eclipse.adt.internal.editors.layout.gle2.DomUtilities.parseDocument ( xml , true ) ; if ( ( doc != null ) && ( ( doc.getDocumentElement ( ) ) != null ) ) { return new com.android.ide.eclipse.adt.internal.wizards.templates.TemplateMetadata ( doc ) ; } return null ; }
Source:
public void testUnsupportedCallbackException05 ( ) { tests.api.javax.security.auth.myCallback c = new tests.api.javax.security.auth.myCallback ( ) ; assertNotNull ( "Callback object is null" , c ) ; javax.security.auth.callback.UnsupportedCallbackException ucE = new javax.security.auth.callback.UnsupportedCallbackException ( c , null ) ; assertNull ( "getMessage() must return null." , ucE.getMessage ( ) ) ; assertEquals ( "Incorrect callback object was returned" , c , ucE.getCallback ( ) ) ; }

Target:
public void testUnsupportedCallbackException05 ( ) { org.apache.harmony.tests.javax.security.auth.callback.myCallback c = new org.apache.harmony.tests.javax.security.auth.callback.myCallback ( ) ; assertNotNull ( "Callback object is null" , c ) ; javax.security.auth.callback.UnsupportedCallbackException ucE = new javax.security.auth.callback.UnsupportedCallbackException ( c , null ) ; assertNull ( "getMessage() must return null." , ucE.getMessage ( ) ) ; assertEquals ( "Incorrect callback object was returned" , c , ucE.getCallback ( ) ) ; }
Source:
private com.android.jack.ir.ast.JMethod findDefinition ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodId methodId , @ javax.annotation.Nonnull com.android.jack.ir.ast.JType returnType , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface receiverType ) { com.android.jack.ir.ast.JMethod foundMethod = findMethod ( methodId , receiverType , returnType ) ; if ( foundMethod != null ) { return foundMethod ; } for ( com.android.jack.ir.ast.JInterface i : receiverType.getImplements ( ) ) { if ( i instanceof com.android.jack.ir.ast.JDefinedInterface ) { com.android.jack.ir.ast.JMethod foundDefinition = findDefinition ( methodId , returnType , ( ( com.android.jack.ir.ast.JDefinedInterface ) ( i ) ) ) ; if ( foundDefinition != null ) { return foundDefinition ; } } } return null ; }

Target:
private com.android.jack.ir.ast.JMethod findDefinition ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodIdWide methodId , @ javax.annotation.Nonnull com.android.jack.ir.ast.JType returnType , @ javax.annotation.Nonnull com.android.jack.ir.ast.JDefinedClassOrInterface receiverType ) { com.android.jack.ir.ast.JMethod foundMethod = findMethod ( methodId , receiverType , returnType ) ; if ( foundMethod != null ) { return foundMethod ; } for ( com.android.jack.ir.ast.JInterface i : receiverType.getImplements ( ) ) { if ( i instanceof com.android.jack.ir.ast.JDefinedInterface ) { com.android.jack.ir.ast.JMethod foundDefinition = findDefinition ( methodId , returnType , ( ( com.android.jack.ir.ast.JDefinedInterface ) ( i ) ) ) ; if ( foundDefinition != null ) { return foundDefinition ; } } } return null ; }