auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public com.android.ims.internal.IImsServiceController getImsServiceControllerAndListen ( int slotIndex , @ android.telephony.TelephonyManager.Feature int feature , com.android.ims.internal.IImsServiceFeatureListener callback ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getImsServiceControllerAndListen ( slotIndex , feature , callback ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsServiceControllerAndListen, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }

Target:
public void enableIms ( int slotId ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.enableIms ( slotId ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "enableIms, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } }
Source:
public void testListPendingDownloads ( ) throws java.lang.Exception { android.telephony.mbms.DownloadRequest request = android.telephony.embms.cts.DOWNLOAD_REQUEST_TEMPLATE.setAppIntent ( new android.content.Intent ( ) ) . build ( ) ; mDownloadSession.download ( request ) ; java.util.List < android.telephony.mbms.DownloadRequest > downloads = mDownloadSession.listPendingDownloads ( ) ; assertEquals ( 1 , downloads.size ( ) ) ; assertEquals ( request , downloads.get ( 0 ) ) ; }

Target:
public void testListPendingDownloads ( ) throws java.lang.Exception { java.io.File tempFileRootDir = new java.io.File ( mContext.getFilesDir ( ) , "CtsTestDir" ) ; tempFileRootDir.mkdir ( ) ; mDownloadSession.setTempFileRootDirectory ( tempFileRootDir ) ; android.telephony.mbms.DownloadRequest request = downloadRequestTemplate.setAppIntent ( new android.content.Intent ( ) ) . build ( ) ; mDownloadSession.download ( request ) ; java.util.List < android.telephony.mbms.DownloadRequest > downloads = mDownloadSession.listPendingDownloads ( ) ; assertEquals ( 1 , downloads.size ( ) ) ; assertEquals ( request , downloads.get ( 0 ) ) ; }
Source:
public boolean getDataEnabled ( int subId ) { boolean retVal = false ; try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) retVal = telephony.getDataEnabled ( subId ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getDataEnabled" , e ) ; } catch ( java.lang.NullPointerException e ) { } return retVal ; }

Target:
public void setNetworkSelectionModeAutomatic ( ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.setNetworkSelectionModeAutomatic ( getSubId ( ) ) ; } } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeAutomatic RemoteException" , ex ) ; } catch ( java.lang.NullPointerException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeAutomatic NPE" , ex ) ; } }
Source:
public static java.util.Map < java.lang.String , java.lang.Integer > retrieveFieldValueNames ( java.lang.String id , int field , int style , java.util.Locale locale ) { sun.util.locale.provider.LocaleServiceProviderPool pool = sun.util.locale.provider.LocaleServiceProviderPool.getPool ( java.util.spi.CalendarNameProvider.class ) ; return pool.getLocalizedObject ( sun.util.locale.provider.CalendarDataUtility.CalendarFieldValueNamesMapGetter.INSTANCE , locale , sun.util.locale.provider.CalendarDataUtility.normalizeCalendarType ( id ) , field , style , false ) ; }

Target:
public static java.util.Map < java.lang.String , java.lang.Integer > retrieveJavaTimeFieldValueNames ( java.lang.String id , int field , int style , java.util.Locale locale ) { return null ; }
Source:
public void testNewInstanceString_ByteArrayStringConstructor ( ) { runTestNewInstanceString ( "([BLjava/lang/String;)V" , new org.apache.harmony.jpda.tests.jdwp.ClassType.NewInstanceStringTest.ConstructorArgumentsProvider ( ) { @ java.lang.Override 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 byteArrayValue = getStaticFieldValue ( debuggeeClassId , "BYTE_ARRAY" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value stringCharsetValue = getStaticFieldValue ( debuggeeClassId , "STRING_CHARSET" ) ; constructorArguments.add ( byteArrayValue ) ; constructorArguments.add ( stringCharsetValue ) ; } } ) ; }

Target:
public void testNewInstanceString_ByteArrayIntIntCharsetConstructor ( ) { runTestNewInstanceString ( "([BIILjava/nio/charset/Charset;)V" , new org.apache.harmony.jpda.tests.jdwp.ClassType.ConstructorArgumentsProvider ( ) { @ java.lang.Override 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 byteArrayValue = getStaticFieldValue ( debuggeeClassId , "BYTE_ARRAY" ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value charsetValue = getStaticFieldValue ( debuggeeClassId , "CHARSET" ) ; constructorArguments.add ( byteArrayValue ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 0 ) ) ; constructorArguments.add ( new org.apache.harmony.jpda.tests.framework.jdwp.Value ( 1 ) ) ; constructorArguments.add ( charsetValue ) ; } } ) ; }
Source:
final void put ( double [ ] src , int srcOffset , int doubleCount ) { checkNotFreed ( ) ; int byteCount = checkPutBounds ( SizeOf.DOUBLE , src.length , srcOffset , doubleCount ) ; this . block.pokeDoubleArray ( ( ( offset ) + ( position ) ) , src , srcOffset , doubleCount , order.needsSwap ) ; position += byteCount ; }

Target:
final void put ( double [ ] src , int srcOffset , int doubleCount ) { checkIsAccessible ( ) ; int byteCount = checkPutBounds ( SizeOf.DOUBLE , src.length , srcOffset , doubleCount ) ; this . block.pokeDoubleArray ( ( ( offset ) + ( position ) ) , src , srcOffset , doubleCount , order.needsSwap ) ; position += byteCount ; }
Source:
java.io.OutputStream openWrite ( @ javax.annotation.Nonnull com.android.sched.vfs.CachedDirectFS.CachedParentVFile file , boolean append ) throws com.android.sched.util.file.WrongPermissionException { assert ! ( isClosed ( ) ) ; assert capabilities.contains ( Capabilities.WRITE ) ; java.io.File path = getNativeFile ( file.getPath ( ) ) ; try { return new java.io.FileOutputStream ( path , append ) ; } catch ( java.io.FileNotFoundException e ) { com.android.sched.util.file.FileOrDirectory.checkPermissions ( path , file.getLocation ( ) , Permission.WRITE ) ; throw new com.android.sched.util.ConcurrentIOException ( e ) ; } }

Target:
java.io.OutputStream openWrite ( @ javax.annotation.Nonnull com.android.sched.vfs.CachedDirectFS.CachedParentVFile file , boolean append ) throws com.android.sched.util.file.WrongPermissionException { assert ! ( isClosed ( ) ) ; assert capabilities.contains ( Capabilities.WRITE ) ; VFSStatCategory.DIR_WRITE.getCounterStat ( getTracer ( ) , infoString ) . incValue ( ) ; java.io.File path = getNativeFile ( file.getPath ( ) ) ; try { return new java.io.FileOutputStream ( path , append ) ; } catch ( java.io.FileNotFoundException e ) { com.android.sched.util.file.FileOrDirectory.checkPermissions ( path , file.getLocation ( ) , Permission.WRITE ) ; throw new com.android.sched.util.ConcurrentIOException ( e ) ; } }
Source:
public com.google.common.collect.ImmutableList < com.android.build.gradle.api.ApkOutput > getOutputFiles ( ) { com.google.common.collect.ImmutableList.Builder < com.android.build.gradle.api.ApkOutput > outputs = com.google.common.collect.ImmutableList.builder ( ) ; if ( ( packageSplitResourcesTask ) != null ) { outputs.addAll ( packageSplitResourcesTask.getOutputFiles ( ) ) ; } outputs.add ( new com.android.build.gradle.api.ApkOutput.MainApkOutput ( getOutputFile ( ) ) ) ; return outputs.build ( ) ; }

Target:
public com.google.common.collect.ImmutableList < com.android.build.gradle.api.ApkOutputFile > getOutputs ( ) { com.google.common.collect.ImmutableList.Builder < com.android.build.gradle.api.ApkOutputFile > outputs = com.google.common.collect.ImmutableList.builder ( ) ; outputs.add ( getMainOutputFile ( ) ) ; if ( ( packageSplitResourcesTask ) != null ) { outputs.addAll ( packageSplitResourcesTask.getOutputSplitFiles ( ) ) ; } return outputs.build ( ) ; }
Source:
private void sendAvailablePlayersChanged ( ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "sendAvailablePlayersChanged" ) ; mHandler.sendEmptyMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_AVAILABLE_PLAYERS_CHANGED_RSP ) ; }

Target:
private void setActiveMediaSession ( android.media.session.MediaSession.Token token ) { com.android.bluetooth.avrcp.MediaController activeController = new com.android.bluetooth.avrcp.MediaController ( mContext , token ) ; if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "Set active media session " + ( activeController.getPackageName ( ) ) ) ) ; addMediaPlayerController ( activeController ) ; setAddressedMediaSessionPackage ( activeController.getPackageName ( ) ) ; }
Source:
private void initView ( ) { java.lang.String info = mLockPatternUtils.getOwnerInfo ( mUserId ) ; mOwnerInfo = ( ( android.widget.EditText ) ( mView.findViewById ( R.id.owner_info_edit_text ) ) ) ; if ( ! ( android.text.TextUtils.isEmpty ( info ) ) ) { mOwnerInfo.setText ( info ) ; } }

Target:
private void initView ( ) { java.lang.String info = mLockPatternUtils.getOwnerInfo ( mUserId ) ; mOwnerInfo = ( ( android.widget.EditText ) ( mView.findViewById ( R.id.owner_info_edit_text ) ) ) ; if ( ! ( android.text.TextUtils.isEmpty ( info ) ) ) { mOwnerInfo.setText ( info ) ; mOwnerInfo.setSelection ( info.length ( ) ) ; } }
Source:
com.android.server.pm.PackageSetting getPackageLPw ( android.content.pm.PackageParser.Package pkg , com.android.server.pm.PackageSetting origPackage , java.lang.String realName , com.android.server.pm.SharedUserSetting sharedUser , java.io.File codePath , java.io.File resourcePath , java.lang.String nativeLibraryPathString , int pkgFlags , android.os.UserHandle user , boolean add ) { final java.lang.String name = pkg.packageName ; com.android.server.pm.PackageSetting p = getPackageLPw ( name , origPackage , realName , sharedUser , codePath , resourcePath , nativeLibraryPathString , pkg.mVersionCode , pkgFlags , user , add , true ) ; return p ; }

Target:
com.android.server.pm.PackageSetting getPackageLPw ( android.content.pm.PackageParser.Package pkg , com.android.server.pm.PackageSetting origPackage , java.lang.String realName , com.android.server.pm.SharedUserSetting sharedUser , java.io.File codePath , java.io.File resourcePath , java.lang.String nativeLibraryPathString , java.lang.String requiredCpuAbiString , int pkgFlags , android.os.UserHandle user , boolean add ) { final java.lang.String name = pkg.packageName ; com.android.server.pm.PackageSetting p = getPackageLPw ( name , origPackage , realName , sharedUser , codePath , resourcePath , nativeLibraryPathString , requiredCpuAbiString , pkg.mVersionCode , pkgFlags , user , add , true ) ; return p ; }
Source:
private byte [ ] hash ( byte [ ] input ) { _digest.update ( input , 0 , input.length ) ; byte [ ] hash = new byte [ _digest.getDigestSize ( ) ] ; _digest.doFinal ( hash , 0 ) ; return hash ; }

Target:
private byte [ ] hash ( byte [ ] input ) { byte [ ] hash = new byte [ _digest.getDigestSize ( ) ] ; doHash ( input , hash ) ; return hash ; }
Source:
public void TestHangul ( ) throws java.io.IOException { long start = java.lang.System.currentTimeMillis ( ) ; com.ibm.icu.dev.test.translit.RoundTripTest.Test t = new com.ibm.icu.dev.test.translit.RoundTripTest.Test ( "Latin-Hangul" , 5 ) ; boolean TEST_ALL = getBooleanProperty ( "HangulRoundTripAll" , false ) ; if ( TEST_ALL && ( ( getInclusion ( ) ) == 10 ) ) { t.setPairLimit ( java.lang.Integer.MAX_VALUE ) ; } t.test ( "[a-zA-Z]" , "[가-힤]" , "" , this , new com.ibm.icu.dev.test.translit.RoundTripTest.Legal ( ) ) ; showElapsed ( start , "TestHangul" ) ; }

Target:
public void TestHangul ( ) throws java.io.IOException { long start = java.lang.System.currentTimeMillis ( ) ; com.ibm.icu.dev.test.translit.RoundTripTest.TransliterationTest t = new com.ibm.icu.dev.test.translit.RoundTripTest.TransliterationTest ( "Latin-Hangul" , 5 ) ; boolean TEST_ALL = getBooleanProperty ( "HangulRoundTripAll" , false ) ; if ( TEST_ALL && ( ( com.ibm.icu.dev.test.TestFmwk.getExhaustiveness ( ) ) == 10 ) ) { t.setPairLimit ( java.lang.Integer.MAX_VALUE ) ; } t.test ( "[a-zA-Z]" , "[가-힤]" , "" , this , new com.ibm.icu.dev.test.translit.RoundTripTest.Legal ( ) ) ; showElapsed ( start , "TestHangul" ) ; }
Source:
public boolean clearScores ( ) { if ( ( mNetworkScorerAppManager.isCallerActiveScorer ( getCallingUid ( ) ) ) || ( ( mContext.checkCallingOrSelfPermission ( permission.BROADCAST_NETWORK_PRIVILEGED ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) { clearInternal ( ) ; return true ; } else { throw new java.lang.SecurityException ( "Caller is neither the active scorer nor the scorer manager." ) ; } }

Target:
public boolean clearScores ( ) { if ( ( mNetworkScorerAppManager.isCallerActiveScorer ( getCallingUid ( ) ) ) || ( ( mContext.checkCallingOrSelfPermission ( permission.BROADCAST_NETWORK_PRIVILEGED ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) ) { final long token = android.os.Binder.clearCallingIdentity ( ) ; try { clearInternal ( ) ; return true ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } else { throw new java.lang.SecurityException ( "Caller is neither the active scorer nor the scorer manager." ) ; } }
Source:
public void sendCDMAFeatureCode ( java.lang.String FeatureCode , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_FLASH , response ) ; rr.mParcel.writeString ( FeatureCode ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " : " ) + FeatureCode ) ) ; send ( rr ) ; }

Target:
void riljLoge ( java.lang.String msg ) { android.telephony.Rlog.e ( com.android.internal.telephony.RIL.RILJ_LOG_TAG , ( msg + ( ( mPhoneId ) != null ? ( " [SUB" + ( mPhoneId ) ) + "]" : "" ) ) ) ; }
Source:
public void copyFrom ( byte [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFrom" ) ; mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFromUnchecked ( short [ ] d ) { copyFromUnchecked ( d , Element.DataType.SIGNED_16 , d.length ) ; }
Source:
public void testTelephonyCall_bindsToInCallServiceAndAddsCall ( ) { if ( ! ( android.telecom.cts.TestUtils.shouldTestTelecom ( mContext ) ) ) { return ; } final android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_CALL , android.telecom.cts.BasicInCallServiceTest.TEST_NUMBER ) ; intent.addFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; final android.telecom.cts.MockInCallService.InCallServiceCallbacks callbacks = createCallbacks ( ) ; android.telecom.cts.MockInCallService.setCallbacks ( callbacks ) ; mContext.startActivity ( intent ) ; try { if ( callbacks.lock.tryAcquire ( 3 , java.util.concurrent.TimeUnit.SECONDS ) ) { return ; } } catch ( java.lang.InterruptedException e ) { } fail ( "No call added to InCallService." ) ; }

Target:
public void testTelephonyCall_bindsToInCallServiceAndAddsCall ( ) { if ( ! ( android.telecom.cts.TestUtils.shouldTestTelecom ( mContext ) ) ) { return ; } final android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_CALL , android.telecom.cts.BasicInCallServiceTest.TEST_NUMBER ) ; intent.addFlags ( Intent.FLAG_ACTIVITY_NEW_TASK ) ; final android.telecom.cts.MockInCallService.InCallServiceCallbacks callbacks = createCallbacks ( ) ; android.telecom.cts.MockInCallService.setCallbacks ( callbacks ) ; mContext.startActivity ( intent ) ; try { if ( callbacks.lock.tryAcquire ( TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S , java.util.concurrent.TimeUnit.SECONDS ) ) { return ; } } catch ( java.lang.InterruptedException e ) { } fail ( "No call added to InCallService." ) ; }
Source:
protected com.android.tools.lint.checks.TestLintClient createClient ( ) { if ( getName ( ) . equals ( "testMissingApiDatabase" ) ) { return new com.android.tools.lint.checks.TestLintClient ( ) { @ java.lang.Override public java.io.File findResource ( @ com.android.annotations.NonNull java.lang.String relativePath ) { return null ; } } ; } return super . createClient ( ) ; }

Target:
protected com.android.tools.lint.detector.api.Project createProject ( @ com.android.annotations.NonNull java.io.File dir , @ com.android.annotations.NonNull java.io.File referenceDir ) { com.android.builder.model.AndroidProject model = org.mockito.Mockito.mock ( com.android.builder.model.AndroidProject.class ) ; org.mockito.Mockito.when ( model.getModelVersion ( ) ) . thenReturn ( "1.4.0-alpha1" ) ; com.android.tools.lint.detector.api.Project fromSuper = super . createProject ( dir , referenceDir ) ; com.android.tools.lint.detector.api.Project spy = org.mockito.Mockito.spy ( fromSuper ) ; org.mockito.Mockito.when ( spy.getGradleProjectModel ( ) ) . thenReturn ( model ) ; return spy ; }
Source:
public java.lang.String getNamespace ( ) { if ( ( mNamespace ) == null ) { com.android.ide.common.xml.ManifestData manifestData = com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData ( mProject ) ; if ( manifestData != null ) { java.lang.String javaPackage = manifestData.getPackage ( ) ; mNamespace = java.lang.String.format ( AdtConstants.NS_CUSTOM_RESOURCES , javaPackage ) ; } } return mNamespace ; }

Target:
public java.lang.String getNamespace ( ) { if ( ( mNamespace ) == null ) { boolean token = com.android.ide.common.rendering.RenderSecurityManager.enterSafeRegion ( mCredential ) ; try { com.android.ide.common.xml.ManifestData manifestData = com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData ( mProject ) ; if ( manifestData != null ) { java.lang.String javaPackage = manifestData.getPackage ( ) ; mNamespace = java.lang.String.format ( AdtConstants.NS_CUSTOM_RESOURCES , javaPackage ) ; } } finally { com.android.ide.common.rendering.RenderSecurityManager.exitSafeRegion ( token ) ; } } return mNamespace ; }
Source:
private java.lang.reflect.Method [ ] getMethodsForProxyClass ( java.lang.Class < ? > parentClass ) throws java.lang.Exception { java.lang.Class < ? > proxyClass = proxyFor ( parentClass ) . buildProxyClass ( ) ; java.lang.reflect.Method [ ] methods = null ; for ( com.google.dexmaker.stock.Field f : proxyClass.getDeclaredFields ( ) ) { if ( java.lang.reflect.Method [ ] . class . isAssignableFrom ( f.getType ( ) ) ) { f.setAccessible ( true ) ; methods = ( ( java.lang.reflect.Method [ ] ) ( f.get ( null ) ) ) ; break ; } } return methods ; }

Target:
private java.lang.reflect.Method [ ] getMethodsForProxyClass ( java.lang.Class < ? > parentClass ) throws java.lang.Exception { java.lang.Class < ? > proxyClass = proxyFor ( parentClass ) . buildProxyClass ( ) ; java.lang.reflect.Method [ ] methods = null ; for ( java.lang.reflect.Field f : proxyClass.getDeclaredFields ( ) ) { if ( java.lang.reflect.Method [ ] . class . isAssignableFrom ( f.getType ( ) ) ) { f.setAccessible ( true ) ; methods = ( ( java.lang.reflect.Method [ ] ) ( f.get ( null ) ) ) ; break ; } } return methods ; }
Source:
public void onRestoreInstanceState ( android.os.Bundle savedInstanceState ) { toolbarShadow.setVisibility ( savedInstanceState.getInt ( com.android.dialer.main.impl.MainSearchController.KEY_TOOLBAR_SHADOW_VISIBILITY ) ) ; if ( savedInstanceState.getBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_FAB_HIDDEN , false ) ) { fab.hide ( ) ; } if ( savedInstanceState.getBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_TOOLBAR_EXPANDED , false ) ) { toolbar.expand ( false , com.google.common.base.Optional.absent ( ) ) ; } if ( savedInstanceState.getBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_TOOLBAR_SLIDE_UP , false ) ) { toolbar.slideUp ( false , fragmentContainer ) ; } }

Target:
public void onRestoreInstanceState ( android.os.Bundle savedInstanceState ) { toolbarShadow.setVisibility ( savedInstanceState.getInt ( com.android.dialer.main.impl.MainSearchController.KEY_TOOLBAR_SHADOW_VISIBILITY ) ) ; if ( savedInstanceState.getBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_FAB_HIDDEN , false ) ) { fab.hide ( ) ; } boolean isSlideUp = savedInstanceState.getBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_TOOLBAR_SLIDE_UP , false ) ; if ( isSlideUp ) { toolbar.slideUp ( false , fragmentContainer ) ; } if ( savedInstanceState.getBoolean ( com.android.dialer.main.impl.MainSearchController.KEY_IS_TOOLBAR_EXPANDED , false ) ) { toolbar.expand ( false , com.google.common.base.Optional.absent ( ) , ( ! isSlideUp ) ) ; } }
Source:
public static java.lang.String getEndpointIdentificationAlgorithm ( javax.net.ssl.SSLParameters params ) { return params.getEndpointIdentificationAlgorithm ( ) ; }

Target:
public static void setSSLParameters ( javax.net.ssl.SSLParameters params , org.conscrypt.SSLParametersImpl impl , org.conscrypt.OpenSSLSocketImpl socket ) { impl.setEndpointIdentificationAlgorithm ( params.getEndpointIdentificationAlgorithm ( ) ) ; java.util.List < javax.net.ssl.SNIServerName > serverNames = params.getServerNames ( ) ; if ( serverNames != null ) { for ( javax.net.ssl.SNIServerName serverName : serverNames ) { if ( ( serverName.getType ( ) ) == ( javax.net.ssl.StandardConstants.SNI_HOST_NAME ) ) { socket.setHostname ( ( ( javax.net.ssl.SNIHostName ) ( serverName ) ) . getAsciiName ( ) ) ; break ; } } } }
Source:
public boolean hasCategory ( @ javax.annotation.Nonnull java.lang.Class < ? extends com.android.sched.util.config.category.Category > target ) { if ( target == ( com.android.sched.util.config.category.Category.class ) ) { return true ; } for ( java.lang.Class < ? extends com.android.sched.util.config.category.Category > category : categories ) { if ( target.isAssignableFrom ( category ) ) { return true ; } } return false ; }

Target:
public boolean hasDirectCategory ( @ javax.annotation.Nonnull java.lang.Class < ? extends com.android.sched.util.config.category.Category > target ) { if ( ( target == ( com.android.sched.util.config.category.Category.class ) ) || ( categories.containsKey ( target ) ) ) { return true ; } return false ; }
Source:
public java.lang.ClassLoader getClassLoader ( ) { final java.lang.ClassLoader appCl = getBaseContext ( ) . getClassLoader ( ) ; final java.lang.ClassLoader webViewCl = this . getClass ( ) . getClassLoader ( ) ; return new java.lang.ClassLoader ( ) { @ java.lang.Override protected java.lang.Class < ? > findClass ( java.lang.String name ) throws java.lang.ClassNotFoundException { try { return webViewCl.loadClass ( name ) ; } catch ( java.lang.ClassNotFoundException e ) { return appCl.loadClass ( name ) ; } } } ; }

Target:
public void setHorizontalScrollbarOverlay ( final boolean overlay ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setHorizontalScrollbarOverlay ( overlay ) ; } } ) ; return ; } mAwContents.setHorizontalScrollbarOverlay ( overlay ) ; }
Source:
public java.util.Iterator < com.android.jack.ir.ast.JMethodId > iterator ( ) { return virtualMethods.iterator ( ) ; }

Target:
public com.android.jack.frontend.VirtualMethodsMarker clone ( ) { com.android.jack.frontend.VirtualMethodsMarker clone ; try { clone = ( ( com.android.jack.frontend.VirtualMethodsMarker ) ( super . clone ( ) ) ) ; clone.virtualMethods = ( ( java.util.HashMap < com.android.jack.frontend.VirtualMethodsMarker.ComparableMethodId , com.android.jack.frontend.VirtualMethodsMarker.ComparableMethodId > ) ( virtualMethods.clone ( ) ) ) ; return clone ; } catch ( java.lang.CloneNotSupportedException e ) { throw new java.lang.AssertionError ( ) ; } }
Source:
public static void wtf ( java.lang.Object objectPrefix , java.lang.String format , java.lang.Object ... args ) { java.lang.String msg = com.android.services.telephony.Log.buildMessage ( com.android.services.telephony.Log.getPrefixFromObject ( objectPrefix ) , format , args ) ; android.util.Log.wtf ( com.android.services.telephony.Log.TAG , msg , new java.lang.IllegalStateException ( msg ) ) ; }

Target:
public static void wtf ( java.lang.Object objectPrefix , java.lang.String format , java.lang.Object ... args ) { android.telecom.Log.wtf ( objectPrefix , format , args ) ; }
Source:
public boolean isMobileDataEnabled ( ) { boolean retVal = false ; try { int subId = getSubId ( android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ) ; com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) retVal = telephony.isDataEnabled ( subId ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#isDataEnabled" , e ) ; } catch ( java.lang.NullPointerException e ) { } return retVal ; }

Target:
public boolean isDataCapable ( ) { boolean retVal = false ; try { int subId = getSubId ( android.telephony.SubscriptionManager.getDefaultDataSubscriptionId ( ) ) ; com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) retVal = telephony.isDataEnabled ( subId ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#isDataEnabled" , e ) ; } catch ( java.lang.NullPointerException e ) { } return retVal ; }
Source:
public final void update ( byte [ ] input ) throws java.lang.IllegalStateException { if ( ! ( isInitMac ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( input != null ) { spiImpl.engineUpdate ( input , 0 , input.length ) ; } }

Target:
public final void update ( byte [ ] input ) throws java.lang.IllegalStateException { if ( ! ( isInitMac ) ) { throw new java.lang.IllegalStateException ( ) ; } if ( input != null ) { getSpi ( ) . engineUpdate ( input , 0 , input.length ) ; } }
Source:
void destroy ( ) { if ( ( mMainView ) != null ) { dismissSubWindow ( ) ; mMainView.setEmbeddedTitleBar ( null ) ; android.webkit.WebView webView = mMainView ; setWebView ( null ) ; webView.destroy ( ) ; } }

Target:
private void restoreUserAgent ( ) { if ( ( ( mMainView ) == null ) || ( ( mSavedState ) == null ) ) { return ; } if ( ( mSavedState.getBoolean ( com.android.browser.Tab.USERAGENT ) ) != ( mSettings.hasDesktopUseragent ( mMainView ) ) ) { mSettings.toggleDesktopUseragent ( mMainView ) ; } }
Source:
public final void dumpSubclasses ( ) { for ( com.android.tools.perflib.heap.ClassObj theClass : mClassesById.values ( ) ) { int count = theClass.mSubclasses.size ( ) ; if ( count > 0 ) { java.lang.System.out.println ( theClass ) ; theClass.dumpSubclasses ( ) ; } } }

Target:
public final void dumpInstanceCounts ( ) { for ( java.lang.Object value : mClassesById.getValues ( ) ) { com.android.tools.perflib.heap.ClassObj theClass = ( ( com.android.tools.perflib.heap.ClassObj ) ( value ) ) ; int count = theClass.mInstances.size ( ) ; if ( count > 0 ) { java.lang.System.out.println ( ( ( theClass + ": " ) + count ) ) ; } } }
Source:
public void test_open ( ) throws java.io.IOException { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; assertFalse ( dc.getOption ( java.net.StandardSocketOptions.SO_REUSEADDR ) ) ; assertNull ( dc.getLocalAddress ( ) ) ; assertTrue ( dc.isOpen ( ) ) ; assertFalse ( dc.isConnected ( ) ) ; }

Target:
public void test_open ( ) throws java.io.IOException { java.nio.channels.DatagramChannel dc = java.nio.channels.DatagramChannel.open ( ) ; assertFalse ( dc.getOption ( java.net.StandardSocketOptions.SO_REUSEADDR ) ) ; assertTrue ( dc.getOption ( java.net.StandardSocketOptions.IP_MULTICAST_LOOP ) ) ; assertNull ( dc.getLocalAddress ( ) ) ; assertTrue ( dc.isOpen ( ) ) ; assertFalse ( dc.isConnected ( ) ) ; dc.close ( ) ; }
Source:
private java.lang.StringBuffer subformat ( double number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr ) { if ( ( currencySignCount ) == ( com.ibm.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { return subformat ( currencyPluralInfo.select ( getFixedDecimal ( number ) ) , result , fieldPosition , isNegative , isInteger , parseAttr ) ; } else { return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr ) ; } }

Target:
private java.lang.StringBuffer subformat ( java.lang.String pluralCount , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr , int maxIntDig ) { if ( ( style ) == ( NumberFormat.PLURALCURRENCYSTYLE ) ) { java.lang.String currencyPluralPattern = currencyPluralInfo.getCurrencyPluralPattern ( pluralCount ) ; if ( ( formatPattern.equals ( currencyPluralPattern ) ) == false ) { applyPatternWithoutExpandAffix ( currencyPluralPattern , false ) ; } } expandAffixAdjustWidth ( pluralCount ) ; return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; }
Source:
private void updateSendButtonState ( ) { boolean enable = false ; if ( isPreparedForSending ( ) ) { if ( ! ( mWorkingMessage.hasSlideshow ( ) ) ) { enable = true ; } else { mAttachmentEditor.setCanSend ( true ) ; } } else if ( null != ( mAttachmentEditor ) ) { mAttachmentEditor.setCanSend ( false ) ; } android.view.View sendButton = showSmsOrMmsSendButton ( mWorkingMessage.requiresMms ( ) ) ; sendButton.setEnabled ( enable ) ; sendButton.setFocusable ( enable ) ; }

Target:
private void updateSendButtonState ( ) { boolean enable = false ; if ( isPreparedForSending ( ) ) { if ( ! ( mWorkingMessage.hasSlideshow ( ) ) ) { enable = true ; } else { mAttachmentEditor.setCanSend ( true ) ; } } else if ( null != ( mAttachmentEditor ) ) { mAttachmentEditor.setCanSend ( false ) ; } boolean requiresMms = mWorkingMessage.requiresMms ( ) ; android.view.View sendButton = showSmsOrMmsSendButton ( requiresMms ) ; sendButton.setEnabled ( enable ) ; sendButton.setFocusable ( enable ) ; }
Source:
public com.android.sched.vfs.InputVFile getFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { typePath.addSuffix ( fileType.getFileExtension ( ) ) ; return libraryVDir.getInputVFile ( typePath ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }

Target:
public com.android.sched.vfs.InputVFile getFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { com.android.sched.vfs.VPath clonedPath = typePath.clone ( ) ; clonedPath.addSuffix ( fileType.getFileExtension ( ) ) ; clonedPath.prependPath ( fileType.getVPathPrefix ( ) ) ; return libraryVDir.getInputVFile ( clonedPath ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }
Source:
public java.util.concurrent.ScheduledFuture < ? > scheduleWithFixedDelay ( java.lang.Runnable command , long initialDelay , long delay , java.util.concurrent.TimeUnit unit ) { return delegate.scheduleWithFixedDelay ( command , initialDelay , delay , unit ) ; }

Target:
public com.google.common.util.concurrent.ListenableScheduledFuture < ? > schedule ( java.lang.Runnable command , long delay , java.util.concurrent.TimeUnit unit ) { com.google.common.util.concurrent.ListenableFutureTask < java.lang.Void > task = com.google.common.util.concurrent.ListenableFutureTask.create ( command , null ) ; java.util.concurrent.ScheduledFuture < ? > scheduled = delegate.schedule ( task , delay , unit ) ; return new com.google.common.util.concurrent.MoreExecutors.ScheduledListeningDecorator.ListenableScheduledTask < java.lang.Void > ( task , scheduled ) ; }
Source:
public java.nio.ByteBuffer put ( int index , byte value ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index ) ; this . block.pokeByte ( ( ( offset ) + index ) , value ) ; return this ; }

Target:
public java.nio.ByteBuffer put ( int index , byte value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index ) ; this . block.pokeByte ( ( ( offset ) + index ) , value ) ; return this ; }
Source:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg , java.lang.Object [ ] params ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setParameters ( params ) ; doLog ( lr , bundleName ) ; }

Target:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg , java.lang.Object [ ] params ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setParameters ( params ) ; doLog ( lr , bundleName ) ; }
Source:
protected void tearDown ( ) throws java.lang.Exception { if ( ! ( android.net.wifi.aware.cts.TestUtils.shouldTestWifiAware ( getContext ( ) ) ) ) { super . tearDown ( ) ; return ; } super . tearDown ( ) ; }

Target:
public void testCharacteristics ( ) { if ( ! ( android.net.wifi.aware.cts.TestUtils.shouldTestWifiAware ( getContext ( ) ) ) ) { return ; } android.net.wifi.aware.Characteristics characteristics = mWifiAwareManager.getCharacteristics ( ) ; assertNotNull ( "Wi-Fi Aware characteristics are null" , characteristics ) ; assertEquals ( "Service Name Length" , characteristics.getMaxServiceNameLength ( ) , 255 ) ; assertEquals ( "Service Specific Information Length" , characteristics.getMaxServiceSpecificInfoLength ( ) , 255 ) ; assertEquals ( "Match Filter Length" , characteristics.getMaxMatchFilterLength ( ) , 255 ) ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( ! ( obj instanceof com.android.ide.common.blame.SourceFilePosition ) ) { return false ; } com.android.ide.common.blame.SourceFilePosition other = ( ( com.android.ide.common.blame.SourceFilePosition ) ( obj ) ) ; return ( mSourceFile.equals ( other.mSourceFile ) ) && ( mSourcePosition.equals ( other.mSourcePosition ) ) ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) { return true ; } if ( ! ( obj instanceof com.android.ide.common.blame.SourceFilePosition ) ) { return false ; } com.android.ide.common.blame.SourceFilePosition other = ( ( com.android.ide.common.blame.SourceFilePosition ) ( obj ) ) ; return ( com.google.common.base.Objects.equal ( mSourceFile , other.mSourceFile ) ) && ( com.google.common.base.Objects.equal ( mSourcePosition , other.mSourcePosition ) ) ; }
Source:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , java.lang.Object d , int sizeBytes , android.support.v8.renderscript.Element.DataType dt ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes , dt.mID ) ; }
Source:
public void compileFrameworks ( ) throws java.lang.Exception { java.io.File outDexFolder = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.setSourceLevel ( SourceLevel.JAVA_7 ) ; toolchain.addProperty ( DexFileWriter.DEX_WRITING_POLICY.getName ( ) , "multidex" ) ; toolchain.srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathsAsString ( com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.BOOTCLASSPATH , com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.CLASSPATH ) , outDexFolder , false , com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.SOURCELIST ) ; }

Target:
public void compileFrameworks ( ) throws java.lang.Exception { java.io.File outDexFolder = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.setSourceLevel ( SourceLevel.JAVA_7 ) ; toolchain.addProperty ( DexFileWriter.DEX_WRITING_POLICY.getName ( ) , "multidex" ) ; toolchain.addToClasspath ( com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.BOOTCLASSPATH ) . addToClasspath ( com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.CLASSPATH ) . srcToExe ( outDexFolder , false , com.android.jack.compile.androidtree.frameworks.FrameworksBaseCompilationTest.SOURCELIST ) ; }
Source:
public void test_getURLEncodedEntry ( ) throws java.io.IOException { java.lang.String base = "file:resources/org/apache/harmony/luni/tests/java/net/url-test.jar" ; java.net.URL url = new java.net.URL ( ( ( "jar:" + base ) + "!/test%20folder%20for%20url%20test/test" ) ) ; if ( url != null ) { java.io.InputStream is = url.openStream ( ) ; is.close ( ) ; } }

Target:
public void test_getURLEncodedEntry ( ) throws java.io.IOException { java.net.URL url = copyAndOpenResourceStream ( "url-test.jar" , "test%20folder%20for%20url%20test/test" ) ; if ( url != null ) { java.io.InputStream is = url.openStream ( ) ; is.close ( ) ; } }
Source:
public static void helpQuiesce ( ) { java.lang.Thread t ; if ( ( t = java.lang.Thread.currentThread ( ) ) instanceof java.util.concurrent.ForkJoinWorkerThread ) { java.util.concurrent.ForkJoinWorkerThread wt = ( ( java.util.concurrent.ForkJoinWorkerThread ) ( t ) ) ; wt.pool.helpQuiescePool ( wt.workQueue ) ; } else java.util.concurrent.ForkJoinPool.externalHelpQuiescePool ( ) ; }

Target:
public static void helpQuiesce ( ) { java.lang.Thread t ; if ( ( t = java.lang.Thread.currentThread ( ) ) instanceof java.util.concurrent.ForkJoinWorkerThread ) { java.util.concurrent.ForkJoinWorkerThread wt = ( ( java.util.concurrent.ForkJoinWorkerThread ) ( t ) ) ; wt.pool.helpQuiescePool ( wt.workQueue ) ; } else java.util.concurrent.ForkJoinPool.quiesceCommonPool ( ) ; }
Source:
private com.android.jack.ir.ast.JPackage getPackage ( @ javax.annotation.Nonnull java.lang.String packageName ) throws com.android.jack.ir.ast.JPackageLookupException { assert ! ( packageName.contains ( "." ) ) ; com.android.jack.ir.ast.JPackage currentPackage = topLevelPackage ; java.util.Iterator < java.lang.String > iterator = packageBinaryNameSplitter.split ( packageName ) . iterator ( ) ; while ( iterator.hasNext ( ) ) { java.lang.String name = iterator.next ( ) ; currentPackage = currentPackage.getSubPackage ( name ) ; } assert com.android.jack.Jack.getLookupFormatter ( ) . getName ( currentPackage ) . equals ( packageName ) ; return currentPackage ; }

Target:
public com.android.jack.ir.ast.JPackage getPackage ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage pack , @ javax.annotation.Nonnull java.lang.String simpleName ) throws com.android.jack.ir.ast.JPackageLookupException { return pack.getSubPackage ( simpleName ) ; }
Source:
private void updateHoverRegion ( int x , int y ) { x = imageXCoordinate ( x ) ; y = imageYCoordinate ( y ) ; com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo verticalUpdateRegion = findVerticalPatch ( x , y ) ; com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo horizontalUpdateRegion = findHorizontalPatch ( x , y ) ; computeHighlightRegions ( verticalUpdateRegion , horizontalUpdateRegion ) ; java.awt.Cursor c = getCursor ( x , y , verticalUpdateRegion , horizontalUpdateRegion ) ; setCursor ( c ) ; }

Target:
private void updateHoverRegion ( int x , int y ) { com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo vertical = findVerticalPatch ( x , y ) ; com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo horizontal = findHorizontalPatch ( x , y ) ; computeHoverHighlightRegions ( vertical , horizontal ) ; computeHoverRegionTooltip ( vertical , horizontal ) ; com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo updateRegion = pickUpdateRegion ( x , y , vertical , horizontal ) ; setCursorForRegion ( x , y , updateRegion ) ; }
Source:
private void addSuperClasses ( com.android.tools.lint.client.api.LintDriver.SuperclassVisitor visitor , java.util.List < com.android.tools.lint.client.api.LintDriver.ClassEntry > entries ) { for ( com.android.tools.lint.client.api.LintDriver.ClassEntry entry : entries ) { org.objectweb.asm.ClassReader reader = new org.objectweb.asm.ClassReader ( entry.bytes ) ; int flags = ( ( org.objectweb.asm.ClassReader.SKIP_CODE ) | ( org.objectweb.asm.ClassReader.SKIP_DEBUG ) ) | ( org.objectweb.asm.ClassReader.SKIP_FRAMES ) ; reader.accept ( visitor , flags ) ; } }

Target:
private void addSuperClasses ( com.android.tools.lint.client.api.LintDriver.SuperclassVisitor visitor , java.util.List < com.android.tools.lint.client.api.LintDriver.ClassEntry > entries ) { for ( com.android.tools.lint.client.api.LintDriver.ClassEntry entry : entries ) { try { org.objectweb.asm.ClassReader reader = new org.objectweb.asm.ClassReader ( entry.bytes ) ; int flags = ( ( org.objectweb.asm.ClassReader.SKIP_CODE ) | ( org.objectweb.asm.ClassReader.SKIP_DEBUG ) ) | ( org.objectweb.asm.ClassReader.SKIP_FRAMES ) ; reader.accept ( visitor , flags ) ; } catch ( java.lang.Throwable t ) { mClient.log ( null , "Error processing %1$s: broken class file?" , entry.path ( ) ) ; } } }
Source:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.PkgType filter , @ com.android.annotations.NonNull com.android.sdklib.AndroidVersion version ) { assert ( ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_PLATFORM ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_SAMPLE ) ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_SOURCE ) ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { com.android.sdklib.repository.descriptors.IPkgDesc d = pkg.getDesc ( ) ; if ( ( d.hasAndroidVersion ( ) ) && ( d.getAndroidVersion ( ) . equals ( version ) ) ) { return pkg ; } } return null ; }

Target:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( @ com.android.annotations.NonNull com.android.sdklib.repository.descriptors.PkgType filter , @ com.android.annotations.NonNull com.android.sdklib.repository.local.AndroidVersion version ) { assert ( ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_PLATFORM ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_SAMPLE ) ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_SOURCE ) ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { com.android.sdklib.repository.descriptors.IPkgDesc d = pkg.getDesc ( ) ; if ( ( d.hasAndroidVersion ( ) ) && ( d.getAndroidVersion ( ) . equals ( version ) ) ) { return pkg ; } } return null ; }
Source:
java.lang.Object [ ] [ ] providerLenientText ( ) { return new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { test.java.time.format.TestTextParser.RUSSIAN , java.time.temporal.ChronoField.MONTH_OF_YEAR , 1 , "января" } , new java.lang.Object [ ] { test.java.time.format.TestTextParser.RUSSIAN , java.time.temporal.ChronoField.MONTH_OF_YEAR , 1 , "Январь" } , new java.lang.Object [ ] { test.java.time.format.TestTextParser.RUSSIAN , java.time.temporal.ChronoField.MONTH_OF_YEAR , 1 , "янв" } , new java.lang.Object [ ] { test.java.time.format.TestTextParser.RUSSIAN , java.time.temporal.ChronoField.MONTH_OF_YEAR , 1 , "Янв." } } ; }

Target:
java.lang.Object [ ] [ ] providerLenientText ( ) { return new java.lang.Object [ ] [ ] { new java.lang.Object [ ] { test.java.time.format.TestTextParser.RUSSIAN , java.time.temporal.ChronoField.MONTH_OF_YEAR , 1 , "января" } , new java.lang.Object [ ] { test.java.time.format.TestTextParser.RUSSIAN , java.time.temporal.ChronoField.MONTH_OF_YEAR , 1 , "январь" } , new java.lang.Object [ ] { test.java.time.format.TestTextParser.RUSSIAN , java.time.temporal.ChronoField.MONTH_OF_YEAR , 1 , "янв." } , new java.lang.Object [ ] { test.java.time.format.TestTextParser.RUSSIAN , java.time.temporal.ChronoField.MONTH_OF_YEAR , 1 , "янв." } } ; }
Source:
public java.nio.ByteBuffer putShort ( short value ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.SHORT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeShort ( ( ( offset ) + ( position ) ) , value , order ) ; position = newPosition ; return this ; }

Target:
public java.nio.ByteBuffer putShort ( int index , short value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } checkIndex ( index , SizeOf.SHORT ) ; this . block.pokeShort ( ( ( offset ) + index ) , value , order ) ; return this ; }
Source:
public void setWifiApConfiguration ( android.net.wifi.WifiConfiguration wifiConfig ) { enforceChangePermission ( ) ; if ( wifiConfig == null ) return ; if ( com.android.server.wifi.WifiServiceImpl.isValid ( wifiConfig ) ) { mWifiStateMachine.setWifiApConfiguration ( wifiConfig ) ; } else { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "Invalid WifiConfiguration" ) ; } }

Target:
public void setWifiApConfiguration ( android.net.wifi.WifiConfiguration wifiConfig ) { enforceChangePermission ( ) ; mLog.trace ( "setWifiApConfiguration uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( wifiConfig == null ) return ; if ( com.android.server.wifi.WifiServiceImpl.isValid ( wifiConfig ) ) { mWifiStateMachine.setWifiApConfiguration ( wifiConfig ) ; } else { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "Invalid WifiConfiguration" ) ; } }