auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setTerminal ( com.android.terminal.Terminal term ) { final com.android.terminal.Terminal orig = mTerm ; if ( orig != null ) { orig.setClient ( null ) ; } mTerm = term ; mScrolled = false ; if ( term != null ) { term.setClient ( mClient ) ; mTermKeys.setTerminal ( term ) ; mRows = mTerm.getRows ( ) ; mCols = mTerm.getCols ( ) ; mScrollRows = mTerm.getScrollRows ( ) ; mAdapter.notifyDataSetChanged ( ) ; } }

Target:
public void setTerminal ( com.android.terminal.Terminal term ) { final com.android.terminal.Terminal orig = mTerm ; if ( orig != null ) { orig.setClient ( null ) ; } mTerm = term ; mScrolled = false ; if ( term != null ) { term.setClient ( mClient ) ; mTermKeys.setTerminal ( term ) ; mMetrics.cursorPaint.setColor ( - 986896 ) ; mRows = mTerm.getRows ( ) ; mCols = mTerm.getCols ( ) ; mScrollRows = mTerm.getScrollRows ( ) ; mAdapter.notifyDataSetChanged ( ) ; } }
Source:
public java.lang.String getGccToolchainVersion ( com.android.build.gradle.internal.core.Abi abi ) { if ( ( toolchain ) == ( com.android.build.gradle.internal.core.Toolchain.GCC ) ) { return toolchainVersion.isEmpty ( ) ? getDefaultToolchainVersion ( abi ) : toolchainVersion ; } else { return abi.supports64Bits ( ) ? Toolchain.CLANG.getDefaultGccVersion64 ( ) : Toolchain.CLANG.getDefaultGccVersion32 ( ) ; } }

Target:
public java.lang.String getGccToolchainVersion ( com.android.build.gradle.internal.core.Abi abi ) { return ( ( toolchain ) == ( com.android.build.gradle.internal.core.Toolchain.GCC ) ) && ( ! ( toolchainVersion.isEmpty ( ) ) ) ? toolchainVersion : getDefaultToolchainVersion ( Toolchain.GCC , abi ) . toString ( ) ; }
Source:
public void saveProperties ( java.util.Properties props ) { super . saveProperties ( props ) ; assert ( mPreviewVersion.getMajor ( ) ) == ( getRevision ( ) ) ; props.setProperty ( PkgProps.PKG_MINOR_REV , java.lang.Integer.toString ( mPreviewVersion.getMinor ( ) ) ) ; props.setProperty ( PkgProps.PKG_MICRO_REV , java.lang.Integer.toString ( mPreviewVersion.getMicro ( ) ) ) ; props.setProperty ( PkgProps.PKG_PREVIEW_REV , java.lang.Integer.toString ( mPreviewVersion.getPreview ( ) ) ) ; }

Target:
public void saveProperties ( java.util.Properties props ) { super . saveProperties ( props ) ; props.setProperty ( PkgProps.PKG_MAJOR_REV , java.lang.Integer.toString ( mPreviewVersion.getMajor ( ) ) ) ; props.setProperty ( PkgProps.PKG_MINOR_REV , java.lang.Integer.toString ( mPreviewVersion.getMinor ( ) ) ) ; props.setProperty ( PkgProps.PKG_MICRO_REV , java.lang.Integer.toString ( mPreviewVersion.getMicro ( ) ) ) ; props.setProperty ( PkgProps.PKG_PREVIEW_REV , java.lang.Integer.toString ( mPreviewVersion.getPreview ( ) ) ) ; }
Source:
protected void abortOnBadSetup ( org.eclipse.jdt.core.IJavaProject javaProject ) throws com.android.ide.eclipse.adt.internal.build.builders.AbortBuildException { super . abortOnBadSetup ( javaProject ) ; org.eclipse.core.resources.IProject iProject = getProject ( ) ; stopOnMarker ( iProject , AndroidConstants.MARKER_AAPT_COMPILE , IResource.DEPTH_INFINITE , false ) ; stopOnMarker ( iProject , AndroidConstants.MARKER_AIDL , IResource.DEPTH_INFINITE , false ) ; stopOnMarker ( iProject , AndroidConstants.MARKER_RENDERSCRIPT , IResource.DEPTH_INFINITE , false ) ; stopOnMarker ( iProject , AndroidConstants.MARKER_ANDROID , IResource.DEPTH_ZERO , false ) ; stopOnMarker ( iProject , org.eclipse.jdt.core.IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER , IResource.DEPTH_INFINITE , true ) ; stopOnMarker ( iProject , org.eclipse.jdt.core.IJavaModelMarker.BUILDPATH_PROBLEM_MARKER , IResource.DEPTH_INFINITE , true ) ; }

Target:
protected void abortOnBadSetup ( org.eclipse.jdt.core.IJavaProject javaProject ) throws com.android.ide.eclipse.adt.internal.build.builders.AbortBuildException { super . abortOnBadSetup ( javaProject ) ; org.eclipse.core.resources.IProject iProject = getProject ( ) ; stopOnMarker ( iProject , AdtConstants.MARKER_AAPT_COMPILE , IResource.DEPTH_INFINITE , false ) ; stopOnMarker ( iProject , AdtConstants.MARKER_AIDL , IResource.DEPTH_INFINITE , false ) ; stopOnMarker ( iProject , AdtConstants.MARKER_RENDERSCRIPT , IResource.DEPTH_INFINITE , false ) ; stopOnMarker ( iProject , AdtConstants.MARKER_ANDROID , IResource.DEPTH_ZERO , false ) ; stopOnMarker ( iProject , org.eclipse.jdt.core.IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER , IResource.DEPTH_INFINITE , true ) ; stopOnMarker ( iProject , org.eclipse.jdt.core.IJavaModelMarker.BUILDPATH_PROBLEM_MARKER , IResource.DEPTH_INFINITE , true ) ; }
Source:
public void setChunkedStreamingMode ( int chunkLength ) { if ( super . connected ) { throw new java.lang.IllegalStateException ( "Already connected" ) ; } if ( ( fixedContentLength ) >= 0 ) { throw new java.lang.IllegalStateException ( "Already in fixed-length mode" ) ; } if ( chunkLength <= 0 ) { this . chunkLength = libcore.net.http.HttpEngine.DEFAULT_CHUNK_LENGTH ; } else { this . chunkLength = chunkLength ; } }

Target:
public void setChunkedStreamingMode ( int chunkLength ) { if ( super . connected ) { throw new java.lang.IllegalStateException ( "Already connected" ) ; } if ( ( fixedContentLength ) >= 0 ) { throw new java.lang.IllegalStateException ( "Already in fixed-length mode" ) ; } if ( chunkLength <= 0 ) { this . chunkLength = java.net.HttpURLConnection.DEFAULT_CHUNK_LENGTH ; } else { this . chunkLength = chunkLength ; } }
Source:
private static com.google.doclava.TypeInfo [ ] convertTypes ( com.google.doclava.Type [ ] p ) { if ( p == null ) return null ; int len = p.length ; com.google.doclava.TypeInfo [ ] q = new com.google.doclava.TypeInfo [ len ] ; for ( int i = 0 ; i < len ; i ++ ) { q [ i ] = com.google.doclava.Converter.obtainType ( p [ i ] ) ; } return q ; }

Target:
private static com.google.doclava.TypeInfo [ ] convertTypes ( com.sun.javadoc.Type [ ] p ) { if ( p == null ) return null ; int len = p.length ; com.google.doclava.TypeInfo [ ] q = new com.google.doclava.TypeInfo [ len ] ; for ( int i = 0 ; i < len ; i ++ ) { q [ i ] = com.google.doclava.Converter.obtainType ( p [ i ] ) ; } return q ; }
Source:
protected void createButtonsForButtonBar ( org.eclipse.swt.widgets.Composite parent ) { createButton ( parent , IDialogConstants.CLOSE_ID , IDialogConstants.CLOSE_LABEL , false ) ; mFindNext = createButton ( parent , com.android.ddmuilib.logcat.FindDialog.FIND_NEXT_ID , "Find Next" , false ) ; mFindPrevious = createButton ( parent , com.android.ddmuilib.logcat.FindDialog.FIND_PREVIOUS_ID , "Find Previous" , true ) ; mFindNext.setEnabled ( false ) ; mFindPrevious.setEnabled ( false ) ; }

Target:
protected void createButtonsForButtonBar ( org.eclipse.swt.widgets.Composite parent ) { createButton ( parent , IDialogConstants.CLOSE_ID , IDialogConstants.CLOSE_LABEL , false ) ; mFindNext = createButton ( parent , com.android.ddmuilib.FindDialog.FIND_NEXT_ID , "Find Next" , false ) ; mFindPrevious = createButton ( parent , com.android.ddmuilib.FindDialog.FIND_PREVIOUS_ID , "Find Previous" , true ) ; mFindNext.setEnabled ( false ) ; mFindPrevious.setEnabled ( false ) ; }
Source:
public void onAvailable ( android.net.Network network , android.net.NetworkCapabilities networkCapabilities , android.net.LinkProperties linkProperties ) { onAvailable ( network ) ; onCapabilitiesChanged ( network , networkCapabilities ) ; onLinkPropertiesChanged ( network , linkProperties ) ; }

Target:
public void onAvailable ( android.net.Network network , android.net.NetworkCapabilities networkCapabilities , android.net.LinkProperties linkProperties ) { onAvailable ( network ) ; if ( ! ( networkCapabilities.hasCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_SUSPENDED ) ) ) { onNetworkSuspended ( network ) ; } onCapabilitiesChanged ( network , networkCapabilities ) ; onLinkPropertiesChanged ( network , linkProperties ) ; }
Source:
public java.lang.String getSymbol ( java.util.Locale locale ) { libcore.icu.LocaleData localeData = libcore.icu.LocaleData.get ( locale ) ; if ( localeData.internationalCurrencySymbol.equals ( currencyCode ) ) { return localeData.currencySymbol ; } java.lang.String symbol = libcore.icu.ICU.getCurrencySymbol ( locale , currencyCode ) ; return symbol != null ? symbol : currencyCode ; }

Target:
public java.lang.String getDisplayName ( ) { return icuCurrency.getDisplayName ( ) ; }
Source:
public void testGrantPreviouslyRevokedWithPrejudiceShowsPrompt23 ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , false , false ) ) ; try { runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part1" ) ; fail ( "App must be killed on a permission revoke" ) ; } catch ( java.lang.Throwable expected ) { } runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part2" ) ; }

Target:
public void testRevokeAffectsWholeGroup23 ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , false , false ) ) ; try { runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRevokeAffectsWholeGroup_part1" ) ; } catch ( java.lang.AssertionError expected ) { } runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRevokeAffectsWholeGroup_part2" ) ; }
Source:
android.view.View findViewTagInHeadersOrFooters ( java.util.ArrayList < android.widget.ListView.FixedViewInfo > where , java.lang.Object tag ) { if ( where != null ) { int len = where.size ( ) ; android.view.View v ; for ( int i = 0 ; i < len ; i ++ ) { v = where.get ( i ) . view ; if ( ! ( v.isRootNamespace ( ) ) ) { v = v.findViewWithTag ( tag ) ; if ( v != null ) { return v ; } } } } return null ; }

Target:
android.view.View findViewWithTagInHeadersOrFooters ( java.util.ArrayList < android.widget.ListView.FixedViewInfo > where , java.lang.Object tag ) { if ( where != null ) { int len = where.size ( ) ; android.view.View v ; for ( int i = 0 ; i < len ; i ++ ) { v = where.get ( i ) . view ; if ( ! ( v.isRootNamespace ( ) ) ) { v = v.findViewWithTag ( tag ) ; if ( v != null ) { return v ; } } } } return null ; }
Source:
private ApkVerifier.Result verify ( java.lang.String apkFilenameInResources , java.lang.Integer minSdkVersionOverride ) throws com.android.apksig.apk.ApkFormatException , java.io.IOException , java.security.NoSuchAlgorithmException { byte [ ] apkBytes = getResourceContents ( apkFilenameInResources ) ; com.android.apksig.ApkVerifier.Builder builder = new com.android.apksig.ApkVerifier.Builder ( com.android.apksig.util.DataSources.asDataSource ( java.nio.ByteBuffer.wrap ( apkBytes ) ) ) ; if ( minSdkVersionOverride != null ) { builder.setMinCheckedPlatformVersion ( minSdkVersionOverride ) ; } return builder.build ( ) . verify ( ) ; }

Target:
private ApkVerifier.Result verify ( java.lang.String apkFilenameInResources , java.lang.Integer minSdkVersionOverride ) throws com.android.apksig.apk.ApkFormatException , java.io.IOException , java.security.NoSuchAlgorithmException { byte [ ] apkBytes = com.android.apksig.internal.util.Resources.toByteArray ( getClass ( ) , apkFilenameInResources ) ; com.android.apksig.ApkVerifier.Builder builder = new com.android.apksig.ApkVerifier.Builder ( com.android.apksig.util.DataSources.asDataSource ( java.nio.ByteBuffer.wrap ( apkBytes ) ) ) ; if ( minSdkVersionOverride != null ) { builder.setMinCheckedPlatformVersion ( minSdkVersionOverride ) ; } return builder.build ( ) . verify ( ) ; }
Source:
private void addRemoteSample ( com.android.sdklib.AndroidVersion version , com.android.sdklib.repository.MajorRevision revision , com.android.sdklib.repository.FullRevision minToolsRev ) { com.android.sdklib.repository.descriptors.IPkgDesc d = com.android.sdklib.repository.descriptors.PkgDesc.newSample ( version , revision , minToolsRev ) ; com.android.sdklib.repository.remote.RemotePkgInfo r = new com.android.sdklib.repository.remote.RemotePkgInfo ( d , mSource ) ; mRemotePkgs.put ( d.getType ( ) , r ) ; }

Target:
private void addRemoteSample ( com.android.sdklib.AndroidVersion version , com.android.sdklib.repository.MajorRevision revision , com.android.sdklib.repository.FullRevision minToolsRev ) { com.android.sdklib.repository.descriptors.IPkgDesc d = PkgDesc.Builder.newSample ( version , revision , minToolsRev ) . create ( ) ; com.android.sdklib.repository.remote.RemotePkgInfo r = new com.android.sdklib.repository.remote.RemotePkgInfo ( d , mSource ) ; mRemotePkgs.put ( d.getType ( ) , r ) ; }
Source:
public java.util.Collection < com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem > getResources ( com.android.resources.ResourceType type , com.android.ide.eclipse.adt.internal.resources.manager.ProjectResources projectResources ) { java.util.Collection < com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem > list = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.resources.manager.ProjectResourceItem > ( ) ; if ( ( mFiles ) != null ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile f : mFiles ) { list.addAll ( f.getResources ( type , projectResources ) ) ; } } return list ; }

Target:
public com.android.ide.eclipse.adt.internal.resources.manager.ResourceRepository getRepository ( ) { return mRepository ; }
Source:
public static void recordLinearCountHistogram ( java.lang.String name , int sample , int min , int max , int numBuckets ) { if ( org.chromium.base.metrics.RecordHistogram.sIsDisabledForTests ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordLinearCountHistogram ( name , key , sample , min , max , numBuckets ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }

Target:
public static void recordSparseSlowlyHistogram ( java.lang.String name , int sample ) { if ( ( org.chromium.base.metrics.RecordHistogram.sDisabledBy ) != null ) return ; long key = org.chromium.base.metrics.RecordHistogram.getCachedHistogramKey ( name ) ; long result = org.chromium.base.metrics.RecordHistogram.nativeRecordSparseHistogram ( name , key , sample ) ; if ( result != key ) org.chromium.base.metrics.RecordHistogram.sCache.put ( name , result ) ; }
Source:
com.android.server.am.BroadcastQueue broadcastQueueForIntent ( android.content.Intent intent ) { final boolean isFg = ( ( intent.getFlags ( ) ) & ( android.content.Intent.FLAG_RECEIVER_FOREGROUND ) ) != 0 ; if ( DEBUG_BROADCAST_BACKGROUND ) android.util.Slog.i ( com.android.server.am.ActivityManagerService.TAG_BROADCAST , ( ( ( ( "Broadcast intent " + intent ) + " on " ) + ( isFg ? "foreground" : "background" ) ) + " queue" ) ) ; return isFg ? mFgBroadcastQueue : mBgBroadcastQueue ; }

Target:
com.android.server.am.BroadcastQueue broadcastQueueForIntent ( android.content.Intent intent ) { final boolean isFg = ( ( intent.getFlags ( ) ) & ( android.content.Intent.FLAG_RECEIVER_FOREGROUND ) ) != 0 ; if ( com.android.server.am.ActivityManagerDebugConfig.DEBUG_BROADCAST_BACKGROUND ) android.util.Slog.i ( com.android.server.am.ActivityManagerService.TAG_BROADCAST , ( ( ( ( "Broadcast intent " + intent ) + " on " ) + ( isFg ? "foreground" : "background" ) ) + " queue" ) ) ; return isFg ? mFgBroadcastQueue : mBgBroadcastQueue ; }
Source:
public static org.conscrypt.OpenSSLEngine getInstance ( java.lang.String engine ) throws java.lang.IllegalArgumentException { if ( engine == null ) { throw new java.lang.NullPointerException ( "engine == null" ) ; } final long engineCtx ; synchronized ( org.conscrypt.OpenSSLEngine.mLoadingLock ) { engineCtx = org.conscrypt.NativeCrypto.ENGINE_by_id ( engine ) ; if ( engineCtx == 0 ) { throw new java.lang.IllegalArgumentException ( ( "Unknown ENGINE id: " + engine ) ) ; } org.conscrypt.NativeCrypto.ENGINE_add ( engineCtx ) ; } return new org.conscrypt.OpenSSLEngine ( engineCtx ) ; }

Target:
public static org.conscrypt.OpenSSLEngine getInstance ( java.lang.String engine ) throws java.lang.IllegalArgumentException { if ( NativeCrypto.isBoringSSL ) { return org.conscrypt.OpenSSLEngine.BoringSSL.INSTANCE ; } if ( engine == null ) { throw new java.lang.NullPointerException ( "engine == null" ) ; } final long engineCtx ; synchronized ( org.conscrypt.OpenSSLEngine.mLoadingLock ) { engineCtx = org.conscrypt.NativeCrypto.ENGINE_by_id ( engine ) ; if ( engineCtx == 0 ) { throw new java.lang.IllegalArgumentException ( ( "Unknown ENGINE id: " + engine ) ) ; } org.conscrypt.NativeCrypto.ENGINE_add ( engineCtx ) ; } return new org.conscrypt.OpenSSLEngine ( engineCtx ) ; }
Source:
public void copyFrom ( byte [ ] d ) { 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 ) ; } }

Target:
public void copyFromUnchecked ( byte [ ] d ) { copyFromUnchecked ( d , Element.DataType.SIGNED_8 , d.length ) ; }
Source:
private static void provide ( java.lang.String type , java.lang.String algorithm ) { java.util.Set < java.lang.String > algorithms = libcore.java.security.StandardNames.PROVIDER_ALGORITHMS.get ( type ) ; if ( algorithms == null ) { algorithms = new java.util.HashSet ( ) ; libcore.java.security.StandardNames.PROVIDER_ALGORITHMS.put ( type , algorithms ) ; } assertTrue ( ( ( ( "Duplicate " + type ) + " " ) + algorithm ) , algorithms.add ( algorithm.toUpperCase ( ) ) ) ; }

Target:
private static void provide ( java.lang.String type , java.lang.String algorithm ) { java.util.Set < java.lang.String > algorithms = libcore.java.security.StandardNames.PROVIDER_ALGORITHMS.get ( type ) ; if ( algorithms == null ) { algorithms = new java.util.HashSet ( ) ; libcore.java.security.StandardNames.PROVIDER_ALGORITHMS.put ( type , algorithms ) ; } assertTrue ( ( ( ( "Duplicate " + type ) + " " ) + algorithm ) , algorithms.add ( algorithm.toUpperCase ( java.util.Locale.ROOT ) ) ) ; }
Source:
public void resizeStack ( int stackId , android.graphics.Rect bounds ) { enforceCallingPermission ( android.Manifest.permission.MANAGE_ACTIVITY_STACKS , "resizeStack()" ) ; long ident = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( this ) { mStackSupervisor.resizeStackLocked ( stackId , bounds ) ; } } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } }

Target:
public boolean moveTopActivityToPinnedStack ( int stackId , android.graphics.Rect bounds ) { enforceCallingPermission ( android.Manifest.permission.MANAGE_ACTIVITY_STACKS , "moveTopActivityToPinnedStack()" ) ; synchronized ( this ) { if ( ! ( mSupportsPictureInPicture ) ) { throw new java.lang.IllegalStateException ( ( "moveTopActivityToPinnedStack:" + "Device doesn't support picture-in-pciture mode" ) ) ; } long ident = android.os.Binder.clearCallingIdentity ( ) ; try { return mStackSupervisor.moveTopStackActivityToPinnedStackLocked ( stackId , bounds ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }
Source:
public void testAesCbcHmacMd5Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacMd5Tcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public com.android.sched.vfs.InputOutputVFile 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 { return getSectionVFS ( fileType ) . getRootInputOutputVDir ( ) . getInputVFile ( buildFileVPath ( fileType , typePath ) ) ; } catch ( com.android.sched.util.file.CannotCreateFileException | com.android.sched.util.file.NoSuchFileException | com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }

Target:
public java.util.Iterator < com.android.sched.vfs.InputVFile > iterator ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType ) { if ( ! ( containsFileType ( fileType ) ) ) { return com.google.common.collect.ImmutableSet.< com.android.sched.vfs.InputVFile > of ( ) . iterator ( ) ; } java.util.List < com.android.sched.vfs.InputVFile > inputVFiles = new java.util.ArrayList < com.android.sched.vfs.InputVFile > ( ) ; try { fillFiles ( getSectionVFS ( fileType ) . getRootDir ( ) , inputVFiles ) ; } catch ( com.android.sched.util.file.CannotCreateFileException e ) { throw new java.lang.AssertionError ( e ) ; } return inputVFiles.listIterator ( ) ; }
Source:
public void testSign_Success ( ) throws java.lang.Exception { mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ; assertTrue ( mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , KeyStore.FLAG_ENCRYPTED ) ) ; assertTrue ( mKeyStore.contains ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; final byte [ ] signature = mKeyStore.sign ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.TEST_DATA ) ; assertNotNull ( "Signature should not be null" , signature ) ; }

Target:
public void testSign_Success ( ) throws java.lang.Exception { mKeyStore.password ( android.security.KeyStoreTest.TEST_PASSWD ) ; assertTrue ( mKeyStore.generate ( android.security.KeyStoreTest.TEST_KEYNAME , KeyStore.UID_SELF , NativeCrypto.EVP_PKEY_RSA , 1024 , KeyStore.FLAG_ENCRYPTED , null ) ) ; assertTrue ( mKeyStore.contains ( android.security.KeyStoreTest.TEST_KEYNAME ) ) ; final byte [ ] signature = mKeyStore.sign ( android.security.KeyStoreTest.TEST_KEYNAME , android.security.KeyStoreTest.TEST_DATA ) ; assertNotNull ( "Signature should not be null" , signature ) ; }
Source:
public void notifyChange ( android.net.Uri uri , android.database.ContentObserver observer , boolean syncToNetwork ) { notifyChange ( uri , observer , syncToNetwork , android.os.UserHandle.getCallingUserId ( ) ) ; }

Target:
public final void registerContentObserver ( @ android.annotation.NonNull android.net.Uri uri , boolean notifyForDescendents , @ android.annotation.NonNull android.database.ContentObserver observer ) { com.android.internal.util.Preconditions.checkNotNull ( uri , "uri" ) ; com.android.internal.util.Preconditions.checkNotNull ( observer , "observer" ) ; registerContentObserver ( android.content.ContentProvider.getUriWithoutUserId ( uri ) , notifyForDescendents , observer , android.content.ContentProvider.getUserIdFromUri ( uri , android.os.UserHandle.myUserId ( ) ) ) ; }
Source:
public void testAesCbcHmacSha512Tcp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , android.net.cts.IpSecManagerTest.getKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }

Target:
public void testAuthTcp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , null , auth , false , 1 , true ) ; }
Source:
protected void onRestoreInstanceState ( android.os.Parcelable state ) { android.widget.DatePicker.SavedState ss = ( ( android.widget.DatePicker.SavedState ) ( state ) ) ; super . onRestoreInstanceState ( ss.getSuperState ( ) ) ; mYear = ss.getYear ( ) ; mMonth = ss.getMonth ( ) ; mDay = ss.getDay ( ) ; }

Target:
protected void onRestoreInstanceState ( android.os.Parcelable state ) { android.widget.DatePicker.SavedState ss = ( ( android.widget.DatePicker.SavedState ) ( state ) ) ; super . onRestoreInstanceState ( ss.getSuperState ( ) ) ; mYear = ss.getYear ( ) ; mMonth = ss.getMonth ( ) ; mDay = ss.getDay ( ) ; updateSpinners ( ) ; }
Source:
private void notifyDexLoad ( com.android.server.pm.dex.DexManagerTests.TestData testData , java.util.List < java.lang.String > dexPaths , int loaderUserId ) { mDexManager.notifyDexLoad ( testData.mPackageInfo.applicationInfo , dexPaths , testData.mLoaderIsa , loaderUserId ) ; }

Target:
private void notifyDexLoad ( com.android.server.pm.dex.DexManagerTests.TestData testData , java.util.List < java.lang.String > dexPaths , int loaderUserId ) { java.util.List < java.lang.String > classLoaders = java.util.Arrays.asList ( testData.mClassLoader ) ; java.util.List < java.lang.String > classPaths = java.util.Arrays.asList ( java.lang.String.join ( java.io.File.pathSeparator , dexPaths ) ) ; notifyDexLoad ( testData , classLoaders , classPaths , loaderUserId ) ; }
Source:
private java.util.List < com.android.ddmuilib.logcat.LogCatMessage > getSelectedLogCatMessages ( ) { int [ ] indices = mTable.getSelectionIndices ( ) ; java.util.Arrays.sort ( indices ) ; java.util.List < com.android.ddmuilib.logcat.LogCatMessage > selectedMessages = new java.util.ArrayList < com.android.ddmuilib.logcat.LogCatMessage > ( indices.length ) ; for ( int i : indices ) { java.lang.Object data = mTable.getItem ( i ) . getData ( ) ; if ( data instanceof com.android.ddmuilib.logcat.LogCatMessage ) { selectedMessages.add ( ( ( com.android.ddmuilib.logcat.LogCatMessage ) ( data ) ) ) ; } } return selectedMessages ; }

Target:
private java.util.List < com.android.ddmlib.logcat.LogCatMessage > getSelectedLogCatMessages ( ) { int [ ] indices = mTable.getSelectionIndices ( ) ; java.util.Arrays.sort ( indices ) ; java.util.List < com.android.ddmlib.logcat.LogCatMessage > selectedMessages = new java.util.ArrayList < com.android.ddmlib.logcat.LogCatMessage > ( indices.length ) ; for ( int i : indices ) { java.lang.Object data = mTable.getItem ( i ) . getData ( ) ; if ( data instanceof com.android.ddmlib.logcat.LogCatMessage ) { selectedMessages.add ( ( ( com.android.ddmlib.logcat.LogCatMessage ) ( data ) ) ) ; } } return selectedMessages ; }
Source:
public java.lang.String getCdmaMin ( int subId ) { enforceModifyPermissionOrCarrierPrivilege ( subId ) ; final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( ( phone != null ) && ( ( phone.getPhoneType ( ) ) == ( com.android.internal.telephony.PhoneConstants.PHONE_TYPE_CDMA ) ) ) { return phone.getCdmaMin ( ) ; } else { return null ; } }

Target:
public java.lang.String getCdmaMin ( int subId ) { com.android.internal.telephony.TelephonyPermissions.enforceCallingOrSelfModifyPermissionOrCarrierPrivilege ( mApp , subId , "getCdmaMin" ) ; final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( ( phone != null ) && ( ( phone.getPhoneType ( ) ) == ( com.android.internal.telephony.PhoneConstants.PHONE_TYPE_CDMA ) ) ) { return phone.getCdmaMin ( ) ; } else { return null ; } }
Source:
public boolean hasNext ( ) { return iterableIterator.hasNext ( ) ; }

Target:
private static < T > java.util.Iterator < java.util.Iterator < ? extends T > > iterators ( java.lang.Iterable < ? extends java.lang.Iterable < ? extends T > > iterables ) { return new com.google.common.collect.TransformedIterator < java.lang.Iterable < ? extends T > , java.util.Iterator < ? extends T > > ( iterables.iterator ( ) ) { @ java.lang.Override java.util.Iterator < ? extends T > transform ( java.lang.Iterable < ? extends T > from ) { return from.iterator ( ) ; } } ; }
Source:
public void onDeregistered ( android.telephony.ims.ImsReasonInfo imsReasonInfo ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onImsDisconnected imsReasonInfo=" + imsReasonInfo ) ) ; resetImsCapabilities ( ) ; mPhone.setServiceState ( ServiceState.STATE_OUT_OF_SERVICE ) ; mPhone.setImsRegistered ( false ) ; mPhone.processDisconnectReason ( imsReasonInfo ) ; mMetrics.writeOnImsConnectionState ( mPhone.getPhoneId ( ) , ImsConnectionState.State.DISCONNECTED , imsReasonInfo ) ; }

Target:
public void onCapabilitiesStatusChanged ( android.telephony.ims.feature.ImsFeature.Capabilities config ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onCapabilitiesStatusChanged: " + config ) ) ; com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = config ; removeMessages ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.EVENT_ON_FEATURE_CAPABILITY_CHANGED ) ; obtainMessage ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.EVENT_ON_FEATURE_CAPABILITY_CHANGED , args ) . sendToTarget ( ) ; }
Source:
public com.android.tv.ui.sidepanel.SideFragment.ItemAdapter.ViewHolder onCreateViewHolder ( android.view.ViewGroup parent , int viewType ) { return new com.android.tv.ui.sidepanel.SideFragment.ItemAdapter.ViewHolder ( mLayoutInflater.inflate ( viewType , parent , false ) ) ; }

Target:
public com.android.tv.ui.sidepanel.SideFragment.ItemAdapter.ViewHolder onCreateViewHolder ( android.view.ViewGroup parent , int viewType ) { android.view.View view = com.android.tv.util.ViewCache.getInstance ( ) . getView ( viewType ) ; if ( view == null ) { view = mLayoutInflater.inflate ( viewType , parent , false ) ; } return new com.android.tv.ui.sidepanel.SideFragment.ItemAdapter.ViewHolder ( view ) ; }
Source:
private java.lang.CharSequence getErrorMessage ( android.os.AsyncResult ar ) { return mContext.getText ( com.android.internal.R.string.mmiError ) ; }

Target:
private java.lang.CharSequence getErrorMessage ( android.os.AsyncResult ar ) { if ( ( ar.exception ) instanceof com.android.internal.telephony.CommandException ) { com.android.internal.telephony.CommandException.Error err = ( ( com.android.internal.telephony.CommandException ) ( ar.exception ) ) . getCommandError ( ) ; if ( err == ( CommandException.Error.FDN_CHECK_FAILURE ) ) { android.telephony.Rlog.i ( com.android.internal.telephony.imsphone.ImsPhoneMmiCode.LOG_TAG , "FDN_CHECK_FAILURE" ) ; return mContext.getText ( com.android.internal.R.string.mmiFdnError ) ; } } return mContext.getText ( com.android.internal.R.string.mmiError ) ; }
Source:
private static < E > com.google.common.collect.ImmutableSet < E > copyFromCollection ( java.util.Collection < ? extends E > collection ) { java.lang.Object [ ] elements = collection.toArray ( ) ; switch ( elements.length ) { case 0 : return com.google.common.collect.ImmutableSet.of ( ) ; case 1 : @ java.lang.SuppressWarnings ( value = "unchecked" ) E onlyElement = ( ( E ) ( elements [ 0 ] ) ) ; return com.google.common.collect.ImmutableSet.of ( onlyElement ) ; default : return com.google.common.collect.ImmutableSet.construct ( elements.length , elements ) ; } }

Target:
private static < E extends java.lang.Enum < E > > com.google.common.collect.ImmutableSet < E > copyOfEnumSet ( java.util.EnumSet < E > enumSet ) { return com.google.common.collect.ImmutableEnumSet.asImmutable ( java.util.EnumSet.copyOf ( enumSet ) ) ; }
Source:
public void testEnterSoftApModeActiveWhenAlreadyInSoftApMode ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( mWificond ) ; when ( mWificond.createApInterface ( ) ) . thenReturn ( null ) ; mWifiStateMachinePrime.enterSoftAPMode ( ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; mLooper.dispatchNext ( ) ; org.junit.Assert.assertEquals ( "SoftAPModeState" , mWifiStateMachinePrime.getCurrentMode ( ) ) ; enterSoftApActiveMode ( ) ; verify ( mWificond ) . tearDownInterfaces ( ) ; }

Target:
public void testWificondNullWhenSwitchingToApMode ( ) throws java.lang.Exception { when ( mWifiInjector.makeWificond ( ) ) . thenReturn ( null ) ; mWifiStateMachinePrime.enterSoftAPMode ( null ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachinePrimeTest.SOFT_AP_MODE_STATE_STRING , mWifiStateMachinePrime.getCurrentMode ( ) ) ; }
Source:
public static boolean isInternalPrimitiveType ( char internalType ) { return ( ( ( ( ( ( ( internalType == ( proguard.classfile.ClassConstants.INTERNAL_TYPE_BOOLEAN ) ) || ( internalType == ( proguard.classfile.ClassConstants.INTERNAL_TYPE_BYTE ) ) ) || ( internalType == ( proguard.classfile.ClassConstants.INTERNAL_TYPE_CHAR ) ) ) || ( internalType == ( proguard.classfile.ClassConstants.INTERNAL_TYPE_SHORT ) ) ) || ( internalType == ( proguard.classfile.ClassConstants.INTERNAL_TYPE_INT ) ) ) || ( internalType == ( proguard.classfile.ClassConstants.INTERNAL_TYPE_FLOAT ) ) ) || ( internalType == ( proguard.classfile.ClassConstants.INTERNAL_TYPE_LONG ) ) ) || ( internalType == ( proguard.classfile.ClassConstants.INTERNAL_TYPE_DOUBLE ) ) ; }

Target:
public static boolean isInternalPrimitiveType ( char internalType ) { return ( ( ( ( ( ( ( internalType == ( ClassConstants.TYPE_BOOLEAN ) ) || ( internalType == ( ClassConstants.TYPE_BYTE ) ) ) || ( internalType == ( ClassConstants.TYPE_CHAR ) ) ) || ( internalType == ( ClassConstants.TYPE_SHORT ) ) ) || ( internalType == ( ClassConstants.TYPE_INT ) ) ) || ( internalType == ( ClassConstants.TYPE_FLOAT ) ) ) || ( internalType == ( ClassConstants.TYPE_LONG ) ) ) || ( internalType == ( ClassConstants.TYPE_DOUBLE ) ) ; }
Source:
public final void testPkgTypePlatform ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_PLATFORMS ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertTrue ( p.hasPath ( ) ) ; assertFalse ( p.hasVendorId ( ) ) ; assertTrue ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }

Target:
public final void testPkgTypePlatform ( ) throws java.lang.Exception { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_PLATFORMS ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertTrue ( p.hasPath ( ) ) ; assertFalse ( p.hasVendor ( ) ) ; assertTrue ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }
Source:
public void visitAnyParameterAnnotationsAttribute ( proguard.classfile.io.Clazz clazz , proguard.classfile.io.Method method , proguard.classfile.io.ParameterAnnotationsAttribute parameterAnnotationsAttribute ) { dataOutput.writeByte ( parameterAnnotationsAttribute.u2parametersCount ) ; for ( int parameterIndex = 0 ; parameterIndex < ( parameterAnnotationsAttribute.u2parametersCount ) ; parameterIndex ++ ) { int u2annotationsCount = parameterAnnotationsAttribute.u2parameterAnnotationsCount [ parameterIndex ] ; proguard.classfile.io.Annotation [ ] annotations = parameterAnnotationsAttribute.parameterAnnotations [ parameterIndex ] ; dataOutput.writeShort ( u2annotationsCount ) ; for ( int index = 0 ; index < u2annotationsCount ; index ++ ) { visitAnnotation ( clazz , annotations [ index ] ) ; } } }

Target:
public void visitAnyParameterAnnotationsAttribute ( proguard.classfile.io.Clazz clazz , proguard.classfile.io.Method method , proguard.classfile.io.ParameterAnnotationsAttribute parameterAnnotationsAttribute ) { dataOutput.writeByte ( parameterAnnotationsAttribute.u1parametersCount ) ; for ( int parameterIndex = 0 ; parameterIndex < ( parameterAnnotationsAttribute.u1parametersCount ) ; parameterIndex ++ ) { int u2annotationsCount = parameterAnnotationsAttribute.u2parameterAnnotationsCount [ parameterIndex ] ; proguard.classfile.io.Annotation [ ] annotations = parameterAnnotationsAttribute.parameterAnnotations [ parameterIndex ] ; dataOutput.writeShort ( u2annotationsCount ) ; for ( int index = 0 ; index < u2annotationsCount ; index ++ ) { visitAnnotation ( clazz , annotations [ index ] ) ; } } }
Source:
public void schedule ( java.util.TimerTask task , java.util.Date when ) { if ( ( when.getTime ( ) ) < 0 ) { throw new java.lang.IllegalArgumentException ( ( "when < 0: " + ( when.getTime ( ) ) ) ) ; } long delay = ( when.getTime ( ) ) - ( java.lang.System.currentTimeMillis ( ) ) ; scheduleImpl ( task , ( delay < 0 ? 0 : delay ) , ( - 1 ) , false ) ; }

Target:
public void scheduleAtFixedRate ( java.util.TimerTask task , java.util.Date when , long period ) { validateScheduling ( task , when , 1 , period ) ; doSchedule ( task , when.getTime ( ) , period , true ) ; }
Source:
public final void visitSource ( final java.lang.String file , final java.lang.String debug ) { if ( file != null ) { sourceFile = newUTF8 ( file ) ; } if ( debug != null ) { sourceDebug = new org.objectweb.asm.ByteVector ( ) . putUTF8 ( debug ) ; } }

Target:
public final void visitSource ( final java.lang.String file , final java.lang.String debug ) { if ( file != null ) { sourceFile = newUTF8 ( file ) ; } if ( debug != null ) { sourceDebug = new org.objectweb.asm.ByteVector ( ) . encodeUTF8 ( debug , 0 , java.lang.Integer.MAX_VALUE ) ; } }
Source:
void enableVerboseLogging ( int verbose ) { if ( verbose > 0 ) { com.android.server.wifi.WifiNative.DBG = true ; } else { com.android.server.wifi.WifiNative.DBG = false ; } }

Target:
void enableVerboseLogging ( int verbose ) { if ( verbose > 0 ) { com.android.server.wifi.WifiNative.DBG = true ; } else { com.android.server.wifi.WifiNative.DBG = false ; } if ( ( mWificondControl ) != null ) { mWificondControl.enableVerboseLogging ( ( verbose > 0 ? true : false ) ) ; } if ( ( mSupplicantStaIfaceHal ) != null ) { mSupplicantStaIfaceHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } if ( ( mWifiVendorHal ) != null ) { mWifiVendorHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } }
Source:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , int timeoutMillis , android.bluetooth.le.AdvertisingSetCallback callback ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , timeoutMillis , callback , new android.os.Handler ( android.os.Looper.getMainLooper ( ) ) ) ; }

Target:
public void startAdvertisingSet ( android.bluetooth.le.AdvertisingSetParameters parameters , android.bluetooth.le.AdvertiseData advertiseData , android.bluetooth.le.AdvertiseData scanResponse , android.bluetooth.le.PeriodicAdvertisingParameters periodicParameters , android.bluetooth.le.AdvertiseData periodicData , int duration , int maxExtendedAdvertisingEvents , android.bluetooth.le.AdvertisingSetCallback callback ) { startAdvertisingSet ( parameters , advertiseData , scanResponse , periodicParameters , periodicData , duration , maxExtendedAdvertisingEvents , callback , new android.os.Handler ( android.os.Looper.getMainLooper ( ) ) ) ; }
Source:
public java.lang.String combineDateAndTime ( java.lang.String relativeDateString , java.lang.String timeString ) { return com.ibm.icu.impl.SimpleFormatterImpl.formatCompiledPattern ( combinedDateAndTime , timeString , relativeDateString ) ; }

Target:
public java.lang.String combineDateAndTime ( java.lang.String relativeDateString , java.lang.String timeString ) { com.ibm.icu.text.MessageFormat msgFmt = new com.ibm.icu.text.MessageFormat ( "" ) ; msgFmt.applyPattern ( combinedDateAndTime , MessagePattern.ApostropheMode.DOUBLE_REQUIRED ) ; java.lang.StringBuffer combinedDateTimeBuffer = new java.lang.StringBuffer ( 128 ) ; return msgFmt.format ( new java.lang.Object [ ] { timeString , relativeDateString } , combinedDateTimeBuffer , new java.text.FieldPosition ( 0 ) ) . toString ( ) ; }
Source:
protected void writeDiff ( java.io.File olderFile , java.io.File newerFile , java.util.zip.ZipOutputStream patchOutput ) throws java.io.IOException { java.io.BufferedInputStream olderFileIn = new java.io.BufferedInputStream ( new java.io.FileInputStream ( olderFile ) ) ; java.io.BufferedInputStream newerFileIn = new java.io.BufferedInputStream ( new java.io.FileInputStream ( newerFile ) ) ; try { writeDiff ( olderFileIn , newerFileIn , patchOutput ) ; } finally { olderFileIn.close ( ) ; newerFileIn.close ( ) ; } }

Target:
protected void writeDiff ( java.io.File olderFile , java.io.File newerFile , java.io.OutputStream patchOutput ) throws java.io.IOException { java.io.BufferedInputStream olderFileIn = new java.io.BufferedInputStream ( new java.io.FileInputStream ( olderFile ) ) ; java.io.BufferedInputStream newerFileIn = new java.io.BufferedInputStream ( new java.io.FileInputStream ( newerFile ) ) ; try { writeDiff ( olderFileIn , newerFileIn , patchOutput ) ; } finally { olderFileIn.close ( ) ; newerFileIn.close ( ) ; } }
Source:
public void dispatchKey ( android.view.KeyEvent event ) { if ( ( ( mSession ) != null ) && ( ( mSurface ) != null ) ) { try { mSession.finishKey ( mWindow ) ; } catch ( android.os.RemoteException ex ) { } } }

Target:
public void dispatchKey ( android.view.KeyEvent event ) { android.view.SurfaceView surfaceView = mSurfaceView.get ( ) ; if ( surfaceView != null ) { if ( ( ( surfaceView.mSession ) != null ) && ( ( surfaceView.mSurface ) != null ) ) { try { surfaceView.mSession.finishKey ( surfaceView.mWindow ) ; } catch ( android.os.RemoteException ex ) { } } } }
Source:
public int getConfigInt ( int item ) throws com.android.ims.ImsException { int ret = 0 ; try { ret = miConfig.getConfigInt ( item ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getInt()" , e , ImsReasonInfo.CODE_LOCAL_SERVICE_UNAVAILABLE ) ; } if ( DBG ) android.telephony.Rlog.d ( com.android.ims.ImsConfig.TAG , ( ( ( "getInt(): item = " + item ) + ", ret =" ) + ret ) ) ; return ret ; }

Target:
public int getConfigInt ( int item ) throws com.android.ims.ImsException { int ret = 0 ; try { ret = miConfig.getConfigInt ( item ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getInt()" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_SERVICE_UNAVAILABLE ) ; } if ( DBG ) android.telephony.Rlog.d ( com.android.ims.ImsConfig.TAG , ( ( ( "getInt(): item = " + item ) + ", ret =" ) + ret ) ) ; return ret ; }
Source:
public lombok.ast.AstVisitor createJavaVisitor ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.JavaContext context ) { return new com.android.tools.lint.checks.CallSuperDetector.PerformanceVisitor ( context ) ; }

Target:
public lombok.ast.AstVisitor createJavaVisitor ( @ com.android.annotations.NonNull final com.android.tools.lint.detector.api.JavaContext context ) { return new lombok.ast.ForwardingAstVisitor ( ) { @ java.lang.Override public boolean visitMethodDeclaration ( lombok.ast.MethodDeclaration node ) { com.android.tools.lint.client.api.JavaParser.ResolvedNode resolved = context.resolve ( node ) ; if ( resolved instanceof com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) { com.android.tools.lint.client.api.JavaParser.ResolvedMethod method = ( ( com.android.tools.lint.client.api.JavaParser.ResolvedMethod ) ( resolved ) ) ; com.android.tools.lint.checks.CallSuperDetector.checkCallSuper ( context , node , method ) ; } return false ; } } ; }
Source:
synchronized long nInvokeClosureCreate ( long invokeID , byte [ ] params , long [ ] fieldIDs , long [ ] values , int [ ] sizes ) { validate ( ) ; return rsnInvokeClosureCreate ( mContext , invokeID , params , fieldIDs , values , sizes ) ; }

Target:
synchronized long nInvokeClosureCreate ( long invokeID , byte [ ] params , long [ ] fieldIDs , long [ ] values , int [ ] sizes ) { validate ( ) ; long c = rsnInvokeClosureCreate ( mContext , invokeID , params , fieldIDs , values , sizes ) ; if ( c == 0 ) { throw new android.renderscript.RSRuntimeException ( "Failed creating closure." ) ; } return c ; }
Source:
public int onStartCommand ( android.content.Intent intent , int flags , int startId ) { mStartId = startId ; if ( ( mAdapter ) == null ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "Stopping BluetoothPbapService: " + "device does not have BT or device is not ready" ) ) ; closeService ( ) ; } else { if ( intent != null ) { parseIntent ( intent ) ; } } return START_NOT_STICKY ; }

Target:
private com.android.bluetooth.pbap.BluetoothPbapService getService ( java.lang.String perm ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "not allowed for non-active user" ) ; return null ; } if ( ( ( mService ) != null ) && ( mService.isAvailable ( ) ) ) { mService.enforceCallingOrSelfPermission ( perm , ( ( "Need " + perm ) + " permission" ) ) ; return mService ; } return null ; }
Source:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( int filter , com.android.sdklib.AndroidVersion version ) { assert ( ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_PLATFORMS ) ) || ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_SAMPLES ) ) ) || ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_SOURCES ) ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { if ( pkg instanceof com.android.sdklib.repository.local.LocalAndroidVersionPkgInfo ) { com.android.sdklib.repository.local.LocalAndroidVersionPkgInfo p = ( ( com.android.sdklib.repository.local.LocalAndroidVersionPkgInfo ) ( pkg ) ) ; if ( p.getAndroidVersion ( ) . equals ( version ) ) { return p ; } } } 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.AndroidVersion version ) { assert ( ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_PLATFORMS ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_SAMPLES ) ) ) || ( filter == ( com.android.sdklib.repository.descriptors.PkgType.PKG_SOURCES ) ) ; 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 ; }