auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
static final < K , V > void setEntryAt ( java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > [ ] tab , int i , java.util.concurrent.ConcurrentHashMap.HashEntry < K , V > e ) { java.util.concurrent.ConcurrentHashMap.UNSAFE.putOrderedObject ( tab , ( ( ( ( long ) ( i ) ) << ( java.util.concurrent.ConcurrentHashMap.TSHIFT ) ) + ( java.util.concurrent.ConcurrentHashMap.TBASE ) ) , e ) ; }

Target:
static final < K , V > boolean casTabAt ( java.util.concurrent.ConcurrentHashMap.Node < K , V > [ ] tab , int i , java.util.concurrent.ConcurrentHashMap.Node < K , V > c , java.util.concurrent.ConcurrentHashMap.Node < K , V > v ) { return java.util.concurrent.ConcurrentHashMap.U.compareAndSwapObject ( tab , ( ( ( ( long ) ( i ) ) << ( java.util.concurrent.ConcurrentHashMap.ASHIFT ) ) + ( java.util.concurrent.ConcurrentHashMap.ABASE ) ) , c , v ) ; }
Source:
void baseStart ( ) { if ( android.media.PlayerBase.DEBUG ) { android.util.Log.v ( android.media.PlayerBase.TAG , ( "baseStart() piid=" + ( mPlayerIId ) ) ) ; } try { synchronized ( mLock ) { mState = AudioPlaybackConfiguration.PLAYER_STATE_STARTED ; android.media.PlayerBase.getService ( ) . playerEvent ( mPlayerIId , mState ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.PlayerBase.TAG , "Error talking to audio service, STARTED state will not be tracked" , e ) ; } synchronized ( mLock ) { if ( isRestricted_sync ( ) ) { playerSetVolume ( true , 0 , 0 ) ; } } }

Target:
void baseStart ( ) { if ( android.media.PlayerBase.DEBUG ) { android.util.Log.v ( android.media.PlayerBase.TAG , ( "baseStart() piid=" + ( mPlayerIId ) ) ) ; } updateState ( AudioPlaybackConfiguration.PLAYER_STATE_STARTED ) ; synchronized ( mLock ) { if ( isRestricted_sync ( ) ) { playerSetVolume ( true , 0 , 0 ) ; } } }
Source:
protected abstract com.intellij.updater.ValidationResult doValidate ( final java.io.File toFile ) throws java.io.IOException ;

Target:
public com.intellij.updater.PatchAction merge ( com.intellij.updater.PatchAction other ) { if ( this . equals ( other ) ) { return this ; } com.intellij.updater.MultiAction multi = new com.intellij.updater.MultiAction ( myPatch , myPath , Digester.INVALID ) ; multi.addAction ( this ) ; multi.addAction ( other ) ; return multi ; }
Source:
public static java.util.Collection < java.io.File > defaultExpectations ( ) { java.io.File [ ] files = new java.io.File ( "libcore/expectations" ) . listFiles ( new java.io.FilenameFilter ( ) { public boolean accept ( java.io.File dir , java.lang.String name ) { return ( ! ( name.endsWith ( "~" ) ) ) && ( ! ( name.startsWith ( "." ) ) ) ; } } ) ; return files != null ? java.util.Arrays.asList ( files ) : java.util.Collections.< java.io.File > emptyList ( ) ; }

Target:
public static java.util.Collection < java.io.File > defaultExpectations ( ) { return java.util.Collections.singletonList ( new java.io.File ( "libcore/expectations/knownfailures.txt" ) ) ; }
Source:
static com.android.bluetooth.pbap.PbapStateMachine make ( com.android.bluetooth.pbap.BluetoothPbapService service , android.os.Looper looper , android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothSocket connSocket , com.android.bluetooth.IObexConnectionHandler obexConnectionHandler , android.os.Handler pbapHandler ) { com.android.bluetooth.pbap.PbapStateMachine stateMachine = new com.android.bluetooth.pbap.PbapStateMachine ( service , looper , device , connSocket , obexConnectionHandler , pbapHandler ) ; stateMachine.start ( ) ; return stateMachine ; }

Target:
static com.android.bluetooth.pbap.PbapStateMachine make ( com.android.bluetooth.pbap.BluetoothPbapService service , android.os.Looper looper , android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothSocket connSocket , com.android.bluetooth.IObexConnectionHandler obexConnectionHandler , android.os.Handler pbapHandler , int notificationId ) { com.android.bluetooth.pbap.PbapStateMachine stateMachine = new com.android.bluetooth.pbap.PbapStateMachine ( service , looper , device , connSocket , obexConnectionHandler , pbapHandler , notificationId ) ; stateMachine.start ( ) ; return stateMachine ; }
Source:
public android.graphics.Picture capturePicture ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.graphics.Picture ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.graphics.Picture > ( ) { @ java.lang.Override public android.graphics.Picture call ( ) { return capturePicture ( ) ; } } ) ; return ret ; } return mAwContents.capturePicture ( ) ; }

Target:
public boolean pageDown ( final boolean bottom ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return pageDown ( bottom ) ; } } ) ; return ret ; } return mAwContents.pageDown ( bottom ) ; }
Source:
private void writeLocals ( ) throws java.io.IOException { writer.writeOpenNodeList ( ) ; java.util.Iterator < com.android.jill.frontend.java.Variable > varIt = collectLocals ( ) ; while ( varIt.hasNext ( ) ) { writeLocal ( varIt.next ( ) ) ; } writer.writeCloseNodeList ( ) ; }

Target:
private void writeLocals ( ) throws java.io.IOException { writer.writeOpenNodeList ( ) ; if ( ( currentMethod.instructions.size ( ) ) != 0 ) { java.util.Iterator < com.android.jill.frontend.java.Variable > varIt = collectLocals ( ) ; while ( varIt.hasNext ( ) ) { writeLocal ( varIt.next ( ) ) ; } } writer.writeCloseNodeList ( ) ; }
Source:
public void onDestroy ( ) { if ( com.android.bluetooth.pbap.BluetoothPbapService.VERBOSE ) android.util.Log.v ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "Pbap Service onDestroy" ) ; super . onDestroy ( ) ; setState ( BluetoothPbap.STATE_DISCONNECTED , BluetoothPbap.RESULT_CANCELED ) ; closeService ( ) ; if ( ( mSessionStatusHandler ) != null ) { mSessionStatusHandler.removeCallbacksAndMessages ( null ) ; } }

Target:
protected boolean stop ( ) { android.util.Log.v ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "stop()" ) ; if ( ! ( mIsRegistered ) ) { android.util.Log.i ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "Avoid unregister when receiver it is not registered" ) ; return true ; } try { mIsRegistered = false ; unregisterReceiver ( mPbapReceiver ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "Unable to unregister pbap receiver" , e ) ; } setState ( BluetoothPbap.STATE_DISCONNECTED , BluetoothPbap.RESULT_CANCELED ) ; closeService ( ) ; if ( ( mSessionStatusHandler ) != null ) { mSessionStatusHandler.removeCallbacksAndMessages ( null ) ; } return true ; }
Source:
public void open ( ) throws java.lang.Exception { assertNull ( "Camera is already opened" , mCamera ) ; mCamera = new com.android.ex.camera2.blocking.BlockingCameraManager ( mCameraManager ) . openCamera ( mCameraId , mCameraListener , mHandler ) ; mStaticInfo = new android.hardware.camera2.cts.helpers.StaticMetadata ( mCameraManager.getCameraCharacteristics ( mCameraId ) , android.hardware.camera2.cts.helpers.StaticMetadata.CheckLevel.ASSERT , null ) ; mOrderedPreviewSizes = getSupportedPreviewSizes ( mCameraId , mCameraManager , android.hardware.camera2.cts.testcases.PREVIEW_SIZE_BOUND ) ; assertNotNull ( java.lang.String.format ( "Failed to open camera device ID: %s" , mCameraId ) , mCamera ) ; }

Target:
public void open ( ) throws java.lang.Exception { assertNull ( "Camera is already opened" , mCamera ) ; mCamera = new com.android.ex.camera2.blocking.BlockingCameraManager ( mCameraManager ) . openCamera ( mCameraId , mCameraListener , mHandler ) ; mStaticInfo = new android.hardware.camera2.cts.helpers.StaticMetadata ( mCameraManager.getCameraCharacteristics ( mCameraId ) , android.hardware.camera2.cts.helpers.StaticMetadata.CheckLevel.ASSERT , null ) ; mOrderedPreviewSizes = getSupportedPreviewSizes ( mCameraId , mCameraManager , getPreviewSizeBound ( mWindowManager , android.hardware.camera2.cts.testcases.PREVIEW_SIZE_BOUND ) ) ; assertNotNull ( java.lang.String.format ( "Failed to open camera device ID: %s" , mCameraId ) , mCamera ) ; }
Source:
private static com.android.dialer.calldetails.CallDetailsHeaderInfo createCallDetailsHeaderInfoFromRow ( android.content.Context context , com.android.dialer.calllog.model.CoalescedRow row ) { return com.android.dialer.calldetails.CallDetailsHeaderInfo.newBuilder ( ) . setDialerPhoneNumber ( row.number ( ) ) . setPhotoInfo ( com.android.dialer.calllog.ui.menu.Modules.createPhotoInfoFromRow ( row ) ) . setPrimaryText ( com.android.dialer.calllogutils.CallLogEntryText.buildPrimaryText ( context , row ) . toString ( ) ) . setSecondaryText ( com.android.dialer.calllogutils.CallLogEntryText.buildSecondaryTextForBottomSheet ( context , row ) . toString ( ) ) . build ( ) ; }

Target:
private static com.android.dialer.calldetails.CallDetailsHeaderInfo createCallDetailsHeaderInfoFromRow ( android.content.Context context , com.android.dialer.calllog.model.CoalescedRow row ) { return com.android.dialer.calldetails.CallDetailsHeaderInfo.newBuilder ( ) . setDialerPhoneNumber ( row.getNumber ( ) ) . setPhotoInfo ( com.android.dialer.calllog.ui.menu.Modules.createPhotoInfoFromRow ( row ) ) . setPrimaryText ( com.android.dialer.calllogutils.CallLogEntryText.buildPrimaryText ( context , row ) . toString ( ) ) . setSecondaryText ( com.android.dialer.calllogutils.CallLogEntryText.buildSecondaryTextForBottomSheet ( context , row ) . toString ( ) ) . build ( ) ; }
Source:
public void acknowledgeSms ( int token , int messageRef , int result ) throws com.android.ims.ImsException { try { mMmTelFeatureConnection.acknowledgeSms ( token , messageRef , result ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "acknowledgeSms()" , e , ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } }

Target:
public com.android.ims.ImsEcbm getEcbmInterface ( ) throws com.android.ims.ImsException { if ( ( ( mEcbm ) != null ) && ( mEcbm.isBinderAlive ( ) ) ) { return mEcbm ; } checkAndThrowExceptionIfServiceUnavailable ( ) ; try { com.android.ims.internal.IImsEcbm iEcbm = mMmTelFeatureConnection.getEcbmInterface ( ) ; if ( iEcbm == null ) { throw new com.android.ims.ImsException ( "getEcbmInterface()" , android.telephony.ims.ImsReasonInfo.CODE_ECBM_NOT_SUPPORTED ) ; } mEcbm = new com.android.ims.ImsEcbm ( iEcbm ) ; } catch ( android.os.RemoteException e ) { throw new com.android.ims.ImsException ( "getEcbmInterface()" , e , android.telephony.ims.ImsReasonInfo.CODE_LOCAL_IMS_SERVICE_DOWN ) ; } return mEcbm ; }
Source:
public void putNoFallback ( android.icu.impl.ICUResource.Key key ) { if ( ( names ) == null ) { names = new java.lang.String [ numNames ] ; } android.icu.impl.NameType type = android.icu.impl.TimeZoneNamesImpl.ZNamesLoader.nameTypeFromKey ( key ) ; if ( ( ( type != null ) && ( ( type.ordinal ( ) ) < ( numNames ) ) ) && ( ( names [ type.ordinal ( ) ] ) == null ) ) { names [ type.ordinal ( ) ] = android.icu.impl.TimeZoneNamesImpl.ZNamesLoader.NO_NAME ; } }

Target:
public void putNoFallback ( android.icu.impl.UResource.Key key ) { if ( ( names ) == null ) { names = new java.lang.String [ numNames ] ; } android.icu.impl.NameType type = android.icu.impl.TimeZoneNamesImpl.ZNamesLoader.nameTypeFromKey ( key ) ; if ( ( ( type != null ) && ( ( type.ordinal ( ) ) < ( numNames ) ) ) && ( ( names [ type.ordinal ( ) ] ) == null ) ) { names [ type.ordinal ( ) ] = android.icu.impl.TimeZoneNamesImpl.ZNamesLoader.NO_NAME ; } }
Source:
synchronized void nScriptForEach ( long id , int slot , long ain , long aout , byte [ ] params ) { validate ( ) ; if ( params == null ) { rsnScriptForEach ( mContext , id , slot , ain , aout ) ; } else { rsnScriptForEach ( mContext , id , slot , ain , aout , params ) ; } }

Target:
synchronized void nScriptInvoke ( long id , int slot , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptInvoke ( curCon , id , slot , mUseInc ) ; }
Source:
private static long getSampleTimeMillisForData ( java.lang.String inputIanaVersion ) { java.lang.String yearString = inputIanaVersion.substring ( 0 , ( ( inputIanaVersion.length ( ) ) - 1 ) ) ; int year = ( java.lang.Integer.parseInt ( yearString ) ) + 1 ; com.ibm.icu.util.Calendar calendar = new com.ibm.icu.util.GregorianCalendar ( com.ibm.icu.util.TimeZone.GMT_ZONE ) ; calendar.clear ( ) ; calendar.set ( year , Calendar.JULY , 2 , 12 , 0 , 0 ) ; return calendar.getTimeInMillis ( ) ; }

Target:
private static com.ibm.icu.util.Calendar getYearStartForData ( java.lang.String inputIanaVersion ) { java.lang.String yearString = inputIanaVersion.substring ( 0 , ( ( inputIanaVersion.length ( ) ) - 1 ) ) ; int year = java.lang.Integer.parseInt ( yearString ) ; com.ibm.icu.util.Calendar calendar = new com.ibm.icu.util.GregorianCalendar ( com.ibm.icu.util.TimeZone.GMT_ZONE ) ; calendar.clear ( ) ; calendar.set ( year , Calendar.JANUARY , 1 , 0 , 0 , 0 ) ; return calendar ; }
Source:
private com.android.sdklib.internal.repository.packages.Package.License getLicense ( @ com.android.annotations.Nullable com.android.sdkuilib.internal.repository.ArchiveInfo ai ) { if ( ai != null ) { com.android.sdklib.internal.repository.archives.Archive aNew = ai.getNewArchive ( ) ; if ( aNew != null ) { java.lang.Package pNew = aNew.getParentPackage ( ) ; if ( pNew != null ) { return pNew.getLicense ( ) ; } } } return null ; }

Target:
private com.android.sdklib.internal.repository.packages.Package.License getLicense ( @ com.android.annotations.Nullable com.android.sdklib.internal.repository.updater.ArchiveInfo ai ) { if ( ai != null ) { com.android.sdklib.internal.repository.archives.Archive aNew = ai.getNewArchive ( ) ; if ( aNew != null ) { java.lang.Package pNew = aNew.getParentPackage ( ) ; if ( pNew != null ) { return pNew.getLicense ( ) ; } } } return null ; }
Source:
public void testMethod ( ) { class Inner { final java.lang.String x ; public Inner ( java.lang.String x ) { this . x = x ; } } new Inner ( "test" ) ; }

Target:
public void testMethod ( ) { class Inner { final java.lang.String x ; public Inner ( java.lang.String x ) { this . x = x ; } } new Inner ( "test" ) ; new TestInnerLocal.Inner1Static ( "test" ) ; new TestInnerLocal.Inner1 ( "test" ) ; new TestInnerLocal.Inner1Static.Inner2Static ( "test" ) ; }
Source:
public static < K , V > org.hamcrest.Matcher < java.util.Map < K , V > > hasValue ( V value ) { return org.hamcrest.collection.IsMapContaining.hasValue ( org.hamcrest.collection.IsMapContaining.equalTo ( value ) ) ; }

Target:
public static < K , V > org.hamcrest.Matcher < java.util.Map < ? extends K , ? extends V > > hasEntry ( K key , V value ) { return new org.hamcrest.collection.IsMapContaining < K , V > ( org.hamcrest.collection.IsMapContaining.equalTo ( key ) , org.hamcrest.collection.IsMapContaining.equalTo ( value ) ) ; }
Source:
public com.intellij.execution.configurations.RunProfileState getState ( @ org.jetbrains.annotations.NotNull com.intellij.execution.Executor executor , @ org.jetbrains.annotations.NotNull com.intellij.execution.runners.ExecutionEnvironment env ) throws com.intellij.execution.ExecutionException { final com.intellij.execution.configurations.JavaCommandLineState state = new com.google.gct.idea.appengine.run.AppEngineRunConfiguration.JavaApplicationCommandLineState ( this , env ) ; com.intellij.execution.configurations.JavaRunConfigurationModule module = getConfigurationModule ( ) ; state.setConsoleBuilder ( com.intellij.execution.filters.TextConsoleBuilderFactory.getInstance ( ) . createBuilder ( getProject ( ) , module.getSearchScope ( ) ) ) ; return state ; }

Target:
public com.google.gct.idea.appengine.run.RunProfileState getState ( @ org.jetbrains.annotations.NotNull com.intellij.execution.Executor executor , @ org.jetbrains.annotations.NotNull com.intellij.execution.runners.ExecutionEnvironment env ) throws com.intellij.execution.ExecutionException { final com.google.gct.idea.appengine.run.JavaCommandLineState state = new com.google.gct.idea.appengine.run.AppEngineRunConfiguration.JavaApplicationCommandLineState ( this , env ) ; com.google.gct.idea.appengine.run.JavaRunConfigurationModule module = getConfigurationModule ( ) ; state.setConsoleBuilder ( com.intellij.execution.filters.TextConsoleBuilderFactory.getInstance ( ) . createBuilder ( getProject ( ) , module.getSearchScope ( ) ) ) ; return state ; }
Source:
public com.android.sched.vfs.InputVFile getFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.jack.library.FileTypeDoesNotExistException { try { com.android.sched.vfs.VPath clonedPath = typePath.clone ( ) ; clonedPath.addSuffix ( fileType.getFileExtension ( ) ) ; return inputVFS.getRootInputVDir ( ) . getInputVFile ( clonedPath ) ; } catch ( com.android.sched.util.file.NotFileOrDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }

Target:
public com.android.sched.vfs.InputVDir getDir ( @ 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 inputVFS.getRootInputVDir ( ) . getInputVDir ( typePath ) ; } catch ( com.android.sched.util.file.NotDirectoryException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.jack.library.FileTypeDoesNotExistException ( getLocation ( ) , typePath , fileType ) ; } }
Source:
boolean isNumberMatchingDesc ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneNumberDesc numberDesc ) { java.util.regex.Matcher nationalNumberPatternMatcher = regexCache.getPatternForRegex ( numberDesc.nationalNumberPattern ) . matcher ( nationalNumber ) ; return ( isNumberPossibleForDesc ( nationalNumber , numberDesc ) ) && ( nationalNumberPatternMatcher.matches ( ) ) ; }

Target:
public boolean isValidNumberForRegion ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number , java.lang.String regionCode ) { int countryCode = number.getCountryCode ( ) ; com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata = getMetadataForRegionOrCallingCode ( countryCode , regionCode ) ; if ( ( metadata == null ) || ( ( ! ( com.google.i18n.phonenumbers.PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals ( regionCode ) ) ) && ( countryCode != ( getCountryCodeForValidRegion ( regionCode ) ) ) ) ) { return false ; } java.lang.String nationalSignificantNumber = getNationalSignificantNumber ( number ) ; return ( getNumberTypeHelper ( nationalSignificantNumber , metadata ) ) != ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberType.UNKNOWN ) ; }
Source:
public boolean isEnabled ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue ) { if ( ( issue.getCategory ( ) ) == ( com.android.tools.lint.detector.api.Category.ICONS ) ) { return false ; } if ( issue == ( com.android.tools.lint.checks.ManifestOrderDetector.TARGET_NEWER ) ) { return false ; } if ( ( ( issue == ( com.android.tools.lint.checks.SecurityDetector.EXPORTED_SERVICE ) ) || ( issue == ( com.android.tools.lint.checks.SecurityDetector.EXPORTED_PROVIDER ) ) ) || ( issue == ( com.android.tools.lint.checks.SecurityDetector.EXPORTED_RECEIVER ) ) ) { return false ; } return true ; }

Target:
public boolean isEnabled ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Issue issue ) { if ( ( issue.getCategory ( ) ) == ( com.android.tools.lint.detector.api.Category.ICONS ) ) { return false ; } if ( issue == ( com.android.tools.lint.checks.ManifestDetector.TARGET_NEWER ) ) { return false ; } if ( ( ( issue == ( com.android.tools.lint.checks.SecurityDetector.EXPORTED_SERVICE ) ) || ( issue == ( com.android.tools.lint.checks.SecurityDetector.EXPORTED_PROVIDER ) ) ) || ( issue == ( com.android.tools.lint.checks.SecurityDetector.EXPORTED_RECEIVER ) ) ) { return false ; } return true ; }
Source:
public final void registerContentObserver ( android.net.Uri uri , boolean notifyForDescendents , android.database.ContentObserver observer ) { registerContentObserver ( uri , notifyForDescendents , observer , android.os.UserHandle.myUserId ( ) ) ; }

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 com.android.documentsui.base.RootInfo getRootOneshot ( java.lang.String authority , java.lang.String rootId , boolean forceRefresh ) { synchronized ( mLock ) { com.android.documentsui.base.RootInfo root = ( forceRefresh ) ? null : getRootLocked ( authority , rootId ) ; if ( root == null ) { mRoots.putAll ( authority , loadRootsForAuthority ( mContext.getContentResolver ( ) , authority , forceRefresh ) ) ; root = getRootLocked ( authority , rootId ) ; } return root ; } }

Target:
public com.android.documentsui.base.RootInfo getRootOneshot ( java.lang.String authority , java.lang.String rootId , boolean forceRefresh ) { synchronized ( mLock ) { com.android.documentsui.base.RootInfo root = ( forceRefresh ) ? null : getRootLocked ( authority , rootId ) ; if ( root == null ) { mRoots.replaceValues ( authority , loadRootsForAuthority ( mContext.getContentResolver ( ) , authority , forceRefresh ) ) ; root = getRootLocked ( authority , rootId ) ; } return root ; } }
Source:
private static synchronized com.google.devtools.common.options.OptionsData getOptionsDataInternal ( com.google.common.collect.ImmutableList < java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > optionsClasses ) throws com.google.devtools.common.options.OptionsParser.ConstructionException { com.google.devtools.common.options.OptionsData result = com.google.devtools.common.options.OptionsParser.optionsData.get ( optionsClasses ) ; if ( result == null ) { try { result = com.google.devtools.common.options.OptionsData.from ( optionsClasses ) ; } catch ( java.lang.Exception e ) { throw new com.google.devtools.common.options.OptionsParser.ConstructionException ( e.getMessage ( ) , e ) ; } com.google.devtools.common.options.OptionsParser.optionsData.put ( optionsClasses , result ) ; } return result ; }

Target:
static synchronized com.google.devtools.common.options.OptionsData getOptionsDataInternal ( java.util.List < java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > optionsClasses ) throws com.google.devtools.common.options.OptionsParser.ConstructionException { com.google.common.collect.ImmutableList < java.lang.Class < ? extends com.google.devtools.common.options.OptionsBase > > immutableOptionsClasses = com.google.common.collect.ImmutableList.copyOf ( optionsClasses ) ; com.google.devtools.common.options.OptionsData result = com.google.devtools.common.options.OptionsParser.optionsData.get ( immutableOptionsClasses ) ; if ( result == null ) { try { result = com.google.devtools.common.options.OptionsData.from ( immutableOptionsClasses ) ; } catch ( java.lang.Exception e ) { throw new com.google.devtools.common.options.OptionsParser.ConstructionException ( e.getMessage ( ) , e ) ; } com.google.devtools.common.options.OptionsParser.optionsData.put ( immutableOptionsClasses , result ) ; } return result ; }
Source:
public void testMatches ( ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) org.hamcrest.Matcher < android.net.Uri > matcher = org.hamcrest.CoreMatchers.allOf ( android.support.test.espresso.intent.matcher.UriMatchers.hasHost ( org.hamcrest.CoreMatchers.equalTo ( "www.google.com" ) ) , android.support.test.espresso.intent.matcher.UriMatchers.hasPath ( org.hamcrest.CoreMatchers.equalTo ( "/search" ) ) , android.support.test.espresso.intent.matcher.UriMatchers.hasParamWithValue ( org.hamcrest.CoreMatchers.equalTo ( "q" ) , org.hamcrest.CoreMatchers.equalTo ( "Matcher" ) ) , android.support.test.espresso.intent.matcher.UriMatchers.hasParamWithValue ( org.hamcrest.CoreMatchers.equalTo ( "aq" ) , org.hamcrest.CoreMatchers.equalTo ( "f" ) ) ) ; android.net.Uri uri = android.net.Uri.parse ( "https://www.google.com/search?q=Matcher&aq=f" ) ; assertTrue ( "Matches failed." , matcher.matches ( uri ) ) ; }

Target:
public void matches ( ) { org.hamcrest.Matcher < android.net.Uri > matcher = org.hamcrest.CoreMatchers.allOf ( android.support.test.espresso.intent.matcher.UriMatchers.hasHost ( org.hamcrest.CoreMatchers.equalTo ( "www.google.com" ) ) , android.support.test.espresso.intent.matcher.UriMatchers.hasPath ( org.hamcrest.CoreMatchers.equalTo ( "/search" ) ) , android.support.test.espresso.intent.matcher.UriMatchers.hasParamWithValue ( org.hamcrest.CoreMatchers.equalTo ( "q" ) , org.hamcrest.CoreMatchers.equalTo ( "Matcher" ) ) , android.support.test.espresso.intent.matcher.UriMatchers.hasParamWithValue ( org.hamcrest.CoreMatchers.equalTo ( "aq" ) , org.hamcrest.CoreMatchers.equalTo ( "f" ) ) ) ; android.net.Uri uri = android.net.Uri.parse ( "https://www.google.com/search?q=Matcher&aq=f" ) ; org.junit.Assert.assertTrue ( "Matches failed." , matcher.matches ( uri ) ) ; }
Source:
public void testMergeBlob ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceMerger merger = com.android.ide.common.res2.ResourceMergerTest.getResourceMerger ( ) ; java.io.File folder = com.google.common.io.Files.createTempDir ( ) ; merger.writeBlobTo ( folder , new com.android.ide.common.res2.MergedResourceWriter ( com.google.common.io.Files.createTempDir ( ) , null ) ) ; com.android.ide.common.res2.ResourceMerger loadedMerger = new com.android.ide.common.res2.ResourceMerger ( ) ; assertTrue ( loadedMerger.loadFromBlob ( folder , true ) ) ; compareResourceMaps ( merger , loadedMerger , true ) ; }

Target:
public void testMergeBlob ( ) throws java.lang.Exception { com.android.ide.common.res2.ResourceMerger merger = com.android.ide.common.res2.ResourceMergerTest.getResourceMerger ( ) ; java.io.File folder = com.google.common.io.Files.createTempDir ( ) ; merger.writeBlobTo ( folder , new com.android.ide.common.res2.MergedResourceWriter ( com.google.common.io.Files.createTempDir ( ) , mPngCruncher , false , false ) ) ; com.android.ide.common.res2.ResourceMerger loadedMerger = new com.android.ide.common.res2.ResourceMerger ( ) ; assertTrue ( loadedMerger.loadFromBlob ( folder , true ) ) ; compareResourceMaps ( merger , loadedMerger , true ) ; }
Source:
public void moveCompleteApp ( java.lang.String from_uuid , java.lang.String to_uuid , java.lang.String package_name , java.lang.String data_app_name , int appid , java.lang.String seinfo , int targetSdkVersion ) throws com.android.internal.os.InstallerConnection.InstallerException { mInstaller.execute ( "move_complete_app" , from_uuid , to_uuid , package_name , data_app_name , appid , seinfo , targetSdkVersion ) ; }

Target:
public void moveCompleteApp ( java.lang.String fromUuid , java.lang.String toUuid , java.lang.String packageName , java.lang.String dataAppName , int appId , java.lang.String seInfo , int targetSdkVersion ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.moveCompleteApp ( fromUuid , toUuid , packageName , dataAppName , appId , seInfo , targetSdkVersion ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public long getPrimaryStorageSize ( ) { for ( java.lang.String path : android.os.storage.StorageManager.INTERNAL_STORAGE_SIZE_PATHS ) { final long numberBlocks = readLong ( path ) ; if ( numberBlocks > 0 ) { return numberBlocks * ( android.os.storage.StorageManager.INTERNAL_STORAGE_SECTOR_SIZE ) ; } } return 0 ; }

Target:
public static android.util.Pair < java.lang.String , java.lang.Long > getPrimaryStoragePathAndSize ( ) { for ( java.lang.String path : android.os.storage.StorageManager.INTERNAL_STORAGE_SIZE_PATHS ) { final long numberBlocks = android.os.storage.StorageManager.readLong ( path ) ; if ( numberBlocks > 0 ) { return new android.util.Pair ( path , java.lang.Long.valueOf ( ( numberBlocks * ( android.os.storage.StorageManager.INTERNAL_STORAGE_SECTOR_SIZE ) ) ) ) ; } } return null ; }
Source:
protected com.android.sdkmanager.CommandLineProcessor.Arg findLongArg ( java.lang.String verb , java.lang.String directObject , java.lang.String longName ) { if ( verb == null ) { verb = com.android.sdkmanager.CommandLineProcessor.GLOBAL_FLAG_VERB ; } if ( directObject == null ) { directObject = com.android.sdkmanager.CommandLineProcessor.NO_VERB_OBJECT ; } java.lang.String key = ( ( ( verb + "/" ) + directObject ) + "/" ) + longName ; return mArguments.get ( key ) ; }

Target:
protected com.android.sdkmanager.CommandLineProcessor.Arg findLongArg ( java.lang.String verb , java.lang.String directObject , java.lang.String longName ) { if ( verb == null ) { verb = com.android.sdkmanager.CommandLineProcessor.GLOBAL_FLAG_VERB ; } if ( directObject == null ) { directObject = com.android.sdkmanager.CommandLineProcessor.NO_VERB_OBJECT ; } java.lang.String key = ( ( ( verb + '/' ) + directObject ) + '/' ) + longName ; return mArguments.get ( key ) ; }
Source:
public boolean startsWithPlaceholder ( int id ) { if ( ( placeholderIdsOrderedByOffset.length ) == 0 ) { return false ; } return ( ( placeholderIdsOrderedByOffset [ 0 ] ) == 0 ) && ( ( placeholderIdsOrderedByOffset [ 1 ] ) == id ) ; }

Target:
public java.lang.StringBuilder formatAndAppend ( java.lang.StringBuilder appendTo , int [ ] offsets , java.lang.CharSequence ... values ) { if ( ( values.length ) < ( placeholderCount ) ) { throw new java.lang.IllegalArgumentException ( "Too few values." ) ; } com.ibm.icu.impl.SimplePatternFormatter.PlaceholderValues placeholderValues = new com.ibm.icu.impl.SimplePatternFormatter.PlaceholderValues ( values ) ; if ( placeholderValues.isAppendToInAnyIndexExcept ( appendTo , ( - 1 ) ) ) { throw new java.lang.IllegalArgumentException ( "Parameter values cannot be the same as appendTo." ) ; } formatReturningOffsetLength ( appendTo , offsets , placeholderValues ) ; return appendTo ; }
Source:
public void testKeyguardLock ( ) throws java.lang.Exception { if ( ! ( supportsKeyguard ( ) ) ) { return ; } gotoKeyguard ( ) ; mAmWmState.waitForKeyguardShowingAndNotOccluded ( mDevice ) ; assertShowingAndNotOccluded ( ) ; launchActivity ( "KeyguardLockActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "KeyguardLockActivity" } ) ; mAmWmState.assertVisibility ( "KeyguardLockActivity" , true ) ; executeShellCommand ( android.server.cts.FINISH_ACTIVITY_BROADCAST ) ; mAmWmState.waitForKeyguardShowingAndNotOccluded ( mDevice ) ; assertShowingAndNotOccluded ( ) ; }

Target:
public void testKeyguardLock ( ) throws java.lang.Exception { if ( ( ! ( isHandheld ( ) ) ) || ( isUiModeLockedToVrHeadset ( ) ) ) { return ; } gotoKeyguard ( ) ; mAmWmState.waitForKeyguardShowingAndNotOccluded ( mDevice ) ; assertShowingAndNotOccluded ( ) ; launchActivity ( "KeyguardLockActivity" ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { "KeyguardLockActivity" } ) ; mAmWmState.assertVisibility ( "KeyguardLockActivity" , true ) ; executeShellCommand ( android.server.cts.FINISH_ACTIVITY_BROADCAST ) ; mAmWmState.waitForKeyguardShowingAndNotOccluded ( mDevice ) ; assertShowingAndNotOccluded ( ) ; }
Source:
public static java.util.List < com.google.currysrc.api.transform.ast.BodyDeclarationLocater > createLocatersFromStrings ( java.lang.String [ ] locaterStrings ) { com.google.common.collect.ImmutableList.Builder < com.google.currysrc.api.transform.ast.BodyDeclarationLocater > locaterListBuilder = com.google.common.collect.ImmutableList.builder ( ) ; for ( java.lang.String locaterString : locaterStrings ) { com.google.currysrc.api.transform.ast.BodyDeclarationLocater locater = com.google.currysrc.api.transform.ast.BodyDeclarationLocaters.fromStringForm ( locaterString ) ; locaterListBuilder.add ( locater ) ; } return locaterListBuilder.build ( ) ; }

Target:
public static java.util.List < com.google.currysrc.api.process.ast.BodyDeclarationLocator > createLocatorsFromStrings ( java.lang.String [ ] locatorStrings ) { com.google.common.collect.ImmutableList.Builder < com.google.currysrc.api.process.ast.BodyDeclarationLocator > locatorListBuilder = com.google.common.collect.ImmutableList.builder ( ) ; for ( java.lang.String locatorString : locatorStrings ) { com.google.currysrc.api.process.ast.BodyDeclarationLocator locator = com.google.currysrc.api.process.ast.BodyDeclarationLocators.fromStringForm ( locatorString ) ; locatorListBuilder.add ( locator ) ; } return locatorListBuilder.build ( ) ; }
Source:
public void dismissKeyguardLw ( ) { if ( ! ( mKeyguardMediator.isSecure ( ) ) ) { if ( mKeyguardMediator.isShowing ( ) ) { mHandler.post ( new java.lang.Runnable ( ) { public void run ( ) { mKeyguardMediator.keyguardDone ( false , true ) ; } } ) ; } } }

Target:
public void systemReady ( ) { if ( ( mKeyguardMediator ) != null ) { mKeyguardMediator.onSystemReady ( ) ; } synchronized ( mLock ) { updateOrientationListenerLp ( ) ; mSystemReady = true ; mHandler.post ( new java.lang.Runnable ( ) { public void run ( ) { updateSettings ( ) ; } } ) ; } }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , byte [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , data.length ) ; }

Target:
public void copy1DRangeFromUnchecked ( int off , int count , byte [ ] d ) { int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , d.length , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize ) ; }
Source:
private static void generateConversionResult ( final org.jetbrains.asm4.commons.GeneratorAdapter generator , final com.intellij.uiDesigner.compiler.GridBagConverter.Result result , final int componentLocal , final int parentLocal ) { com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.checkSetSize ( generator , componentLocal , "setMinimumSize" , result.minimumSize ) ; com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.checkSetSize ( generator , componentLocal , "setPreferredSize" , result.preferredSize ) ; com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.checkSetSize ( generator , componentLocal , "setMaximumSize" , result.maximumSize ) ; com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.generateGridBagConstraints ( generator , result.constraints , componentLocal , parentLocal ) ; }

Target:
private static void generateConversionResult ( final org.jetbrains.org.objectweb.asm.commons.GeneratorAdapter generator , final com.intellij.uiDesigner.compiler.GridBagConverter.Result result , final int componentLocal , final int parentLocal ) { com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.checkSetSize ( generator , componentLocal , "setMinimumSize" , result.minimumSize ) ; com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.checkSetSize ( generator , componentLocal , "setPreferredSize" , result.preferredSize ) ; com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.checkSetSize ( generator , componentLocal , "setMaximumSize" , result.maximumSize ) ; com.intellij.uiDesigner.compiler.GridBagLayoutCodeGenerator.generateGridBagConstraints ( generator , result.constraints , componentLocal , parentLocal ) ; }
Source:
public static com.android.sdklib.resources.Keyboard getEnum ( java.lang.String value ) { for ( com.android.sdklib.resources.Keyboard orient : com.android.sdklib.resources.Keyboard.values ( ) ) { if ( orient.mValue.equals ( value ) ) { return orient ; } } return null ; }

Target:
public static com.android.sdklib.resources.Keyboard getEnum ( java.lang.String value ) { for ( com.android.sdklib.resources.Keyboard kbrd : com.android.sdklib.resources.Keyboard.values ( ) ) { if ( ( kbrd.mValue.equals ( value ) ) || ( ( ( kbrd.mValue2 ) != null ) && ( kbrd.mValue2.equals ( value ) ) ) ) { return kbrd ; } } return null ; }
Source:
public boolean sameItemAs ( java.lang.Package pkg , boolean ignorePreviews ) { if ( pkg instanceof com.android.sdklib.internal.repository.packages.ToolPackage ) { if ( ignorePreviews ) { return true ; } else { return ( pkg.getRevision ( ) . isPreview ( ) ) == ( getRevision ( ) . isPreview ( ) ) ; } } return false ; }

Target:
public boolean sameItemAs ( java.lang.Package pkg , com.android.sdklib.internal.repository.packages.FullRevision.PreviewComparison comparePreview ) { if ( pkg instanceof com.android.sdklib.internal.repository.packages.ToolPackage ) { switch ( comparePreview ) { case IGNORE : return true ; case COMPARE_NUMBER : case COMPARE_TYPE : return ( pkg.getRevision ( ) . isPreview ( ) ) == ( getRevision ( ) . isPreview ( ) ) ; } } return false ; }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeLong ( mNetworkCapabilities ) ; dest.writeLong ( mTransportTypes ) ; dest.writeInt ( mLinkUpBandwidthKbps ) ; dest.writeInt ( mLinkDownBandwidthKbps ) ; dest.writeParcelable ( ( ( android.os.Parcelable ) ( mNetworkSpecifier ) ) , flags ) ; dest.writeInt ( mSignalStrength ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { dest.writeLong ( mNetworkCapabilities ) ; dest.writeLong ( mTransportTypes ) ; dest.writeInt ( mLinkUpBandwidthKbps ) ; dest.writeInt ( mLinkDownBandwidthKbps ) ; dest.writeParcelable ( ( ( android.os.Parcelable ) ( mNetworkSpecifier ) ) , flags ) ; dest.writeInt ( mSignalStrength ) ; dest.writeArraySet ( new android.util.ArraySet ( mUids ) ) ; }
Source:
private static java.lang.String getResource ( java.lang.String resName ) throws java.io.IOException { java.net.URL resource = com.google.common.io.Resources.getResource ( com.android.monkeyrunner.adb.AdbMonkeyDeviceTest.class , resName ) ; java.util.List < java.lang.String > lines = com.google.common.io.Resources.readLines ( resource , java.nio.charset.Charset.defaultCharset ( ) ) ; return com.google.common.base.Joiner.on ( "\r\n" ) . join ( lines ) ; }

Target:
private static java.lang.String getResource ( java.lang.String resName ) throws java.io.IOException { java.net.URL resource = com.google.common.io.Resources.getResource ( com.android.chimpchat.adb.AdbChimpDeviceTest.class , resName ) ; java.util.List < java.lang.String > lines = com.google.common.io.Resources.readLines ( resource , java.nio.charset.Charset.defaultCharset ( ) ) ; return com.google.common.base.Joiner.on ( "\r\n" ) . join ( lines ) ; }
Source:
public void testInstall_badSystemFile ( ) throws java.lang.Exception { java.io.File doesNotExist = new java.io.File ( testSystemTzDataDir , "doesNotExist" ) ; libcore.tzdata.update2.TimeZoneBundleInstaller brokenSystemInstaller = new libcore.tzdata.update2.TimeZoneBundleInstaller ( "TimeZoneBundleInstallerTest" , doesNotExist , testInstallDir ) ; libcore.tzdata.update2.TimeZoneBundle tzData = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneBundle ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , 1 ) ; try { brokenSystemInstaller.installWithErrorCode ( tzData.getBytes ( ) ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } assertNoContentInstalled ( ) ; }

Target:
public void testInstall_badSystemFile ( ) throws java.lang.Exception { java.io.File doesNotExist = new java.io.File ( testSystemTzDataDir , "doesNotExist" ) ; libcore.tzdata.update2.TimeZoneBundleInstaller brokenSystemInstaller = new libcore.tzdata.update2.TimeZoneBundleInstaller ( "TimeZoneBundleInstallerTest" , doesNotExist , testInstallDir ) ; libcore.tzdata.update2.TimeZoneDistro tzData = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , 1 ) ; try { brokenSystemInstaller.installWithErrorCode ( tzData.getBytes ( ) ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } assertNoContentInstalled ( ) ; }
Source:
public java.util.List < java.lang.String > lookupCountryCodesForZoneId ( java.lang.String zoneId ) { java.util.List < java.lang.String > isoCodes = new java.util.ArrayList < > ( 2 ) ; for ( libcore.util.CountryTimeZones countryTimeZones : countryTimeZonesList ) { if ( countryTimeZones.getTimeZoneIds ( ) . contains ( zoneId ) ) { isoCodes.add ( countryTimeZones.getCountryIso ( ) ) ; } } return java.util.Collections.unmodifiableList ( isoCodes ) ; }

Target:
public java.util.List < java.lang.String > lookupCountryCodesForZoneId ( java.lang.String zoneId ) { java.util.List < java.lang.String > isoCodes = new java.util.ArrayList < > ( 2 ) ; for ( libcore.util.CountryTimeZones countryTimeZones : countryTimeZonesList ) { boolean match = libcore.util.CountryTimeZones.TimeZoneMapping.containsTimeZoneId ( countryTimeZones.getTimeZoneMappings ( ) , zoneId ) ; if ( match ) { isoCodes.add ( countryTimeZones.getCountryIso ( ) ) ; } } return java.util.Collections.unmodifiableList ( isoCodes ) ; }
Source:
public void testFilteredOutBuildType ( ) { com.android.build.gradle.model.AndroidProjectTest.ProjectData projectData = getModelForProject ( "filteredOutBuildType" ) ; com.android.builder.model.AndroidProject model = projectData.model ; assertEquals ( "Variant Count" , 1 , model.getVariants ( ) . size ( ) ) ; com.android.builder.model.Variant variant = model.getVariants ( ) . iterator ( ) . next ( ) ; assertEquals ( "Variant name" , "release" , variant.getBuildType ( ) ) ; }

Target:
public void testFilteredOutBuildType ( ) { com.android.build.gradle.model.AndroidProjectTest.ProjectData projectData = getModelForProject ( com.android.build.gradle.model.AndroidProjectTest.FOLDER_TEST_REGULAR , "filteredOutBuildType" ) ; com.android.builder.model.AndroidProject model = projectData.model ; assertEquals ( "Variant Count" , 1 , model.getVariants ( ) . size ( ) ) ; com.android.builder.model.Variant variant = model.getVariants ( ) . iterator ( ) . next ( ) ; assertEquals ( "Variant name" , "release" , variant.getBuildType ( ) ) ; }
Source:
protected boolean updateActions ( ) { boolean changed = false ; if ( updatePipAction ( ) ) { changed = true ; } if ( updateMultiAudioAction ( ) ) { changed = true ; } if ( updateDisplayModeAction ( ) ) { changed = true ; } return changed ; }

Target:
protected void updateActions ( ) { if ( updateClosedCaptionAction ( ) ) { notifyItemChanged ( getItemPosition ( MenuAction.SELECT_CLOSED_CAPTION_ACTION ) ) ; } if ( updateMultiAudioAction ( ) ) { notifyItemChanged ( getItemPosition ( MenuAction.SELECT_AUDIO_LANGUAGE_ACTION ) ) ; } if ( updateDisplayModeAction ( ) ) { notifyItemChanged ( getItemPosition ( MenuAction.SELECT_DISPLAY_MODE_ACTION ) ) ; } }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { java.lang.String v = org.conscrypt.NativeCrypto.SSL_SESSION_get_version ( session ) ; assertTrue ( StandardNames.SSL_SOCKET_PROTOCOLS.contains ( v ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void run ( long sslSession ) throws java.lang.Exception { try { org.conscrypt.NativeCrypto.SSL_shutdown ( sslSession , org.conscrypt.NativeCryptoTest.INVALID_FD , null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( ! ( BluetoothDevice.ACTION_BOND_STATE_CHANGED.equals ( intent.getAction ( ) ) ) ) { return ; } int state = intent.getIntExtra ( BluetoothDevice.EXTRA_BOND_STATE , BluetoothDevice.ERROR ) ; android.bluetooth.BluetoothDevice device = intent.getParcelableExtra ( BluetoothDevice.EXTRA_DEVICE ) ; if ( com.android.bluetooth.hearingaid.HearingAidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hearingaid.HearingAidService.TAG , ( ( ( "Bond state changed for device: " + device ) + " state: " ) + state ) ) ; } if ( state != ( android.bluetooth.BluetoothDevice.BOND_NONE ) ) { return ; } }

Target:
void bondStateChanged ( android.bluetooth.BluetoothDevice device , int bondState ) { if ( com.android.bluetooth.hearingaid.HearingAidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hearingaid.HearingAidService.TAG , ( ( ( "Bond state changed for device: " + device ) + " state: " ) + bondState ) ) ; } if ( bondState != ( android.bluetooth.BluetoothDevice.BOND_NONE ) ) { return ; } synchronized ( mStateMachines ) { com.android.bluetooth.hearingaid.HearingAidStateMachine sm = mStateMachines.get ( device ) ; if ( sm == null ) { return ; } if ( ( sm.getConnectionState ( ) ) != ( android.bluetooth.BluetoothProfile.STATE_DISCONNECTED ) ) { return ; } removeStateMachine ( device ) ; } }
Source:
private com.android.sched.vfs.OutputVFS wrapOutputVFS ( @ javax.annotation.Nonnull com.android.sched.vfs.VFS baseVFS ) { com.android.sched.util.codec.MessageDigestCodec mdCodec = new com.android.sched.util.codec.MessageDigestCodec ( ) ; java.security.Provider.Service service = mdCodec.parseString ( new com.android.sched.util.codec.CodecContext ( ) , "SHA" ) ; try { return new com.android.sched.vfs.GenericOutputVFS ( new com.android.sched.vfs.DeflateFS ( new com.android.sched.vfs.MessageDigestFS ( new com.android.sched.vfs.PrefixedFS ( baseVFS , new com.android.sched.vfs.VPath ( "jayce" , '/' ) ) , new com.android.sched.util.config.MessageDigestFactory ( service ) ) ) ) ; } catch ( com.android.sched.util.file.NotDirectoryException | com.android.sched.util.file.CannotCreateFileException | com.android.sched.vfs.BadVFSFormatException e ) { throw new com.android.jill.JillException ( e ) ; } }

Target:
private com.android.sched.vfs.OutputVFS wrapOutputVFS ( @ javax.annotation.Nonnull com.android.sched.vfs.VFS baseVFS ) { com.android.sched.util.codec.MessageDigestCodec mdCodec = new com.android.sched.util.codec.MessageDigestCodec ( ) ; java.security.Provider.Service service = mdCodec.parseString ( new com.android.sched.util.codec.CodecContext ( ) , "SHA" ) ; try { return new com.android.sched.vfs.GenericOutputVFS ( new com.android.sched.vfs.DeflateFS ( new com.android.sched.vfs.MessageDigestFS ( new com.android.sched.vfs.PrefixedFS ( baseVFS , new com.android.sched.vfs.VPath ( "jayce" , '/' ) , com.android.sched.util.file.FileOrDirectory.Existence.MAY_EXIST ) , new com.android.sched.util.config.MessageDigestFactory ( service ) ) ) ) ; } catch ( com.android.sched.util.file.NotDirectoryException | com.android.sched.util.file.CannotCreateFileException | com.android.sched.vfs.BadVFSFormatException | com.android.sched.vfs.WrongVFSTypeException e ) { throw new com.android.jill.JillException ( e ) ; } }
Source:
public android.view.accessibility.AccessibilityNodeProvider getAccessibilityNodeProvider ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { android.view.accessibility.AccessibilityNodeProvider ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.view.accessibility.AccessibilityNodeProvider > ( ) { @ java.lang.Override public android.view.accessibility.AccessibilityNodeProvider call ( ) { return getAccessibilityNodeProvider ( ) ; } } ) ; return ret ; } return mAwContents.getAccessibilityNodeProvider ( ) ; }

Target:
public boolean performAccessibilityAction ( final int action , final android.os.Bundle arguments ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return performAccessibilityAction ( action , arguments ) ; } } ) ; return ret ; } if ( mAwContents.supportsAccessibilityAction ( action ) ) { return mAwContents.performAccessibilityAction ( action , arguments ) ; } return mWebViewPrivate.super_performAccessibilityAction ( action , arguments ) ; }