auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public boolean isVisualVoicemailEnabled ( android.telecom.PhoneAccountHandle phoneAccountHandle ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.isVisualVoicemailEnabled ( mContext.getOpPackageName ( ) , phoneAccountHandle ) ; } } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return false ; }

Target:
public android.os.Bundle getVisualVoicemailSettings ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getVisualVoicemailSettings ( mContext.getOpPackageName ( ) , mSubId ) ; } } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return null ; }
Source:
public void test_initLjava_security_KeyStore_02 ( ) throws java.lang.Exception { java.security.KeyStore ks = java.security.KeyStore.getInstance ( java.security.KeyStore.getDefaultType ( ) ) ; javax.net.ssl.TrustManagerFactory [ ] trustMF = tests.api.javax.net.ssl.TrustManagerFactory1Test.createTMFac ( ) ; assertNotNull ( "TrustManagerFactory objects were not created" , trustMF ) ; trustMF [ 0 ] . init ( ks ) ; }

Target:
public void test_initLjava_security_KeyStore_02 ( ) throws java.lang.Exception { java.security.KeyStore ks = java.security.KeyStore.getInstance ( java.security.KeyStore.getDefaultType ( ) ) ; javax.net.ssl.TrustManagerFactory [ ] trustMF = org.apache.harmony.tests.javax.net.ssl.TrustManagerFactory1Test.createTMFac ( ) ; assertNotNull ( "TrustManagerFactory objects were not created" , trustMF ) ; trustMF [ 0 ] . init ( ks ) ; }
Source:
public boolean setNetworkConnectChoice ( int networkId , java.lang.String connectChoiceConfigKey , long timestamp ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManagerNew.TAG , ( ( ( "Set network connect choice " + connectChoiceConfigKey ) + " for " ) + networkId ) ) ; } android.net.wifi.WifiConfiguration config = getInternalConfiguredNetwork ( networkId ) ; if ( config == null ) { return false ; } config.getNetworkSelectionStatus ( ) . setConnectChoice ( connectChoiceConfigKey ) ; config.getNetworkSelectionStatus ( ) . setConnectChoiceTimestamp ( timestamp ) ; return true ; }

Target:
public boolean setNetworkConnectChoice ( int networkId , java.lang.String connectChoiceConfigKey , long timestamp ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( ( ( "Set network connect choice " + connectChoiceConfigKey ) + " for " ) + networkId ) ) ; } android.net.wifi.WifiConfiguration config = getInternalConfiguredNetwork ( networkId ) ; if ( config == null ) { return false ; } config.getNetworkSelectionStatus ( ) . setConnectChoice ( connectChoiceConfigKey ) ; config.getNetworkSelectionStatus ( ) . setConnectChoiceTimestamp ( timestamp ) ; return true ; }
Source:
public boolean disable ( ) { try { return mManagerService.disable ( true ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public boolean enable ( ) { if ( isEnabled ( ) ) { if ( android.bluetooth.BluetoothAdapter.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , "enable(): BT already enabled!" ) ; return true ; } try { return mManagerService.enable ( android.app.ActivityThread.currentPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }
Source:
public java.lang.invoke.MethodHandle bind ( java.lang.Object receiver , java.lang.String name , java.lang.invoke.MethodType type ) throws java.lang.IllegalAccessException , java.lang.NoSuchMethodException { throw new java.lang.UnsupportedOperationException ( "MethodHandles.Lookup.bind is not implemented" ) ; }

Target:
private static java.lang.invoke.MethodType initMethodType ( java.lang.invoke.MethodType constructorType ) { assert ( constructorType.rtype ( ) ) != ( void . class ) ; java.lang.Class < ? > [ ] initPtypes = new java.lang.Class < ? > [ ( constructorType.ptypes ( ) . length ) + 1 ] ; initPtypes [ 0 ] = constructorType.rtype ( ) ; java.lang.System.arraycopy ( constructorType.ptypes ( ) , 0 , initPtypes , 1 , constructorType.ptypes ( ) . length ) ; return java.lang.invoke.MethodType.methodType ( void . class , initPtypes ) ; }
Source:
public java.lang.String toString ( ) { if ( ( buffer ) == null ) { return ( ( typeIndex ) + " " ) + ( supertypeIndex ) ; } java.lang.StringBuilder result = new java.lang.StringBuilder ( ) ; result.append ( buffer.typeNames ( ) . get ( typeIndex ) ) ; if ( ( supertypeIndex ) != ( com.android.jack.dx.io.ClassDef.NO_INDEX ) ) { result.append ( " extends " ) . append ( buffer.typeNames ( ) . get ( supertypeIndex ) ) ; } return result.toString ( ) ; }

Target:
public java.lang.String getTypeName ( ) { return buffer.typeNames ( ) . get ( typeIndex ) ; }
Source:
protected void onStop ( ) { super . onStop ( ) ; com.android.mms.util.DraftCache.getInstance ( ) . removeOnDraftChangedListener ( this ) ; getListView ( ) . setChoiceMode ( ListView.CHOICE_MODE_MULTIPLE_MODAL ) ; android.database.Cursor cursor = mListAdapter.getCursor ( ) ; if ( ( cursor != null ) && ( ! ( cursor.isClosed ( ) ) ) ) { cursor.close ( ) ; } mListAdapter.changeCursor ( null ) ; }

Target:
protected void onStop ( ) { super . onStop ( ) ; com.android.mms.util.DraftCache.getInstance ( ) . removeOnDraftChangedListener ( this ) ; unbindListeners ( null ) ; getListView ( ) . setChoiceMode ( ListView.CHOICE_MODE_MULTIPLE_MODAL ) ; android.database.Cursor cursor = mListAdapter.getCursor ( ) ; if ( ( cursor != null ) && ( ! ( cursor.isClosed ( ) ) ) ) { cursor.close ( ) ; } mListAdapter.changeCursor ( null ) ; }
Source:
protected byte [ ] engineSign ( ) throws java.security.SignatureException { final org.conscrypt.NativeRef.EVP_MD_CTX ctxLocal = ctx ; try { return org.conscrypt.NativeCrypto.EVP_DigestSignFinal ( ctxLocal ) ; } catch ( java.lang.Exception ex ) { throw new java.security.SignatureException ( ex ) ; } finally { resetContext ( ) ; } }

Target:
protected byte [ ] engineSign ( ) throws java.security.SignatureException { final org.conscrypt.NativeRef.EVP_MD_CTX ctxLocal = ctx ; try { return org.conscrypt.NativeCrypto.EVP_DigestSignFinal ( ctxLocal ) ; } catch ( java.lang.Exception ex ) { throw new java.security.SignatureException ( ex ) ; } finally { try { resetContext ( ) ; } catch ( java.security.InvalidAlgorithmParameterException e ) { throw new java.lang.AssertionError ( "Reset of context failed after it was successful once" ) ; } } }
Source:
void onDocumentsReady ( java.util.List < com.android.documentsui.model.DocumentInfo > docs ) { mClipper.clipDocuments ( docs ) ; android.app.Activity activity = getActivity ( ) ; com.android.documentsui.Snackbars.makeSnackbar ( activity , activity.getResources ( ) . getQuantityString ( R.plurals.clipboard_files_clipped , docs.size ( ) , docs.size ( ) ) , Snackbar.LENGTH_SHORT ) . show ( ) ; }

Target:
void copySelectionToClipboard ( com.android.documentsui.dirlist.MultiSelectManager.Selection selected ) { assert ! ( selected.isEmpty ( ) ) ; java.util.List < com.android.documentsui.model.DocumentInfo > docs = mModel.getDocuments ( selected ) ; mClipper.clipDocuments ( docs ) ; android.app.Activity activity = getActivity ( ) ; com.android.documentsui.Snackbars.makeSnackbar ( activity , activity.getResources ( ) . getQuantityString ( R.plurals.clipboard_files_clipped , docs.size ( ) , docs.size ( ) ) , Snackbar.LENGTH_SHORT ) . show ( ) ; }
Source:
public void onAttached ( android.net.wifi.nan.WifiNanSession session ) { synchronized ( mLock ) { mSessions.put ( mSessionId , session ) ; } android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "sessionId" , mSessionId ) ; mResults.putLong ( "latencyMs" , ( ( java.lang.System.currentTimeMillis ( ) ) - ( mCreateTimestampMs ) ) ) ; mEventFacade.postEvent ( "WifiNanOnAttached" , mResults ) ; }

Target:
public void onAttached ( android.net.wifi.nan.WifiNanSession session ) { synchronized ( mLock ) { mSessions.put ( mSessionId , session ) ; } android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "sessionId" , mSessionId ) ; mResults.putLong ( "latencyMs" , ( ( java.lang.System.currentTimeMillis ( ) ) - ( mCreateTimestampMs ) ) ) ; mResults.putLong ( "timestampMs" , java.lang.System.currentTimeMillis ( ) ) ; mEventFacade.postEvent ( "WifiNanOnAttached" , mResults ) ; }
Source:
private static com.google.common.collect.ImmutableList < java.lang.String > getExpansionIfKnown ( java.lang.reflect.Field optionField , com.google.devtools.common.options.OptionsData optionsData ) { com.google.common.base.Preconditions.checkNotNull ( optionField ) ; com.google.common.base.Preconditions.checkNotNull ( optionsData ) ; try { return optionsData.getEvaluatedExpansion ( optionField , null ) ; } catch ( com.google.devtools.common.options.ExpansionNeedsValueException e ) { return null ; } catch ( com.google.devtools.common.options.OptionsParsingException e ) { throw new java.lang.IllegalStateException ( "Error expanding void expansion function: " , e ) ; } }

Target:
private static com.google.common.collect.ImmutableList < java.lang.String > getExpansionIfKnown ( com.google.devtools.common.options.OptionDefinition optionDefinition , com.google.devtools.common.options.OptionsData optionsData ) { com.google.common.base.Preconditions.checkNotNull ( optionDefinition ) ; try { return optionsData.getEvaluatedExpansion ( optionDefinition , null ) ; } catch ( com.google.devtools.common.options.ExpansionNeedsValueException e ) { return null ; } catch ( com.google.devtools.common.options.OptionsParsingException e ) { throw new java.lang.IllegalStateException ( "Error expanding void expansion function: " , e ) ; } }
Source:
void restoreLoaderNonConfig ( android.support.v4.util.SimpleArrayMap < java.lang.String , android.support.v4.app.LoaderManager > loaderManagers ) { mAllLoaderManagers = loaderManagers ; }

Target:
void restoreLoaderNonConfig ( android.support.v4.util.SimpleArrayMap < java.lang.String , android.support.v4.app.LoaderManager > loaderManagers ) { if ( loaderManagers != null ) { for ( int i = 0 , N = loaderManagers.size ( ) ; i < N ; i ++ ) { ( ( android.support.v4.app.LoaderManagerImpl ) ( loaderManagers.valueAt ( i ) ) ) . updateHostController ( this ) ; } } mAllLoaderManagers = loaderManagers ; }
Source:
public void delete ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException , com.android.sched.util.file.CannotDeleteFileException { try { inputVFS.getRootInputVDir ( ) . getInputVFile ( fileType.buildFileVPath ( typePath ) ) . delete ( ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }

Target:
public void delete ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) { throw new java.lang.AssertionError ( ) ; }
Source:
public void viewportChanged ( ) { synchronized ( this ) { viewport = model.getViewport ( ) ; setBounds ( ) ; setTransform ( ) ; } doRedraw ( ) ; }

Target:
public void viewportChanged ( ) { org.eclipse.swt.widgets.Display.getDefault ( ) . syncExec ( new java.lang.Runnable ( ) { public void run ( ) { synchronized ( this ) { viewport = model.getViewport ( ) ; setBounds ( ) ; setTransform ( ) ; } } } ) ; doRedraw ( ) ; }
Source:
private java.util.Optional < com.google.i18n.phonenumbers.Phonenumber.PhoneNumber > parsePhoneNumber ( @ android.support.annotation.NonNull java.lang.String numberToParse , @ android.support.annotation.NonNull java.lang.String userHomeCountryCode ) { try { return java.util.Optional.of ( phoneNumberUtil.parseAndKeepRawInput ( numberToParse , userHomeCountryCode ) ) ; } catch ( com.google.i18n.phonenumbers.NumberParseException e ) { com.android.dialer.common.LogUtil.i ( "Constraints.parsePhoneNumber" , "could not parse the number" ) ; return java.util.Optional.empty ( ) ; } }

Target:
private java.util.Optional < com.google.i18n.phonenumbers.Phonenumber.PhoneNumber > parsePhoneNumber ( @ android.support.annotation.NonNull java.lang.String numberToParse , @ android.support.annotation.NonNull java.lang.String userHomeCountryCode ) { try { return java.util.Optional.of ( phoneNumberUtil.parseAndKeepRawInput ( numberToParse , userHomeCountryCode ) ) ; } catch ( com.google.i18n.phonenumbers.NumberParseException e ) { com.android.dialer.logging.Logger.get ( context ) . logImpression ( DialerImpression.Type.ASSISTED_DIALING_CONSTRAINT_PARSING_FAILURE ) ; com.android.dialer.common.LogUtil.i ( "Constraints.parsePhoneNumber" , "could not parse the number" ) ; return java.util.Optional.empty ( ) ; } }
Source:
java.io.RandomAccessFile openInputFile ( java.lang.String fileName ) throws java.io.IOException { java.io.RandomAccessFile raf ; raf = openInputFileAsZip ( fileName ) ; if ( raf == null ) { java.io.File inputFile = new java.io.File ( fileName ) ; raf = new java.io.RandomAccessFile ( inputFile , "r" ) ; } return raf ; }

Target:
java.util.List < java.io.RandomAccessFile > openInputFiles ( java.lang.String fileName ) throws java.io.IOException { java.util.List < java.io.RandomAccessFile > rafs = openInputFileAsZip ( fileName ) ; if ( rafs == null ) { java.io.File inputFile = new java.io.File ( fileName ) ; java.io.RandomAccessFile raf = new java.io.RandomAccessFile ( inputFile , "r" ) ; rafs = java.util.Collections.singletonList ( raf ) ; } return rafs ; }
Source:
public void test2_0SetEnabledGetEnabled ( ) throws java.lang.Exception { if ( ! ( isLoudnessEnhancerAvailable ( ) ) ) { return ; } getLoudnessEnhancer ( getSessionId ( ) ) ; try { mLE.setEnabled ( true ) ; assertTrue ( "invalid state from getEnabled" , mLE.getEnabled ( ) ) ; mLE.setEnabled ( false ) ; assertFalse ( "invalid state to getEnabled" , mLE.getEnabled ( ) ) ; } catch ( java.lang.IllegalStateException e ) { fail ( "setEnabled() in wrong state" ) ; } finally { releaseLoudnessEnhancer ( ) ; } }

Target:
public void test2_0SetEnabledGetEnabled ( ) throws java.lang.Exception { if ( ! ( hasAudioOutput ( ) ) ) { return ; } getLoudnessEnhancer ( getSessionId ( ) ) ; try { mLE.setEnabled ( true ) ; assertTrue ( "invalid state from getEnabled" , mLE.getEnabled ( ) ) ; mLE.setEnabled ( false ) ; assertFalse ( "invalid state to getEnabled" , mLE.getEnabled ( ) ) ; } catch ( java.lang.IllegalStateException e ) { fail ( "setEnabled() in wrong state" ) ; } finally { releaseLoudnessEnhancer ( ) ; } }
Source:
public boolean containsKey ( java.lang.Object key ) { int hash = java.util.concurrent.ConcurrentHashMap.hash ( key.hashCode ( ) ) ; return segmentFor ( hash ) . containsKey ( key , hash ) ; }

Target:
private java.util.concurrent.ConcurrentHashMap.Segment < K , V > segmentForHash ( int h ) { long u = ( ( ( h > > > ( segmentShift ) ) & ( segmentMask ) ) << ( java.util.concurrent.ConcurrentHashMap.SSHIFT ) ) + ( java.util.concurrent.ConcurrentHashMap.SBASE ) ; return ( ( java.util.concurrent.ConcurrentHashMap.Segment < K , V > ) ( java.util.concurrent.ConcurrentHashMap.UNSAFE.getObjectVolatile ( segments , u ) ) ) ; }
Source:
public void onCallStateChanged ( com.android.server.telecom.Call call , int oldState , int newState ) { if ( shouldIgnoreCallForAudio ( call ) ) { return ; } com.android.server.telecom.Log.d ( LOG_TAG , "Call state changed for TC@%s: %s -> %s" , call.getId ( ) , com.android.server.telecom.CallState.toString ( oldState ) , com.android.server.telecom.CallState.toString ( newState ) ) ; for ( int i = 0 ; i < ( mCallStateToCalls.size ( ) ) ; i ++ ) { mCallStateToCalls.valueAt ( i ) . remove ( call ) ; } if ( ( mCallStateToCalls.get ( newState ) ) != null ) { mCallStateToCalls.get ( newState ) . add ( call ) ; } updateForegroundCall ( ) ; if ( newState == ( CallState.DISCONNECTED ) ) { playToneForDisconnectedCall ( call ) ; } onCallLeavingState ( call , oldState ) ; onCallEnteringState ( call , newState ) ; }

Target:
private boolean shouldPlayDisconnectTone ( int oldState , int newState ) { if ( newState != ( CallState.DISCONNECTED ) ) { return false ; } return ( ( oldState == ( CallState.ACTIVE ) ) || ( oldState == ( CallState.DIALING ) ) ) || ( oldState == ( CallState.ON_HOLD ) ) ; }
Source:
private void doBadPublishConfiguration ( java.lang.String serviceName , byte [ ] ssi , byte [ ] matchFilter ) throws java.lang.IllegalArgumentException { android.net.wifi.aware.PublishConfig publishConfig = new android.net.wifi.aware.PublishConfig.Builder ( ) . setServiceName ( serviceName ) . setServiceSpecificInfo ( ssi ) . setMatchFilter ( matchFilter ) . build ( ) ; int clientId = doConnect ( ) ; android.net.wifi.aware.IWifiAwareDiscoverySessionCallback mockCallback = org.mockito.Mockito.mock ( android.net.wifi.aware.IWifiAwareDiscoverySessionCallback.class ) ; mDut.publish ( clientId , publishConfig , mockCallback ) ; org.mockito.Mockito.verify ( mAwareStateManagerMock ) . publish ( clientId , publishConfig , mockCallback ) ; }

Target:
private void doBadPublishConfiguration ( java.lang.String serviceName , byte [ ] ssi , byte [ ] matchFilter ) throws java.lang.IllegalArgumentException { android.net.wifi.aware.PublishConfig publishConfig = new android.net.wifi.aware.PublishConfig ( serviceName.getBytes ( ) , ssi , matchFilter , android.net.wifi.aware.PublishConfig.PUBLISH_TYPE_UNSOLICITED , 0 , 0 , true ) ; int clientId = doConnect ( ) ; android.net.wifi.aware.IWifiAwareDiscoverySessionCallback mockCallback = org.mockito.Mockito.mock ( android.net.wifi.aware.IWifiAwareDiscoverySessionCallback.class ) ; mDut.publish ( clientId , publishConfig , mockCallback ) ; org.mockito.Mockito.verify ( mAwareStateManagerMock ) . publish ( clientId , publishConfig , mockCallback ) ; }
Source:
public java.util.List < java.io.File > getRenderscriptImports ( ) { java.util.List < java.io.File > list = com.google.common.collect.Lists.newArrayList ( ) ; for ( com.android.builder.dependency.AndroidDependency lib : mFlatLibraries ) { java.io.File rsLib = lib.getRenderscriptFolder ( ) ; if ( rsLib.isDirectory ( ) ) { list.add ( rsLib ) ; } } return list ; }

Target:
public java.util.List < java.io.File > getRenderscriptImports ( ) { java.util.List < java.io.File > list = com.google.common.collect.Lists.newArrayList ( ) ; for ( com.android.builder.dependency.LibraryDependency lib : mFlatLibraries ) { java.io.File rsLib = lib.getRenderscriptFolder ( ) ; if ( rsLib.isDirectory ( ) ) { list.add ( rsLib ) ; } } return list ; }
Source:
public void testGetValues009_ThisObject ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value thisValue = getStaticFieldValue ( classID , "THIS_OBJECT" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointObject" , StackTrace002Debuggee.OBJECT_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointObject" ) ; methodInfo.addVariable ( "this" , thisValue ) ; runStackFrameTest ( tester ) ; }

Target:
public void testGetValues006_Long ( ) { org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.LONG_METHOD_SIGNAL ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value oldValue = new org.apache.harmony.jpda.tests.framework.jdwp.Value ( StackTrace002Debuggee.LONG_PARAM_VALUE ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointLong" ) ; suspensionMethodInfo.addVariable ( "param" , oldValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointLong" ) ; methodInfo.addVariable ( "param" , oldValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
private android.telephony.ims.feature.MMTelFeature resolveMMTelFeature ( int slotId , int featureType ) { android.util.SparseArray < android.telephony.ims.feature.ImsFeature > features = getImsFeatureMap ( slotId ) ; android.telephony.ims.feature.MMTelFeature feature = null ; if ( features != null ) { feature = resolveImsFeature ( features , featureType , android.telephony.ims.feature.MMTelFeature.class ) ; } return feature ; }

Target:
private void addImsFeature ( int slotId , int featureType , android.telephony.ims.feature.ImsFeature f ) { synchronized ( mFeaturesBySlot ) { android.util.SparseArray < android.telephony.ims.feature.ImsFeature > features = mFeaturesBySlot.get ( slotId ) ; if ( features == null ) { features = new android.util.SparseArray ( ) ; mFeaturesBySlot.put ( slotId , features ) ; } features.put ( featureType , f ) ; } }
Source:
private void killApplication ( java.lang.String pkgName , int uid ) { android.app.IActivityManager am = android.app.ActivityManagerNative.getDefault ( ) ; if ( am != null ) { try { am.killApplicationWithUid ( pkgName , uid ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
private void killApplication ( java.lang.String pkgName , int appId , java.lang.String reason ) { android.app.IActivityManager am = android.app.ActivityManagerNative.getDefault ( ) ; if ( am != null ) { try { am.killApplicationWithAppId ( pkgName , appId , reason ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
public com.android.incallui.videotech.VideoTech getVideoTech ( ) { if ( ( savedTech ) == ( emptyVideoTech ) ) { for ( com.android.incallui.videotech.VideoTech tech : videoTechs ) { if ( tech.isAvailable ( context ) ) { savedTech = tech ; savedTech.becomePrimary ( ) ; break ; } } } else if ( ( ( savedTech ) instanceof com.android.incallui.videotech.duo.DuoVideoTech ) && ( rcsVideoShare.isAvailable ( context ) ) ) { savedTech = rcsVideoShare ; rcsVideoShare.becomePrimary ( ) ; } return savedTech ; }

Target:
public com.android.incallui.videotech.VideoTech getVideoTech ( android.telecom.PhoneAccountHandle phoneAccountHandle ) { if ( ( savedTech ) == ( emptyVideoTech ) ) { for ( com.android.incallui.videotech.VideoTech tech : videoTechs ) { if ( tech.isAvailable ( context , phoneAccountHandle ) ) { savedTech = tech ; savedTech.becomePrimary ( ) ; break ; } } } else if ( ( ( savedTech ) instanceof com.android.incallui.videotech.duo.DuoVideoTech ) && ( rcsVideoShare.isAvailable ( context , phoneAccountHandle ) ) ) { savedTech = rcsVideoShare ; rcsVideoShare.becomePrimary ( ) ; } return savedTech ; }
Source:
private synchronized org.conscrypt.PinListEntry lookup ( java.lang.String hostname ) throws org.conscrypt.PinManagerException { if ( ! ( initialized ) ) { return null ; } if ( cacheIsNotValid ( ) ) { rebuild ( ) ; } java.lang.String cn = hostnameCache.get ( hostname ) ; if ( cn != null ) { return entries.get ( cn ) ; } cn = getMatchingCN ( hostname ) ; if ( cn != null ) { hostnameCache.put ( hostname , cn ) ; return entries.get ( cn ) ; } return null ; }

Target:
private synchronized org.conscrypt.PinListEntry lookup ( java.lang.String hostname ) throws org.conscrypt.PinManagerException { if ( ! ( initialized ) ) { return null ; } if ( ! ( isCacheValid ( ) ) ) { rebuild ( ) ; } java.lang.String cn = hostnameCache.get ( hostname ) ; if ( cn != null ) { return entries.get ( cn ) ; } cn = getMatchingCN ( hostname ) ; if ( cn != null ) { hostnameCache.put ( hostname , cn ) ; return entries.get ( cn ) ; } return null ; }
Source:
public void test_parse_h_m_z ( ) throws java.lang.Exception { java.util.GregorianCalendar cal = new java.util.GregorianCalendar ( 1970 , java.util.Calendar.JANUARY , 1 ) ; cal.setTimeZone ( java.util.TimeZone.getTimeZone ( "EST" ) ) ; cal.set ( 1970 , java.util.Calendar.JANUARY , 1 , 4 , 30 ) ; assertParse ( "h:m z" , "4:30 GMT-5 " , cal.getTime ( ) , 0 , 10 ) ; }

Target:
public void test_parse_h_m_z ( ) throws java.lang.Exception { java.util.GregorianCalendar cal = new java.util.GregorianCalendar ( 1970 , java.util.Calendar.JANUARY , 1 ) ; cal.setTimeZone ( java.util.TimeZone.getTimeZone ( "EST" ) ) ; cal.set ( 1970 , java.util.Calendar.JANUARY , 1 , 4 , 30 ) ; assertParse ( "h:m z" , "4:30 GMT-5:00" , cal.getTime ( ) , 0 , 13 ) ; }
Source:
public void registerForCarrierAction ( int action , android.os.Handler h , int what , java.lang.Object obj , boolean notifyNow ) { java.lang.Object carrierAction = getCarrierAction ( action ) ; if ( carrierAction == null ) { throw new java.lang.IllegalArgumentException ( ( "invalid carrier action: " + action ) ) ; } android.os.RegistrantList list = getRegistrantsFromAction ( action ) ; android.os.Registrant r = new android.os.Registrant ( h , what , obj ) ; list.add ( r ) ; if ( notifyNow ) { r.notifyRegistrant ( new android.os.AsyncResult ( null , carrierAction , null ) ) ; } }

Target:
private android.os.RegistrantList getRegistrantsFromAction ( int action ) { switch ( action ) { case com.android.internal.telephony.CarrierActionAgent.CARRIER_ACTION_SET_METERED_APNS_ENABLED : return mMeteredApnEnableRegistrants ; case com.android.internal.telephony.CarrierActionAgent.CARRIER_ACTION_SET_RADIO_ENABLED : return mRadioEnableRegistrants ; case com.android.internal.telephony.CarrierActionAgent.CARRIER_ACTION_REPORT_DEFAULT_NETWORK_STATUS : return mDefaultNetworkReportRegistrants ; default : loge ( ( "Unsupported action: " + action ) ) ; return null ; } }
Source:
private void answerIncomingCall ( int videoState ) { com.android.incallui.call.CallList callList = com.android.incallui.InCallPresenter.getInstance ( ) . getCallList ( ) ; if ( callList == null ) { com.android.incallui.StatusBarNotifier.clearAllCallNotifications ( ) ; com.android.dialer.common.LogUtil.e ( "NotificationBroadcastReceiver.answerIncomingCall" , "call list is empty" ) ; } else { com.android.incallui.call.DialerCall call = callList.getIncomingCall ( ) ; if ( call != null ) { call.answer ( videoState ) ; com.android.incallui.InCallPresenter.getInstance ( ) . showInCall ( false , false ) ; } } }

Target:
public void onSuccess ( java.lang.Void result ) { answerIncomingCallCallback ( call , videoState ) ; }
Source:
public int onStartCommand ( android.content.Intent intent , int flags , int startId ) { if ( ( mStartId ) != 0 ) { return START_STICKY ; } mStartId = startId ; if ( intent == null ) { if ( com.android.nfc.handover.PeripheralHandoverService.DBG ) android.util.Log.e ( com.android.nfc.handover.PeripheralHandoverService.TAG , "Intent is null, can't do peripheral handover." ) ; stopSelf ( startId ) ; return START_NOT_STICKY ; } if ( doPeripheralHandover ( intent.getExtras ( ) ) ) { return START_STICKY ; } else { stopSelf ( startId ) ; return START_NOT_STICKY ; } }

Target:
public int onStartCommand ( android.content.Intent intent , int flags , int startId ) { synchronized ( com.android.nfc.handover.PeripheralHandoverService.sLock ) { if ( ( mStartId ) != 0 ) { mStartId = startId ; return START_STICKY ; } mStartId = startId ; } if ( intent == null ) { if ( com.android.nfc.handover.PeripheralHandoverService.DBG ) android.util.Log.e ( com.android.nfc.handover.PeripheralHandoverService.TAG , "Intent is null, can't do peripheral handover." ) ; stopSelf ( startId ) ; return START_NOT_STICKY ; } if ( doPeripheralHandover ( intent.getExtras ( ) ) ) { return START_STICKY ; } else { stopSelf ( startId ) ; return START_NOT_STICKY ; } }
Source:
public java.nio.LongBuffer put ( java.nio.LongBuffer src ) { if ( src == ( this ) ) { throw new java.lang.IllegalArgumentException ( "src == this" ) ; } if ( ( src.remaining ( ) ) > ( remaining ( ) ) ) { throw new java.nio.BufferOverflowException ( ) ; } long [ ] contents = new long [ src.remaining ( ) ] ; src.get ( contents ) ; put ( contents ) ; return this ; }

Target:
public java.nio.LongBuffer put ( java.nio.LongBuffer src ) { if ( isReadOnly ( ) ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( src == ( this ) ) { throw new java.lang.IllegalArgumentException ( "src == this" ) ; } if ( ( src.remaining ( ) ) > ( remaining ( ) ) ) { throw new java.nio.BufferOverflowException ( ) ; } long [ ] contents = new long [ src.remaining ( ) ] ; src.get ( contents ) ; put ( contents ) ; return this ; }
Source:
public void nvReadItem ( int itemID , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_NV_READ_ITEM , response ) ; rr.mParcel.writeInt ( itemID ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + ' ' ) + itemID ) ) ; send ( rr ) ; }

Target:
public void nvReadItem ( int itemID , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_NV_READ_ITEM , response , mRILDefaultWorkSource ) ; rr.mParcel.writeInt ( itemID ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + ' ' ) + itemID ) ) ; send ( rr ) ; }
Source:
protected void fillFileTypes ( ) { for ( com.android.jack.library.FileType ft : com.android.jack.library.FileType.values ( ) ) { try { java.lang.String propertyName = ft.getPropertyPrefix ( ) ; if ( ( containsProperty ( propertyName ) ) && ( java.lang.Boolean.parseBoolean ( getProperty ( propertyName ) ) ) ) { fileTypes.add ( ft ) ; } } catch ( com.android.jack.library.LibraryFormatException e ) { throw new java.lang.AssertionError ( ) ; } } }

Target:
protected void fillFileTypes ( ) { for ( com.android.jack.library.FileType ft : com.android.jack.library.FileType.values ( ) ) { try { java.lang.String propertyName = ft.buildPropertyName ( null ) ; if ( ( containsProperty ( propertyName ) ) && ( java.lang.Boolean.parseBoolean ( getProperty ( propertyName ) ) ) ) { fileTypes.add ( ft ) ; } } catch ( com.android.jack.library.LibraryFormatException e ) { throw new java.lang.AssertionError ( ) ; } } }
Source:
private void handleEcmTimer ( int action ) { phone.handleTimerInEmergencyCallbackMode ( action ) ; switch ( action ) { case CDMAPhone.CANCEL_ECM_TIMER : mIsEcmTimerCanceled = true ; break ; case CDMAPhone.RESTART_ECM_TIMER : mIsEcmTimerCanceled = false ; break ; default : android.util.Log.e ( com.android.internal.telephony.cdma.CdmaCallTracker.LOG_TAG , ( "handleEcmTimer, unsupported action " + action ) ) ; } }

Target:
private void handleEcmTimer ( int action ) { phone.handleTimerInEmergencyCallbackMode ( action ) ; switch ( action ) { case CDMAPhone.CANCEL_ECM_TIMER : mIsEcmTimerCanceled = true ; break ; case CDMAPhone.RESTART_ECM_TIMER : mIsEcmTimerCanceled = false ; break ; default : android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CdmaCallTracker.LOG_TAG , ( "handleEcmTimer, unsupported action " + action ) ) ; } }
Source:
public void copyFromUnchecked ( byte [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFromUnchecked" ) ; 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 ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFromUnchecked ( byte [ ] d ) { copyFromUnchecked ( d , Element.DataType.SIGNED_8 , d.length ) ; }
Source:
public void test_with_adjustment ( ) { final java.time.OffsetDateTime sample = java.time.OffsetDateTime.of ( java.time.LocalDate.of ( 2012 , 3 , 4 ) , java.time.LocalTime.of ( 23 , 5 ) , tck.java.time.TCKOffsetDateTime.OFFSET_PONE ) ; java.time.temporal.TemporalAdjuster adjuster = new java.time.temporal.TemporalAdjuster ( ) { @ java.lang.Override public java.time.temporal.Temporal adjustInto ( java.time.temporal.Temporal dateTime ) { return sample ; } } ; org.testng.Assert.assertEquals ( TEST_2008_6_30_11_30_59_000000500.with ( adjuster ) , sample ) ; }

Target:
public void test_with_adjustment ( ) { final java.time.OffsetDateTime sample = java.time.OffsetDateTime.of ( java.time.LocalDate.of ( 2012 , 3 , 4 ) , java.time.LocalTime.of ( 23 , 5 ) , tck.java.time.TCKOffsetDateTime.OFFSET_PONE ) ; java.time.temporal.TemporalAdjuster adjuster = new java.time.temporal.TemporalAdjuster ( ) { @ java.lang.Override public java.time.temporal.Temporal adjustInto ( java.time.temporal.Temporal dateTime ) { return sample ; } } ; org.testng.Assert.assertEquals ( tck.java.time.TCKOffsetDateTime.TEST_2008_6_30_11_30_59_000000500.with ( adjuster ) , sample ) ; }
Source:
public void testDisableWifiFromSoftApModeState ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( null ) ; mWifiStateMachinePrime.enterSoftAPMode ( ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; mWifiStateMachinePrime.disableWifi ( ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "WifiDisabled" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; }

Target:
public void testValidConfigIsSavedOnFailureToStart ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( null ) ; when ( mWifiInjector.getWifiApConfigStore ( ) ) . thenReturn ( mWifiApConfigStore ) ; android.net.wifi.WifiConfiguration config = new android.net.wifi.WifiConfiguration ( ) ; config.SSID = "ThisIsAConfig" ; mWifiStateMachinePrime.enterSoftAPMode ( config ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachinePrimeTest.SOFT_AP_MODE_STATE_STRING , mWifiStateMachinePrime.getCurrentMode ( ) ) ; verify ( mWifiApConfigStore ) . setApConfiguration ( eq ( config ) ) ; }
Source:
private static boolean isNodeOperationPresent ( com.android.manifmerger.XmlElement xmlElement , com.android.manifmerger.ActionRecorder recorder , com.android.manifmerger.ActionRecorder.ActionType action ) { com.android.manifmerger.ActionRecorder.DecisionTreeRecord record = recorder.getAllRecords ( ) . get ( xmlElement.getId ( ) ) ; for ( com.android.manifmerger.ActionRecorder.NodeRecord nodeRecord : record.getNodeRecords ( ) ) { if ( ( nodeRecord.getActionType ( ) ) == action ) { return true ; } } return false ; }

Target:
private static boolean isNodeOperationPresent ( com.android.manifmerger.XmlElement xmlElement , com.android.manifmerger.Actions actions , com.android.manifmerger.Actions.ActionType action ) { for ( com.android.manifmerger.Actions.NodeRecord nodeRecord : actions.getNodeRecords ( xmlElement.getId ( ) ) ) { if ( ( nodeRecord.getActionType ( ) ) == action ) { return true ; } } return false ; }
Source:
private boolean isNetworkInConfigStoreData ( android.net.wifi.WifiConfiguration configuration ) { com.android.server.wifi.WifiConfigStoreData storeData = captureWriteStoreData ( ) ; if ( storeData == null ) { return false ; } return isNetworkInConfigStoreData ( configuration , storeData ) ; }

Target:
private boolean isNetworkInConfigStoreData ( android.net.wifi.WifiConfiguration configuration ) { android.util.Pair < java.util.List < android.net.wifi.WifiConfiguration > , java.util.List < android.net.wifi.WifiConfiguration > > networkListStoreData = captureWriteNetworksListStoreData ( ) ; if ( networkListStoreData == null ) { return false ; } java.util.List < android.net.wifi.WifiConfiguration > networkList = new java.util.ArrayList < > ( ) ; networkList.addAll ( networkListStoreData.first ) ; networkList.addAll ( networkListStoreData.second ) ; return isNetworkInConfigStoreData ( configuration , networkList ) ; }
Source:
private static java.util.List < com.android.builder.resources.Resource > getParsedResources ( ) throws java.io.IOException { if ( ( com.android.builder.resources.ValueResourceParserTest.sResources ) == null ) { java.io.File root = getRoot ( "baseResourceSet" ) ; java.io.File values = new java.io.File ( root , "values" ) ; java.io.File valuesXml = new java.io.File ( values , "values.xml" ) ; com.android.builder.resources.ValueResourceParser parser = new com.android.builder.resources.ValueResourceParser ( valuesXml ) ; com.android.builder.resources.ValueResourceParserTest.sResources = parser.parseFile ( ) ; new com.android.builder.resources.ResourceFile ( valuesXml , com.android.builder.resources.ValueResourceParserTest.sResources , "" ) ; } return com.android.builder.resources.ValueResourceParserTest.sResources ; }

Target:
private static java.util.List < com.android.builder.resources.Resource > getParsedResources ( ) throws java.io.IOException { if ( ( com.android.builder.resources.ValueResourceParserTest.sResources ) == null ) { java.io.File root = com.android.builder.TestUtils.getRoot ( "baseResourceSet" ) ; java.io.File values = new java.io.File ( root , "values" ) ; java.io.File valuesXml = new java.io.File ( values , "values.xml" ) ; com.android.builder.resources.ValueResourceParser parser = new com.android.builder.resources.ValueResourceParser ( valuesXml ) ; com.android.builder.resources.ValueResourceParserTest.sResources = parser.parseFile ( ) ; new com.android.builder.resources.ResourceFile ( valuesXml , com.android.builder.resources.ValueResourceParserTest.sResources , "" ) ; } return com.android.builder.resources.ValueResourceParserTest.sResources ; }
Source:
public final void dumpInstanceCounts ( ) { for ( java.lang.Object value : mClassesById.getValues ( ) ) { com.android.tools.perflib.heap.ClassObj theClass = ( ( com.android.tools.perflib.heap.ClassObj ) ( value ) ) ; int count = theClass.mInstances.size ( ) ; if ( count > 0 ) { java.lang.System.out.println ( ( ( theClass + ": " ) + count ) ) ; } } }

Target:
public final void dumpSizes ( ) { for ( java.lang.Object value : mClassesById.getValues ( ) ) { com.android.tools.perflib.heap.ClassObj theClass = ( ( com.android.tools.perflib.heap.ClassObj ) ( value ) ) ; int size = 0 ; for ( com.android.tools.perflib.heap.Instance instance : theClass.mInstances.get ( getId ( ) ) ) { size += instance.getCompositeSize ( ) ; } if ( size > 0 ) { java.lang.System.out.println ( ( ( ( ( theClass + ": base " ) + ( theClass.getSize ( ) ) ) + ", composite " ) + size ) ) ; } } }
Source:
private static final java.util.Map < Main.Operation , java.lang.Double > createAllocFrequencyMap ( ) { java.util.Map < Main.Operation , java.lang.Double > frequencyMap = new java.util.HashMap < Main.Operation , java.lang.Double > ( ) ; frequencyMap.put ( new Main.Sleep ( ) , 0.2 ) ; frequencyMap.put ( new Main.Alloc ( ) , 0.65 ) ; frequencyMap.put ( new Main.LargeAlloc ( ) , 0.15 ) ; return frequencyMap ; }

Target:
private static final java.util.Map < Main.Operation , java.lang.Double > createAllocFrequencyMap ( ) { java.util.Map < Main.Operation , java.lang.Double > frequencyMap = new java.util.HashMap < Main.Operation , java.lang.Double > ( ) ; frequencyMap.put ( new Main.Sleep ( ) , 0.2 ) ; frequencyMap.put ( new Main.Alloc ( ) , 0.575 ) ; frequencyMap.put ( new Main.LargeAlloc ( ) , 0.15 ) ; frequencyMap.put ( new Main.NonMovingAlloc ( ) , 0.075 ) ; return frequencyMap ; }
Source:
public java.lang.String getDefaultSkin ( ) { if ( ( mSkins.length ) == 1 ) { return mSkins [ 0 ] ; } java.lang.String skinName = mProperties.get ( SdkConstants.PROP_SDK_DEFAULT_SKIN ) ; if ( skinName != null ) { return skinName ; } if ( ( mVersion.getApiLevel ( ) ) >= 4 ) { return "WVGA800" ; } return "HVGA" ; }

Target:
public java.io.File getDefaultSkin ( ) { if ( ( mSkins.length ) == 1 ) { return mSkins [ 0 ] ; } java.lang.String skinName = mProperties.get ( SdkConstants.PROP_SDK_DEFAULT_SKIN ) ; if ( skinName == null ) { if ( ( mVersion.getApiLevel ( ) ) >= 4 ) { skinName = "WVGA800" ; } else { skinName = "HVGA" ; } } return new java.io.File ( getFile ( IAndroidTarget.SKINS ) , skinName ) ; }
Source:
int performDexOpt ( android.content.pm.PackageParser.Package pkg , java.lang.String [ ] sharedLibraries , java.lang.String [ ] instructionSets , com.android.server.pm.CompilerStats.PackageStats packageStats , boolean isUsedByOtherApps , com.android.server.pm.dex.DexoptOptions options ) { if ( ! ( com.android.server.pm.PackageDexOptimizer.canOptimizePackage ( pkg ) ) ) { return com.android.server.pm.PackageDexOptimizer.DEX_OPT_SKIPPED ; } synchronized ( mInstallLock ) { final long acquireTime = acquireWakeLockLI ( pkg.applicationInfo.uid ) ; try { return performDexOptLI ( pkg , sharedLibraries , instructionSets , packageStats , isUsedByOtherApps , options ) ; } finally { releaseWakeLockLI ( acquireTime ) ; } } }

Target:
int performDexOpt ( android.content.pm.PackageParser.Package pkg , java.lang.String [ ] sharedLibraries , java.lang.String [ ] instructionSets , com.android.server.pm.CompilerStats.PackageStats packageStats , com.android.server.pm.dex.PackageDexUsage.PackageUseInfo packageUseInfo , com.android.server.pm.dex.DexoptOptions options ) { if ( ! ( com.android.server.pm.PackageDexOptimizer.canOptimizePackage ( pkg ) ) ) { return com.android.server.pm.PackageDexOptimizer.DEX_OPT_SKIPPED ; } synchronized ( mInstallLock ) { final long acquireTime = acquireWakeLockLI ( pkg.applicationInfo.uid ) ; try { return performDexOptLI ( pkg , sharedLibraries , instructionSets , packageStats , packageUseInfo , options ) ; } finally { releaseWakeLockLI ( acquireTime ) ; } } }
Source:
protected void engineSetParameter ( java.lang.String arg0 , java.lang.Object arg1 ) throws java.security.InvalidParameterException { spiImpl.engineSetParameter ( arg0 , arg1 ) ; }

Target:
private java.security.SignatureSpi getSpi ( java.security.Key key ) { synchronized ( initLock ) { if ( ( spiImpl ) != null ) { return spiImpl ; } final org.apache.harmony.security.fortress.Engine.SpiAndProvider sap = java.security.Signature.tryAlgorithm ( key , provider , algorithm ) ; if ( sap == null ) { throw new java.security.ProviderException ( ( "No provider for " + ( getAlgorithm ( ) ) ) ) ; } spiImpl = ( ( java.security.SignatureSpi ) ( sap.spi ) ) ; provider = sap.provider ; return spiImpl ; } }
Source:
private void onClusterChangeLocal ( int flag , byte [ ] clusterId ) { if ( com.android.server.wifi.nan.WifiNanStateManager.VDBG ) { android.util.Log.v ( com.android.server.wifi.nan.WifiNanStateManager.TAG , ( ( ( "onClusterChange: flag=" + flag ) + ", clusterId=" ) + ( java.lang.String.valueOf ( libcore.util.HexEncoding.encode ( clusterId ) ) ) ) ) ; } for ( int i = 0 ; i < ( mClients.size ( ) ) ; ++ i ) { com.android.server.wifi.nan.WifiNanClientState client = mClients.valueAt ( i ) ; client.onClusterChange ( flag , clusterId , mCurrentDiscoveryInterfaceMac ) ; } }

Target:
private void onClusterChangeLocal ( int flag , byte [ ] clusterId ) { if ( com.android.server.wifi.aware.WifiAwareStateManager.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareStateManager.TAG , ( ( ( "onClusterChange: flag=" + flag ) + ", clusterId=" ) + ( java.lang.String.valueOf ( libcore.util.HexEncoding.encode ( clusterId ) ) ) ) ) ; } for ( int i = 0 ; i < ( mClients.size ( ) ) ; ++ i ) { com.android.server.wifi.aware.WifiAwareClientState client = mClients.valueAt ( i ) ; client.onClusterChange ( flag , clusterId , mCurrentDiscoveryInterfaceMac ) ; } }
Source:
public void testStageUninstall_oldDirsAlreadyExists ( ) throws java.lang.Exception { com.android.timezone.distro.TimeZoneDistro installedDistro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; simulateInstalledDistro ( installedDistro ) ; java.io.File oldStagedDataDir = installer.getOldStagedDataDir ( ) ; assertTrue ( oldStagedDataDir.mkdir ( ) ) ; java.io.File workingDir = installer.getWorkingDir ( ) ; assertTrue ( workingDir.mkdir ( ) ) ; assertTrue ( installer.stageUninstall ( ) ) ; assertDistroUninstallStaged ( ) ; assertFalse ( workingDir.exists ( ) ) ; assertFalse ( oldStagedDataDir.exists ( ) ) ; assertInstalledDistro ( installedDistro ) ; }

Target:
public void testStageUninstall_oldDirsAlreadyExists ( ) throws java.lang.Exception { byte [ ] installedDistroBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBytes ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; simulateInstalledDistro ( installedDistroBytes ) ; java.io.File oldStagedDataDir = installer.getOldStagedDataDir ( ) ; assertTrue ( oldStagedDataDir.mkdir ( ) ) ; java.io.File workingDir = installer.getWorkingDir ( ) ; assertTrue ( workingDir.mkdir ( ) ) ; assertTrue ( installer.stageUninstall ( ) ) ; assertDistroUninstallStaged ( ) ; assertFalse ( workingDir.exists ( ) ) ; assertFalse ( oldStagedDataDir.exists ( ) ) ; assertInstalledDistro ( installedDistroBytes ) ; }
Source:
void addCharacteristic ( int serverIf , java.util.UUID charUuid , int properties , int permissions ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "addCharacteristic() - uuid=" + charUuid ) ) ; getActiveDeclaration ( ) . addCharacteristic ( charUuid , properties , permissions ) ; }

Target:
void removeService ( int serverIf , int handle ) { enforceCallingOrSelfPermission ( com.android.bluetooth.gatt.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "removeService() - handle=" + handle ) ) ; gattServerDeleteServiceNative ( serverIf , handle ) ; }
Source:
public final char getChar ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.CHAR ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } char result = ( ( char ) ( this . block.peekShort ( ( ( offset ) + ( position ) ) , order ) ) ) ; position = newPosition ; return result ; }

Target:
public java.nio.ByteBuffer putChar ( char value ) { 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:
public void getCDMASubscription ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_SUBSCRIPTION , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void getCdmaBroadcastConfig ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_GET_BROADCAST_CONFIG , response , mRILDefaultWorkSource ) ; send ( rr ) ; }
Source:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) return false ; com.google.gct.testing.GoogleCloudTestingConfigurationImpl that = ( ( com.google.gct.testing.GoogleCloudTestingConfigurationImpl ) ( o ) ) ; return ( ( getHash ( ) ) == ( that.getHash ( ) ) ) && ( ( id ) == ( that.id ) ) ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ( this ) == o ) return true ; if ( ( o == null ) || ( ( getClass ( ) ) != ( o.getClass ( ) ) ) ) return false ; com.google.gct.testing.CloudTestConfigurationImpl that = ( ( com.google.gct.testing.CloudTestConfigurationImpl ) ( o ) ) ; return ( ( getHash ( ) ) == ( that.getHash ( ) ) ) && ( ( id ) == ( that.id ) ) ; }