auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void exitKeyguardSecurely ( com.android.internal.policy.impl.OnKeyguardExitResult callback ) { if ( ( mKeyguardMediator ) != null ) { mKeyguardMediator.verifyUnlock ( callback ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( Intent.ACTION_DREAMING_STARTED.equals ( intent.getAction ( ) ) ) { if ( ( mKeyguardMediator ) != null ) { mKeyguardMediator.onDreamingStarted ( ) ; } } else if ( Intent.ACTION_DREAMING_STOPPED.equals ( intent.getAction ( ) ) ) { if ( ( mKeyguardMediator ) != null ) { mKeyguardMediator.onDreamingStopped ( ) ; } } }
Source:
private void loadProvidersLocked ( ) { try { _loadProvidersLocked ( ) ; } catch ( java.lang.Exception e ) { android.util.Slog.e ( com.android.server.LocationManagerService.TAG , "Exception loading providers:" , e ) ; } }

Target:
private void switchUser ( int userId ) { mBlacklist.switchUser ( userId ) ; synchronized ( mLock ) { mLastLocation.clear ( ) ; for ( com.android.server.location.LocationProviderInterface p : mProviders ) { updateProviderListenersLocked ( p.getName ( ) , false , mCurrentUserId ) ; p.switchUser ( userId ) ; } mCurrentUserId = userId ; updateProvidersLocked ( ) ; } }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { com.android.server.telecom.Log.startSession ( "TSStR.oR" ) ; try { int userHandleId = intent.getIntExtra ( Intent.EXTRA_USER_HANDLE , 0 ) ; android.os.UserHandle addingUserHandle = new android.os.UserHandle ( userHandleId ) ; mCallsManager.onUserStarting ( addingUserHandle ) ; } finally { com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { com.android.server.telecom.Log.startSession ( "TSStR.oR" ) ; try { synchronized ( mLock ) { int userHandleId = intent.getIntExtra ( Intent.EXTRA_USER_HANDLE , 0 ) ; android.os.UserHandle addingUserHandle = new android.os.UserHandle ( userHandleId ) ; mCallsManager.onUserStarting ( addingUserHandle ) ; } } finally { com.android.server.telecom.Log.endSession ( ) ; } }
Source:
public java.lang.String getClassName ( ) { if ( ( className ) == null ) { if ( ! ( isReference ( ) ) ) { throw new java.lang.IllegalArgumentException ( ( "not an object type: " + ( descriptor ) ) ) ; } if ( ( descriptor.charAt ( 0 ) ) == '[' ) { className = descriptor ; } else { className = descriptor.substring ( 1 , ( ( descriptor.length ( ) ) - 1 ) ) ; } } return className ; }

Target:
public java.lang.String getClassName ( ) { if ( ( className ) == null ) { if ( ( ! ( isReference ( ) ) ) && ( ! ( isClosure ( ) ) ) ) { throw new java.lang.IllegalArgumentException ( ( "not an object type: " + ( descriptor ) ) ) ; } if ( ( descriptor.charAt ( 0 ) ) == '[' ) { className = descriptor ; } else { className = descriptor.substring ( 1 , ( ( descriptor.length ( ) ) - 1 ) ) ; } } return className ; }
Source:
private void testInterruptInputStream ( final java.io.InputStream in ) throws java.lang.Exception { interruptMeLater ( ) ; try { in.read ( ) ; fail ( ) ; } catch ( java.io.InterruptedIOException expected ) { } }

Target:
private void testInterruptWritableChannel ( final java.nio.channels.WritableByteChannel channel ) throws java.lang.Exception { java.lang.Thread thread = interruptMeLater ( ) ; try { while ( true ) { channel.write ( java.nio.ByteBuffer.allocate ( libcore.java.io.InterruptedStreamTest.BUFFER_SIZE ) ) ; } } catch ( java.nio.channels.ClosedByInterruptException expected ) { } catch ( java.nio.channels.ClosedChannelException expected ) { } finally { libcore.java.io.InterruptedStreamTest.confirmInterrupted ( thread ) ; } }
Source:
com.android.jack.ir.ast.cfg.ExceptionHandlingContext getOrCreate ( @ javax.annotation.Nonnull java.util.List < com.android.jack.ir.ast.cfg.JCatchBasicBlock > catchBlocks ) { com.android.jack.ir.ast.cfg.ExceptionHandlingContext ehc = pool.get ( catchBlocks ) ; if ( ehc == null ) { ehc = com.android.jack.ir.ast.cfg.ExceptionHandlingContext.create ( catchBlocks ) ; pool.put ( catchBlocks , ehc ) ; } return ehc ; }

Target:
com.android.jack.ir.ast.cfg.ExceptionHandlingContext getOrCreate ( @ javax.annotation.Nonnull java.util.List < com.android.jack.ir.ast.cfg.JCatchBasicBlock > catchBlocks ) { com.android.jack.ir.ast.cfg.ExceptionHandlingContext ehc = pool.get ( catchBlocks ) ; if ( ehc == null ) { ehc = com.android.jack.ir.ast.cfg.ExceptionHandlingContext.create ( catchBlocks ) ; pool.put ( ehc.getCatchBlocks ( ) , ehc ) ; } return ehc ; }
Source:
private synchronized boolean areSlotsInitialized ( ) { for ( com.android.internal.telephony.uicc.UiccSlot slot : mUiccSlots ) { if ( slot == null ) { return false ; } } return true ; }

Target:
static void updateInternalIccState ( java.lang.String value , java.lang.String reason , int phoneId ) { com.android.internal.telephony.SubscriptionInfoUpdater subInfoUpdator = com.android.internal.telephony.PhoneFactory.getSubscriptionInfoUpdater ( ) ; if ( subInfoUpdator != null ) { subInfoUpdator.updateInternalIccState ( value , reason , phoneId ) ; } else { android.telephony.Rlog.e ( com.android.internal.telephony.uicc.UiccController.LOG_TAG , "subInfoUpdate is null." ) ; } }
Source:
private java.lang.String getDeviceTimeZoneState ( com.android.timezone.xts.TimeZoneUpdateHostTest.StateType stateType ) throws java.lang.Exception { java.lang.String output = getDevice ( ) . executeShellCommand ( ( "dumpsys timezone -format_state " + ( stateType.getFormatStateChar ( ) ) ) ) ; assertNotNull ( output ) ; java.lang.String value = output.split ( ":" ) [ 1 ] ; return value.substring ( 1 , ( ( value.length ( ) ) - 1 ) ) ; }

Target:
private java.lang.String getDeviceTimeZoneState ( com.android.timezone.xts.TimeZoneUpdateHostTest.StateType stateType ) throws java.lang.Exception { java.lang.String output = getDevice ( ) . executeShellCommand ( ( "dumpsys timezone -format_state " + ( stateType.getFormatStateChar ( ) ) ) ) ; org.junit.Assert.assertNotNull ( output ) ; java.lang.String value = output.split ( ":" ) [ 1 ] ; return value.substring ( 1 , ( ( value.length ( ) ) - 1 ) ) ; }
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "CustomView1.java: Warning: Custom view test/pkg/CustomView1 is missing" + ( ( ( ( " constructor used by tools: (Context) or (Context,AttributeSet) or " + "(Context,AttributeSet,int)\n" ) + "CustomView2.java: Warning: Custom view test/pkg/CustomView2 is missing " ) + "constructor used by tools: (Context) or (Context,AttributeSet) or " ) + "(Context,AttributeSet,int)" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/CustomView1.java.txt=>src/test/bytecode/CustomView1.java" , "bytecode/CustomView2.java.txt=>src/test/bytecode/CustomView2.java" , "bytecode/CustomView3.java.txt=>src/test/bytecode/CustomView3.java" , "bytecode/CustomView1.class.data=>bin/classes/test/bytecode/CustomView1.class" , "bytecode/CustomView2.class.data=>bin/classes/test/bytecode/CustomView2.class" , "bytecode/CustomView3.class.data=>bin/classes/test/bytecode/CustomView3.class" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "src/test/bytecode/CustomView1.java: Warning: Custom view test/pkg/CustomView1 is missing constructor used by tools: (Context) or (Context,AttributeSet) or (Context,AttributeSet,int) [ViewConstructor]\n" + ( ( "src/test/bytecode/CustomView2.java: Warning: Custom view test/pkg/CustomView2 is missing constructor used by tools: (Context) or (Context,AttributeSet) or (Context,AttributeSet,int) [ViewConstructor]\n" + "0 errors, 2 warnings\n" ) + "" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/CustomView1.java.txt=>src/test/bytecode/CustomView1.java" , "bytecode/CustomView2.java.txt=>src/test/bytecode/CustomView2.java" , "bytecode/CustomView3.java.txt=>src/test/bytecode/CustomView3.java" , "bytecode/CustomView1.class.data=>bin/classes/test/bytecode/CustomView1.class" , "bytecode/CustomView2.class.data=>bin/classes/test/bytecode/CustomView2.class" , "bytecode/CustomView3.class.data=>bin/classes/test/bytecode/CustomView3.class" ) ) ; }
Source:
public java.nio.CharBuffer put ( java.nio.CharBuffer src ) { if ( src == ( this ) ) { throw new java.lang.IllegalArgumentException ( "src == this" ) ; } if ( ( src.remaining ( ) ) > ( remaining ( ) ) ) { throw new java.nio.BufferOverflowException ( ) ; } char [ ] contents = new char [ src.remaining ( ) ] ; src.get ( contents ) ; put ( contents ) ; return this ; }

Target:
public java.nio.CharBuffer put ( java.nio.CharBuffer src ) { if ( isReadOnly ( ) ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( src == ( this ) ) { throw new java.lang.IllegalArgumentException ( "src == this" ) ; } if ( ( src.remaining ( ) ) > ( remaining ( ) ) ) { throw new java.nio.BufferOverflowException ( ) ; } char [ ] contents = new char [ src.remaining ( ) ] ; src.get ( contents ) ; put ( contents ) ; return this ; }
Source:
public boolean isInjectedParameter ( com.intellij.psi.PsiType psiType , com.intellij.openapi.project.Project project ) { java.util.Set < com.intellij.psi.PsiClassType > injectedClassTypes = com.google.gct.intellij.endpoints.validation.EndpointPsiElementVisitor.createInjectedClassTypes ( project ) ; for ( com.intellij.psi.PsiClassType aClassType : injectedClassTypes ) { if ( aClassType.isAssignableFrom ( psiType ) ) { return true ; } } return false ; }

Target:
public boolean isInjectedParameter ( com.intellij.psi.PsiType psiType , com.intellij.openapi.project.Project project ) { java.util.Set < com.intellij.psi.PsiClassType > injectedClassTypes = com.google.gct.idea.appengine.validation.EndpointPsiElementVisitor.createInjectedClassTypes ( project ) ; for ( com.intellij.psi.PsiClassType aClassType : injectedClassTypes ) { if ( aClassType.isAssignableFrom ( psiType ) ) { return true ; } } return false ; }
Source:
public vogar.target.Runner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile ) { if ( supports ( klass ) ) { return new vogar.target.junit.JUnitRunner ( monitor , qualification , klass , skipPastReference , testEnvironment , timeoutSeconds ) ; } else { return null ; } }

Target:
public vogar.target.Runner newRunner ( vogar.monitor.TargetMonitor monitor , java.lang.String qualification , java.lang.Class < ? > klass , java.util.concurrent.atomic.AtomicReference < java.lang.String > skipPastReference , vogar.target.TestEnvironment testEnvironment , int timeoutSeconds , boolean profile , java.lang.String [ ] args ) { if ( supports ( klass ) ) { java.util.List < vogar.target.junit.VogarTest > tests = vogar.target.junit.JUnitRunnerFactory.createVogarTests ( klass , qualification , args ) ; return new vogar.target.junit.JUnitRunner ( monitor , skipPastReference , testEnvironment , timeoutSeconds , tests ) ; } else { return null ; } }
Source:
public void onServiceDisconnected ( android.content.ComponentName name ) { synchronized ( mLock ) { mIsBinding = false ; } if ( ( mIImsServiceController ) != null ) { mImsServiceControllerBinder.unlinkToDeath ( mImsDeathRecipient , 0 ) ; } notifyAllFeaturesRemoved ( ) ; cleanUpService ( ) ; android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( ( "ImsService(" + name ) + "): onServiceDisconnected. Rebinding..." ) ) ; startDelayedRebindToService ( ) ; }

Target:
public void onServiceDisconnected ( android.content.ComponentName name ) { synchronized ( mLock ) { mIsBinding = false ; } if ( isServiceControllerAvailable ( ) ) { mImsServiceControllerBinder.unlinkToDeath ( mImsDeathRecipient , 0 ) ; } notifyAllFeaturesRemoved ( ) ; cleanUpService ( ) ; android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , ( ( "ImsService(" + name ) + "): onServiceDisconnected. Rebinding..." ) ) ; startDelayedRebindToService ( ) ; }
Source:
private static void assertParameter0Annotations ( java.lang.reflect.Executable executable , java.lang.String ... expectedAnnotationStrings ) throws java.lang.Exception { java.lang.annotation.Annotation [ ] [ ] allAnnotations = executable.getParameterAnnotations ( ) ; final int expectedParameterCount = 1 ; assertEquals ( expectedParameterCount , allAnnotations.length ) ; java.lang.annotation.Annotation [ ] p0Annotations = allAnnotations [ 0 ] ; libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertAnnotationsMatch ( p0Annotations , expectedAnnotationStrings ) ; }

Target:
private static java.lang.annotation.Annotation [ ] [ ] getParameterAnnotations ( java.lang.reflect.Executable executable , int expectedParameterAnnotationsSize ) { java.lang.annotation.Annotation [ ] [ ] allAnnotations = executable.getParameterAnnotations ( ) ; assertEquals ( expectedParameterAnnotationsSize , allAnnotations.length ) ; return allAnnotations ; }
Source:
private static java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > buildModel ( @ com.android.annotations.NonNull org.gradle.tooling.ProjectConnection connection ) { com.android.build.gradle.integration.common.fixture.GetModelAction getModelAction = new com.android.build.gradle.integration.common.fixture.GetModelAction ( ) ; org.gradle.tooling.BuildActionExecuter < java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > > executer = connection.action ( getModelAction ) ; executer = ( ( org.gradle.tooling.BuildActionExecuter < java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > > ) ( executer.withArguments ( ( ( "-P" + ( com.android.builder.model.AndroidProject.PROPERTY_BUILD_MODEL_ONLY ) ) + "=true" ) , ( ( "-P" + ( com.android.builder.model.AndroidProject.PROPERTY_INVOKED_FROM_IDE ) ) + "=true" ) ) ) ) ; return executer.run ( ) ; }

Target:
private static java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > buildModel ( @ com.android.annotations.NonNull org.gradle.tooling.ProjectConnection connection ) { com.android.build.gradle.integration.common.fixture.GetModelAction getModelAction = new com.android.build.gradle.integration.common.fixture.GetModelAction ( ) ; org.gradle.tooling.BuildActionExecuter < java.util.Map < java.lang.String , com.android.builder.model.AndroidProject > > executer = connection.action ( getModelAction ) ; executer.withArguments ( ( ( "-P" + ( com.android.builder.model.AndroidProject.PROPERTY_BUILD_MODEL_ONLY ) ) + "=true" ) , ( ( "-P" + ( com.android.builder.model.AndroidProject.PROPERTY_INVOKED_FROM_IDE ) ) + "=true" ) ) ; executer.setJvmArguments ( com.google.common.collect.Iterables.toArray ( com.android.build.gradle.integration.common.fixture.GradleTestProject.getDebugJvmArguments ( ) , java.lang.String.class ) ) ; return executer.run ( ) ; }
Source:
public com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult isPossibleNumberWithReason ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.lang.String nationalNumber = getNationalSignificantNumber ( number ) ; int countryCode = number.getCountryCode ( ) ; if ( ! ( hasValidCountryCallingCode ( countryCode ) ) ) { return com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult.INVALID_COUNTRY_CODE ; } java.lang.String regionCode = getRegionCodeForCountryCode ( countryCode ) ; com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata = getMetadataForRegionOrCallingCode ( countryCode , regionCode ) ; java.util.regex.Pattern possibleNumberPattern = regexCache.getPatternForRegex ( metadata.getGeneralDesc ( ) . getPossibleNumberPattern ( ) ) ; return testNumberLengthAgainstPattern ( possibleNumberPattern , nationalNumber ) ; }

Target:
public com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult isPossibleNumberWithReason ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { java.lang.String nationalNumber = getNationalSignificantNumber ( number ) ; int countryCode = number.getCountryCode ( ) ; if ( ! ( hasValidCountryCallingCode ( countryCode ) ) ) { return com.google.i18n.phonenumbers.PhoneNumberUtil.ValidationResult.INVALID_COUNTRY_CODE ; } java.lang.String regionCode = getRegionCodeForCountryCode ( countryCode ) ; com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata metadata = getMetadataForRegionOrCallingCode ( countryCode , regionCode ) ; java.util.regex.Pattern possibleNumberPattern = regexCache.getPatternForRegex ( metadata.generalDesc.possibleNumberPattern ) ; return testNumberLengthAgainstPattern ( possibleNumberPattern , nationalNumber ) ; }
Source:
static com.android.builder.resources.ResourceSet getBaseResourceSet ( ) throws com.android.builder.resources.DuplicateResourceException { if ( ( com.android.builder.resources.ResourceSetTest.sBaseResourceSet ) == null ) { java.io.File root = getRoot ( "baseResourceSet" ) ; com.android.builder.resources.ResourceSetTest.sBaseResourceSet = new com.android.builder.resources.ResourceSet ( ) ; com.android.builder.resources.ResourceSetTest.sBaseResourceSet.addSource ( root ) ; } return com.android.builder.resources.ResourceSetTest.sBaseResourceSet ; }

Target:
static com.android.builder.resources.ResourceSet getBaseResourceSet ( ) throws com.android.builder.resources.DuplicateResourceException , java.io.IOException { if ( ( com.android.builder.resources.ResourceSetTest.sBaseResourceSet ) == null ) { java.io.File root = getRoot ( "baseResourceSet" ) ; com.android.builder.resources.ResourceSetTest.sBaseResourceSet = new com.android.builder.resources.ResourceSet ( "main" ) ; com.android.builder.resources.ResourceSetTest.sBaseResourceSet.addSource ( root ) ; com.android.builder.resources.ResourceSetTest.sBaseResourceSet.loadFromFiles ( ) ; } return com.android.builder.resources.ResourceSetTest.sBaseResourceSet ; }
Source:
void helperBaseObjCopy ( int nElems , int offset , int count , int copyMode ) { android.renderscript.Allocation A = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.ELEMENT ( mRS ) , nElems ) ; android.renderscript.Element [ ] E = new android.renderscript.Element [ nElems ] ; for ( int i = 0 ; i < nElems ; i ++ ) { E [ i ] = android.renderscript.Element.BOOLEAN ( mRS ) ; } A.copyFrom ( E ) ; }

Target:
void helperBaseObjCopy ( int nElems , int offset , int count , int copyMode ) { android.renderscript.Allocation A = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.ELEMENT ( mRS ) , nElems ) ; android.renderscript.Element [ ] E = new android.renderscript.Element [ nElems ] ; for ( int i = 0 ; i < nElems ; i ++ ) { E [ i ] = android.renderscript.Element.BOOLEAN ( mRS ) ; } A.copyFrom ( E ) ; A.destroy ( ) ; }
Source:
public void testAesCbcHmacSha1Tcp6 ( ) 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_SHA1 , getAuthKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth ) ; }

Target:
public void testAesCbcHmacMd5Udp6 ( ) 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_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 ) ; }
Source:
private void replyToMessage ( android.os.Message msg , int what , int arg1 ) { if ( ( msg.replyTo ) == null ) return ; android.os.Message dstMsg = obtainMessageWithArg2 ( msg ) ; dstMsg.what = what ; dstMsg.arg1 = arg1 ; mReplyChannel.replyToMessage ( msg , dstMsg ) ; }

Target:
private void replyToMessage ( android.os.Message msg , int what , int arg1 ) { if ( ( msg.replyTo ) == null ) return ; android.os.Message dstMsg = obtainMessageWithWhatAndArg2 ( msg , what ) ; dstMsg.arg1 = arg1 ; mReplyChannel.replyToMessage ( msg , dstMsg ) ; }
Source:
public < T > T when ( T mock ) { return com.google.testing.littlemock.LittleMock.doAnswer ( new java.util.concurrent.Callable < java.lang.Void > ( ) { @ java.lang.Override public java.lang.Void call ( ) throws java.lang.Exception { latch.countDown ( ) ; return null ; } } ) . when ( mock ) ; }

Target:
public < T > T when ( T mock ) { return org.mockito.Mockito.doAnswer ( new org.mockito.stubbing.Answer < java.lang.Void > ( ) { @ java.lang.Override public java.lang.Void answer ( org.mockito.invocation.InvocationOnMock invocation ) throws java.lang.Exception { latch.countDown ( ) ; return null ; } } ) . when ( mock ) ; }
Source:
public synchronized void run ( @ javax.annotation.Nonnull final com.android.jack.ir.ast.JField field ) throws java.lang.Exception { if ( ( ( ! ( preserveReflections ) ) && ( ! ( com.android.jack.optimizations.wofr.FieldReadWriteCountsMarker.hasReads ( field ) ) ) ) && ( ! ( com.android.jack.optimizations.wofr.FieldReadWriteCountsMarker.hasWrites ( field ) ) ) ) { com.android.jack.transformations.request.TransformationRequest request = new com.android.jack.transformations.request.TransformationRequest ( field ) ; request.append ( new com.android.jack.transformations.request.Remove ( field ) ) ; request.commit ( ) ; tracer.getStatistic ( com.android.jack.optimizations.wofr.FIELDS_REMOVED ) . incValue ( ) ; } field.removeMarker ( com.android.jack.optimizations.wofr.FieldReadWriteCountsMarker.class ) ; }

Target:
public synchronized void run ( @ javax.annotation.Nonnull final com.android.jack.ir.ast.JField field ) { if ( ( ( removeUnusedFields ) && ( ! ( com.android.jack.optimizations.wofr.FieldReadWriteCountsMarker.hasReads ( field ) ) ) ) && ( ! ( com.android.jack.optimizations.wofr.FieldReadWriteCountsMarker.hasWrites ( field ) ) ) ) { com.android.jack.transformations.request.TransformationRequest request = new com.android.jack.transformations.request.TransformationRequest ( field ) ; request.append ( new com.android.jack.transformations.request.Remove ( field ) ) ; request.commit ( ) ; tracer.getStatistic ( com.android.jack.optimizations.wofr.FIELDS_REMOVED ) . incValue ( ) ; } field.removeMarker ( com.android.jack.optimizations.wofr.FieldReadWriteCountsMarker.class ) ; }
Source:
private static java.lang.String getMapKey ( java.lang.String folderName , java.lang.String name ) { int baseEnd = ( ( name.length ( ) ) - ( com.android.ide.eclipse.adt.AndroidConstants.EXT_XML.length ( ) ) ) - 1 ; if ( baseEnd > 0 ) { name = name.substring ( 0 , baseEnd ) ; } if ( com.android.sdklib.SdkConstants.FD_LAYOUT.equals ( folderName ) ) { return name ; } else { return ( folderName + ( com.android.ide.eclipse.adt.AndroidConstants.WS_SEP ) ) + name ; } }

Target:
private static java.lang.String getMapKey ( java.lang.String folderName , java.lang.String name ) { int baseEnd = ( ( name.length ( ) ) - ( com.android.ide.eclipse.adt.AdtConstants.EXT_XML.length ( ) ) ) - 1 ; if ( baseEnd > 0 ) { name = name.substring ( 0 , baseEnd ) ; } if ( com.android.sdklib.SdkConstants.FD_LAYOUT.equals ( folderName ) ) { return name ; } else { return ( folderName + ( com.android.ide.eclipse.adt.AdtConstants.WS_SEP ) ) + name ; } }
Source:
public void badMessage ( ) { com.android.build.gradle.integration.common.truth.FakeFailureStrategy failure = new com.android.build.gradle.integration.common.truth.FakeFailureStrategy ( ) ; com.android.builder.model.SyncIssue issue = new com.android.build.gradle.integration.common.truth.IssueSubjectTest.FakeIssue ( 1 , 2 , "foo" , "bob" ) ; com.android.build.gradle.integration.common.truth.IssueSubject subject = new com.android.build.gradle.integration.common.truth.IssueSubject ( failure , issue ) ; subject.hasMessage ( "robert" ) ; com.google.common.truth.Truth.assertThat ( failure.message ) . is ( "Not true that <1|2|foo> has message <robert>. It is <bob>" ) ; }

Target:
public void badMessage ( ) { com.android.build.gradle.integration.common.truth.FakeFailureStrategy failure = new com.android.build.gradle.integration.common.truth.FakeFailureStrategy ( ) ; com.android.builder.model.SyncIssue issue = new com.android.build.gradle.integration.common.truth.IssueSubjectTest.FakeIssue ( 1 , 2 , "foo" , "bob" ) ; com.android.build.gradle.integration.common.truth.IssueSubject subject = new com.android.build.gradle.integration.common.truth.IssueSubject ( failure , issue ) ; subject.hasMessage ( "robert" ) ; com.google.common.truth.Truth.assertThat ( failure.message ) . isEqualTo ( "Not true that <1|2|foo> has message <robert>. It is <bob>" ) ; }
Source:
public void dup2_x2 ( ) { super . dup2_x2 ( ) ; producerPop ( ) ; producerPop ( ) ; producerPop ( ) ; producerPop ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; producerPush ( ) ; }

Target:
public void dup2_x2 ( ) { super . dup2_x2 ( ) ; producerStack.pop ( ) ; producerStack.pop ( ) ; producerStack.pop ( ) ; producerStack.pop ( ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; actualProducerStack.dup2_x2 ( ) ; }
Source:
public com.ibm.icu.util.CurrencyAmount parseCurrency ( java.lang.CharSequence text , java.text.ParsePosition pos ) { com.ibm.icu.util.Currency [ ] currency = new com.ibm.icu.util.Currency [ 1 ] ; return ( ( com.ibm.icu.util.CurrencyAmount ) ( parse ( text.toString ( ) , pos , currency ) ) ) ; }

Target:
public com.ibm.icu.util.CurrencyAmount parseCurrency ( java.lang.CharSequence text , java.text.ParsePosition parsePosition ) { try { com.ibm.icu.util.CurrencyAmount result = com.ibm.icu.impl.number.Parse.parseCurrency ( text , parsePosition , properties , symbols ) ; if ( result == null ) return null ; java.lang.Number number = result.getNumber ( ) ; if ( number instanceof java.math.BigDecimal ) { number = new com.ibm.icu.math.BigDecimal ( ( ( java.math.BigDecimal ) ( number ) ) ) ; result = new com.ibm.icu.util.CurrencyAmount ( number , result.getCurrency ( ) ) ; } return result ; } catch ( java.text.ParseException e ) { return null ; } }
Source:
private void setParameters ( int width , int height , int bitRate , java.lang.String mimeType ) { if ( ( ( width % 16 ) != 0 ) || ( ( height % 16 ) != 0 ) ) { android.util.Log.w ( android.media.cts.EncodeDecodeTest.TAG , "WARNING: width or height not multiple of 16" ) ; } mWidth = width ; mHeight = height ; mBitRate = bitRate ; mMimeType = mimeType ; }

Target:
private void setParameters ( int width , int height , int bitRate , java.lang.String mimeType , boolean allowBT601 , boolean allowBT709 ) { if ( ( ( width % 16 ) != 0 ) || ( ( height % 16 ) != 0 ) ) { android.util.Log.w ( android.media.cts.EncodeDecodeTest.TAG , "WARNING: width or height not multiple of 16" ) ; } mWidth = width ; mHeight = height ; mBitRate = bitRate ; mMimeType = mimeType ; mAllowBT601 = allowBT601 ; mAllowBT709 = allowBT709 ; }
Source:
boolean isEmpty ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVDir dir ) { assert ! ( isClosed ( ) ) ; assert capabilities.contains ( Capabilities.READ ) ; return ( getNativeFile ( dir.getPath ( ) ) . listFiles ( ) . length ) == 0 ; }

Target:
boolean isEmpty ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVDir dir ) { assert ! ( isClosed ( ) ) ; assert capabilities.contains ( Capabilities.READ ) ; java.io.File [ ] fileList = getNativeFile ( dir.getPath ( ) ) . listFiles ( ) ; assert fileList != null ; return ( fileList.length ) == 0 ; }
Source:
public void testConstructor_file ( ) throws java.io.IOException { java.io.File f = new java.io.File ( resources , jarName ) ; tests.support.resource.Support_Resources.copyFile ( resources , null , jarName ) ; assertTrue ( new java.util.jar.JarFile ( f ) . getEntry ( entryName ) . getName ( ) . equals ( entryName ) ) ; assertTrue ( new java.util.jar.JarFile ( f.getPath ( ) ) . getEntry ( entryName ) . getName ( ) . equals ( entryName ) ) ; }

Target:
public void testConstructor_file ( ) throws java.io.IOException { java.io.File f = tests.support.resource.Support_Resources.copyFile ( resources , null , jarName ) ; try ( java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( f ) ) { assertTrue ( jarFile.getEntry ( entryName ) . getName ( ) . equals ( entryName ) ) ; } try ( java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( f.getPath ( ) ) ) { assertTrue ( jarFile.getEntry ( entryName ) . getName ( ) . equals ( entryName ) ) ; } }
Source:
android.telecom.cts.MockConnection verifyConnectionForOutgoingCall ( int connectionIndex ) { try { if ( ! ( connectionService.lock.tryAcquire ( TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , java.util.concurrent.TimeUnit.MILLISECONDS ) ) ) { fail ( "No outgoing call connection requested by Telecom" ) ; } } catch ( java.lang.InterruptedException e ) { android.util.Log.i ( android.telecom.cts.TAG , "Test interrupted!" ) ; } org.junit.Assert.assertThat ( "Telecom should create outgoing connection for outgoing call" , connectionService.outgoingConnections.size ( ) , org.hamcrest.CoreMatchers.not ( org.hamcrest.CoreMatchers.equalTo ( 0 ) ) ) ; android.telecom.cts.MockConnection connection = connectionService.outgoingConnections.get ( connectionIndex ) ; return connection ; }

Target:
android.telecom.cts.MockConnection verifyConnectionForOutgoingCall ( int connectionIndex ) { try { if ( ! ( connectionService.lock.tryAcquire ( TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS , java.util.concurrent.TimeUnit.MILLISECONDS ) ) ) { fail ( "No outgoing call connection requested by Telecom" ) ; } } catch ( java.lang.InterruptedException e ) { android.util.Log.i ( android.telecom.cts.TestUtils.TAG , "Test interrupted!" ) ; } org.junit.Assert.assertThat ( "Telecom should create outgoing connection for outgoing call" , connectionService.outgoingConnections.size ( ) , org.hamcrest.CoreMatchers.not ( org.hamcrest.CoreMatchers.equalTo ( 0 ) ) ) ; android.telecom.cts.MockConnection connection = connectionService.outgoingConnections.get ( connectionIndex ) ; return connection ; }
Source:
public void setActionBarTitle ( android.app.ActionBar actionBar , android.content.res.Resources res , int resId ) { if ( ( actionBar == null ) || ( android.text.TextUtils.isEmpty ( com.android.phone.SubscriptionInfoHelper.mSubLabel ) ) ) { return ; } if ( ! ( android.telephony.TelephonyManager.from ( com.android.phone.SubscriptionInfoHelper.mContext ) . isMultiSimEnabled ( ) ) ) { return ; } java.lang.String title = java.lang.String.format ( res.getString ( resId ) , com.android.phone.SubscriptionInfoHelper.mSubLabel ) ; actionBar.setTitle ( title ) ; }

Target:
public void setActionBarTitle ( android.app.ActionBar actionBar , android.content.res.Resources res , int resId ) { if ( ( actionBar == null ) || ( android.text.TextUtils.isEmpty ( mSubLabel ) ) ) { return ; } if ( ! ( android.telephony.TelephonyManager.from ( mContext ) . isMultiSimEnabled ( ) ) ) { return ; } java.lang.String title = java.lang.String.format ( res.getString ( resId ) , mSubLabel ) ; actionBar.setTitle ( title ) ; }
Source:
void systemReady ( ) { if ( com.android.server.NetworkScoreService.DBG ) android.util.Log.d ( com.android.server.NetworkScoreService.TAG , "systemReady" ) ; android.content.ContentResolver cr = mContext.getContentResolver ( ) ; if ( ( Settings.Global.getInt ( cr , Settings.Global.NETWORK_SCORING_PROVISIONED , 0 ) ) == 0 ) { java.lang.String defaultPackage = mContext.getResources ( ) . getString ( R.string.config_defaultNetworkScorerPackageName ) ; if ( ! ( android.text.TextUtils.isEmpty ( defaultPackage ) ) ) { mNetworkScorerAppManager.setActiveScorer ( defaultPackage ) ; } Settings.Global.putInt ( cr , Settings.Global.NETWORK_SCORING_PROVISIONED , 1 ) ; } registerPackageMonitorIfNeeded ( ) ; }

Target:
private void registerRecommendationSettingObserverIfNeeded ( ) { final java.util.List < java.lang.String > providerPackages = mNetworkScorerAppManager.getPotentialRecommendationProviderPackages ( ) ; if ( ! ( providerPackages.isEmpty ( ) ) ) { final android.content.ContentResolver resolver = mContext.getContentResolver ( ) ; final android.net.Uri uri = android.provider.Settings.Global.getUriFor ( Global.NETWORK_RECOMMENDATIONS_ENABLED ) ; resolver.registerContentObserver ( uri , false , new com.android.server.NetworkScoreService.SettingsObserver ( ) ) ; } }
Source:
void whitelistOppDevice ( android.content.Context context , android.bluetooth.BluetoothDevice device ) { if ( com.android.nfc.beam.BeamManager.DBG ) android.util.Log.d ( com.android.nfc.beam.BeamManager.TAG , ( ( "Whitelisting " + device ) + " for BT OPP" ) ) ; android.content.Intent intent = new android.content.Intent ( com.android.nfc.beam.BeamManager.ACTION_WHITELIST_DEVICE ) ; intent.setPackage ( com.android.nfc.beam.BeamManager.BLUETOOTH_PACKAGE ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; context.sendBroadcastAsUser ( intent , UserHandle.CURRENT ) ; }

Target:
void whitelistOppDevice ( android.content.Context context , android.bluetooth.BluetoothDevice device ) { if ( com.android.nfc.beam.BeamManager.DBG ) android.util.Log.d ( com.android.nfc.beam.BeamManager.TAG , ( ( "Whitelisting " + device ) + " for BT OPP" ) ) ; android.content.Intent intent = new android.content.Intent ( com.android.nfc.beam.BeamManager.ACTION_WHITELIST_DEVICE ) ; intent.setPackage ( context.getString ( R.string.bluetooth_package ) ) ; intent.putExtra ( BluetoothDevice.EXTRA_DEVICE , device ) ; context.sendBroadcastAsUser ( intent , UserHandle.CURRENT ) ; }
Source:
public void freeCache ( java.lang.String uuid , long freeStorageSize ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.freeCache ( uuid , freeStorageSize ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void linkNativeLibraryDirectory ( java.lang.String uuid , java.lang.String packageName , java.lang.String nativeLibPath32 , int userId ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.linkNativeLibraryDirectory ( uuid , packageName , nativeLibPath32 , userId ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public void libToExe ( @ javax.annotation.Nonnull java.io.File [ ] in , @ javax.annotation.Nonnull java.io.File out , boolean zipFile ) throws java.lang.Exception { try { libToCommon ( in ) ; if ( zipFile ) { jackOptions.setOutputZip ( out ) ; } else { jackOptions.setOutputDir ( out ) ; } java.lang.System.setOut ( outRedirectStream ) ; java.lang.System.setErr ( errRedirectStream ) ; com.android.jack.Jack.run ( jackOptions ) ; } finally { java.lang.System.setOut ( stdOut ) ; java.lang.System.setErr ( stdErr ) ; } }

Target:
public void libToExe ( @ javax.annotation.Nonnull java.io.File [ ] in , @ javax.annotation.Nonnull java.io.File out , boolean zipFile ) throws java.lang.Exception { try { libToCommon ( in ) ; if ( zipFile ) { jackOptions.setOutputZip ( out ) ; } else { jackOptions.setOutputDir ( out ) ; } java.lang.System.setOut ( outRedirectStream ) ; java.lang.System.setErr ( errRedirectStream ) ; com.android.jack.Jack.checkAndRun ( jackOptions ) ; } finally { java.lang.System.setOut ( stdOut ) ; java.lang.System.setErr ( stdErr ) ; } }
Source:
protected void finalize ( ) { java.lang.System.out.println ( "Finalizer started and spinning..." ) ; int j = 0 ; long start ; long end ; start = java.lang.System.nanoTime ( ) ; for ( int i = 0 ; i < 1000000 ; i ++ ) { j ++ ; } end = java.lang.System.nanoTime ( ) ; java.lang.System.out.println ( "Finalizer done spinning." ) ; java.lang.System.out.println ( "Finalizer sleeping forever now." ) ; while ( true ) { Main.snooze ( 10000 ) ; } }

Target:
protected void finalize ( ) { finalizerWait.countDown ( ) ; java.lang.System.out.println ( "Finalizer started and spinning..." ) ; long start ; long end ; start = java.lang.System.nanoTime ( ) ; for ( int i = 0 ; i < 1000000 ; i ++ ) { ( j ) ++ ; } end = java.lang.System.nanoTime ( ) ; java.lang.System.out.println ( "Finalizer done spinning." ) ; java.lang.System.out.println ( "Finalizer sleeping forever now." ) ; while ( true ) { Main.snooze ( 10000 ) ; } }
Source:
private android.hardware.cts.helpers.sensorverification.ISensorVerification getVerification ( int expected , long ... timestamps ) { android.hardware.cts.helpers.sensorverification.ISensorVerification verification = new android.hardware.cts.helpers.sensorverification.EventGapVerification ( expected ) ; for ( long timestamp : timestamps ) { verification.addSensorEvent ( new android.hardware.cts.helpers.TestSensorEvent ( null , timestamp , 0 , null ) ) ; } return verification ; }

Target:
private static android.hardware.cts.helpers.sensorverification.EventGapVerification getVerification ( int expected , long ... timestamps ) { java.util.Collection < android.hardware.cts.helpers.TestSensorEvent > events = new java.util.ArrayList < > ( timestamps.length ) ; for ( long timestamp : timestamps ) { events.add ( new android.hardware.cts.helpers.TestSensorEvent ( null , timestamp , 0 , null ) ) ; } android.hardware.cts.helpers.sensorverification.EventGapVerification verification = new android.hardware.cts.helpers.sensorverification.EventGapVerification ( expected ) ; verification.addSensorEvents ( events ) ; return verification ; }
Source:
public void onUserRestrictionsChanged ( int userId , android.os.Bundle newRestrictions , android.os.Bundle prevRestrictions ) { final boolean bluetoothDisallowed = newRestrictions.getBoolean ( UserManager.DISALLOW_BLUETOOTH ) ; if ( ( ( mEnable ) || ( mEnableExternal ) ) && bluetoothDisallowed ) { try { disable ( "android.os.UserManagerInternal" , true ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
public void onUserRestrictionsChanged ( int userId , android.os.Bundle newRestrictions , android.os.Bundle prevRestrictions ) { if ( ( ! ( newRestrictions.containsKey ( UserManager.DISALLOW_BLUETOOTH ) ) ) && ( ! ( prevRestrictions.containsKey ( UserManager.DISALLOW_BLUETOOTH ) ) ) ) { return ; } final boolean bluetoothDisallowed = newRestrictions.getBoolean ( UserManager.DISALLOW_BLUETOOTH ) ; if ( ( ( mEnable ) || ( mEnableExternal ) ) && bluetoothDisallowed ) { try { disable ( "android.os.UserManagerInternal" , true ) ; } catch ( android.os.RemoteException e ) { } } updateOppLauncherComponentState ( bluetoothDisallowed ) ; }
Source:
public static long test_virtual ( java.util.HashMap map ) { java.lang.Integer intobj = new java.lang.Integer ( 0 ) ; java.lang.String s = "asdf" ; long start = java.lang.System.currentTimeMillis ( ) ; for ( int i = 0 ; i < 1000000 ; i ++ ) { map.put ( intobj , s ) ; } long end = java.lang.System.currentTimeMillis ( ) ; return end - start ; }

Target:
public static long test_virtual ( java.util.HashMap map ) { java.lang.Integer intobj = new java.lang.Integer ( 0 ) ; java.lang.String s = "asdf" ; long start = java.lang.System.currentTimeMillis ( ) ; for ( int i = 0 ; i < 10000 ; i ++ ) { map.put ( intobj , s ) ; } long end = java.lang.System.currentTimeMillis ( ) ; return end - start ; }
Source:
public int hashCode ( ) { int lockWord = shadow$_monitor_ ; final int lockWordStateMask = - 1073741824 ; final int lockWordStateHash = - 2147483648 ; final int lockWordHashMask = 268435455 ; if ( ( lockWord & lockWordStateMask ) == lockWordStateHash ) { return lockWord & lockWordHashMask ; } return java.lang.System.identityHashCode ( this ) ; }

Target:
static int identityHashCode ( java.lang.Object obj ) { int lockWord = obj.shadow$_monitor_ ; final int lockWordStateMask = - 1073741824 ; final int lockWordStateHash = - 2147483648 ; final int lockWordHashMask = 268435455 ; if ( ( lockWord & lockWordStateMask ) == lockWordStateHash ) { return lockWord & lockWordHashMask ; } return java.lang.Object.identityHashCodeNative ( obj ) ; }
Source:
private static void logAndPrintError ( java.io.PrintStream newStderr , java.lang.String message , java.lang.Throwable ex ) { android.util.Log.e ( com.android.internal.os.ZygoteConnection.TAG , message , ex ) ; if ( newStderr != null ) { newStderr.println ( ( message + ( ex == null ? "" : ex ) ) ) ; } }

Target:
boolean isClosedByPeer ( ) { return isEof ; }
Source:
protected vogar.Result execute ( ) throws java.lang.Exception { vogar.Classpath cp = vogar.Classpath.of ( jar ) ; if ( ( benchmark ) && ( ( action ) != null ) ) { cp.addAll ( classpath ) ; } androidSdk.dex ( multidex , localDex , cp ) ; return vogar.Result.SUCCESS ; }

Target:
protected vogar.Result execute ( ) throws java.lang.Exception { vogar.Classpath cp = vogar.Classpath.of ( jar ) ; vogar.Classpath dependentCp = classpath ; if ( ( benchmark ) && ( ( action ) != null ) ) { cp.addAll ( classpath ) ; dependentCp = new vogar.Classpath ( ) ; } androidSdk.dex ( multidex , localDex , localTempDir , cp , dependentCp ) ; return vogar.Result.SUCCESS ; }
Source:
private static com.google.common.collect.ImmutableList < java.util.zip.ZipEntry > getSortedClassEntriess ( java.util.zip.ZipFile jar ) { return jar.stream ( ) . filter ( ( entry ) -> entry.getName ( ) . endsWith ( ".class" ) ) . sorted ( ) . collect ( com.google.common.collect.ImmutableList.toImmutableList ( com.google.common.collect.ImmutableList ) ) ; }

Target:
private static com.google.common.collect.ImmutableList < java.util.zip.ZipEntry > getSortedClassEntriess ( java.util.zip.ZipFile jar ) { return jar.stream ( ) . filter ( ( entry ) -> entry.getName ( ) . endsWith ( ".class" ) ) . sorted ( java.util.Comparator.comparing ( java.util.zip.ZipEntry :: getName ) ) . collect ( com.google.common.collect.ImmutableList.toImmutableList ( com.google.common.collect.ImmutableList ) ) ; }
Source:
public void onSaveInstanceState ( android.os.Bundle outState ) { super . onSaveInstanceState ( outState ) ; outState.putString ( com.android.videoeditor.VideoEditorActivity.STATE_INSERT_AFTER_MEDIA_ITEM_ID , mInsertMediaItemAfterMediaItemId ) ; outState.putBoolean ( com.android.videoeditor.VideoEditorActivity.STATE_PLAYING , ( ( isPreviewPlaying ( ) ) || ( mRestartPreview ) ) ) ; outState.putParcelable ( com.android.videoeditor.VideoEditorActivity.STATE_CAPTURE_URI , mCaptureMediaUri ) ; outState.putInt ( com.android.videoeditor.VideoEditorActivity.STATE_SELECTED_POS_ID , mMediaLayout.getSelectedViewPos ( ) ) ; }

Target:
public void onSaveInstanceState ( android.os.Bundle outState ) { super . onSaveInstanceState ( outState ) ; outState.putString ( com.android.videoeditor.VideoEditorActivity.STATE_INSERT_AFTER_MEDIA_ITEM_ID , mInsertMediaItemAfterMediaItemId ) ; outState.putBoolean ( com.android.videoeditor.VideoEditorActivity.STATE_PLAYING , ( ( isPreviewPlaying ( ) ) || ( mRestartPreview ) ) ) ; outState.putParcelable ( com.android.videoeditor.VideoEditorActivity.STATE_CAPTURE_URI , mCaptureMediaUri ) ; outState.putInt ( com.android.videoeditor.VideoEditorActivity.STATE_SELECTED_POS_ID , mMediaLayout.getSelectedViewPos ( ) ) ; outState.putInt ( com.android.videoeditor.VideoEditorActivity.EXPORT_PROGRESS , mExportProgress ) ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.Thread t = new java.lang.Thread ( null , new java.lang.Runnable ( ) { public void run ( ) { } } , "" , ( ( ( 3 * 1024 ) * 1024 ) * 1024 ) ) ; try { t.start ( ) ; } catch ( java.lang.OutOfMemoryError expected ) { if ( ! ( expected.getMessage ( ) . startsWith ( "pthread_create (3GB stack) failed: " ) ) ) { throw new java.lang.AssertionError ( expected ) ; } } }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.Thread t = new java.lang.Thread ( null , new java.lang.Runnable ( ) { public void run ( ) { } } , "" , ( ( ( 3L * 1024 ) * 1024 ) * 1024 ) ) ; try { t.start ( ) ; } catch ( java.lang.OutOfMemoryError expected ) { if ( ! ( expected.getMessage ( ) . startsWith ( "pthread_create (3GB stack) failed: " ) ) ) { throw new java.lang.AssertionError ( expected ) ; } } }
Source:
public int getPermissionGrantState ( @ android.annotation.NonNull android.content.ComponentName admin , java.lang.String packageName , java.lang.String permission ) { throwIfParentInstance ( "getPermissionGrantState" ) ; try { return mService.getPermissionGrantState ( admin , packageName , permission ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } }

Target:
public void notifyPendingSystemUpdate ( long updateReceivedTime ) { throwIfParentInstance ( "notifyPendingSystemUpdate" ) ; if ( ( mService ) != null ) { try { mService.notifyPendingSystemUpdate ( android.app.admin.SystemUpdateInfo.of ( updateReceivedTime ) ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } } }
Source:
public void run ( ) { for ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction a2 : actions ) { if ( a2 instanceof com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) { com.android.ide.eclipse.adt.editors.layout.gscripts.IMenuCallback c = ( ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) ( a2 ) ) . getCallback ( ) ; if ( c != null ) { try { c.action ( a2 , null , ( ! isChecked ) ) ; } catch ( java.lang.Exception e ) { com.android.ide.eclipse.adt.internal.editors.layout.gre.RulesEngine gre = mCanvas.getRulesEngine ( ) ; gre.logError ( "XML edit operation failed: %s" , e.toString ( ) ) ; } } } } }

Target:
public void run ( ) { for ( com.android.ide.common.api.MenuAction a2 : actions ) { if ( a2 instanceof com.android.ide.common.api.MenuAction.Action ) { com.android.ide.common.api.IMenuCallback c = ( ( com.android.ide.common.api.MenuAction.Action ) ( a2 ) ) . getCallback ( ) ; if ( c != null ) { try { c.action ( a2 , null , ( ! isChecked ) ) ; } catch ( java.lang.Exception e ) { com.android.ide.eclipse.adt.internal.editors.layout.gre.RulesEngine gre = mCanvas.getRulesEngine ( ) ; gre.logError ( "XML edit operation failed: %s" , e.toString ( ) ) ; } } } } }
Source:
public void onMessageSendFail ( int messageId , int reason ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "messageId" , messageId ) ; mResults.putInt ( "reason" , reason ) ; mEventFacade.postEvent ( "WifiNanSessionOnMessageSendFail" , mResults ) ; }

Target:
public void onMessageSendFailed ( int messageId , int reason ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "messageId" , messageId ) ; mResults.putInt ( "reason" , reason ) ; mEventFacade.postEvent ( "WifiNanSessionOnMessageSendFailed" , mResults ) ; }
Source:
public void testAesCbcHmacMd5Tcp4UdpEncap ( ) 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 , true , 1 , false ) ; }

Target:
public void testCryptUdp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , CRYPT_KEY ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IPV4_LOOPBACK , crypt , null , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IPV4_LOOPBACK , crypt , null , null , false , 1 , true ) ; }