auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void run ( ) { synchronized ( this ) { mViewport = mModel.getViewport ( ) ; mZoom = mModel.getZoom ( ) ; setTransform ( ) ; } }

Target:
public void run ( ) { synchronized ( this ) { mTree = mModel.getTree ( ) ; mSelectedNode = mModel.getSelection ( ) ; if ( ( mTree ) == null ) { mViewport = null ; } else { mViewport = new com.android.hierarchyviewerlib.ui.util.DrawableViewNode.Rectangle ( 0 , ( ( ( mTree.top ) + ( ( com.android.hierarchyviewerlib.ui.util.DrawableViewNode.NODE_HEIGHT ) / 2 ) ) - ( ( getBounds ( ) . height ) / 2 ) ) , getBounds ( ) . width , getBounds ( ) . height ) ; } } }
Source:
public void afterHandshake ( long session , long ssl , long context , java.net.Socket socket , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long ssl , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { byte [ ] negotiated = org.conscrypt.NativeCrypto.SSL_get0_alpn_selected ( ssl ) ; assertEquals ( "spdy/2" , new java.lang.String ( negotiated ) ) ; super . afterHandshake ( session , ssl , c , sock , fd , callback ) ; }
Source:
public void testCanUninstallAllUserCaCerts ( ) throws java.security.cert.CertificateException { assertTrue ( mDevicePolicyManager.installCaCert ( getWho ( ) , FAKE_RSA_1.caCertificate ) ) ; assertTrue ( mDevicePolicyManager.installCaCert ( getWho ( ) , FAKE_DSA_1.caCertificate ) ) ; mDevicePolicyManager.uninstallAllUserCaCerts ( getWho ( ) ) ; assertFalse ( hasCaCertInstalled ( FAKE_RSA_1.caCertificate ) ) ; assertFalse ( hasCaCertInstalled ( FAKE_DSA_1.caCertificate ) ) ; }

Target:
private void assertInstalled ( byte [ ] caBytes ) throws java.security.GeneralSecurityException , java.security.cert.CertificateException { java.security.cert.Certificate caCert = com.android.cts.deviceowner.CaCertManagementTest.readCertificate ( caBytes ) ; assertTrue ( isCaCertInstalledAndTrusted ( caCert ) ) ; }
Source:
private void queryCapabilityConfigurationInternal ( int capability , int radioTech , android.telephony.ims.internal.aidl.IImsCapabilityCallback c ) { boolean enabled = queryCapabilityConfiguration ( capability , radioTech ) ; try { if ( c != null ) { c.onQueryCapabilityConfiguration ( capability , radioTech , enabled ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.internal.feature.MmTelFeature.LOG_TAG , "queryCapabilityConfigurationInternal called on dead binder!" ) ; } }

Target:
private void queryCapabilityConfigurationInternal ( int capability , int radioTech , android.telephony.ims.aidl.IImsCapabilityCallback c ) { boolean enabled = queryCapabilityConfiguration ( capability , radioTech ) ; try { if ( c != null ) { c.onQueryCapabilityConfiguration ( capability , radioTech , enabled ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.ims.feature.MmTelFeature.LOG_TAG , "queryCapabilityConfigurationInternal called on dead binder!" ) ; } }
Source:
public void clearAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , long ceDataInode ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.clearAppData ( uuid , packageName , userId , flags , ceDataInode ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void destroyAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , long ceDataInode ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.destroyAppData ( uuid , packageName , userId , flags , ceDataInode ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0003.io.JayceInternalReaderImpl in ) throws java.io.IOException { captureInstance = in.readBoolean ( ) ; capturedVariableIds = in.readIds ( ) ; method = in.readNode ( com.android.jack.jayce.v0003.nodes.NMethod.class ) ; typeSig = in.readId ( ) ; boundsIds = in.readIds ( ) ; }

Target:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0003.io.JayceInternalReaderImpl in ) throws java.io.IOException { captureInstance = in.readBoolean ( ) ; capturedVariableIds = in.readIds ( ) ; method = in.readNode ( com.android.jack.jayce.v0003.nodes.NMethod.class ) ; typeSig = in.readId ( ) ; boundsIds = in.readIds ( ) ; mthIdToImplement = in.readNode ( com.android.jack.jayce.v0003.nodes.NMethodIdWithReturnType.class ) ; bridges = in.readNodes ( com.android.jack.jayce.v0003.nodes.NMethodIdWithReturnType.class ) ; }
Source:
private static boolean isDrawableFile ( java.lang.String name ) { return ( ( ( com.android.tools.lint.detector.api.LintUtils.endsWith ( name , com.android.SdkConstants.DOT_PNG ) ) || ( com.android.tools.lint.detector.api.LintUtils.endsWith ( name , com.android.SdkConstants.DOT_JPG ) ) ) || ( com.android.tools.lint.detector.api.LintUtils.endsWith ( name , com.android.SdkConstants.DOT_GIF ) ) ) || ( com.android.tools.lint.detector.api.LintUtils.endsWith ( name , com.android.SdkConstants.DOT_XML ) ) ; }

Target:
private static boolean isDrawableFile ( java.lang.String name ) { return ( ( ( ( com.android.tools.lint.detector.api.LintUtils.endsWith ( name , com.android.SdkConstants.DOT_PNG ) ) || ( com.android.tools.lint.detector.api.LintUtils.endsWith ( name , com.android.SdkConstants.DOT_JPG ) ) ) || ( com.android.tools.lint.detector.api.LintUtils.endsWith ( name , com.android.SdkConstants.DOT_GIF ) ) ) || ( com.android.tools.lint.detector.api.LintUtils.endsWith ( name , com.android.SdkConstants.DOT_XML ) ) ) || ( com.android.tools.lint.detector.api.LintUtils.endsWith ( name , com.android.SdkConstants.DOT_JPEG ) ) ; }
Source:
private void init ( java.lang.String pattern ) { this . icuDecimalFormat = new java.text.DecimalFormat ( pattern , symbols.getIcuDecimalFormatSymbols ( ) ) ; maximumIntegerDigits = icuDecimalFormat.getMaximumIntegerDigits ( ) ; minimumIntegerDigits = icuDecimalFormat.getMinimumIntegerDigits ( ) ; maximumFractionDigits = icuDecimalFormat.getMaximumFractionDigits ( ) ; minimumFractionDigits = icuDecimalFormat.getMinimumFractionDigits ( ) ; }

Target:
private void init ( java.lang.String pattern ) { this . icuDecimalFormat = new java.text.DecimalFormat ( pattern , symbols.getIcuDecimalFormatSymbols ( ) ) ; updateFieldsFromIcu ( ) ; }
Source:
public java.util.List < java.io.File > getProvidedJars ( ) { java.util.Set < java.io.File > jars = com.google.common.collect.Sets.newHashSetWithExpectedSize ( mJars.size ( ) ) ; for ( com.android.builder.dependency.JarDependency jar : mJars ) { java.io.File jarFile = jar.getJarFile ( ) ; if ( ( ! ( jar.isPackaged ( ) ) ) && ( jarFile.exists ( ) ) ) { jars.add ( jarFile ) ; } } return com.google.common.collect.Lists.newArrayList ( jars ) ; }

Target:
public java.util.List < java.io.File > getProvidedOnlyJars ( ) { java.util.Set < java.io.File > jars = com.google.common.collect.Sets.newHashSetWithExpectedSize ( mJars.size ( ) ) ; for ( com.android.builder.dependency.JarDependency jar : mJars ) { java.io.File jarFile = jar.getJarFile ( ) ; if ( ( ( jar.isCompiled ( ) ) && ( ! ( jar.isPackaged ( ) ) ) ) && ( jarFile.exists ( ) ) ) { jars.add ( jarFile ) ; } } return com.google.common.collect.Lists.newArrayList ( jars ) ; }
Source:
public final java.nio.LongBuffer asLongBuffer ( ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } int off = this . position ( ) ; int lim = this . limit ( ) ; assert off <= lim ; int rem = ( off <= lim ) ? lim - off : 0 ; int size = rem > > 3 ; return new java.nio.ByteBufferAsLongBuffer ( this , ( - 1 ) , 0 , size , size , off , order ( ) ) ; }

Target:
final void getUnchecked ( int pos , long [ ] dst , int dstOffset , int length ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } libcore.io.Memory.peekLongArray ( ix ( pos ) , dst , dstOffset , length , ( ! ( nativeByteOrder ) ) ) ; }
Source:
public final byte [ ] update ( byte [ ] input ) { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( input == null ) { throw new java.lang.IllegalArgumentException ( "input == null" ) ; } if ( ( input.length ) == 0 ) { return null ; } return spiImpl.engineUpdate ( input , 0 , input.length ) ; }

Target:
public final int doFinal ( java.nio.ByteBuffer input , java.nio.ByteBuffer output ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException , javax.crypto.ShortBufferException { if ( ( ( mode ) != ( javax.crypto.Cipher.ENCRYPT_MODE ) ) && ( ( mode ) != ( javax.crypto.Cipher.DECRYPT_MODE ) ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( input == output ) { throw new java.lang.IllegalArgumentException ( "input == output" ) ; } return getSpi ( ) . engineDoFinal ( input , output ) ; }
Source:
public void done ( ) { synchronized ( mLock ) { if ( mDone ) { return ; } mDone = true ; mDigest = mMessageDigest.digest ( ) ; } }

Target:
private java.security.MessageDigest getMessageDigest ( ) { synchronized ( mLock ) { if ( ( mMessageDigest ) == null ) { try { mMessageDigest = java.security.MessageDigest.getInstance ( mJcaDigestAlgorithm ) ; } catch ( java.security.NoSuchAlgorithmException e ) { throw new java.lang.RuntimeException ( ( ( mJcaDigestAlgorithm ) + " MessageDigest not available" ) , e ) ; } } return mMessageDigest ; } }
Source:
public void checkValidity ( ) { if ( ! ( ( ( ( ( ( parent ) instanceof com.android.jack.ir.ast.JExpression ) || ( ( parent ) instanceof com.android.jack.ir.ast.JNameValuePair ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JAnnotationMethod ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JReturnStatement ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JFieldInitializer ) ) ) { throw new com.android.jack.ir.JNodeInternalError ( this , "Invalid parent" ) ; } }

Target:
public void checkValidity ( ) { if ( ! ( ( ( ( ( ( ( parent ) instanceof com.android.jack.ir.ast.JExpression ) || ( ( parent ) instanceof com.android.jack.ir.ast.JNameValuePair ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JAnnotationMethod ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JReturnStatement ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.cfg.JReturnBlockElement ) ) || ( ( parent ) instanceof com.android.jack.ir.ast.JFieldInitializer ) ) ) { throw new com.android.jack.ir.JNodeInternalError ( this , "Invalid parent" ) ; } }
Source:
public static com.google.gct.testing.GoogleCloudTestingConfiguration getConfigurationById ( int id , org.jetbrains.android.facet.AndroidFacet facet ) { for ( com.google.gct.testing.GoogleCloudTestingConfiguration configuration : com.google.gct.testing.GoogleCloudTestingConfigurationFactory.getCustomConfigurationsFromStorage ( facet ) ) { if ( ( configuration.getId ( ) ) == id ) { return configuration ; } } for ( com.google.gct.testing.GoogleCloudTestingConfiguration configuration : com.google.gct.testing.GoogleCloudTestingConfigurationFactory.getDefaultConfigurationsFromStorage ( facet ) ) { if ( ( configuration.getId ( ) ) == id ) { return configuration ; } } return null ; }

Target:
public static com.google.gct.testing.GoogleCloudTestingConfigurationImpl getConfigurationById ( int id , org.jetbrains.android.facet.AndroidFacet facet ) { for ( com.android.tools.idea.run.GoogleCloudTestingConfiguration configuration : com.google.gct.testing.GoogleCloudTestingUtils.TESTING_CONFIGURATION_FACTORY.getCustomConfigurationsFromStorage ( facet ) ) { if ( ( configuration.getId ( ) ) == id ) { return ( ( com.google.gct.testing.GoogleCloudTestingConfigurationImpl ) ( configuration ) ) ; } } for ( com.android.tools.idea.run.GoogleCloudTestingConfiguration configuration : com.google.gct.testing.GoogleCloudTestingUtils.TESTING_CONFIGURATION_FACTORY.getDefaultConfigurationsFromStorage ( facet ) ) { if ( ( configuration.getId ( ) ) == id ) { return ( ( com.google.gct.testing.GoogleCloudTestingConfigurationImpl ) ( configuration ) ) ; } } return null ; }
Source:
private static java.lang.String readFile ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile file ) { java.io.InputStream contents = null ; try { contents = file.getFile ( ) . getContents ( ) ; return com.android.ide.eclipse.adt.internal.editors.layout.gle2.IncludeFinder.readFile ( new java.io.InputStreamReader ( contents ) ) ; } catch ( com.android.sdklib.io.StreamException e ) { } finally { try { if ( contents != null ) { contents.close ( ) ; } } catch ( java.io.IOException e ) { com.android.ide.eclipse.adt.AdtPlugin.log ( e , "Can't read layout file" ) ; } } return null ; }

Target:
public static java.lang.String getProjectRelativePath ( java.lang.String reference ) { if ( ! ( reference.contains ( com.android.ide.eclipse.adt.AndroidConstants.WS_SEP ) ) ) { reference = ( ( com.android.sdklib.SdkConstants.FD_LAYOUT ) + ( com.android.ide.eclipse.adt.AndroidConstants.WS_SEP ) ) + reference ; } return ( ( ( ( com.android.sdklib.SdkConstants.FD_RESOURCES ) + ( com.android.ide.eclipse.adt.AndroidConstants.WS_SEP ) ) + reference ) + '.' ) + ( com.android.ide.eclipse.adt.AndroidConstants.EXT_XML ) ; }
Source:
public static java.lang.String getGcpUrl ( com.google.gct.login.CredentialedUser user , java.lang.String projectId ) { com.google.api.services.source.Source sourceRepos = new com.google.api.services.source.Source.Builder ( new com.google.api.client.http.javanet.NetHttpTransport ( ) , new com.google.api.client.json.jackson2.JacksonFactory ( ) , user.getCredential ( ) ) . setApplicationName ( "Android Studio" ) . build ( ) ; java.lang.String calculatedUrl = ( "https://source.developers.google.com/p/" + projectId ) + "/" ; try { com.google.api.services.source.model.ListReposResponse response = sourceRepos.repos ( ) . list ( projectId ) . execute ( ) ; if ( ( response != null ) && ( ( response.getRepos ( ) ) != null ) ) { for ( com.google.api.services.source.model.Repo repo : response.getRepos ( ) ) { if ( "default" . equalsIgnoreCase ( repo.getRepoName ( ) ) ) { calculatedUrl = repo.getCloneUrl ( ) ; } } } } catch ( java.lang.Exception e ) { com.google.gct.idea.git.GcpHttpAuthDataProvider.LOG.error ( ( "Exception loading repo url for " + projectId ) , e ) ; } if ( com.google.api.client.repackaged.com.google.common.base.Strings.isNullOrEmpty ( calculatedUrl ) ) { com.google.gct.idea.git.GcpHttpAuthDataProvider.LOG.error ( ( "Exception loading repo url for " + projectId ) ) ; } return calculatedUrl ; }

Target:
public static java.lang.String findGCPRemoteUrl ( @ org.jetbrains.annotations.NotNull git4idea.repo.GitRepository repository ) { com.intellij.openapi.util.Pair < git4idea.repo.GitRemote , java.lang.String > remote = com.google.gct.idea.git.GcpHttpAuthDataProvider.findGCPRemote ( repository ) ; if ( remote == null ) { return null ; } return remote.getSecond ( ) ; }
Source:
public void visitLocalVariableInfo ( proguard.classfile.editor.Clazz clazz , proguard.classfile.editor.Method method , proguard.classfile.editor.CodeAttribute codeAttribute , proguard.classfile.editor.LocalVariableInfo localVariableInfo ) { java.lang.String descriptor = clazz.getString ( localVariableInfo.u2descriptorIndex ) ; java.lang.String newDescriptor = proguard.classfile.editor.ClassReferenceFixer.newDescriptor ( descriptor , localVariableInfo.referencedClass ) ; if ( ! ( descriptor.equals ( newDescriptor ) ) ) { localVariableInfo.u2descriptorIndex = new proguard.classfile.editor.ConstantPoolEditor ( ( ( proguard.classfile.editor.ProgramClass ) ( clazz ) ) ) . addUtf8Constant ( newDescriptor ) ; } }

Target:
public void visitLocalVariableInfo ( proguard.classfile.editor.Clazz clazz , proguard.classfile.editor.Method method , proguard.classfile.editor.CodeAttribute codeAttribute , proguard.classfile.editor.LocalVariableInfo localVariableInfo ) { java.lang.String descriptor = localVariableInfo.getDescriptor ( clazz ) ; java.lang.String newDescriptor = proguard.classfile.editor.ClassReferenceFixer.newDescriptor ( descriptor , localVariableInfo.referencedClass ) ; if ( ! ( descriptor.equals ( newDescriptor ) ) ) { localVariableInfo.u2descriptorIndex = new proguard.classfile.editor.ConstantPoolEditor ( ( ( proguard.classfile.editor.ProgramClass ) ( clazz ) ) ) . addUtf8Constant ( newDescriptor ) ; } }
Source:
private static final boolean hasCollationElements ( java.util.Locale locale ) { com.ibm.icu.impl.ICUResourceBundle rb = ( ( com.ibm.icu.impl.ICUResourceBundle ) ( com.ibm.icu.util.UResourceBundle.getBundleInstance ( ICUResourceBundle.ICU_COLLATION_BASE_NAME , locale ) ) ) ; if ( rb != null ) { try { java.lang.String collkey = rb.getStringWithFallback ( "collations/default" ) ; com.ibm.icu.impl.ICUResourceBundle elements = rb.getWithFallback ( ( "collations/" + collkey ) ) ; if ( elements != null ) { return true ; } } catch ( java.lang.Exception e ) { } } return false ; }

Target:
private static final boolean hasCollationElements ( java.util.Locale locale ) { com.ibm.icu.impl.ICUResourceBundle rb = ( ( com.ibm.icu.impl.ICUResourceBundle ) ( com.ibm.icu.util.UResourceBundle.getBundleInstance ( ICUData.ICU_COLLATION_BASE_NAME , locale ) ) ) ; if ( rb != null ) { try { java.lang.String collkey = rb.getStringWithFallback ( "collations/default" ) ; com.ibm.icu.impl.ICUResourceBundle elements = rb.getWithFallback ( ( "collations/" + collkey ) ) ; if ( elements != null ) { return true ; } } catch ( java.lang.Exception e ) { } } return false ; }
Source:
public void deleteOdex ( java.lang.String apkPath , java.lang.String instructionSet , java.lang.String outputPath ) throws com.android.internal.os.InstallerConnection.InstallerException { mInstaller.execute ( "delete_odex" , apkPath , instructionSet , outputPath ) ; }

Target:
public void moveAb ( java.lang.String apkPath , java.lang.String instructionSet , java.lang.String outputPath ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.moveAb ( apkPath , instructionSet , outputPath ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
void bind ( android.database.Cursor cursor ) { com.android.dialer.calllog.ui.CoalescedAnnotatedCallLogCursorLoader.Row row = new com.android.dialer.calllog.ui.CoalescedAnnotatedCallLogCursorLoader.Row ( cursor ) ; primaryTextView.setText ( buildPrimaryText ( row ) ) ; secondaryTextView.setText ( buildSecondaryText ( row ) ) ; if ( row.isNew ( ) ) { primaryTextView.setTextAppearance ( R.style.primary_textview_new_call ) ; secondaryTextView.setTextAppearance ( R.style.secondary_textview_new_call ) ; } setPhoto ( row ) ; setPrimaryCallTypes ( row ) ; setSecondaryCallTypes ( row ) ; setPhoneAccounts ( row ) ; }

Target:
private boolean isNewMissedCall ( com.android.dialer.calllog.ui.CoalescedAnnotatedCallLogCursorLoader.Row row ) { return ( ( row.callType ( ) ) == ( android.provider.CallLog.Calls.MISSED_TYPE ) ) && ( row.isNew ( ) ) ; }
Source:
void beginServiceDeclaration ( int serverIf , int srvcType , int srvcInstanceId , int minHandles , java.util.UUID srvcUuid , boolean advertisePreferred ) { 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 , ( "beginServiceDeclaration() - uuid=" + srvcUuid ) ) ; com.android.bluetooth.gatt.ServiceDeclaration serviceDeclaration = addDeclaration ( ) ; serviceDeclaration.addService ( srvcUuid , srvcType , srvcInstanceId , minHandles , advertisePreferred ) ; }

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 void getSimIdentityEapAkaPrime ( ) { android.telephony.TelephonyManager tm = mock ( android.telephony.TelephonyManager.class ) ; when ( tm.getSubscriberId ( ) ) . thenReturn ( "3214561234567890" ) ; when ( tm.getSimState ( ) ) . thenReturn ( TelephonyManager.SIM_STATE_READY ) ; when ( tm.getSimOperator ( ) ) . thenReturn ( "321456" ) ; assertEquals ( "63214561234567890@wlan.mnc456.mcc321.3gppnetwork.org" , com.android.server.wifi.util.TelephonyUtil.getSimIdentity ( tm , WifiEnterpriseConfig.Eap.AKA_PRIME ) ) ; }

Target:
public void getSimIdentity2DigitMnc ( ) { android.telephony.TelephonyManager tm = mock ( android.telephony.TelephonyManager.class ) ; when ( tm.getSubscriberId ( ) ) . thenReturn ( "321560123456789" ) ; when ( tm.getSimState ( ) ) . thenReturn ( TelephonyManager.SIM_STATE_READY ) ; when ( tm.getSimOperator ( ) ) . thenReturn ( "32156" ) ; assertEquals ( "1321560123456789@wlan.mnc056.mcc321.3gppnetwork.org" , com.android.server.wifi.util.TelephonyUtil.getSimIdentity ( tm , com.android.server.wifi.WifiConfigurationTestUtil.createEapNetwork ( WifiEnterpriseConfig.Eap.SIM , WifiEnterpriseConfig.Phase2.NONE ) ) ) ; }
Source:
public void setPreferredNetworkType ( int networkType , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( RILConstants.RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE , response ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( networkType ) ; mPreferredNetworkType = networkType ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " : " ) + networkType ) ) ; mMetrics.writeSetPreferredNetworkType ( mInstanceId , networkType ) ; send ( rr ) ; }

Target:
public void setPreferredNetworkType ( int networkType , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( RILConstants.RIL_REQUEST_SET_PREFERRED_NETWORK_TYPE , response , mRILDefaultWorkSource ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( networkType ) ; mPreferredNetworkType = networkType ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " : " ) + networkType ) ) ; mMetrics.writeSetPreferredNetworkType ( mInstanceId , networkType ) ; send ( rr ) ; }
Source:
public void downPoint ( float [ ] imgPoint ) { path [ 0 ] = imgPoint [ 0 ] ; path [ 1 ] = imgPoint [ 1 ] ; len = 2 ; mPoints_backup.reset ( ) ; mPoints_backup.addPath ( mPoints ) ; mPoints.reset ( ) ; mPoints.moveTo ( imgPoint [ 0 ] , imgPoint [ 1 ] ) ; }

Target:
public void downPoint ( float [ ] imgPoint ) { path [ 0 ] = imgPoint [ 0 ] ; path [ 1 ] = imgPoint [ 1 ] ; len = 2 ; mPoints_backup.reset ( ) ; mPoints_backup.addPath ( mPoints ) ; mPoints.reset ( ) ; mPoints.moveTo ( imgPoint [ 0 ] , imgPoint [ 1 ] ) ; mUseDefaultRegion = false ; }
Source:
public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value stringBufferValue = getStaticFieldValue ( debuggeeClassId , "STRING_BUFFER" ) ; constructorArguments.add ( stringBufferValue ) ; }

Target:
public void provideConstructorArguments ( java.util.List < org.apache.harmony.jpda.tests.framework.jdwp.Value > constructorArguments ) { long debuggeeClassId = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value intArrayValue = getStaticFieldValue ( debuggeeClassId , "INT_ARRAY" ) ; constructorArguments.add ( intArrayValue ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 0 ) ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 1 ) ) ; }
Source:
public static com.google.devtools.common.options.OptionDefinition extractOptionDefinition ( java.lang.reflect.Field field ) { com.google.devtools.common.options.Option annotation = ( field == null ) ? null : field.getAnnotation ( com.google.devtools.common.options.Option.class ) ; if ( annotation == null ) { throw new com.google.devtools.common.options.OptionsParser.ConstructionException ( ( ( "The field " + field ) + " does not have the right annotation to be considered an option." ) ) ; } return new com.google.devtools.common.options.OptionDefinition ( field , annotation ) ; }

Target:
public static com.google.devtools.common.options.OptionDefinition extractOptionDefinition ( java.lang.reflect.Field field ) { com.google.devtools.common.options.Option annotation = ( field == null ) ? null : field.getAnnotation ( com.google.devtools.common.options.Option.class ) ; if ( annotation == null ) { throw new com.google.devtools.common.options.OptionDefinition.NotAnOptionException ( field ) ; } return new com.google.devtools.common.options.OptionDefinition ( field , annotation ) ; }
Source:
public com.android.jack.ir.ast.JMethod getMethod ( @ javax.annotation.Nonnull java.lang.String name , @ javax.annotation.Nonnull com.android.jack.ir.ast.JType returnType , @ javax.annotation.Nonnull java.util.List < ? extends com.android.jack.ir.ast.JType > args ) throws com.android.jack.lookup.JMethodLookupException { loader.ensureMethod ( this , name , args , returnType ) ; for ( com.android.jack.ir.ast.JMethod m : methods ) { if ( ( m.getMethodId ( ) . equals ( name , args ) ) && ( m.getType ( ) . equals ( returnType ) ) ) { return m ; } } throw new com.android.jack.lookup.JMethodWithReturnLookupException ( this , name , args , returnType ) ; }

Target:
public com.android.jack.ir.ast.JMethod getMethod ( @ javax.annotation.Nonnull java.lang.String name , @ javax.annotation.Nonnull com.android.jack.ir.ast.JType returnType , @ javax.annotation.Nonnull java.util.List < ? extends com.android.jack.ir.ast.JType > args ) throws com.android.jack.lookup.JMethodLookupException { loader.ensureMethod ( this , name , args , returnType ) ; for ( com.android.jack.ir.ast.JMethod m : methods ) { if ( ( m.getMethodId ( ) . equals ( name , args ) ) && ( m.getType ( ) . isSameType ( returnType ) ) ) { return m ; } } throw new com.android.jack.lookup.JMethodWithReturnLookupException ( this , name , args , returnType ) ; }
Source:
void onSyncLost ( int sync_handle ) throws java.lang.Exception { if ( com.android.bluetooth.gatt.PeriodicScanManager.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.PeriodicScanManager.TAG , ( "onSyncLost() - sync_handle=" + sync_handle ) ) ; java.util.Map.Entry < android.os.IBinder , com.android.bluetooth.gatt.PeriodicScanManager.SyncInfo > entry = findSync ( sync_handle ) ; if ( entry == null ) { android.util.Log.i ( com.android.bluetooth.gatt.PeriodicScanManager.TAG , ( "onSyncLost() - no callback found for sync_handle " + sync_handle ) ) ; return ; } android.bluetooth.le.IPeriodicAdvertisingCallback callback = entry.getValue ( ) . callback ; mSyncs.remove ( entry ) ; callback.onSyncLost ( sync_handle ) ; }

Target:
void onSyncLost ( int syncHandle ) throws java.lang.Exception { if ( com.android.bluetooth.gatt.PeriodicScanManager.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.PeriodicScanManager.TAG , ( "onSyncLost() - syncHandle=" + syncHandle ) ) ; java.util.Map.Entry < android.os.IBinder , com.android.bluetooth.gatt.PeriodicScanManager.SyncInfo > entry = findSync ( syncHandle ) ; if ( entry == null ) { android.util.Log.i ( com.android.bluetooth.gatt.PeriodicScanManager.TAG , ( "onSyncLost() - no callback found for syncHandle " + syncHandle ) ) ; return ; } android.bluetooth.le.IPeriodicAdvertisingCallback callback = entry.getValue ( ) . callback ; mSyncs.remove ( entry ) ; callback.onSyncLost ( syncHandle ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case android.carrierapi.cts.NetworkScanApiTest.EVENT_NETWORK_SCAN_START : android.util.Log.d ( android.carrierapi.cts.NetworkScanApiTest.TAG , "request network scan" ) ; mTelephonyManager.requestNetworkScan ( mNetworkScanRequest , mNetworkScanCallback ) ; break ; default : android.util.Log.d ( android.carrierapi.cts.NetworkScanApiTest.TAG , ( "Unknown Event " + ( msg.what ) ) ) ; } }

Target:
public void handleMessage ( android.os.Message msg ) { switch ( msg.what ) { case android.carrierapi.cts.NetworkScanApiTest.EVENT_NETWORK_SCAN_START : android.util.Log.d ( android.carrierapi.cts.NetworkScanApiTest.TAG , "request network scan" ) ; mNetworkScan = mTelephonyManager.requestNetworkScan ( mNetworkScanRequest , mNetworkScanCallback ) ; break ; default : android.util.Log.d ( android.carrierapi.cts.NetworkScanApiTest.TAG , ( "Unknown Event " + ( msg.what ) ) ) ; } }
Source:
public boolean setNetworkRSSIStats ( int networkId , int numUserTriggeredWifiDisableLowRSSI , int numUserTriggeredWifiDisableBadRSSI , int numUserTriggeredWifiDisableNotHighRSSI , int numTicksAtLowRSSI , int numTicksAtBadRSSI , int numTicksAtNotHighRSSI ) { android.net.wifi.WifiConfiguration config = getInternalConfiguredNetwork ( networkId ) ; if ( config == null ) { return false ; } config.numUserTriggeredWifiDisableLowRSSI = numUserTriggeredWifiDisableLowRSSI ; config.numUserTriggeredWifiDisableBadRSSI = numUserTriggeredWifiDisableBadRSSI ; config.numUserTriggeredWifiDisableNotHighRSSI = numUserTriggeredWifiDisableNotHighRSSI ; config.numTicksAtLowRSSI = numTicksAtLowRSSI ; config.numTicksAtBadRSSI = numTicksAtBadRSSI ; config.numTicksAtNotHighRSSI = numTicksAtNotHighRSSI ; return true ; }

Target:
private java.util.Set < java.lang.Integer > clearInternalUserData ( int userId ) { java.util.Set < java.lang.Integer > removedNetworkIds = new java.util.HashSet < > ( ) ; for ( android.net.wifi.WifiConfiguration config : getInternalConfiguredNetworks ( ) ) { if ( ( ! ( config.shared ) ) && ( com.android.server.wifi.WifiConfigurationUtil.doesUidBelongToAnyProfile ( config.creatorUid , mUserManager.getProfiles ( userId ) ) ) ) { removedNetworkIds.add ( config.networkId ) ; mConfiguredNetworks.remove ( config.networkId ) ; } } mDeletedEphemeralSSIDs.clear ( ) ; mScanDetailCaches.clear ( ) ; clearLastSelectedNetwork ( ) ; return removedNetworkIds ; }
Source:
static com.android.bluetooth.hearingaid.HearingAidStateMachine make ( android.bluetooth.BluetoothDevice device , com.android.bluetooth.hearingaid.HearingAidService svc , android.os.Looper looper ) { android.util.Log.i ( com.android.bluetooth.hearingaid.HearingAidStateMachine.TAG , ( "make for device " + device ) ) ; com.android.bluetooth.hearingaid.HearingAidStateMachine HearingAidSm = new com.android.bluetooth.hearingaid.HearingAidStateMachine ( device , svc , looper ) ; HearingAidSm.start ( ) ; return HearingAidSm ; }

Target:
static com.android.bluetooth.hearingaid.HearingAidStateMachine make ( android.bluetooth.BluetoothDevice device , com.android.bluetooth.hearingaid.HearingAidService svc , com.android.bluetooth.hearingaid.HearingAidNativeInterface nativeInterface , android.os.Looper looper ) { android.util.Log.i ( com.android.bluetooth.hearingaid.HearingAidStateMachine.TAG , ( "make for device " + device ) ) ; com.android.bluetooth.hearingaid.HearingAidStateMachine HearingAidSm = new com.android.bluetooth.hearingaid.HearingAidStateMachine ( device , svc , nativeInterface , looper ) ; HearingAidSm.start ( ) ; return HearingAidSm ; }
Source:
public synchronized void stopMonitoring ( java.lang.String iface ) { if ( mVerboseLoggingEnabled ) android.util.Log.d ( com.android.server.wifi.WifiMonitor.TAG , ( ( "stopMonitoring(" + iface ) + ")" ) ) ; setMonitoring ( iface , true ) ; sendMessage ( iface , com.android.server.wifi.WifiMonitor.SUP_DISCONNECTION_EVENT ) ; setMonitoring ( iface , false ) ; }

Target:
public synchronized void stopMonitoring ( java.lang.String iface ) { if ( mVerboseLoggingEnabled ) android.util.Log.d ( com.android.server.wifi.WifiMonitor.TAG , ( ( "stopMonitoring(" + iface ) + ")" ) ) ; setMonitoring ( iface , true ) ; broadcastSupplicantDisconnectionEvent ( iface ) ; setMonitoring ( iface , false ) ; }
Source:
public void onLooperPrepared ( ) { mPhoneStateListenerUT = new android.telephony.PhoneStateListener ( ) { @ java.lang.Override public void onServiceStateChanged ( android.telephony.ServiceState serviceState ) { logd ( "Service State Changed" ) ; mServiceState.setVoiceRegState ( serviceState.getVoiceRegState ( ) ) ; mServiceState.setDataRegState ( serviceState.getDataRegState ( ) ) ; setReady ( true ) ; } } ; setReady ( true ) ; }

Target:
public void onUserMobileDataStateChanged ( boolean state ) { logd ( "User Mobile Data State Changed" ) ; mUserMobileDataState = true ; setReady ( true ) ; }
Source:
private void buildInstanceOf ( com.android.jack.dx.rop.code.RegisterSpec destReg , com.android.jack.ir.ast.JInstanceOf instanceOf ) { com.android.jack.dx.rop.code.SourcePosition srcPos = com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( instanceOf ) ; com.android.jack.dx.rop.code.RegisterSpec regExpr = getRegisterSpec ( instanceOf.getExpr ( ) ) ; com.android.jack.dx.rop.cst.CstType type = com.android.jack.backend.dex.rop.RopHelper.getCstType ( instanceOf.getTestType ( ) ) ; addInstruction ( new com.android.jack.dx.rop.code.ThrowingCstInsn ( com.android.jack.dx.rop.code.Rops.INSTANCE_OF , srcPos , com.android.jack.dx.rop.code.RegisterSpecList.make ( regExpr ) , getCatchTypes ( ) , type ) ) ; addMoveResultPseudoAsExtraInstruction ( destReg , srcPos ) ; }

Target:
private void buildInstanceOf ( com.android.jack.dx.rop.code.RegisterSpec destReg , com.android.jack.ir.ast.JInstanceOf instanceOf ) { com.android.jack.dx.rop.code.SourcePosition srcPos = com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( instanceOf ) ; addInstruction ( new com.android.jack.dx.rop.code.ThrowingCstInsn ( com.android.jack.dx.rop.code.Rops.INSTANCE_OF , srcPos , com.android.jack.dx.rop.code.RegisterSpecList.make ( getRegisterSpec ( instanceOf.getExpr ( ) ) ) , getCatchTypes ( ) , com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( instanceOf.getTestType ( ) ) ) ) ; addMoveResultPseudoAsExtraInstruction ( destReg , srcPos ) ; }
Source:
private com.android.resources.ResourceType getType ( org.w3c.dom.Node node ) { java.lang.String nodeName = node.getLocalName ( ) ; java.lang.String typeString = null ; if ( com.android.SdkConstants.TAG_ITEM.equals ( nodeName ) ) { org.w3c.dom.Attr attribute = ( ( org.w3c.dom.Attr ) ( node.getAttributes ( ) . getNamedItemNS ( null , com.android.SdkConstants.ATTR_TYPE ) ) ) ; if ( attribute != null ) { typeString = attribute.getValue ( ) ; } } else { typeString = nodeName ; } if ( typeString != null ) { return com.android.resources.ResourceType.getEnum ( typeString ) ; } return null ; }

Target:
static com.android.resources.ResourceType getType ( org.w3c.dom.Node node ) { java.lang.String nodeName = node.getLocalName ( ) ; java.lang.String typeString = null ; if ( com.android.builder.resources.TAG_ITEM.equals ( nodeName ) ) { org.w3c.dom.Attr attribute = ( ( org.w3c.dom.Attr ) ( node.getAttributes ( ) . getNamedItemNS ( null , com.android.builder.resources.ATTR_TYPE ) ) ) ; if ( attribute != null ) { typeString = attribute.getValue ( ) ; } } else { typeString = nodeName ; } if ( typeString != null ) { return com.android.resources.ResourceType.getEnum ( typeString ) ; } return null ; }
Source:
public java.nio.ByteBuffer putDouble ( double value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.DOUBLE ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeLong ( ( ( offset ) + ( position ) ) , java.lang.Double.doubleToRawLongBits ( value ) , order ) ; position = newPosition ; return this ; }

Target:
public java.nio.ByteBuffer putDouble ( double value ) { checkIsAccessible ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.DOUBLE ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeLong ( ( ( offset ) + ( position ) ) , java.lang.Double.doubleToRawLongBits ( value ) , order ) ; position = newPosition ; return this ; }
Source:
private void loadPackages ( boolean useLocalCache , boolean overrideExisting ) { if ( ( mImpl.mUpdaterData ) == null ) { return ; } boolean displaySortByApi = isSortByApi ( ) ; if ( mTreeColumnName.isDisposed ( ) ) { return ; } mTreeColumnName.setImage ( getImage ( ( displaySortByApi ? PackagesPageIcons.ICON_SORT_BY_API : PackagesPageIcons.ICON_SORT_BY_SOURCE ) ) ) ; mImpl.loadPackagesImpl ( useLocalCache , overrideExisting ) ; }

Target:
private void loadPackages ( boolean useLocalCache , boolean overrideExisting ) { if ( ( mImpl.mSwtUpdaterData ) == null ) { return ; } boolean displaySortByApi = isSortByApi ( ) ; if ( mTreeColumnName.isDisposed ( ) ) { return ; } mTreeColumnName.setImage ( getImage ( ( displaySortByApi ? PackagesPageIcons.ICON_SORT_BY_API : PackagesPageIcons.ICON_SORT_BY_SOURCE ) ) ) ; mImpl.loadPackagesImpl ( useLocalCache , overrideExisting ) ; }
Source:
public void rmdex ( java.lang.String codePath , java.lang.String instructionSet ) throws com.android.internal.os.InstallerConnection.InstallerException { com.android.server.pm.Installer.assertValidInstructionSet ( instructionSet ) ; checkLock ( ) ; try { mInstalld.rmdex ( codePath , instructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void rmdex ( java.lang.String codePath , java.lang.String instructionSet ) throws com.android.internal.os.InstallerConnection.InstallerException { com.android.server.pm.Installer.assertValidInstructionSet ( instructionSet ) ; if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.rmdex ( codePath , instructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public void testAddAll ( ) { java.util.concurrent.CopyOnWriteArraySet full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; java.util.Vector v = new java.util.Vector ( ) ; v.add ( three ) ; v.add ( four ) ; v.add ( five ) ; full.addAll ( v ) ; assertEquals ( 6 , full.size ( ) ) ; }

Target:
public void testAddAll ( ) { java.util.Set full = jsr166.CopyOnWriteArraySetTest.populatedSet ( 3 ) ; assertTrue ( full.addAll ( java.util.Arrays.asList ( three , four , five ) ) ) ; assertEquals ( 6 , full.size ( ) ) ; assertFalse ( full.addAll ( java.util.Arrays.asList ( three , four , five ) ) ) ; assertEquals ( 6 , full.size ( ) ) ; }
Source:
public void run ( ) { try { V value = com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly ( future ) ; callback.onSuccess ( value ) ; } catch ( java.util.concurrent.ExecutionException e ) { callback.onFailure ( e.getCause ( ) ) ; } catch ( java.lang.RuntimeException e ) { callback.onFailure ( e ) ; } catch ( java.lang.Error e ) { callback.onFailure ( e ) ; } }

Target:
public void addListener ( java.lang.Runnable listener , java.util.concurrent.Executor executor ) { com.google.common.base.Preconditions.checkNotNull ( listener , "Runnable was null." ) ; com.google.common.base.Preconditions.checkNotNull ( executor , "Executor was null." ) ; try { executor.execute ( listener ) ; } catch ( java.lang.RuntimeException e ) { com.google.common.util.concurrent.Futures.ImmediateFuture.log.log ( java.util.logging.Level.SEVERE , ( ( ( "RuntimeException while executing runnable " + listener ) + " with executor " ) + executor ) , e ) ; } }
Source:
private void resetBatteryLevel ( android.bluetooth.BluetoothDevice device ) { if ( device == null ) { com.android.bluetooth.btservice.RemoteDevices.warnLog ( "device is null" ) ; return ; } com.android.bluetooth.btservice.RemoteDevices.DeviceProperties deviceProperties = getDeviceProperties ( device ) ; if ( deviceProperties == null ) { return ; } deviceProperties.setBatteryLevel ( ( - 1 ) ) ; }

Target:
void resetBatteryLevel ( android.bluetooth.BluetoothDevice device ) { if ( device == null ) { com.android.bluetooth.btservice.RemoteDevices.warnLog ( "Device is null" ) ; return ; } com.android.bluetooth.btservice.RemoteDevices.DeviceProperties deviceProperties = getDeviceProperties ( device ) ; if ( deviceProperties == null ) { return ; } deviceProperties.setBatteryLevel ( BluetoothDevice.BATTERY_LEVEL_UNKNOWN ) ; }
Source:
public static int forkAndSpecialize ( int uid , int gid , int [ ] gids , int debugFlags , int [ ] [ ] rlimits ) { dalvik.system.Zygote.preFork ( ) ; int pid = dalvik.system.Zygote.nativeForkAndSpecialize ( uid , gid , gids , debugFlags , rlimits ) ; dalvik.system.Zygote.postFork ( ) ; return pid ; }

Target:
public static int forkAndSpecialize ( int uid , int gid , int [ ] gids , int debugFlags , int [ ] [ ] rlimits , java.lang.String seInfo , java.lang.String niceName ) { dalvik.system.Zygote.preFork ( ) ; int pid = dalvik.system.Zygote.nativeForkAndSpecialize ( uid , gid , gids , debugFlags , rlimits , seInfo , niceName ) ; dalvik.system.Zygote.postFork ( ) ; return pid ; }
Source:
public static boolean contains ( java.io.File dir , java.io.File file ) { if ( ( dir == null ) || ( file == null ) ) return false ; java.lang.String dirPath = dir.getAbsolutePath ( ) ; java.lang.String filePath = file.getAbsolutePath ( ) ; if ( dirPath.equals ( filePath ) ) { return true ; } if ( ! ( dirPath.endsWith ( "/" ) ) ) { dirPath += "/" ; } return filePath.startsWith ( dirPath ) ; }

Target:
public static boolean contains ( java.io.File dir , java.io.File file ) { if ( ( dir == null ) || ( file == null ) ) return false ; return android.os.FileUtils.contains ( dir.getAbsolutePath ( ) , file.getAbsolutePath ( ) ) ; }
Source:
public void onAlternateLayoutCreated ( ) { org.eclipse.core.resources.IFile best = com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationMatcher.getBestFileMatch ( this ) ; if ( ( best != null ) && ( ! ( best.equals ( mEditedFile ) ) ) ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationMatcher matcher = new com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationMatcher ( this ) ; matcher.adaptConfigSelection ( true ) ; mConfiguration.syncFolderConfig ( ) ; if ( ( mClient ) != null ) { mClient.changed ( com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationClient.CHANGED_ALL ) ; } } }

Target:
public void onAlternateLayoutCreated ( ) { org.eclipse.core.resources.IFile best = com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationMatcher.getBestFileMatch ( this ) ; if ( ( best != null ) && ( ! ( best.equals ( mEditedFile ) ) ) ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationMatcher matcher = new com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationMatcher ( this ) ; matcher.adaptConfigSelection ( true ) ; mConfiguration.syncFolderConfig ( ) ; if ( ( mClient ) != null ) { mClient.changed ( com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configuration.MASK_ALL ) ; } } }
Source:
public void coreToJayceFromFolder ( ) throws java.lang.Exception { com.android.jill.Options options = new com.android.jill.Options ( ) ; options.setBinaryFile ( new java.io.File ( ( ( com.android.jack.test.TestsProperties.getAndroidRootDir ( ) . getPath ( ) ) + "/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes/" ) ) ) ; options.setVerbose ( true ) ; options.container = ContainerType.DIR ; options.outputDirOrZip = com.android.jill.JillTestTools.createTempDir ( "core_" , "_dir" ) ; new com.android.jill.Jill ( options , "0.1" ) . process ( options.getBinaryFile ( ) ) ; }

Target:
public void coreToJayceFromFolder ( ) throws java.lang.Exception { com.android.jill.Options options = new com.android.jill.Options ( ) ; options.setBinaryFile ( new java.io.File ( ( ( com.android.jack.test.TestsProperties.getAndroidRootDir ( ) . getPath ( ) ) + "/out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes/" ) ) ) ; options.setVerbose ( true ) ; options.container = ContainerType.DIR ; options.outputDirOrZip = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; new com.android.jill.Jill ( options , "0.1" ) . process ( options.getBinaryFile ( ) ) ; }
Source:
private java.io.File createHugeZipFile ( int count ) throws java.io.IOException { java.io.File result = java.io.File.createTempFile ( "ZipFileTest" , "zip" ) ; result.deleteOnExit ( ) ; java.util.zip.ZipOutputStream out = new java.util.zip.ZipOutputStream ( new java.io.BufferedOutputStream ( new java.io.FileOutputStream ( result ) ) ) ; for ( int i = 0 ; i < count ; ++ i ) { java.util.zip.ZipEntry entry = new java.util.zip.ZipEntry ( java.lang.Integer.toHexString ( i ) ) ; out.putNextEntry ( entry ) ; out.closeEntry ( ) ; } out.close ( ) ; return result ; }

Target:
private java.io.File createTemporaryZipFile ( ) throws java.io.IOException { java.io.File result = java.io.File.createTempFile ( "ZipFileTest" , "zip" ) ; result.deleteOnExit ( ) ; return result ; }
Source:
public boolean unregisterNetworkEvaluator ( com.android.server.wifi.WifiNetworkSelector.NetworkEvaluator evaluator ) { for ( com.android.server.wifi.WifiNetworkSelector.NetworkEvaluator registeredEvaluator : mEvaluators ) { if ( registeredEvaluator == evaluator ) { android.util.Log.d ( com.android.server.wifi.WifiNetworkSelector.TAG , ( "Unregistered network evaluator: " + ( evaluator.getName ( ) ) ) ) ; return true ; } } android.util.Log.e ( com.android.server.wifi.WifiNetworkSelector.TAG , ( "Couldn't unregister network evaluator: " + ( evaluator.getName ( ) ) ) ) ; return false ; }

Target:
public boolean unregisterNetworkEvaluator ( com.android.server.wifi.WifiNetworkSelector.NetworkEvaluator evaluator ) { for ( com.android.server.wifi.WifiNetworkSelector.NetworkEvaluator registeredEvaluator : mEvaluators ) { if ( registeredEvaluator == evaluator ) { localLog ( ( "Unregistered network evaluator: " + ( evaluator.getName ( ) ) ) ) ; return true ; } } localLog ( ( "Couldn't unregister network evaluator: " + ( evaluator.getName ( ) ) ) ) ; return false ; }
Source:
public com.android.server.wifi.scanner.WifiScannerImpl create ( android.content.Context context , android.os.Looper looper , com.android.server.wifi.Clock clock ) { com.android.server.wifi.WifiNative wifiNative = com.android.server.wifi.WifiNative.getWlanNativeInterface ( ) ; if ( wifiNative.getScanCapabilities ( new com.android.server.wifi.WifiNative.ScanCapabilities ( ) ) ) { return new com.android.server.wifi.scanner.HalWifiScannerImpl ( context , wifiNative , looper , clock ) ; } else { return new com.android.server.wifi.scanner.SupplicantWifiScannerImpl ( context , wifiNative , looper , clock ) ; } }

Target:
public com.android.server.wifi.scanner.WifiScannerImpl create ( android.content.Context context , android.os.Looper looper , com.android.server.wifi.Clock clock ) { com.android.server.wifi.WifiNative wifiNative = com.android.server.wifi.WifiInjector.getInstance ( ) . getWifiNative ( ) ; com.android.server.wifi.WifiMonitor wifiMonitor = com.android.server.wifi.WifiInjector.getInstance ( ) . getWifiMonitor ( ) ; if ( wifiNative.getScanCapabilities ( new com.android.server.wifi.WifiNative.ScanCapabilities ( ) ) ) { return new com.android.server.wifi.scanner.HalWifiScannerImpl ( context , wifiNative , wifiMonitor , looper , clock ) ; } else { return new com.android.server.wifi.scanner.WificondScannerImpl ( context , wifiNative , wifiMonitor , looper , clock ) ; } }