auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onStart ( ) { mImpl = new com.android.server.wifi.RttService.RttServiceImpl ( getContext ( ) , mHandlerThread.getLooper ( ) ) ; android.util.Log.i ( com.android.server.wifi.RttService.TAG , ( "Starting " + ( android.content.Context.WIFI_RTT_SERVICE ) ) ) ; publishBinderService ( Context.WIFI_RTT_SERVICE , mImpl ) ; }

Target:
public void onStart ( ) { mImpl = new com.android.server.wifi.RttService.RttServiceImpl ( getContext ( ) , mHandlerThread.getLooper ( ) , com.android.server.wifi.WifiInjector.getInstance ( ) ) ; android.util.Log.i ( com.android.server.wifi.RttService.TAG , ( "Starting " + ( android.content.Context.WIFI_RTT_SERVICE ) ) ) ; publishBinderService ( Context.WIFI_RTT_SERVICE , mImpl ) ; }
Source:
private void clearProfilePriorty ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.hid.HidService hidService = com.android.bluetooth.hid.HidService.getHidService ( ) ; com.android.bluetooth.a2dp.A2dpService a2dpService = com.android.bluetooth.a2dp.A2dpService.getA2dpService ( ) ; com.android.bluetooth.hfp.HeadsetService headsetService = com.android.bluetooth.hfp.HeadsetService.getHeadsetService ( ) ; if ( hidService != null ) hidService.setPriority ( device , BluetoothProfile.PRIORITY_UNDEFINED ) ; if ( a2dpService != null ) a2dpService.setPriority ( device , BluetoothProfile.PRIORITY_UNDEFINED ) ; if ( headsetService != null ) headsetService.setPriority ( device , BluetoothProfile.PRIORITY_UNDEFINED ) ; if ( a2dpService != null ) a2dpService.resetAvrcpBlacklist ( device ) ; }

Target:
private void clearProfilePriority ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.hid.HidService hidService = com.android.bluetooth.hid.HidService.getHidService ( ) ; com.android.bluetooth.a2dp.A2dpService a2dpService = com.android.bluetooth.a2dp.A2dpService.getA2dpService ( ) ; com.android.bluetooth.hfp.HeadsetService headsetService = com.android.bluetooth.hfp.HeadsetService.getHeadsetService ( ) ; if ( hidService != null ) hidService.setPriority ( device , BluetoothProfile.PRIORITY_UNDEFINED ) ; if ( a2dpService != null ) a2dpService.setPriority ( device , BluetoothProfile.PRIORITY_UNDEFINED ) ; if ( headsetService != null ) headsetService.setPriority ( device , BluetoothProfile.PRIORITY_UNDEFINED ) ; if ( a2dpService != null ) a2dpService.resetAvrcpBlacklist ( device ) ; }
Source:
public java.lang.String getSymbol ( java.util.Locale locale ) { libcore.icu.LocaleData localeData = libcore.icu.LocaleData.get ( locale ) ; if ( localeData.internationalCurrencySymbol.equals ( currencyCode ) ) { return localeData.currencySymbol ; } java.lang.String symbol = libcore.icu.ICU.getCurrencySymbol ( locale , currencyCode ) ; return symbol != null ? symbol : currencyCode ; }

Target:
public java.lang.String getDisplayName ( java.util.Locale locale ) { return icuCurrency.getDisplayName ( locale ) ; }
Source:
public void setLabel ( java.lang.String label ) { if ( android.text.TextUtils.isEmpty ( label ) ) { mIcon.setVisibility ( View.VISIBLE ) ; mLabel.setVisibility ( View.GONE ) ; } else { mIcon.setVisibility ( View.GONE ) ; mLabel.setVisibility ( View.VISIBLE ) ; mLabel.setText ( label ) ; } }

Target:
public void setLabel ( java.lang.String label ) { if ( android.text.TextUtils.isEmpty ( label ) ) { mIcon.setVisibility ( View.VISIBLE ) ; mLabel.setVisibility ( View.GONE ) ; } else { mIcon.setVisibility ( View.GONE ) ; mLabel.setVisibility ( View.VISIBLE ) ; if ( ! ( android.text.TextUtils.equals ( mLabel.getText ( ) , label ) ) ) { mLabel.setText ( label ) ; } } }
Source:
public void onAvailable ( android.net.Network network ) { if ( com.android.carrierdefaultapp.CaptivePortalLoginActivity.DBG ) com.android.carrierdefaultapp.CaptivePortalLoginActivity.logd ( ( "Network available: " + network ) ) ; mCm.bindProcessToNetwork ( network ) ; mNetwork = network ; runOnUiThreadIfNotFinishing ( ( ) -> { if ( mReload ) { mWebView.reload ( ) ; } else { mWebView.loadData ( "" , "text/html" , null ) ; } } ) ; }

Target:
public void onAvailable ( android.net.Network network ) { if ( com.android.carrierdefaultapp.CaptivePortalLoginActivity.DBG ) com.android.carrierdefaultapp.CaptivePortalLoginActivity.logd ( ( "Network available: " + network ) ) ; setNetwork ( network ) ; runOnUiThreadIfNotFinishing ( ( ) -> { if ( mReload ) { mWebView.reload ( ) ; } else { mWebView.loadData ( "" , "text/html" , null ) ; } } ) ; }
Source:
public void run ( ) { android.renderscript.RenderScript pRS = android.renderscript.RenderScript.create ( mCtx ) ; com.android.rs.unittest.ScriptC_foreach_bounds s = new com.android.rs.unittest.ScriptC_foreach_bounds ( pRS ) ; pRS.setMessageHandler ( mRsMessage ) ; initializeGlobals ( pRS , s ) ; s.invoke_verify_root ( ) ; s.invoke_foreach_bounds_test ( ) ; pRS.finish ( ) ; A.getType ( ) . destroy ( ) ; A.destroy ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }

Target:
public void run ( ) { android.renderscript.RenderScript pRS = createRenderScript ( true ) ; com.android.rs.unittest.ScriptC_foreach_bounds s = new com.android.rs.unittest.ScriptC_foreach_bounds ( pRS ) ; initializeGlobals ( pRS , s ) ; s.invoke_verify_root ( ) ; s.invoke_foreach_bounds_test ( ) ; pRS.finish ( ) ; A.getType ( ) . destroy ( ) ; A.destroy ( ) ; s.destroy ( ) ; pRS.destroy ( ) ; }
Source:
private boolean hasParameterName ( com.google.gct.intellij.endpoints.validation.PsiParameter psiParameter ) { com.google.gct.intellij.endpoints.validation.PsiModifierList modifierList = psiParameter.getModifierList ( ) ; if ( modifierList == null ) { return false ; } com.google.gct.intellij.endpoints.validation.PsiAnnotation annotation = modifierList.findAnnotation ( "javax.inject.Named" ) ; if ( annotation != null ) { return true ; } annotation = modifierList.findAnnotation ( GctConstants.APP_ENGINE_ANNOTATION_NAMED ) ; if ( annotation != null ) { return true ; } return false ; }

Target:
private boolean hasParameterName ( com.intellij.psi.PsiParameter psiParameter ) { com.intellij.psi.PsiModifierList modifierList = psiParameter.getModifierList ( ) ; if ( modifierList == null ) { return false ; } com.intellij.psi.PsiAnnotation annotation = modifierList.findAnnotation ( "javax.inject.Named" ) ; if ( annotation != null ) { return true ; } annotation = modifierList.findAnnotation ( GctConstants.APP_ENGINE_ANNOTATION_NAMED ) ; if ( annotation != null ) { return true ; } return false ; }
Source:
com.android.sched.vfs.ReadZipFS.ZipVFile getVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.ReadZipFS.ZipVDir parent , @ javax.annotation.Nonnull java.lang.String name ) { throw new java.lang.UnsupportedOperationException ( ) ; }

Target:
com.android.sched.vfs.ReadZipFS.ZipVFile getVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.ReadZipFS.ZipVDir parent , @ javax.annotation.Nonnull java.lang.String name ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileException { com.android.sched.vfs.BaseVElement element = parent.getFromCache ( name ) ; if ( element != null ) { if ( ! ( element.isVDir ( ) ) ) { return ( ( com.android.sched.vfs.ReadZipFS.ZipVFile ) ( element ) ) ; } else { throw new com.android.sched.util.file.NotFileException ( getVFileLocation ( parent , name ) ) ; } } else { throw new com.android.sched.util.file.NoSuchFileException ( getVFileLocation ( parent , name ) ) ; } }
Source:
public void testPidKeyword ( ) { com.android.ddmuilib.logcat.LogCatMessage msg = new com.android.ddmuilib.logcat.LogCatMessage ( com.android.ddmlib.Log.LogLevel.VERBOSE , "123" , "" , "" , "" , "" , "sample message" ) ; assertEquals ( false , search ( "123" , msg ) ) ; assertEquals ( true , search ( "pid:123" , msg ) ) ; }

Target:
public void testPidKeyword ( ) { com.android.ddmlib.logcat.LogCatMessage msg = new com.android.ddmlib.logcat.LogCatMessage ( com.android.ddmlib.Log.LogLevel.VERBOSE , "123" , "" , "" , "" , "" , "sample message" ) ; assertEquals ( false , search ( "123" , msg ) ) ; assertEquals ( true , search ( "pid:123" , msg ) ) ; }
Source:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.JayceInternalReaderImpl in ) throws java.io.IOException { id = in.readId ( ) ; modifiers = in.readInt ( ) ; type = in.readId ( ) ; name = in.readId ( ) ; annotationSet = in.readNodes ( com.android.jack.jayce.v0002.nodes.NAnnotationLiteral.class ) ; markers = in.readNodes ( com.android.jack.jayce.v0002.nodes.NMarker.class ) ; }

Target:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.JayceInternalReaderImpl in ) throws java.io.IOException { id = in.readId ( ) ; modifiers = in.readInt ( ) ; type = in.readId ( ) ; name = in.readId ( ) ; annotationSet = in.readNodes ( com.android.jack.jayce.v0002.nodes.NAnnotation.class ) ; markers = in.readNodes ( com.android.jack.jayce.v0002.nodes.NMarker.class ) ; }
Source:
public void onHold ( ) { if ( com.android.services.telephony.sip.SipConnection.VERBOSE ) com.android.services.telephony.sip.SipConnection.log ( "onHold" ) ; try { if ( ( ( getPhone ( ) ) != null ) && ( ( getState ( ) ) == ( STATE_ACTIVE ) ) ) { getPhone ( ) . switchHoldingAndActive ( ) ; } } catch ( com.android.internal.telephony.CallStateException e ) { com.android.services.telephony.sip.SipConnection.log ( ( "onHold, exception: " + e ) ) ; } }

Target:
public void onHold ( ) { if ( com.android.services.telephony.sip.SipConnection.VERBOSE ) com.android.services.telephony.sip.SipConnection.log ( "onHold" ) ; try { if ( ( ( ( getPhone ( ) ) != null ) && ( ( getState ( ) ) == ( STATE_ACTIVE ) ) ) && ( ( getPhone ( ) . getRingingCall ( ) . getState ( ) ) != ( Call.State.WAITING ) ) ) { getPhone ( ) . switchHoldingAndActive ( ) ; } } catch ( com.android.internal.telephony.CallStateException e ) { com.android.services.telephony.sip.SipConnection.log ( ( "onHold, exception: " + e ) ) ; } }
Source:
synchronized void nAllocationElementData1D ( int id , int xoff , int mip , int compIdx , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationElementData1D ( mContext , id , xoff , mip , compIdx , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , long [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }
Source:
public static java.io.File canonicalizeDirPath ( java.io.File file ) throws java.io.IOException { return new java.io.File ( file.getParentFile ( ) . getCanonicalFile ( ) , file.getName ( ) ) ; }

Target:
public static boolean isSymlink ( java.io.File file ) throws java.io.IOException { java.lang.String baseName = file.getName ( ) ; java.lang.String canonicalPathExceptBaseName = new java.io.File ( file.getParentFile ( ) . getCanonicalFile ( ) , baseName ) . getPath ( ) ; return ! ( file.getCanonicalPath ( ) . equals ( canonicalPathExceptBaseName ) ) ; }
Source:
private boolean isStandardReceiver ( org.w3c.dom.Element element ) { for ( org.w3c.dom.Element child : com.android.tools.lint.detector.api.LintUtils.getChildren ( element ) ) { if ( child.getTagName ( ) . equals ( com.android.tools.lint.detector.api.LintConstants.TAG_INTENT_FILTER ) ) { for ( org.w3c.dom.Element innerChild : com.android.tools.lint.detector.api.LintUtils.getChildren ( child ) ) { if ( innerChild.getTagName ( ) . equals ( "action" ) ) { java.lang.String categoryString = innerChild.getAttributeNS ( com.android.tools.lint.detector.api.LintConstants.ANDROID_URI , com.android.tools.lint.detector.api.LintConstants.ATTR_NAME ) ; return categoryString.startsWith ( "android.intent.action." ) ; } } } } return false ; }

Target:
private boolean isStandardReceiver ( org.w3c.dom.Element element ) { for ( org.w3c.dom.Element child : com.android.tools.lint.detector.api.LintUtils.getChildren ( element ) ) { if ( child.getTagName ( ) . equals ( com.android.tools.lint.detector.api.LintConstants.TAG_INTENT_FILTER ) ) { for ( org.w3c.dom.Element innerChild : com.android.tools.lint.detector.api.LintUtils.getChildren ( child ) ) { if ( innerChild.getTagName ( ) . equals ( "action" ) ) { java.lang.String categoryString = innerChild.getAttributeNS ( com.android.tools.lint.detector.api.LintConstants.ANDROID_URI , com.android.tools.lint.detector.api.LintConstants.ATTR_NAME ) ; return categoryString.startsWith ( "android." ) ; } } } } return false ; }
Source:
public boolean resetRoamingConfiguration ( ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "resetRoamingConfiguration " ) ; try { if ( ( mWifiVendorHal ) != null ) { com.android.server.wifi.WifiNative.RoamingConfig config = new com.android.server.wifi.WifiNative.RoamingConfig ( ) ; return mWifiVendorHal.configureRoaming ( config ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } return false ; }

Target:
public boolean configureRoaming ( com.android.server.wifi.WifiNative.RoamingConfig config ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "configureRoaming " ) ; if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.configureRoaming ( config ) ; } else { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , "configureRoaming not supported" ) ; return false ; } }
Source:
public android.content.ContentProviderResult [ ] applyBatch ( java.lang.String authority , java.util.ArrayList < android.content.ContentProviderOperation > operations ) throws android.content.OperationApplicationException , android.os.RemoteException { android.content.ContentProviderClient provider = acquireContentProviderClient ( authority ) ; if ( provider == null ) { throw new java.lang.IllegalArgumentException ( ( "Unknown authority " + authority ) ) ; } try { return provider.applyBatch ( operations ) ; } finally { provider.release ( ) ; } }

Target:
public android.content.ContentProviderResult [ ] applyBatch ( @ android.annotation.NonNull java.lang.String authority , @ android.annotation.NonNull java.util.ArrayList < android.content.ContentProviderOperation > operations ) throws android.content.OperationApplicationException , android.os.RemoteException { com.android.internal.util.Preconditions.checkNotNull ( authority , "authority" ) ; com.android.internal.util.Preconditions.checkNotNull ( operations , "operations" ) ; android.content.ContentProviderClient provider = acquireContentProviderClient ( authority ) ; if ( provider == null ) { throw new java.lang.IllegalArgumentException ( ( "Unknown authority " + authority ) ) ; } try { return provider.applyBatch ( operations ) ; } finally { provider.release ( ) ; } }
Source:
static void createNotificationChannels ( android.content.Context context ) { android.app.NotificationManager.from ( context ) . createNotificationChannel ( new android.app.NotificationChannel ( com.android.cellbroadcastreceiver.CellBroadcastAlertService.NOTIFICATION_CHANNEL_BROADCAST_MESSAGES , context.getString ( R.string.notification_channel_broadcast_messages ) , android.app.NotificationManager.IMPORTANCE_LOW ) ) ; }

Target:
static void createNotificationChannels ( android.content.Context context ) { android.app.NotificationManager.from ( context ) . createNotificationChannel ( new android.app.NotificationChannel ( com.android.cellbroadcastreceiver.CellBroadcastAlertService.NOTIFICATION_CHANNEL_EMERGENCY_ALERTS , context.getString ( R.string.notification_channel_emergency_alerts ) , android.app.NotificationManager.IMPORTANCE_LOW ) ) ; final android.app.NotificationChannel nonEmergency = new android.app.NotificationChannel ( com.android.cellbroadcastreceiver.CellBroadcastAlertService.NOTIFICATION_CHANNEL_NON_EMERGENCY_ALERTS , context.getString ( R.string.notification_channel_broadcast_messages ) , android.app.NotificationManager.IMPORTANCE_DEFAULT ) ; nonEmergency.enableVibration ( true ) ; android.app.NotificationManager.from ( context ) . createNotificationChannel ( nonEmergency ) ; }
Source:
public void testKeyStore_GetCertificateAlias_NonExist_Empty_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; java.security.cert.CertificateFactory f = java.security.cert.CertificateFactory.getInstance ( "X.509" ) ; java.security.cert.Certificate actual = f.generateCertificate ( new java.io.ByteArrayInputStream ( android.security.AndroidKeyStoreTest.FAKE_CA_1 ) ) ; assertNull ( "Stored certificate alias should not be found" , mKeyStore.getCertificateAlias ( actual ) ) ; }

Target:
public void testKeyStore_GetCertificateAlias_NonExist_Empty_Encrypted_Failure ( ) throws java.lang.Exception { setupPassword ( ) ; mKeyStore.load ( null , null ) ; java.security.cert.CertificateFactory f = java.security.cert.CertificateFactory.getInstance ( "X.509" ) ; java.security.cert.Certificate actual = f.generateCertificate ( new java.io.ByteArrayInputStream ( android.security.AndroidKeyStoreTest.FAKE_RSA_CA_1 ) ) ; assertNull ( "Stored certificate alias should not be found" , mKeyStore.getCertificateAlias ( actual ) ) ; }
Source:
public void setSurfaceTexture ( android.graphics.SurfaceTexture sur , int w , int h ) { validate ( ) ; mWidth = w ; mHeight = h ; nContextSetSurfaceTexture ( w , h , sur ) ; }

Target:
public void setSurfaceTexture ( android.graphics.SurfaceTexture sur , int w , int h ) { validate ( ) ; android.view.Surface s = null ; if ( sur != null ) { s = new android.view.Surface ( sur ) ; } mWidth = w ; mHeight = h ; nContextSetSurface ( w , h , s ) ; }
Source:
public final double getDouble ( ) { checkNotFreed ( ) ; int newPosition = ( position ) + ( libcore.io.SizeOf.DOUBLE ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } double result = java.lang.Double.longBitsToDouble ( this . block.peekLong ( ( ( offset ) + ( position ) ) , order ) ) ; position = newPosition ; return result ; }

Target:
public final double getDouble ( ) { checkIsAccessible ( ) ; int newPosition = ( position ) + ( libcore.io.SizeOf.DOUBLE ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } double result = java.lang.Double.longBitsToDouble ( this . block.peekLong ( ( ( offset ) + ( position ) ) , order ) ) ; position = newPosition ; return result ; }
Source:
public static java.util.List < com.google.gct.idea.appengine.wizard.AppEngineTemplates.TemplateInfo > getLocalTemplates ( ) { com.google.gct.idea.appengine.wizard.AppEngineTemplates.LOG.info ( "Populating built-in App Engine templates..." ) ; java.io.File jarPath = new java.io.File ( com.intellij.util.PathUtil.getJarPathForClass ( com.google.gct.idea.appengine.wizard.AppEngineTemplates.class ) ) ; if ( jarPath.isFile ( ) ) { jarPath = jarPath.getParentFile ( ) ; } java.io.File root = new java.io.File ( jarPath , com.google.gct.idea.appengine.wizard.AppEngineTemplates.TEMPLATES_DIR ) ; if ( ! ( root.exists ( ) ) ) { com.google.gct.idea.appengine.wizard.AppEngineTemplates.LOG.error ( "Failed to find templates directory, perhaps your cloud tools plugin is corrupt?" ) ; } return com.google.gct.idea.appengine.wizard.AppEngineTemplates.populateTemplates ( root ) ; }

Target:
public static java.util.List < com.google.gct.idea.appengine.wizard.AppEngineTemplates.TemplateInfo > getLocalTemplates ( ) { com.google.gct.idea.appengine.wizard.AppEngineTemplates.LOG.info ( "Populating built-in App Engine templates..." ) ; return com.google.gct.idea.appengine.wizard.AppEngineTemplates.getAppEngineTemplates ( com.google.gct.idea.appengine.wizard.AppEngineTemplates.LOCAL_TEMPLATES ) ; }
Source:
public void touch ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; com.android.monkeyrunner.easy.By selector = getSelector ( ap , 0 ) ; java.lang.String tmpType = ap.getString ( 1 ) ; com.android.monkeyrunner.core.TouchPressType type = com.android.monkeyrunner.core.TouchPressType.fromIdentifier ( tmpType ) ; com.google.common.base.Preconditions.checkNotNull ( type , ( "Invalid touch type: " + tmpType ) ) ; touch ( selector , type ) ; }

Target:
public void touch ( org.python.core.PyObject [ ] args , java.lang.String [ ] kws ) { org.python.core.ArgParser ap = com.android.monkeyrunner.JythonUtils.createArgParser ( args , kws ) ; com.google.common.base.Preconditions.checkNotNull ( ap ) ; com.android.monkeyrunner.easy.By selector = getSelector ( ap , 0 ) ; java.lang.String tmpType = ap.getString ( 1 ) ; com.android.chimpchat.core.TouchPressType type = com.android.chimpchat.core.TouchPressType.fromIdentifier ( tmpType ) ; com.google.common.base.Preconditions.checkNotNull ( type , ( "Invalid touch type: " + tmpType ) ) ; touch ( selector , type ) ; }
Source:
public abstract void visitMethodInsn ( final int opcode , final java.lang.String owner , final java.lang.String name , final java.lang.String desc ) ;

Target:
public void visitMethodInsn ( final int opcode , final java.lang.String owner , final java.lang.String name , final java.lang.String desc ) { if ( ( api ) >= ( org.objectweb.asm.Opcodes.ASM5 ) ) { boolean itf = opcode == ( org.objectweb.asm.Opcodes.INVOKEINTERFACE ) ; visitMethodInsn ( opcode , owner , name , desc , itf ) ; return ; } throw new java.lang.RuntimeException ( "Must be overriden" ) ; }
Source:
public void startEditors ( ) { com.android.ide.eclipse.adt.AdtPlugin.sAndroidLogoDesc = imageDescriptorFromPlugin ( com.android.ide.eclipse.adt.AdtPlugin.PLUGIN_ID , "/icons/android.png" ) ; com.android.ide.eclipse.adt.AdtPlugin.sAndroidLogo = com.android.ide.eclipse.adt.AdtPlugin.sAndroidLogoDesc.createImage ( ) ; org.eclipse.core.resources.IWorkspace ws = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) ; mResourceMonitor = com.android.ide.eclipse.adt.internal.resources.manager.GlobalProjectMonitor.startMonitoring ( ws ) ; if ( ( mResourceMonitor ) != null ) { try { setupDefaultEditor ( mResourceMonitor ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.setup ( mResourceMonitor ) ; com.android.ide.eclipse.adt.internal.lint.LintDeltaProcessor.startListening ( mResourceMonitor ) ; } catch ( java.lang.Throwable t ) { com.android.ide.eclipse.adt.AdtPlugin.log ( t , "ResourceManager.setup failed" ) ; } } }

Target:
public void startEditors ( ) { com.android.ide.eclipse.adt.AdtPlugin.sAndroidLogoDesc = imageDescriptorFromPlugin ( com.android.ide.eclipse.adt.AdtPlugin.PLUGIN_ID , "/icons/android.png" ) ; com.android.ide.eclipse.adt.AdtPlugin.sAndroidLogo = com.android.ide.eclipse.adt.AdtPlugin.sAndroidLogoDesc.createImage ( ) ; org.eclipse.core.resources.IWorkspace ws = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) ; mResourceMonitor = com.android.ide.eclipse.adt.internal.resources.manager.GlobalProjectMonitor.startMonitoring ( ws ) ; if ( ( mResourceMonitor ) != null ) { try { setupEditors ( mResourceMonitor ) ; com.android.ide.eclipse.adt.internal.resources.manager.ResourceManager.setup ( mResourceMonitor ) ; com.android.ide.eclipse.adt.internal.lint.LintDeltaProcessor.startListening ( mResourceMonitor ) ; } catch ( java.lang.Throwable t ) { com.android.ide.eclipse.adt.AdtPlugin.log ( t , "ResourceManager.setup failed" ) ; } } }
Source:
public int getTimeout ( ) { int timeout = getProperty ( com.android.jack.server.ConfigFile.TIME_OUT_PROPERTY , java.lang.Integer.valueOf ( 7200 ) , new com.android.sched.util.codec.IntCodec ( ) ) . intValue ( ) ; if ( ( timeout < 0 ) && ( timeout != ( com.android.jack.server.ConfigFile.TIMEOUT_DISABLED ) ) ) { com.android.jack.server.ConfigFile.logger.log ( java.util.logging.Level.WARNING , ( ( ( "Invalid config value for " + ( com.android.jack.server.ConfigFile.TIME_OUT_PROPERTY ) ) + ": " ) + timeout ) ) ; timeout = com.android.jack.server.ConfigFile.TIMEOUT_DISABLED ; } return timeout ; }

Target:
public int getTimeout ( ) { return getDelay ( com.android.jack.server.ConfigFile.TIME_OUT_PROPERTY , ( ( 2 * 60 ) * 60 ) ) ; }
Source:
public void onDisconnect ( ) { com.android.dialer.common.LogUtil.enterBlock ( "SimulatorConnection.onDisconnect" ) ; simulatorConnectionsBank.remove ( this ) ; onEvent ( new com.android.dialer.simulator.Simulator.Event ( com.android.dialer.simulator.Simulator.Event.DISCONNECT ) ) ; }

Target:
public void onDisconnect ( ) { com.android.dialer.common.LogUtil.enterBlock ( "SimulatorConnection.onDisconnect" ) ; simulatorConnectionsBank.remove ( this ) ; onEvent ( new com.android.dialer.simulator.Simulator.Event ( com.android.dialer.simulator.Simulator.Event.DISCONNECT ) ) ; rttTextStream = null ; if ( ( rttChatBot ) != null ) { rttChatBot.stop ( ) ; rttChatBot = null ; } }
Source:
public org.objectweb.asm.FieldVisitor visitField ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.Object value ) { return new org.objectweb.asm.FieldVisitor ( Opcodes.ASM4 ) { @ java.lang.Override public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { return av ; } } ; }

Target:
public org.objectweb.asm.FieldVisitor visitField ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.Object value ) { return new org.objectweb.asm.FieldVisitor ( Opcodes.ASM5 ) { @ java.lang.Override public org.objectweb.asm.AnnotationVisitor visitAnnotation ( java.lang.String desc , boolean visible ) { return av ; } @ java.lang.Override public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation ( int typeRef , org.objectweb.asm.TypePath typePath , java.lang.String desc , boolean visible ) { return av ; } } ; }
Source:
public static void checkStructure ( @ javax.annotation.CheckForNull java.io.File [ ] bootclasspath , @ javax.annotation.CheckForNull java.io.File [ ] classpath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , boolean withDebugInfo , boolean compareInstructionNumber , float instructionNumberTolerance ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( bootclasspath , classpath , fileOrSourceList , withDebugInfo , compareInstructionNumber , instructionNumberTolerance , ( ( com.android.jack.JarJarRules ) ( null ) ) , ( ( com.android.jack.ProguardFlags [ ] ) ( null ) ) ) ; }

Target:
public static void checkStructure ( @ javax.annotation.CheckForNull java.io.File [ ] classpath , @ javax.annotation.Nonnull java.io.File fileOrSourceList , boolean withDebugInfo , @ javax.annotation.CheckForNull com.android.jack.ProguardFlags [ ] proguardFlagFiles ) throws java.lang.Exception { com.android.jack.TestTools.checkStructure ( classpath , fileOrSourceList , withDebugInfo , false , 0.0F , ( ( com.android.jack.JarJarRules ) ( null ) ) , proguardFlagFiles ) ; }
Source:
public boolean isMatchFor ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier qualifier ) { if ( qualifier instanceof com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ) { com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier referenceQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ) ( qualifier ) ) ; if ( ( ( referenceQualifier.mValue ) == ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier.KeyboardState.SOFT ) ) && ( ( mValue ) == ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier.KeyboardState.EXPOSED ) ) ) { return true ; } return ( referenceQualifier.mValue ) == ( mValue ) ; } return false ; }

Target:
public boolean isBetterMatchThan ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier compareTo , com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier reference ) { if ( compareTo == null ) { return true ; } com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier compareQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ) ( compareTo ) ) ; com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier referenceQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ) ( reference ) ) ; if ( ( referenceQualifier.mValue ) == ( com.android.sdklib.resources.KeyboardState.SOFT ) ) { if ( ( ( compareQualifier.mValue ) == ( com.android.sdklib.resources.KeyboardState.EXPOSED ) ) && ( ( mValue ) == ( com.android.sdklib.resources.KeyboardState.SOFT ) ) ) { return true ; } } return false ; }
Source:
private com.android.dialer.voicemail.listui.NewVoicemailViewHolder getCurrentlyExpandedViewHolder ( ) { if ( newVoicemailViewHolderArrayMap.containsKey ( currentlyExpandedViewHolderId ) ) { com.android.dialer.common.Assert.checkArgument ( ( ( newVoicemailViewHolderArrayMap.get ( currentlyExpandedViewHolderId ) . getViewHolderId ( ) ) == ( currentlyExpandedViewHolderId ) ) ) ; return newVoicemailViewHolderArrayMap.get ( currentlyExpandedViewHolderId ) ; } else { com.android.dialer.common.LogUtil.i ( "NewVoicemailAdapter.getCurrentlyExpandedViewHolder" , "no view holder found in newVoicemailViewHolderArrayMap size:%d for %d" , newVoicemailViewHolderArrayMap.size ( ) , currentlyExpandedViewHolderId ) ; return null ; } }

Target:
private com.android.dialer.voicemail.listui.NewVoicemailViewHolder getCurrentlyExpandedViewHolder ( ) { if ( newVoicemailViewHolderArrayMap.containsKey ( currentlyExpandedViewHolderId ) ) { com.android.dialer.common.Assert.checkArgument ( ( ( newVoicemailViewHolderArrayMap.get ( currentlyExpandedViewHolderId ) . getViewHolderId ( ) ) == ( currentlyExpandedViewHolderId ) ) ) ; return newVoicemailViewHolderArrayMap.get ( currentlyExpandedViewHolderId ) ; } else { com.android.dialer.common.LogUtil.i ( "NewVoicemailAdapter.getCurrentlyExpandedViewHolder" , "no view holder found in newVoicemailViewHolderArrayMap size:%d for %d" , newVoicemailViewHolderArrayMap.size ( ) , currentlyExpandedViewHolderId ) ; printHashSet ( ) ; printHashMap ( ) ; return null ; } }
Source:
private void splitFloat ( java.lang.String str , float [ ] output ) { if ( str == null ) return ; java.util.StringTokenizer tokenizer = new java.util.StringTokenizer ( str , "," ) ; int index = 0 ; while ( tokenizer.hasMoreElements ( ) ) { java.lang.String token = tokenizer.nextToken ( ) ; output [ ( index ++ ) ] = java.lang.Float.parseFloat ( token ) ; } }

Target:
private void splitFloat ( java.lang.String str , float [ ] output ) { if ( str == null ) return ; android.text.TextUtils.StringSplitter splitter = new android.text.TextUtils.SimpleStringSplitter ( ',' ) ; splitter.setString ( str ) ; int index = 0 ; for ( java.lang.String s : splitter ) { output [ ( index ++ ) ] = java.lang.Float.parseFloat ( s ) ; } }
Source:
protected void resetEditorFrom ( com.google.gct.idea.appengine.run.AppEngineRunConfiguration configuration ) { if ( ( configuration.getSdkPath ( ) ) != null ) { myAppEngineSdkField.setText ( configuration.getSdkPath ( ) ) ; } if ( ( configuration.getWarPath ( ) ) != null ) { myWarPathField.setText ( configuration.getWarPath ( ) ) ; } myServerPortField.setText ( configuration.getServerPort ( ) ) ; myVmArgsField.setText ( configuration.getVmArgs ( ) ) ; moduleSelector.reset ( configuration ) ; }

Target:
protected void resetEditorFrom ( com.google.gct.idea.appengine.run.AppEngineRunConfiguration configuration ) { if ( ( configuration.getSdkPath ( ) ) != null ) { myAppEngineSdkField.setText ( configuration.getSdkPath ( ) ) ; } if ( ( configuration.getWarPath ( ) ) != null ) { myWarPathField.setText ( configuration.getWarPath ( ) ) ; } myServerPortField.setText ( configuration.getServerPort ( ) ) ; myServerAddressField.setText ( configuration.getServerAddress ( ) ) ; myVmArgsField.setText ( configuration.getVmArgs ( ) ) ; moduleSelector.reset ( configuration ) ; }
Source:
public void testCtor0 ( ) throws java.lang.Exception { android.text.format.Time t = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; assertEquals ( Time.TIMEZONE_UTC , t.timezone ) ; }

Target:
public void testClear ( ) throws java.lang.Exception { android.text.format.Time t = new android.text.format.Time ( "America/Los_Angeles" ) ; android.text.format.cts.TimeTest.Fields.set ( t , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ) ; t.clear ( Time.TIMEZONE_UTC ) ; android.text.format.Time expected = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; android.text.format.cts.TimeTest.Fields.set ( expected , 0 , 0 , 0 , 0 , 0 , 0 , ( - 1 ) , 0 , 0 , 0 ) ; android.text.format.cts.TimeTest.Fields.assertTimeEquals ( expected , t ) ; }
Source:
public boolean enterIf ( com.google.common.util.concurrent.Monitor.Guard guard ) { if ( ( guard.monitor ) != ( this ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lock ( ) ; boolean satisfied = false ; try { satisfied = guard.isSatisfied ( ) ; } finally { if ( ! satisfied ) { lock.unlock ( ) ; } } return satisfied ; }

Target:
public boolean enterIfInterruptibly ( com.google.common.util.concurrent.Monitor.Guard guard ) throws java.lang.InterruptedException { if ( ( guard.monitor ) != ( this ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } final java.util.concurrent.locks.ReentrantLock lock = this . lock ; lock.lockInterruptibly ( ) ; boolean satisfied = false ; try { return satisfied = guard.isSatisfied ( ) ; } finally { if ( ! satisfied ) { lock.unlock ( ) ; } } }
Source:
public void updatePublish ( int clientId , int sessionId , android.net.wifi.nan.PublishConfig publishConfig ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_TYPE_COMMAND ) ; msg.arg1 = com.android.server.wifi.nan.WifiNanStateManager.COMMAND_TYPE_UPDATE_PUBLISH ; msg.arg2 = clientId ; msg.obj = publishConfig ; msg.getData ( ) . putInt ( com.android.server.wifi.nan.WifiNanStateManager.MESSAGE_BUNDLE_KEY_SESSION_ID , sessionId ) ; mSm.sendMessage ( msg ) ; }

Target:
public void updatePublish ( int clientId , int sessionId , android.net.wifi.aware.PublishConfig publishConfig ) { android.os.Message msg = mSm.obtainMessage ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_TYPE_COMMAND ) ; msg.arg1 = com.android.server.wifi.aware.WifiAwareStateManager.COMMAND_TYPE_UPDATE_PUBLISH ; msg.arg2 = clientId ; msg.obj = publishConfig ; msg.getData ( ) . putInt ( com.android.server.wifi.aware.WifiAwareStateManager.MESSAGE_BUNDLE_KEY_SESSION_ID , sessionId ) ; mSm.sendMessage ( msg ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { updateLaunchConfigurationDialog ( ) ; boolean auto = mAutoTargetButton.getSelection ( ) ; mPreferredAvdSelector.setEnabled ( auto ) ; mPreferredAvdLabel.setEnabled ( auto ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { updateLaunchConfigurationDialog ( ) ; boolean auto = mAutoTargetButton.getSelection ( ) ; mPreferredAvdSelector.setEnabled ( auto ) ; mPreferredAvdLabel.setEnabled ( auto ) ; boolean all = mAllDevicesTargetButton.getSelection ( ) ; mDeviceTypeCombo.setEnabled ( all ) ; }
Source:
private org.eclipse.swt.graphics.Point getElementCenter ( com.android.monkeyrunner.easy.By selector ) { com.android.hierarchyviewerlib.device.ViewNode node = mHierarchyViewer.findView ( selector ) ; if ( node == null ) { throw new org.python.core.PyException ( org.python.core.Py.ValueError , java.lang.String.format ( "View not found: %s" , selector ) ) ; } org.eclipse.swt.graphics.Point p = com.android.monkeyrunner.easy.HierarchyViewer.getAbsoluteCenterOfView ( node ) ; return p ; }

Target:
private org.eclipse.swt.graphics.Point getElementCenter ( com.android.monkeyrunner.easy.By selector ) { com.android.hierarchyviewerlib.device.ViewNode node = selector.findView ( mHierarchyViewer ) ; if ( node == null ) { throw new org.python.core.PyException ( org.python.core.Py.ValueError , java.lang.String.format ( "View not found: %s" , selector ) ) ; } org.eclipse.swt.graphics.Point p = com.android.chimpchat.hierarchyviewer.HierarchyViewer.getAbsoluteCenterOfView ( node ) ; return p ; }
Source:
void regularScanTimeout ( ) { for ( com.android.bluetooth.gatt.ScanClient client : mRegularScanClients ) { if ( ! ( isExemptFromScanDowngrade ( client ) ) ) { android.util.Log.w ( com.android.bluetooth.gatt.ScanManager.TAG , ( ( "Moving scan client to opportunistic (clientIf " + ( client.clientIf ) ) + ")" ) ) ; setOpportunisticScanClient ( client ) ; client.stats.setScanTimeout ( ) ; } } configureRegularScanParams ( ) ; if ( ( numRegularScanClients ( ) ) == 0 ) { logd ( "stop scan" ) ; gattClientScanNative ( false ) ; } }

Target:
void regularScanTimeout ( ) { for ( com.android.bluetooth.gatt.ScanClient client : mRegularScanClients ) { if ( ! ( isExemptFromScanDowngrade ( client ) ) ) { android.util.Log.w ( com.android.bluetooth.gatt.ScanManager.TAG , ( ( "Moving scan client to opportunistic (scannerId " + ( client.scannerId ) ) + ")" ) ) ; setOpportunisticScanClient ( client ) ; client.stats.setScanTimeout ( ) ; } } configureRegularScanParams ( ) ; if ( ( numRegularScanClients ( ) ) == 0 ) { logd ( "stop scan" ) ; gattClientScanNative ( false ) ; } }
Source:
public void test_getDisplayNameZILjava_util_Locale ( ) { java.util.TimeZone timezone = java.util.TimeZone.getTimeZone ( "Asia/Shanghai" ) ; assertEquals ( "格林尼治标准时间+0800" , timezone.getDisplayName ( false , java.util.TimeZone.SHORT , java.util.Locale.CHINA ) ) ; try { timezone.getDisplayName ( false , 100 , java.util.Locale.CHINA ) ; fail ( "should throw IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException e ) { } }

Target:
public void test_getDisplayNameZILjava_util_Locale ( ) { java.util.TimeZone timezone = java.util.TimeZone.getTimeZone ( "Asia/Shanghai" ) ; assertEquals ( "中国标准时间" , timezone.getDisplayName ( false , java.util.TimeZone.LONG , java.util.Locale.CHINA ) ) ; assertEquals ( "GMT+0800" , timezone.getDisplayName ( false , java.util.TimeZone.SHORT , java.util.Locale.CHINA ) ) ; try { timezone.getDisplayName ( false , 100 , java.util.Locale.CHINA ) ; fail ( "should throw IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException e ) { } }
Source:
public byte [ ] computeSignature ( com.android.dx.io.DexBuffer dex ) throws java.io.IOException { java.security.MessageDigest digest ; try { digest = java.security.MessageDigest.getInstance ( "SHA-1" ) ; } catch ( java.security.NoSuchAlgorithmException e ) { throw new java.lang.AssertionError ( ) ; } int offset = ( com.android.dx.io.DexHasher.SIGNATURE_OFFSET ) + ( com.android.dx.io.DexHasher.SIGNATURE_SIZE ) ; byte [ ] bytes = dex.getBytes ( ) ; digest.update ( bytes , offset , ( ( bytes.length ) - offset ) ) ; return digest.digest ( ) ; }

Target:
public byte [ ] computeSignature ( com.android.dex.Dex dex ) throws java.io.IOException { java.security.MessageDigest digest ; try { digest = java.security.MessageDigest.getInstance ( "SHA-1" ) ; } catch ( java.security.NoSuchAlgorithmException e ) { throw new java.lang.AssertionError ( ) ; } int offset = ( com.android.dx.io.DexHasher.SIGNATURE_OFFSET ) + ( com.android.dx.io.DexHasher.SIGNATURE_SIZE ) ; byte [ ] bytes = dex.getBytes ( ) ; digest.update ( bytes , offset , ( ( bytes.length ) - offset ) ) ; return digest.digest ( ) ; }
Source:
private static boolean verifyVpnStatus ( final android.support.test.uiautomator.UiDevice device ) throws java.lang.Exception { device.openNotification ( ) ; boolean isTrue = new com.android.devtools.systemimage.uitest.utils.Wait ( ) . until ( new com.android.devtools.systemimage.uitest.utils.Wait.ExpectedCondition ( ) { @ java.lang.Override public boolean isTrue ( ) throws java.lang.Exception { return ( device.hasObject ( android.support.test.uiautomator.By.res ( Res.VPN_LOCK_ICON_RES ) ) ) || ( device.hasObject ( android.support.test.uiautomator.By.text ( com.android.devtools.systemimage.uitest.smoke.VpnTest.VPN_ACTIVATED_TEXT ) ) ) ; } } ) ; device.pressHome ( ) ; return isTrue ; }

Target:
public boolean isTrue ( ) throws java.lang.Exception { return device.hasObject ( android.support.test.uiautomator.By.text ( com.android.devtools.systemimage.uitest.smoke.VpnTest.NETWORK_MONITORED_TEXT ) ) ; }
Source:
public void setUp ( int repoXsdLevel ) throws java.lang.Exception { mRepoXsdLevel = repoXsdLevel ; mLog = new com.android.sdklib.mock.MockLog ( ) ; makeFakeAndroidHome ( ) ; makeFakeSdk ( ) ; mSdkManager = com.android.sdklib.SdkManager.createManager ( mFakeSdk.getAbsolutePath ( ) , mLog ) ; assertNotNull ( "SdkManager location was invalid" , mSdkManager ) ; mAvdManager = com.android.sdklib.internal.avd.AvdManager.getInstance ( mSdkManager , mLog ) ; }

Target:
public void setUp ( int repoXsdLevel ) throws java.lang.Exception { mRepoXsdLevel = repoXsdLevel ; mLog = new com.android.sdklib.mock.MockLog ( ) ; makeFakeAndroidHome ( ) ; makeFakeSdk ( ) ; createSdkAvdManagers ( ) ; }
Source:
void whitelistOppDevice ( android.bluetooth.BluetoothDevice device ) { if ( com.android.nfc.beam.BeamTransferManager.DBG ) android.util.Log.d ( com.android.nfc.beam.BeamTransferManager.TAG , ( ( "Whitelisting " + device ) + " for BT OPP" ) ) ; android.content.Intent intent = new android.content.Intent ( com.android.nfc.beam.BeamTransferManager.ACTION_WHITELIST_DEVICE ) ; intent.setPackage ( com.android.nfc.beam.BeamTransferManager.BLUETOOTH_PACKAGE ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; mContext.sendBroadcastAsUser ( intent , UserHandle.CURRENT ) ; }

Target:
void whitelistOppDevice ( android.bluetooth.BluetoothDevice device ) { if ( com.android.nfc.beam.BeamTransferManager.DBG ) android.util.Log.d ( com.android.nfc.beam.BeamTransferManager.TAG , ( ( "Whitelisting " + device ) + " for BT OPP" ) ) ; android.content.Intent intent = new android.content.Intent ( com.android.nfc.beam.BeamTransferManager.ACTION_WHITELIST_DEVICE ) ; intent.setPackage ( mContext.getString ( R.string.bluetooth_package ) ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; mContext.sendBroadcastAsUser ( intent , UserHandle.CURRENT ) ; }
Source:
public void onImsConnected ( int imsRadioTech ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onImsConnected imsRadioTech=" + imsRadioTech ) ) ; mPhone.setServiceState ( ServiceState.STATE_IN_SERVICE ) ; mPhone.setImsRegistered ( true ) ; mMetrics.writeOnImsConnectionState ( mPhone.getPhoneId ( ) , ImsConnectionState.State.CONNECTED , null ) ; }

Target:
public void onRegistered ( @ android.telephony.ims.stub.ImsRegistrationImplBase.ImsRegistrationTech int imsRadioTech ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onImsConnected imsRadioTech=" + imsRadioTech ) ) ; mPhone.setServiceState ( ServiceState.STATE_IN_SERVICE ) ; mPhone.setImsRegistered ( true ) ; mMetrics.writeOnImsConnectionState ( mPhone.getPhoneId ( ) , ImsConnectionState.State.CONNECTED , null ) ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , int [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFromUnchecked" ) ; mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , int [ ] data ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFromUnchecked" ) ; mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) , Element.DataType.SIGNED_32 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }
Source:
public void onDestroy ( ) { if ( com.android.bips.BuiltInPrintService.DEBUG ) android.util.Log.d ( com.android.bips.BuiltInPrintService.TAG , "onDestroy()" ) ; mCapabilitiesCache.close ( ) ; mManualDiscovery.close ( ) ; mBackend.close ( ) ; unlockWifi ( ) ; com.android.bips.BuiltInPrintService.sInstance = null ; mMainHandler.removeCallbacksAndMessages ( null ) ; super . onDestroy ( ) ; }

Target:
public void onDestroy ( ) { if ( com.android.bips.BuiltInPrintService.DEBUG ) android.util.Log.d ( com.android.bips.BuiltInPrintService.TAG , "onDestroy()" ) ; mCapabilitiesCache.close ( ) ; mP2pMonitor.stopAll ( ) ; mBackend.close ( ) ; unlockWifi ( ) ; com.android.bips.BuiltInPrintService.sInstance = null ; mMainHandler.removeCallbacksAndMessages ( null ) ; super . onDestroy ( ) ; }
Source:
public java.lang.String next ( java.util.regex.Pattern pattern ) { checkClosed ( ) ; checkNull ( pattern ) ; matchSuccessful = false ; saveCurrentStatus ( ) ; if ( ! ( setTokenRegion ( ) ) ) { recoverPreviousStatus ( ) ; throw new java.util.NoSuchElementException ( ) ; } matcher.usePattern ( pattern ) ; if ( ! ( matcher.matches ( ) ) ) { recoverPreviousStatus ( ) ; throw new java.util.InputMismatchException ( ) ; } matchSuccessful = true ; return matcher.group ( ) ; }

Target:
public java.lang.String next ( java.util.regex.Pattern pattern ) { checkOpen ( ) ; checkNotNull ( pattern ) ; matchSuccessful = false ; saveCurrentStatus ( ) ; if ( ! ( setTokenRegion ( ) ) ) { recoverPreviousStatus ( ) ; throw new java.util.NoSuchElementException ( ) ; } matcher.usePattern ( pattern ) ; if ( ! ( matcher.matches ( ) ) ) { recoverPreviousStatus ( ) ; throw new java.util.InputMismatchException ( ) ; } matchSuccessful = true ; return matcher.group ( ) ; }
Source:
private void assertGlVersionString ( int majorVersion ) throws java.lang.InterruptedException { java.lang.String versionString = "" + majorVersion ; java.lang.String message = ( ( ( "OpenGL version string '" + ( mActivity.getVersionString ( ) ) ) + "' is not " ) + majorVersion ) + ".0+." ; assertTrue ( message , java.util.regex.Pattern.matches ( ( ( ".*OpenGL.*ES.*" + versionString ) + "\\.\\d.*" ) , mActivity.getVersionString ( ) ) ) ; }

Target:
private void assertGlVersionString ( int major , int minor ) throws java.lang.InterruptedException { java.util.regex.Matcher matcher = java.util.regex.Pattern.compile ( "OpenGL ES(?:-CM)? (\\d+)\\.(\\d+).*" ) . matcher ( mActivity.getVersionString ( ) ) ; assertTrue ( ( "OpenGL ES version string is not of the required form " + "\'OpenGL ES(-CM)? (\\d+)\\.(\\d+).*\'" ) , matcher.matches ( ) ) ; int stringMajor = java.lang.Integer.parseInt ( matcher.group ( 1 ) ) ; int stringMinor = java.lang.Integer.parseInt ( matcher.group ( 2 ) ) ; assertEquals ( "GL_VERSION string doesn't match ActivityManager major version (check ro.opengles.version property)" , major , stringMajor ) ; assertEquals ( "GL_VERSION string doesn't match ActivityManager minor version (check ro.opengles.version property)" , minor , stringMinor ) ; }
Source:
public java.util.List < android.net.wifi.WifiConfiguration > getConfiguredNetworks ( ) { enforceAccessPermission ( ) ; mLog.trace ( "getConfiguredNetworks uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ( mWifiStateMachineChannel ) != null ) { return mWifiStateMachine.syncGetConfiguredNetworks ( android.os.Binder.getCallingUid ( ) , mWifiStateMachineChannel ) ; } else { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "mWifiStateMachineChannel is not initialized" ) ; return null ; } }

Target:
public android.content.pm.ParceledListSlice < android.net.wifi.WifiConfiguration > getConfiguredNetworks ( ) { enforceAccessPermission ( ) ; mLog.trace ( "getConfiguredNetworks uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ( mWifiStateMachineChannel ) != null ) { java.util.List < android.net.wifi.WifiConfiguration > configs = mWifiStateMachine.syncGetConfiguredNetworks ( android.os.Binder.getCallingUid ( ) , mWifiStateMachineChannel ) ; if ( configs != null ) { return new android.content.pm.ParceledListSlice < android.net.wifi.WifiConfiguration > ( configs ) ; } } else { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "mWifiStateMachineChannel is not initialized" ) ; } return null ; }
Source:
private boolean zoomWithPreview ( float scale ) { float oldScale = mActualScale ; if ( ( scale > 0.95F ) && ( scale < 1.05F ) ) { scale = 1.0F ; } setNewZoomScale ( scale , false ) ; if ( oldScale != ( mActualScale ) ) { mZoomStart = android.os.SystemClock.uptimeMillis ( ) ; mInvInitialZoomScale = 1.0F / oldScale ; mInvFinalZoomScale = 1.0F / ( mActualScale ) ; mZoomScale = mActualScale ; invalidate ( ) ; return true ; } else { return false ; } }

Target:
private int computeMaxScrollY ( ) { int maxContentH = ( computeVerticalScrollRange ( ) ) + ( getTitleHeight ( ) ) ; return java.lang.Math.max ( ( maxContentH - ( getViewHeightWithTitle ( ) ) ) , getTitleHeight ( ) ) ; }