auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testDependencies ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( com.android.tools.lint.checks.GradleDetector.DEPENDENCY ) ; assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( "build.gradle:5: Warning: Old buildToolsVersion 19.0.0; recommended version is 19.1.0 or later [GradleDependency]\n" + " buildToolsVersion \"19.0.0\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "build.gradle:24: Warning: A newer version of com.google.guava:guava than 11.0.2 is available: 18.0 [GradleDependency]\n" ) + " freeCompile \'com.google.guava:guava:11.0.2\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "build.gradle:25: Warning: A newer version of com.android.support:appcompat-v7 than 13.0.0 is available: 21.0.2 [GradleDependency]\n" ) + " compile \'com.android.support:appcompat-v7:13.0.0\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 3 warnings\n" ) ) , lintProject ( "gradle/Dependencies.gradle=>build.gradle" ) ) ; }

Target:
public void testDependencies ( ) throws java.lang.Exception { mEnabled = java.util.Collections.singleton ( com.android.tools.lint.checks.GradleDetector.DEPENDENCY ) ; assertEquals ( ( "" + ( ( ( ( ( ( ( ( ( "build.gradle:5: Warning: Old buildToolsVersion 19.0.0; recommended version is 19.1 or later [GradleDependency]\n" + " buildToolsVersion \"19.0.0\"\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "build.gradle:24: Warning: A newer version of com.google.guava:guava than 11.0.2 is available: 18.0 [GradleDependency]\n" ) + " freeCompile \'com.google.guava:guava:11.0.2\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "build.gradle:25: Warning: A newer version of com.android.support:appcompat-v7 than 13.0.0 is available: 21.0.2 [GradleDependency]\n" ) + " compile \'com.android.support:appcompat-v7:13.0.0\'\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 3 warnings\n" ) ) , lintProject ( "gradle/Dependencies.gradle=>build.gradle" ) ) ; }
Source:
public final android.content.ContentProviderClient acquireContentProviderClient ( android.net.Uri uri ) { android.content.IContentProvider provider = acquireProvider ( uri ) ; if ( provider != null ) { return new android.content.ContentProviderClient ( this , provider ) ; } return null ; }

Target:
public final android.content.IContentProvider acquireProvider ( android.net.Uri uri ) { if ( ! ( android.content.ContentResolver.SCHEME_CONTENT.equals ( uri.getScheme ( ) ) ) ) { return null ; } final java.lang.String auth = uri.getAuthority ( ) ; if ( auth != null ) { return acquireProvider ( mContext , auth ) ; } return null ; }
Source:
void moveTaskToStack ( int taskId , int stackId , boolean toTop ) { final com.android.server.am.TaskRecord task = anyTaskForIdLocked ( taskId ) ; if ( task == null ) { return ; } final com.android.server.am.ActivityStack stack = getStack ( stackId ) ; if ( stack == null ) { android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , ( "moveTaskToStack: no stack for id=" + stackId ) ) ; return ; } task.stack.removeTask ( task ) ; stack.addTask ( task , toTop , true ) ; mWindowManager.addTask ( taskId , stackId , toTop ) ; resumeTopActivitiesLocked ( ) ; }

Target:
void moveTaskToStackLocked ( int taskId , int stackId , boolean toTop ) { final com.android.server.am.TaskRecord task = anyTaskForIdLocked ( taskId ) ; if ( task == null ) { return ; } final com.android.server.am.ActivityStack stack = getStack ( stackId ) ; if ( stack == null ) { android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , ( "moveTaskToStack: no stack for id=" + stackId ) ) ; return ; } task.stack.removeTask ( task , "moveTaskToStack" ) ; stack.addTask ( task , toTop , true ) ; mWindowManager.addTask ( taskId , stackId , toTop ) ; resumeTopActivitiesLocked ( ) ; }
Source:
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 ) ; }

Target:
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 ) ; } }
Source:
public final void endVisit ( org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDecl , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { if ( ( ( typeDecl.binding ) == null ) || ( ( typeDecl.binding.constantPoolName ( ) ) == null ) ) { assert false ; return ; } endVisit ( typeDecl ) ; if ( ! ( typeDecl.binding.isAnonymousType ( ) ) ) { push ( null ) ; } }

Target:
public final void endVisit ( org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDecl , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { assert ! ( com.android.jack.ir.impl.JackIrBuilder.hasError ( typeDecl ) ) ; if ( ( typeDecl.binding.constantPoolName ( ) ) == null ) { assert false ; return ; } endVisit ( typeDecl ) ; if ( ! ( typeDecl.binding.isAnonymousType ( ) ) ) { push ( null ) ; } }
Source:
public void startDtmf ( char c , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_DTMF_START , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; rr.mParcel.writeString ( java.lang.Character.toString ( c ) ) ; send ( rr ) ; }

Target:
public void getCLIR ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_GET_CLIR , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.getClir ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "getCLIR" , e ) ; } } }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; java.lang.String message = "People:" ; java.lang.Iterable < org.gradle.sample.Person > people = com.google.common.collect.Lists.newArrayList ( new org.gradle.sample.Person ( "fred" ) ) ; for ( org.gradle.sample.Person person : people ) { message += "\n * " ; message += person.getName ( ) ; } android.widget.TextView textView = new android.widget.TextView ( this ) ; textView.setTextSize ( 20 ) ; textView.setText ( message ) ; setContentView ( textView ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; java.lang.String message = "People:" ; java.lang.Iterable < com.android.tests.dependencies.Person > people = com.google.common.collect.Lists.newArrayList ( new com.android.tests.dependencies.Person ( "fred" ) ) ; for ( com.android.tests.dependencies.Person person : people ) { message += "\n * " ; message += person.getName ( ) ; } android.widget.TextView textView = new android.widget.TextView ( this ) ; textView.setTextSize ( 20 ) ; textView.setText ( message ) ; setContentView ( textView ) ; }
Source:
public java.lang.Class < ? > getDexCacheType ( com.android.dex.Dex dex , int dexTypeIndex ) { java.lang.Class < ? > [ ] dexCacheResolvedTypes = dexCache.resolvedTypes ; java.lang.Class < ? > resolvedType = dexCacheResolvedTypes [ dexTypeIndex ] ; if ( resolvedType == null ) { int descriptorIndex = dex.typeIds ( ) . get ( dexTypeIndex ) ; java.lang.String descriptor = getDexCacheString ( dex , descriptorIndex ) ; resolvedType = libcore.reflect.InternalNames.getClass ( getClassLoader ( ) , descriptor ) ; dexCacheResolvedTypes [ dexTypeIndex ] = resolvedType ; } return resolvedType ; }

Target:
public java.lang.Class < ? > getDexCacheType ( com.android.dex.Dex dex , int dexTypeIndex ) { java.lang.Class < ? > resolvedType = dexCache.getResolvedType ( dexTypeIndex ) ; if ( resolvedType == null ) { int descriptorIndex = dex.typeIds ( ) . get ( dexTypeIndex ) ; java.lang.String descriptor = getDexCacheString ( dex , descriptorIndex ) ; resolvedType = libcore.reflect.InternalNames.getClass ( getClassLoader ( ) , descriptor ) ; dexCache.setResolvedType ( dexTypeIndex , resolvedType ) ; } return resolvedType ; }
Source:
public void feed ( long offset , long size , com.android.apksig.util.DataSink sink ) throws java.io.IOException { if ( ( size < 0 ) || ( size > ( mSize ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( ( "size: " + size ) + ", source size: " ) + ( mSize ) ) ) ; } sink.consume ( getByteBuffer ( offset , ( ( int ) ( size ) ) ) ) ; }

Target:
public void feed ( long offset , long size , com.android.apksig.util.DataSink sink ) throws java.io.IOException { if ( ( size < 0 ) || ( size > ( mSize ) ) ) { throw new java.lang.IndexOutOfBoundsException ( ( ( ( "size: " + size ) + ", source size: " ) + ( mSize ) ) ) ; } sink.consume ( getByteBuffer ( offset , ( ( int ) ( size ) ) ) ) ; }
Source:
public void onSuccess ( ) { android.telecom.Log.d ( this , "Adding simService %s" , currentSimService.getComponentName ( ) ) ; simServiceComponentNames.add ( currentSimService.getComponentName ( ) ) ; simServiceBinders.add ( currentSimService.mServiceInterface.asBinder ( ) ) ; maybeComplete ( ) ; }

Target:
public void onSuccess ( ) { android.telecom.Log.d ( this , "Adding simService %s" , currentSimService.getComponentName ( ) ) ; if ( ( currentSimService.mServiceInterface ) == null ) { android.telecom.Log.w ( this , "queryRemoteConnectionServices: simService %s died - Skipping." , currentSimService.getComponentName ( ) ) ; } else { simServiceComponentNames.add ( currentSimService.getComponentName ( ) ) ; simServiceBinders.add ( currentSimService.mServiceInterface.asBinder ( ) ) ; } maybeComplete ( ) ; }
Source:
public void setLOD ( int lod ) { if ( ! ( mAdaptedAllocation.getType ( ) . hasMipmaps ( ) ) ) { throw new android.renderscript.RSInvalidStateException ( "Cannot set LOD when the allocation type does not include mipmaps." ) ; } if ( ! ( mConstrainedLOD ) ) { throw new android.renderscript.RSInvalidStateException ( "Cannot set LOD when the adapter includes mipmaps." ) ; } initLOD ( lod ) ; }

Target:
public void setLOD ( int lod ) { if ( ! ( mAdaptedAllocation.getType ( ) . hasMipmaps ( ) ) ) { throw new android.renderscript.RSInvalidStateException ( "Cannot set LOD when the allocation type does not include mipmaps." ) ; } if ( mWindow.hasMipmaps ( ) ) { throw new android.renderscript.RSInvalidStateException ( "Cannot set LOD when the adapter includes mipmaps." ) ; } initLOD ( lod ) ; mSelectedLOD = lod ; updateOffsets ( ) ; }
Source:
public void scheduleRegisteredReceiver ( android.content.IIntentReceiver receiver , android.content.Intent intent , int resultCode , java.lang.String dataStr , android.os.Bundle extras , boolean ordered , boolean sticky , int sendingUser ) throws android.os.RemoteException { receiver.performReceive ( intent , resultCode , dataStr , extras , ordered , sticky , sendingUser ) ; }

Target:
public void scheduleRegisteredReceiver ( android.content.IIntentReceiver receiver , android.content.Intent intent , int resultCode , java.lang.String dataStr , android.os.Bundle extras , boolean ordered , boolean sticky , int sendingUser , int processState ) throws android.os.RemoteException { updateProcessState ( processState , false ) ; receiver.performReceive ( intent , resultCode , dataStr , extras , ordered , sticky , sendingUser ) ; }
Source:
private static void setEffectiveGroup ( int gid ) { int errno = com.android.internal.os.ZygoteInit.setregid ( com.android.internal.os.ZygoteInit.ROOT_GID , gid ) ; if ( errno != 0 ) { android.util.Log.e ( com.android.internal.os.ZygoteInit.TAG , ( "setregid() failed. errno: " + errno ) ) ; } }

Target:
static void preload ( ) { android.util.Log.d ( com.android.internal.os.ZygoteInit.TAG , "begin preload" ) ; com.android.internal.os.ZygoteInit.preloadClasses ( ) ; com.android.internal.os.ZygoteInit.preloadResources ( ) ; com.android.internal.os.ZygoteInit.preloadOpenGL ( ) ; com.android.internal.os.ZygoteInit.preloadSharedLibraries ( ) ; com.android.internal.os.ZygoteInit.preloadTextResources ( ) ; android.webkit.WebViewFactory.prepareWebViewInZygote ( ) ; android.util.Log.d ( com.android.internal.os.ZygoteInit.TAG , "end preload" ) ; }
Source:
public void scheduleTimeTickEvent ( ) { java.util.Calendar calendar = java.util.Calendar.getInstance ( ) ; final long currentTime = java.lang.System.currentTimeMillis ( ) ; calendar.setTimeInMillis ( currentTime ) ; calendar.add ( java.util.Calendar.MINUTE , 1 ) ; calendar.set ( java.util.Calendar.SECOND , 0 ) ; calendar.set ( java.util.Calendar.MILLISECOND , 0 ) ; final long tickEventDelay = ( calendar.getTimeInMillis ( ) ) - currentTime ; set ( AlarmManager.ELAPSED_REALTIME , ( ( android.os.SystemClock.elapsedRealtime ( ) ) + tickEventDelay ) , mTimeTickSender ) ; }

Target:
public void scheduleTimeTickEvent ( ) { final long currentTime = java.lang.System.currentTimeMillis ( ) ; final long nextTime = 60000 * ( ( currentTime / 60000 ) + 1 ) ; final long tickEventDelay = nextTime - currentTime ; set ( AlarmManager.ELAPSED_REALTIME , ( ( android.os.SystemClock.elapsedRealtime ( ) ) + tickEventDelay ) , mTimeTickSender ) ; }
Source:
public void freeCache ( java.lang.String uuid , long freeStorageSize ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.freeCache ( uuid , freeStorageSize ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void linkFile ( java.lang.String relativePath , java.lang.String fromBase , java.lang.String toBase ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.linkFile ( relativePath , fromBase , toBase ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
private libcore.tzdata.shared2.DistroVersion readDistroVersion ( java.io.File distroDir ) throws java.io.IOException , libcore.tzdata.shared2.DistroException { android.util.Slog.i ( logTag , "Reading distro format version" ) ; java.io.File distroVersionFile = new java.io.File ( distroDir , libcore.tzdata.shared2.TimeZoneDistro.DISTRO_VERSION_FILE_NAME ) ; if ( ! ( distroVersionFile.exists ( ) ) ) { throw new libcore.tzdata.shared2.DistroException ( ( "No distro version file found: " + distroVersionFile ) ) ; } byte [ ] versionBytes = libcore.tzdata.shared2.FileUtils.readBytes ( distroVersionFile , DistroVersion.DISTRO_VERSION_FILE_LENGTH ) ; return libcore.tzdata.shared2.DistroVersion.fromBytes ( versionBytes ) ; }

Target:
private com.android.timezone.distro.DistroVersion readDistroVersion ( java.io.File distroDir ) throws com.android.timezone.distro.DistroException , java.io.IOException { android.util.Slog.i ( logTag , "Reading distro format version" ) ; java.io.File distroVersionFile = new java.io.File ( distroDir , com.android.timezone.distro.TimeZoneDistro.DISTRO_VERSION_FILE_NAME ) ; if ( ! ( distroVersionFile.exists ( ) ) ) { throw new com.android.timezone.distro.DistroException ( ( "No distro version file found: " + distroVersionFile ) ) ; } byte [ ] versionBytes = com.android.timezone.distro.FileUtils.readBytes ( distroVersionFile , DistroVersion.DISTRO_VERSION_FILE_LENGTH ) ; return com.android.timezone.distro.DistroVersion.fromBytes ( versionBytes ) ; }
Source:
final void putUnchecked ( int pos , float [ ] src , int srcOffset , int length ) { libcore.io.Memory.pokeFloatArray ( ix ( pos ) , src , srcOffset , length , ( ! ( nativeByteOrder ) ) ) ; }

Target:
final void putUnchecked ( int pos , float [ ] src , int srcOffset , int length ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } libcore.io.Memory.pokeFloatArray ( ix ( pos ) , src , srcOffset , length , ( ! ( nativeByteOrder ) ) ) ; }
Source:
public void testCompare0 ( ) throws java.lang.Exception { android.text.format.Time a = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; android.text.format.Time b = new android.text.format.Time ( "America/Los_Angeles" ) ; assertTrue ( ( ( android.text.format.Time.compare ( a , b ) ) < 0 ) ) ; assertTrue ( ( ( android.text.format.Time.compare ( b , a ) ) > 0 ) ) ; assertTrue ( ( ( android.text.format.Time.compare ( b , b ) ) == 0 ) ) ; assertTrue ( ( ( android.text.format.Time.compare ( a , a ) ) == 0 ) ) ; }

Target:
public void testToString ( ) throws java.lang.Exception { android.text.format.Time t = new android.text.format.Time ( android.text.format.Time.TIMEZONE_UTC ) ; assertEquals ( "19700101T000000UTC(0,0,0,-1,0)" , t.toString ( ) ) ; t.timezone = "America/Los_Angeles" ; assertEquals ( "19700101T000000America/Los_Angeles(0,0,0,-1,28800)" , t.toString ( ) ) ; }
Source:
public void setHttpAuthUsernamePassword ( final java.lang.String host , final java.lang.String realm , final java.lang.String username , final java.lang.String password ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setHttpAuthUsernamePassword ( host , realm , username , password ) ; } } ) ; return ; } mAwContents.setHttpAuthUsernamePassword ( host , realm , username , password ) ; }

Target:
public void destroy ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { destroy ( ) ; } } ) ; return ; } mAwContents.destroy ( ) ; if ( ( mGLfunctor ) != null ) { mGLfunctor.destroy ( ) ; mGLfunctor = null ; } }
Source:
private void checkService ( com.android.tools.lint.detector.api.XmlContext context , org.w3c.dom.Element element ) { if ( ( getExported ( element ) ) && ( isUnprotectedByPermission ( element ) ) ) { context.report ( com.android.tools.lint.checks.SecurityDetector.EXPORTED_SERVICE , element , context.getLocation ( element ) , "Exported service does not require permission" , null ) ; } }

Target:
private static void checkService ( com.android.tools.lint.detector.api.XmlContext context , org.w3c.dom.Element element ) { if ( ( com.android.tools.lint.checks.SecurityDetector.getExported ( element ) ) && ( com.android.tools.lint.checks.SecurityDetector.isUnprotectedByPermission ( element ) ) ) { context.report ( com.android.tools.lint.checks.SecurityDetector.EXPORTED_SERVICE , element , context.getLocation ( element ) , "Exported service does not require permission" , null ) ; } }
Source:
public void addLocalVariableTypeInfo ( proguard.classfile.editor.LocalVariableTypeInfo localVariableTypeInfo ) { int localVariableTypeTableLength = targetLocalVariableTypeTableAttribute.u2localVariableTypeTableLength ; proguard.classfile.editor.LocalVariableTypeInfo [ ] localVariableTypeTable = targetLocalVariableTypeTableAttribute.localVariableTypeTable ; if ( ( localVariableTypeTable.length ) <= localVariableTypeTableLength ) { targetLocalVariableTypeTableAttribute.localVariableTypeTable = new proguard.classfile.editor.LocalVariableTypeInfo [ localVariableTypeTableLength + 1 ] ; java.lang.System.arraycopy ( localVariableTypeTable , 0 , targetLocalVariableTypeTableAttribute.localVariableTypeTable , 0 , localVariableTypeTableLength ) ; localVariableTypeTable = targetLocalVariableTypeTableAttribute.localVariableTypeTable ; } localVariableTypeTable [ ( ( targetLocalVariableTypeTableAttribute.u2localVariableTypeTableLength ) ++ ) ] = localVariableTypeInfo ; }

Target:
public void addLocalVariableTypeInfo ( proguard.classfile.editor.LocalVariableTypeInfo localVariableTypeInfo ) { targetLocalVariableTypeTableAttribute.localVariableTypeTable = ( ( proguard.classfile.editor.LocalVariableTypeInfo [ ] ) ( proguard.util.ArrayUtil.add ( targetLocalVariableTypeTableAttribute.localVariableTypeTable , ( ( targetLocalVariableTypeTableAttribute.u2localVariableTypeTableLength ) ++ ) , localVariableTypeInfo ) ) ) ; }
Source:
public final android.content.IContentProvider acquireExistingProvider ( android.net.Uri uri ) { if ( ! ( android.content.ContentResolver.SCHEME_CONTENT.equals ( uri.getScheme ( ) ) ) ) { return null ; } java.lang.String auth = uri.getAuthority ( ) ; if ( auth != null ) { return acquireExistingProvider ( mContext , uri.getAuthority ( ) ) ; } return null ; }

Target:
public final android.content.IContentProvider acquireProvider ( android.net.Uri uri ) { if ( ! ( android.content.ContentResolver.SCHEME_CONTENT.equals ( uri.getScheme ( ) ) ) ) { return null ; } final java.lang.String auth = uri.getAuthority ( ) ; if ( auth != null ) { return acquireProvider ( mContext , auth ) ; } return null ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( obj == ( this ) ) return true ; if ( ! ( obj instanceof javax.security.auth.PrivateCredentialPermission ) ) return false ; javax.security.auth.PrivateCredentialPermission that = ( ( javax.security.auth.PrivateCredentialPermission ) ( obj ) ) ; return ( this . implies ( that ) ) && ( that.implies ( this ) ) ; }

Target:
public boolean implies ( java.security.Permission p ) { return true ; }
Source:
public static void checkServerTrusted ( javax.net.ssl.X509TrustManager x509tm , java.security.cert.X509Certificate [ ] chain , java.lang.String authType , java.lang.String host ) throws java.security.cert.CertificateException { x509tm.checkServerTrusted ( chain , authType ) ; }

Target:
public static void checkServerTrusted ( javax.net.ssl.X509TrustManager tm , java.security.cert.X509Certificate [ ] chain , java.lang.String authType , org.conscrypt.OpenSSLSocketImpl socket ) throws java.security.cert.CertificateException { if ( tm instanceof javax.net.ssl.X509ExtendedTrustManager ) { javax.net.ssl.X509ExtendedTrustManager x509etm = ( ( javax.net.ssl.X509ExtendedTrustManager ) ( tm ) ) ; x509etm.checkServerTrusted ( chain , authType , socket ) ; } else { tm.checkServerTrusted ( chain , authType ) ; } }
Source:
public void getVisitedHistory ( android.webkit.ValueCallback < java.lang.String [ ] > callback ) { org.chromium.base.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "getVisitedHistory" ) ; mWebChromeClient.getVisitedHistory ( callback ) ; } org.chromium.base.TraceEvent.end ( ) ; }

Target:
public void getVisitedHistory ( android.webkit.ValueCallback < java.lang.String [ ] > callback ) { try { org.chromium.base.TraceEvent.begin ( "WebViewContentsClientAdapter.getVisitedHistory" ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "getVisitedHistory" ) ; mWebChromeClient.getVisitedHistory ( callback ) ; } } finally { org.chromium.base.TraceEvent.end ( "WebViewContentsClientAdapter.getVisitedHistory" ) ; } }
Source:
public void testStageInstallWithErrorCode_withWorkingDir ( ) throws java.lang.Exception { java.io.File workingDir = installer.getWorkingDir ( ) ; assertTrue ( workingDir.mkdir ( ) ) ; libcore.tzdata.update2.TimeZoneDistroInstallerTest.createFile ( new java.io.File ( workingDir , "myFile" ) , new byte [ ] { 'a' } ) ; com.android.timezone.distro.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_SUCCESS , installer.stageInstallWithErrorCode ( distro ) ) ; assertInstallDistroStaged ( distro ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_badTzLookupFile ( ) throws java.lang.Exception { byte [ ] stagedDistroBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBytes ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_SUCCESS , installer.stageInstallWithErrorCode ( new com.android.timezone.distro.TimeZoneDistro ( stagedDistroBytes ) ) ) ; assertInstallDistroStaged ( stagedDistroBytes ) ; byte [ ] incompleteDistroBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEWER_RULES_VERSION , 1 ) . setTzLookupXml ( "<foo />" ) . buildUnvalidatedBytes ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_VALIDATION_ERROR , installer.stageInstallWithErrorCode ( new com.android.timezone.distro.TimeZoneDistro ( incompleteDistroBytes ) ) ) ; assertInstallDistroStaged ( stagedDistroBytes ) ; assertNoInstalledDistro ( ) ; }
Source:
public void testOcclude ( ) throws java.lang.Exception { if ( ! ( isHandheld ( ) ) ) { return ; } gotoKeyguard ( ) ; launchActivity ( "ShowWhenLockedActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "ShowWhenLockedActivity" } ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_KEYGUARD_OCCLUDE , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }

Target:
public void testOcclude ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } gotoKeyguard ( ) ; launchActivity ( "ShowWhenLockedActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "ShowWhenLockedActivity" } ) ; assertEquals ( "Picked wrong transition" , android.server.cts.WindowManagerState.TRANSIT_KEYGUARD_OCCLUDE , mAmWmState.getWmState ( ) . getLastTransition ( ) ) ; }
Source:
public void setCdmaBroadcastActivation ( boolean activate , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_BROADCAST_ACTIVATION , response ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( ( activate ? 0 : 1 ) ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void setCdmaBroadcastActivation ( boolean activate , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_BROADCAST_ACTIVATION , response , mRILDefaultWorkSource ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( ( activate ? 0 : 1 ) ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }
Source:
private void assertPasswordSucceeds ( java.lang.String password , java.lang.String restriction ) { boolean passwordResetResult = dpm.resetPassword ( password , 0 ) ; assertTrue ( ( ( ( "Password '" + password ) + "' failed on " ) + restriction ) , passwordResetResult ) ; assertTrue ( dpm.isActivePasswordSufficient ( ) ) ; }

Target:
private void assertPasswordSufficiency ( boolean expectPasswordSufficient ) { int retries = 15 ; while ( ( retries >= 0 ) && ( ( dpm.isActivePasswordSufficient ( ) ) != expectPasswordSufficient ) ) { retries -- ; try { java.lang.Thread.sleep ( 200 ) ; } catch ( java.lang.InterruptedException e ) { break ; } } assertEquals ( expectPasswordSufficient , dpm.isActivePasswordSufficient ( ) ) ; }
Source:
private void enforceCallingPermission ( java.lang.String permission , java.lang.String function ) { if ( ( com.android.server.accessibility.AccessibilityManagerService.OWN_PROCESS_ID ) == ( android.os.Binder.getCallingPid ( ) ) ) { return ; } final int permissionStatus = mContext.checkCallingPermission ( permission ) ; if ( permissionStatus != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { throw new java.lang.SecurityException ( ( ( ( "You do not have " + permission ) + " required to call " ) + function ) ) ; } }

Target:
private boolean hasPermission ( java.lang.String permission ) { return ( mContext.checkCallingPermission ( permission ) ) == ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ; }
Source:
public com.android.jack.ir.ast.JDefinedAnnotation create ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage enclosingPackage , @ javax.annotation.Nonnull com.android.jack.jayce.JayceClassOrInterfaceLoader loader ) { assert ( signature ) != null ; assert ( retentionPolicy ) != null ; java.lang.String binaryName = com.android.jack.util.NamingTools.getClassBinaryNameFromDescriptor ( signature ) ; java.lang.String simpleName = com.android.jack.util.NamingTools.getSimpleClassNameFromBinaryName ( binaryName ) ; com.android.jack.ir.ast.JDefinedAnnotation jInterfaceType = new com.android.jack.ir.ast.JDefinedAnnotation ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , simpleName , modifiers , enclosingPackage , loader ) ; jInterfaceType.setRetentionPolicy ( retentionPolicy ) ; return jInterfaceType ; }

Target:
public com.android.jack.ir.ast.JDefinedAnnotationType create ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage enclosingPackage , @ javax.annotation.Nonnull com.android.jack.jayce.JayceClassOrInterfaceLoader loader ) { assert ( signature ) != null ; assert ( retentionPolicy ) != null ; java.lang.String binaryName = com.android.jack.util.NamingTools.getClassBinaryNameFromDescriptor ( signature ) ; java.lang.String simpleName = com.android.jack.util.NamingTools.getSimpleClassNameFromBinaryName ( binaryName ) ; com.android.jack.ir.ast.JDefinedAnnotationType jInterfaceType = new com.android.jack.ir.ast.JDefinedAnnotationType ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , simpleName , modifiers , enclosingPackage , loader ) ; jInterfaceType.setRetentionPolicy ( retentionPolicy ) ; return jInterfaceType ; }
Source:
public java.lang.String getDeviceSoftwareVersionForSlot ( int slotIndex , java.lang.String callingPackage ) { if ( ! ( canReadPhoneState ( callingPackage , "getDeviceSoftwareVersionForSlot" ) ) ) { return null ; } com.android.internal.telephony.Phone phone = com.android.internal.telephony.PhoneFactory.getPhone ( slotIndex ) ; return phone == null ? null : phone.getDeviceSvn ( ) ; }

Target:
public java.lang.String getDeviceSoftwareVersionForSlot ( int slotIndex , java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getDeviceSoftwareVersionForSlot" ) ) ) { return null ; } com.android.internal.telephony.Phone phone = com.android.internal.telephony.PhoneFactory.getPhone ( slotIndex ) ; return phone == null ? null : phone.getDeviceSvn ( ) ; }
Source:
public void validateCertCredentialWithoutClientCertChain ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = new android.net.wifi.hotspot2.pps.Credential ( ) ; cred.realm = "realm" ; cred.certCredential = new android.net.wifi.hotspot2.pps.Credential.CertificateCredential ( ) ; cred.certCredential.certType = "x509v3" ; cred.certCredential.certSha256FingerPrint = java.security.MessageDigest.getInstance ( "SHA-256" ) . digest ( FakeKeys.CLIENT_CERT.getEncoded ( ) ) ; cred.caCertificate = android.net.wifi.FakeKeys.CA_CERT0 ; cred.clientPrivateKey = android.net.wifi.FakeKeys.RSA_KEY1 ; org.junit.Assert.assertFalse ( cred.validate ( ) ) ; }

Target:
public void validateUserCredentialWithoutAuthMethod ( ) throws java.lang.Exception { android.net.wifi.hotspot2.pps.Credential cred = android.net.wifi.hotspot2.pps.CredentialTest.createCredentialWithUserCredential ( ) ; cred.getUserCredential ( ) . setNonEapInnerMethod ( null ) ; org.junit.Assert.assertFalse ( cred.validate ( ) ) ; }
Source:
public void normalDeletedDiffedFieldValues ( ) { com.android.ahat.heapdump.FieldValue normal = new com.android.ahat.heapdump.FieldValue ( "name" , "type" , com.android.ahat.heapdump.Value.pack ( 1 ) ) ; com.android.ahat.heapdump.DiffedFieldValue x = com.android.ahat.heapdump.DiffedFieldValue.deleted ( normal ) ; org.junit.Assert.assertEquals ( "name" , x.name ) ; org.junit.Assert.assertEquals ( "type" , x.type ) ; org.junit.Assert.assertEquals ( com.android.ahat.heapdump.Value.pack ( 1 ) , x.baseline ) ; org.junit.Assert.assertEquals ( DiffedFieldValue.Status.DELETED , x.status ) ; }

Target:
public void normalAddedDiffedFieldValues ( ) { com.android.ahat.heapdump.FieldValue normal = new com.android.ahat.heapdump.FieldValue ( "name" , com.android.ahat.DiffFieldsTest.t0 , com.android.ahat.heapdump.Value.pack ( 1 ) ) ; com.android.ahat.heapdump.DiffedFieldValue x = com.android.ahat.heapdump.DiffedFieldValue.added ( normal ) ; org.junit.Assert.assertEquals ( "name" , x.name ) ; org.junit.Assert.assertEquals ( com.android.ahat.DiffFieldsTest.t0 , x.type ) ; org.junit.Assert.assertEquals ( com.android.ahat.heapdump.Value.pack ( 1 ) , x.current ) ; org.junit.Assert.assertEquals ( DiffedFieldValue.Status.ADDED , x.status ) ; }
Source:
public void testEclipseFormatStyle1 ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences prefs = new com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences ( ) { @ java.lang.Override public java.lang.String getOneIndentUnit ( ) { return "\t" ; } @ java.lang.Override public int getTabWidth ( ) { return 8 ; } } ; checkFormat ( prefs , "res/values/colors.xml" , ( "<resources>\n" + ( ( ( " <color name=\"enrollment_error\">#99e21f14</color>\n" + "\n" ) + " <color name=\"service_starting_up\">#99000000</color>\n" ) + "</resources>" ) ) , ( "<resources>\n" + ( ( ( ( "\n" + "\t<color name=\"enrollment_error\">#99e21f14</color>\n" ) + "\t<color name=\"service_starting_up\">#99000000</color>\n" ) + "\n" ) + "</resources>" ) ) ) ; }

Target:
public void testEclipseFormatStyle1 ( ) throws java.lang.Exception { com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences prefs = new com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences ( ) { @ java.lang.Override public java.lang.String getOneIndentUnit ( ) { return "\t" ; } @ java.lang.Override public int getTabWidth ( ) { return 8 ; } } ; checkFormat ( prefs , "res/values/colors.xml" , ( "<resources>\n" + ( ( ( " <color name=\"enrollment_error\">#99e21f14</color>\n" + "\n" ) + " <color name=\"service_starting_up\">#99000000</color>\n" ) + "</resources>" ) ) , ( "<resources>\n" + ( ( ( ( "\n" + "\t<color name=\"enrollment_error\">#99e21f14</color>\n" ) + "\t<color name=\"service_starting_up\">#99000000</color>\n" ) + "\n" ) + "</resources>" ) ) ) ; }
Source:
public android.util.Pair < byte [ ] , byte [ ] > readOutOfBandData ( ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return null ; return null ; }

Target:
public static java.lang.String nameForState ( @ android.bluetooth.BluetoothAdapter.AdapterState int state ) { switch ( state ) { case android.bluetooth.BluetoothAdapter.STATE_OFF : return "OFF" ; case android.bluetooth.BluetoothAdapter.STATE_TURNING_ON : return "TURNING_ON" ; case android.bluetooth.BluetoothAdapter.STATE_ON : return "ON" ; case android.bluetooth.BluetoothAdapter.STATE_TURNING_OFF : return "TURNING_OFF" ; case android.bluetooth.BluetoothAdapter.STATE_BLE_TURNING_ON : return "BLE_TURNING_ON" ; case android.bluetooth.BluetoothAdapter.STATE_BLE_ON : return "BLE_ON" ; case android.bluetooth.BluetoothAdapter.STATE_BLE_TURNING_OFF : return "BLE_TURNING_OFF" ; default : return ( "?!?!? (" + state ) + ")" ; } }
Source:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; mRecommendedNetworkEvaluator = new com.android.server.wifi.RecommendedNetworkEvaluator ( mNetworkScoreCache , mNetworkScoreManager , mWifiConfigManager , new android.util.LocalLog ( 0 ) ) ; org.mockito.Mockito.when ( mWifiConfigManager.getSavedNetworkForScanDetailAndCache ( com.android.server.wifi.RecommendedNetworkEvaluatorTest.TRUSTED_SCAN_DETAIL ) ) . thenReturn ( com.android.server.wifi.RecommendedNetworkEvaluatorTest.TRUSTED_WIFI_CONFIGURATION ) ; org.mockito.Mockito.when ( mWifiConfigManager.getSavedNetworkForScanDetailAndCache ( com.android.server.wifi.RecommendedNetworkEvaluatorTest.UNTRUSTED_SCAN_DETAIL ) ) . thenReturn ( null ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; mRecommendedNetworkEvaluator = new com.android.server.wifi.RecommendedNetworkEvaluator ( mNetworkScoreCache , mNetworkScoreManager , mWifiConfigManager , new android.util.LocalLog ( 0 ) ) ; org.mockito.Mockito.when ( mWifiConfigManager.getSavedNetworkForScanDetailAndCache ( com.android.server.wifi.RecommendedNetworkEvaluatorTest.TRUSTED_SCAN_DETAIL ) ) . thenReturn ( com.android.server.wifi.RecommendedNetworkEvaluatorTest.TRUSTED_WIFI_CONFIGURATION ) ; org.mockito.Mockito.when ( mWifiConfigManager.getSavedNetworkForScanDetailAndCache ( com.android.server.wifi.RecommendedNetworkEvaluatorTest.UNTRUSTED_SCAN_DETAIL ) ) . thenReturn ( null ) ; org.mockito.Mockito.when ( mWifiConfigManager.getConfiguredNetwork ( com.android.server.wifi.RecommendedNetworkEvaluatorTest.TRUSTED_WIFI_CONFIGURATION.networkId ) ) . thenReturn ( com.android.server.wifi.RecommendedNetworkEvaluatorTest.TRUSTED_WIFI_CONFIGURATION ) ; }
Source:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { if ( name.equals ( methodName ) ) { com.google.common.base.Preconditions.checkState ( ( ( copied ) == 0 ) , "Found unexpected second method %s with descriptor %s" , name , desc ) ; ++ ( copied ) ; return new com.google.devtools.build.android.desugar.LambdaClassFixer.AvoidJacocoInit ( com.google.devtools.build.android.desugar.LambdaClassFixer.super . visitMethod ( access , name , desc , signature , exceptions ) ) ; } return null ; }

Target:
public org.objectweb.asm.MethodVisitor visitMethod ( int access , java.lang.String name , java.lang.String desc , java.lang.String signature , java.lang.String [ ] exceptions ) { if ( name.equals ( methodName ) ) { com.google.common.base.Preconditions.checkState ( ( ( copied ) == 0 ) , "Found unexpected second method %s with descriptor %s" , name , desc ) ; ++ ( copied ) ; name = com.google.devtools.build.android.desugar.LambdaDesugaring.uniqueInPackage ( getInternalName ( ) , name ) ; return new com.google.devtools.build.android.desugar.LambdaClassFixer.AvoidJacocoInit ( com.google.devtools.build.android.desugar.LambdaClassFixer.super . visitMethod ( access , name , desc , signature , exceptions ) ) ; } return null ; }
Source:
public boolean visitMethodInvocation ( lombok.ast.MethodInvocation node ) { if ( com.android.tools.lint.checks.IconDetector.SET_SMALL_ICON.equals ( node.astName ( ) . astValue ( ) ) ) { lombok.ast.StrictListAccessor < lombok.ast.Expression , lombok.ast.MethodInvocation > arguments = node.astArguments ( ) ; if ( ( ( arguments.size ( ) ) == 1 ) && ( ( arguments.first ( ) ) instanceof lombok.ast.Select ) ) { handleSelect ( ( ( lombok.ast.Select ) ( arguments.first ( ) ) ) ) ; } } return super . visitMethodInvocation ( node ) ; }

Target:
public void visitMethodCallExpression ( com.intellij.psi.PsiMethodCallExpression expression ) { super . visitMethodCallExpression ( expression ) ; if ( com.android.tools.lint.checks.IconDetector.SET_SMALL_ICON.equals ( expression.getMethodExpression ( ) . getReferenceName ( ) ) ) { com.intellij.psi.PsiExpression [ ] arguments = expression.getArgumentList ( ) . getExpressions ( ) ; if ( ( ( arguments.length ) == 1 ) && ( ( arguments [ 0 ] ) instanceof com.intellij.psi.PsiReferenceExpression ) ) { handleSelect ( arguments [ 0 ] ) ; } } }
Source:
private static boolean hasPermission ( ) { boolean hasPermission = true ; java.lang.SecurityManager sm = java.lang.System.getSecurityManager ( ) ; if ( sm != null ) { try { sm.checkPermission ( new java.util.PropertyPermission ( "user.timezone" , "write" ) ) ; } catch ( java.lang.SecurityException e ) { hasPermission = false ; } } return hasPermission ; }

Target:
public static synchronized void setDefault ( java.util.TimeZone timeZone ) { java.lang.SecurityManager sm = java.lang.System.getSecurityManager ( ) ; if ( sm != null ) { sm.checkPermission ( new java.util.PropertyPermission ( "user.timezone" , "write" ) ) ; } java.util.TimeZone.defaultTimeZone = ( timeZone != null ) ? ( ( java.util.TimeZone ) ( timeZone.clone ( ) ) ) : null ; android.icu.util.TimeZone.clearCachedDefault ( ) ; }
Source:
private static boolean isLightbringerCall ( java.lang.String phoneAccountComponentName , android.content.Context context ) { com.android.dialer.lightbringer.Lightbringer lightBringer = com.android.dialer.lightbringer.LightbringerComponent.get ( context ) . getLightbringer ( ) ; return ( ( lightBringer.getPhoneAccountComponentName ( ) ) != null ) && ( lightBringer.getPhoneAccountComponentName ( ) . flattenToString ( ) . equals ( phoneAccountComponentName ) ) ; }

Target:
private static boolean isDuoCall ( java.lang.String phoneAccountComponentName , android.content.Context context ) { com.android.dialer.duo.Duo lightBringer = com.android.dialer.duo.DuoComponent.get ( context ) . getDuo ( ) ; return ( ( lightBringer.getPhoneAccountComponentName ( ) ) != null ) && ( lightBringer.getPhoneAccountComponentName ( ) . flattenToString ( ) . equals ( phoneAccountComponentName ) ) ; }
Source:
public void onMessageReceived ( int peerId , byte [ ] message ) { if ( android.net.wifi.nan.WifiNanManager.VDBG ) { android.util.Log.v ( android.net.wifi.nan.WifiNanManager.TAG , ( "onMessageReceived: peerId='" + peerId ) ) ; } android.os.Message msg = mHandler.obtainMessage ( android.net.wifi.nan.WifiNanManager.WifiNanDiscoverySessionCallbackProxy.CALLBACK_MESSAGE_RECEIVED ) ; msg.arg1 = peerId ; msg.obj = message ; mHandler.sendMessage ( msg ) ; }

Target:
public void onMessageReceived ( int peerId , byte [ ] message ) { if ( android.net.wifi.aware.WifiAwareManager.VDBG ) { android.util.Log.v ( android.net.wifi.aware.WifiAwareManager.TAG , ( "onMessageReceived: peerId='" + peerId ) ) ; } android.os.Message msg = mHandler.obtainMessage ( android.net.wifi.aware.WifiAwareManager.WifiAwareDiscoverySessionCallbackProxy.CALLBACK_MESSAGE_RECEIVED ) ; msg.arg1 = peerId ; msg.obj = message ; mHandler.sendMessage ( msg ) ; }
Source:
public boolean shouldRun ( org.junit.runner.Description description ) { if ( ( ( com.android.jack.java8.EcjLambdaTest.testWithApiUsage.contains ( description.getMethodName ( ) ) ) || ( com.android.jack.java8.EcjLambdaTest.testWithOtherErrorMsg.contains ( description.getMethodName ( ) ) ) ) || ( com.android.jack.java8.EcjLambdaTest.knownBugs.contains ( description.getMethodName ( ) ) ) ) { return false ; } return true ; }

Target:
public boolean shouldRun ( org.junit.runner.Description description ) { if ( ( ( com.android.jack.java8.EcjLambdaTest.testWithApiUsage.contains ( description.getMethodName ( ) ) ) || ( com.android.jack.java8.EcjLambdaTest.testWithOtherErrorMsg.contains ( description.getMethodName ( ) ) ) ) || ( EcjLambdaTestPostM.testForNewRuntime.contains ( description.getMethodName ( ) ) ) ) { return false ; } return true ; }
Source:
public void addImsServiceFeatureListener ( com.android.ims.internal.IImsServiceFeatureCallback callback ) { synchronized ( mLock ) { mImsStatusCallbacks.add ( callback ) ; } }

Target:
public void addImsServiceFeatureCallback ( com.android.ims.internal.IImsServiceFeatureCallback callback ) { synchronized ( mLock ) { mImsStatusCallbacks.add ( callback ) ; if ( ( ( mImsFeatures ) == null ) || ( mImsFeatures.isEmpty ( ) ) ) { return ; } try { for ( android.telephony.ims.stub.ImsFeatureConfiguration.FeatureSlotPair i : mImsFeatures ) { callback.imsFeatureCreated ( i.slotId , i.featureType ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , "addImsServiceFeatureCallback: exception notifying callback" ) ; } } }
Source:
public char [ ] formatBigInteger ( java.math.BigInteger value , java.text.FieldPosition field ) { libcore.icu.NativeDecimalFormat.FieldPositionIterator fpi = libcore.icu.NativeDecimalFormat.FieldPositionIterator.forFieldPosition ( field ) ; char [ ] result = libcore.icu.NativeDecimalFormat.formatDigitList ( this . address , value.toString ( 10 ) , fpi ) ; if ( fpi != null ) { libcore.icu.NativeDecimalFormat.FieldPositionIterator.setFieldPosition ( fpi , field ) ; } return result ; }

Target:
public char [ ] formatBigInteger ( java.math.BigInteger value , java.text.FieldPosition field ) { libcore.icu.NativeDecimalFormat.FieldPositionIterator fpi = libcore.icu.NativeDecimalFormat.FieldPositionIterator.forFieldPosition ( field ) ; char [ ] result = libcore.icu.NativeDecimalFormat.formatDigitList ( this . address , value.toString ( 10 ) , fpi ) ; if ( ( fpi != null ) && ( field != null ) ) { libcore.icu.NativeDecimalFormat.updateFieldPosition ( field , fpi ) ; } return result ; }
Source:
private static android.content.Intent makeAlarmIntent ( android.content.Context context , android.net.Uri voicemailUri , java.lang.String transcriptId , long delayMillis , double baseMultiplier , int remainingAttempts ) { android.content.Intent intent = new android.content.Intent ( context , com.android.voicemail.impl.transcribe.GetTranscriptReceiver.class ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_VOICEMAIL_URI , voicemailUri ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_TRANSCRIPT_ID , transcriptId ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_DELAY_MILLIS , delayMillis ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_BASE_MULTIPLIER , baseMultiplier ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_REMAINING_ATTEMPTS , remainingAttempts ) ; return intent ; }

Target:
private static android.content.Intent makeAlarmIntent ( android.content.Context context , android.net.Uri voicemailUri , java.lang.String transcriptId , long delayMillis , double baseMultiplier , int remainingAttempts , android.telecom.PhoneAccountHandle account ) { android.content.Intent intent = com.android.voicemail.impl.transcribe.GetTranscriptReceiver.makeBaseAlarmIntent ( context ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_VOICEMAIL_URI , voicemailUri ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_TRANSCRIPT_ID , transcriptId ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_DELAY_MILLIS , delayMillis ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_BASE_MULTIPLIER , baseMultiplier ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_REMAINING_ATTEMPTS , remainingAttempts ) ; intent.putExtra ( com.android.voicemail.impl.transcribe.GetTranscriptReceiver.EXTRA_PHONE_ACCOUNT , account ) ; return intent ; }