auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void acknowledgeLastIncomingCdmaSms ( boolean success , int cause , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE , result ) ; rr.mParcel.writeInt ( ( success ? 0 : 1 ) ) ; rr.mParcel.writeInt ( cause ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + success ) + " " ) + cause ) ) ; send ( rr ) ; }

Target:
public void acknowledgeLastIncomingCdmaSms ( boolean success , int cause , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_CDMA_SMS_ACKNOWLEDGE , result , mRILDefaultWorkSource ) ; rr.mParcel.writeInt ( ( success ? 0 : 1 ) ) ; rr.mParcel.writeInt ( cause ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + success ) + " " ) + cause ) ) ; send ( rr ) ; }
Source:
public void testCompile ( ) throws java.lang.Exception { com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; toolchain.setSourceLevel ( SourceLevel.JAVA_7 ) . srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathAsString ( toolchain.getDefaultBootClasspath ( ) ) , com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.java7.trywithresources.test001.jack" ) ) ; }

Target:
public void testCompile ( ) throws java.lang.Exception { com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; toolchain.setSourceLevel ( SourceLevel.JAVA_7 ) . addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) , false , com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.java7.trywithresources.test001.jack" ) ) ; }
Source:
public java.lang.String getVoiceMailNumber ( ) { java.lang.String number = mIccRecords.getVoiceMailNumber ( ) ; if ( android.text.TextUtils.isEmpty ( number ) ) { android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences ( getContext ( ) ) ; number = sp.getString ( com.android.internal.telephony.gsm.GSMPhone.VM_NUMBER , null ) ; } return number ; }

Target:
public java.lang.String getVoiceMailNumber ( ) { com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; java.lang.String number = ( r != null ) ? r.getVoiceMailNumber ( ) : "" ; if ( android.text.TextUtils.isEmpty ( number ) ) { android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences ( getContext ( ) ) ; number = sp.getString ( com.android.internal.telephony.gsm.GSMPhone.VM_NUMBER , null ) ; } return number ; }
Source:
public static com.google.common.collect.ImmutableMap < com.google.devtools.common.options.OptionMetadataTag , java.lang.String > getOptionMetadataTagDescription ( java.lang.String productName ) { com.google.common.collect.ImmutableMap.Builder < com.google.devtools.common.options.OptionMetadataTag , java.lang.String > effectTagDescriptionBuilder = com.google.common.collect.ImmutableMap.builder ( ) ; effectTagDescriptionBuilder.put ( OptionMetadataTag.EXPERIMENTAL , "This option triggers an experimental feature with no guarantees of functionality." ) . put ( OptionMetadataTag.INCOMPATIBLE_CHANGE , ( "This option triggers a breaking change. Use this option to test your migration " + "readiness or get early access to the new feature" ) ) . put ( OptionMetadataTag.DEPRECATED , ( "This option is deprecated. It might be that the feature it affects is deprecated, " + "or that another method of supplying the information is preferred." ) ) . put ( OptionMetadataTag.HIDDEN , "This option should not be used by a user, and should not be logged." ) . put ( OptionMetadataTag.INTERNAL , "This option isn't even a option, and should not be logged." ) ; return effectTagDescriptionBuilder.build ( ) ; }

Target:
public static com.google.common.collect.ImmutableMap < com.google.devtools.common.options.OptionMetadataTag , java.lang.String > getOptionMetadataTagDescription ( java.lang.String productName ) { com.google.common.collect.ImmutableMap.Builder < com.google.devtools.common.options.OptionMetadataTag , java.lang.String > effectTagDescriptionBuilder = com.google.common.collect.ImmutableMap.builder ( ) ; effectTagDescriptionBuilder.put ( OptionMetadataTag.EXPERIMENTAL , "This option triggers an experimental feature with no guarantees of functionality." ) . put ( OptionMetadataTag.INCOMPATIBLE_CHANGE , ( "This option triggers a breaking change. Use this option to test your migration " + "readiness or get early access to the new feature" ) ) . put ( OptionMetadataTag.DEPRECATED , ( "This option is deprecated. It might be that the feature it affects is deprecated, " + "or that another method of supplying the information is preferred." ) ) . put ( OptionMetadataTag.TRIGGERED_BY_ALL_INCOMPATIBLE_CHANGES , "This option is triggered by the expansion option --all_incompatible_changes." ) . put ( OptionMetadataTag.HIDDEN , "This option should not be used by a user, and should not be logged." ) . put ( OptionMetadataTag.INTERNAL , "This option isn't even a option, and should not be logged." ) ; return effectTagDescriptionBuilder.build ( ) ; }
Source:
void moveUserToForeground ( com.android.server.am.UserStartedState uss , int oldUserId , int newUserId ) { boolean homeInFront = mStackSupervisor.switchUserLocked ( newUserId , uss ) ; if ( homeInFront ) { startHomeActivityLocked ( newUserId ) ; } else { mStackSupervisor.resumeTopActivitiesLocked ( ) ; } com.android.server.am.EventLogTags.writeAmSwitchUser ( newUserId ) ; getUserManagerLocked ( ) . userForeground ( newUserId ) ; sendUserSwitchBroadcastsLocked ( oldUserId , newUserId ) ; }

Target:
void moveUserToForeground ( com.android.server.am.UserStartedState uss , int oldUserId , int newUserId ) { boolean homeInFront = mStackSupervisor.switchUserLocked ( newUserId , uss ) ; if ( homeInFront ) { startHomeActivityLocked ( newUserId , "moveUserToFroreground" ) ; } else { mStackSupervisor.resumeTopActivitiesLocked ( ) ; } com.android.server.am.EventLogTags.writeAmSwitchUser ( newUserId ) ; getUserManagerLocked ( ) . userForeground ( newUserId ) ; sendUserSwitchBroadcastsLocked ( oldUserId , newUserId ) ; }
Source:
private static android.net.wifi.hotspot2.pps.Credential createCredentialWithUserCredential ( ) { android.net.wifi.hotspot2.pps.Credential.UserCredential userCred = new android.net.wifi.hotspot2.pps.Credential.UserCredential ( ) ; userCred.username = "username" ; userCred.password = "password" ; userCred.machineManaged = true ; userCred.ableToShare = true ; userCred.softTokenApp = "TestApp" ; userCred.eapType = android.net.wifi.EAPConstants.EAP_TTLS ; userCred.nonEapInnerMethod = "MS-CHAP" ; return android.net.wifi.hotspot2.pps.CredentialTest.createCredential ( userCred , null , null , FakeKeys.CA_CERT0 , new java.security.cert.X509Certificate [ ] { android.net.wifi.FakeKeys.CLIENT_CERT } , FakeKeys.RSA_KEY1 ) ; }

Target:
private static android.net.wifi.hotspot2.pps.Credential createCredentialWithUserCredential ( ) { android.net.wifi.hotspot2.pps.Credential.UserCredential userCred = new android.net.wifi.hotspot2.pps.Credential.UserCredential ( ) ; userCred.setUsername ( "username" ) ; userCred.setPassword ( "password" ) ; userCred.setMachineManaged ( true ) ; userCred.setAbleToShare ( true ) ; userCred.setSoftTokenApp ( "TestApp" ) ; userCred.setEapType ( EAPConstants.EAP_TTLS ) ; userCred.setNonEapInnerMethod ( "MS-CHAP" ) ; return android.net.wifi.hotspot2.pps.CredentialTest.createCredential ( userCred , null , null , FakeKeys.CA_CERT0 , null , null ) ; }
Source:
public com.android.jack.ir.ast.JMethodId get ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodId method ) { com.android.jack.ir.ast.JMethodId found = virtualMethods.ceiling ( method ) ; if ( ( found != null ) && ( ( com.android.jack.frontend.VirtualMethodsMarker.methodIdComparator.compare ( method , found ) ) == 0 ) ) { return found ; } else { return null ; } }

Target:
public com.android.jack.ir.ast.JMethodId get ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodId method ) { com.android.jack.frontend.VirtualMethodsMarker.ComparableMethodId searched = new com.android.jack.frontend.VirtualMethodsMarker.ComparableMethodId ( method ) ; com.android.jack.frontend.VirtualMethodsMarker.ComparableMethodId found = virtualMethods.get ( searched ) ; if ( found != null ) { return found.methodId ; } else { return null ; } }
Source:
private static java.net.InetAddress [ ] getAllByName ( java.lang.String host , java.net.InetAddress reqAddr ) throws java.net.UnknownHostException { if ( ( host == null ) || ( ( host.length ( ) ) == 0 ) ) { return java.net.InetAddress.loopbackAddresses ( ) ; } try { return new java.net.InetAddress [ ] { java.net.InetAddress.parseNumericAddress ( host ) } ; } catch ( java.lang.IllegalArgumentException e ) { } return java.net.InetAddress.getAllByName0 ( host , reqAddr , true ) ; }

Target:
public static java.net.InetAddress getByAddress ( java.lang.String host , byte [ ] addr ) throws java.net.UnknownHostException { return java.net.InetAddress.getByAddress ( host , addr , ( - 1 ) ) ; }
Source:
public static com.android.tools.lint.checks.PermissionHolder join ( @ com.android.annotations.NonNull com.android.tools.lint.checks.PermissionHolder lookup , @ com.android.annotations.NonNull com.android.tools.lint.checks.PermissionRequirement requirement ) { com.android.tools.lint.checks.PermissionHolder.SetPermissionLookup empty = new com.android.tools.lint.checks.PermissionHolder.SetPermissionLookup ( java.util.Collections.< java.lang.String > emptySet ( ) ) ; return com.android.tools.lint.checks.PermissionHolder.SetPermissionLookup.join ( lookup , requirement.getMissingPermissions ( empty ) ) ; }

Target:
public static com.android.tools.lint.checks.PermissionHolder join ( @ com.android.annotations.NonNull com.android.tools.lint.checks.PermissionHolder lookup , @ com.android.annotations.NonNull com.android.tools.lint.checks.PermissionRequirement requirement ) { com.android.tools.lint.checks.PermissionHolder.SetPermissionLookup empty = new com.android.tools.lint.checks.PermissionHolder.SetPermissionLookup ( java.util.Collections.< java.lang.String > emptySet ( ) , java.util.Collections.< java.lang.String > emptySet ( ) , lookup.getMinSdkVersion ( ) , lookup.getTargetSdkVersion ( ) ) ; return com.android.tools.lint.checks.PermissionHolder.SetPermissionLookup.join ( lookup , requirement.getMissingPermissions ( empty ) ) ; }
Source:
public static < T extends com.google.protobuf.nano.MessageNano > java.lang.String print ( T message ) { if ( message == null ) { return "null" ; } java.lang.StringBuffer buf = new java.lang.StringBuffer ( ) ; try { com.google.protobuf.nano.MessageNanoPrinter.print ( message.getClass ( ) . getSimpleName ( ) , message.getClass ( ) , message , new java.lang.StringBuffer ( ) , buf ) ; } catch ( java.lang.IllegalAccessException e ) { return "Error printing proto: " + ( e.getMessage ( ) ) ; } return buf.toString ( ) ; }

Target:
public static < T extends com.google.protobuf.nano.MessageNano > java.lang.String print ( T message ) { if ( message == null ) { return "" ; } java.lang.StringBuffer buf = new java.lang.StringBuffer ( ) ; try { com.google.protobuf.nano.MessageNanoPrinter.print ( null , message.getClass ( ) , message , new java.lang.StringBuffer ( ) , buf ) ; } catch ( java.lang.IllegalAccessException e ) { return "Error printing proto: " + ( e.getMessage ( ) ) ; } return buf.toString ( ) ; }
Source:
public void onClick ( android.view.View v ) { com.android.dialer.common.LogUtil.i ( "VoicemailTosMessageCreator.getPromoMessage" , "declined transcription" ) ; com.android.voicemail.VoicemailClient voicemailClient = com.android.voicemail.VoicemailComponent.get ( context ) . getVoicemailClient ( ) ; voicemailClient.setVoicemailTranscriptionEnabled ( context , status.getPhoneAccountHandle ( ) , false ) ; }

Target:
public void onClick ( android.view.View v ) { com.android.dialer.common.LogUtil.i ( "VoicemailTosMessageCreator.getPromoMessage" , "declined transcription" ) ; if ( isVoicemailTranscriptionAvailable ( ) ) { com.android.voicemail.VoicemailClient voicemailClient = com.android.voicemail.VoicemailComponent.get ( context ) . getVoicemailClient ( ) ; voicemailClient.setVoicemailTranscriptionEnabled ( context , status.getPhoneAccountHandle ( ) , false ) ; recordTosAcceptance ( ) ; recordFeatureAcknowledgement ( ) ; statusReader.refresh ( ) ; } else { com.android.dialer.common.LogUtil.e ( "VoicemailTosMessageCreator.getPromoMessage" , "voicemail transcription not available" ) ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; getActivity ( ) ; }

Target:
public void assertNoMultilineButtons ( ) { android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.withId ( R.id.wrap ) ) . perform ( android.support.test.espresso.action.ViewActions.click ( ) ) ; expectedException.expect ( junit.framework.AssertionFailedError.class ) ; android.support.test.espresso.Espresso.onView ( android.support.test.espresso.matcher.ViewMatchers.isRoot ( ) ) . check ( android.support.test.espresso.assertion.LayoutAssertions.noMultilineButtons ( ) ) ; }
Source:
public java.lang.String getDigest ( ) { if ( ! ( containsFileType ( FileType.PREBUILT ) ) ) { return null ; } else { return getSectionVFS ( FileType.PREBUILT ) . getDigest ( ) ; } }

Target:
public java.lang.String getDigest ( ) { if ( containsFileType ( FileType.PREBUILT ) ) { return getSectionVFS ( FileType.PREBUILT ) . getDigest ( ) ; } else if ( containsFileType ( FileType.JAYCE ) ) { return getSectionVFS ( FileType.JAYCE ) . getDigest ( ) ; } else { return null ; } }
Source:
public void run ( ) { org.eclipse.jface.viewers.TreeSelection selection = ( ( org.eclipse.jface.viewers.TreeSelection ) ( mTreeViewer.getSelection ( ) ) ) ; mTreeViewer.refresh ( device ) ; if ( ( ( selection.getFirstElement ( ) ) instanceof com.android.hierarchyviewerlib.device.Window ) && ( ( ( ( com.android.hierarchyviewerlib.device.Window ) ( selection.getFirstElement ( ) ) ) . getDevice ( ) ) == device ) ) { mTreeViewer.setSelection ( selection , true ) ; } }

Target:
public void run ( ) { org.eclipse.jface.viewers.TreeSelection selection = ( ( org.eclipse.jface.viewers.TreeSelection ) ( mTreeViewer.getSelection ( ) ) ) ; mTreeViewer.refresh ( device ) ; if ( ( ( selection.getFirstElement ( ) ) instanceof com.android.hierarchyviewerlib.models.Window ) && ( ( ( ( com.android.hierarchyviewerlib.models.Window ) ( selection.getFirstElement ( ) ) ) . getDevice ( ) ) == device ) ) { mTreeViewer.setSelection ( selection , true ) ; } }
Source:
public boolean checkAndSet ( java.lang.String value , com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration config ) { com.android.resources.Navigation method = com.android.resources.Navigation.getEnum ( value ) ; if ( method != null ) { com.android.ide.eclipse.adt.internal.resources.configurations.NavigationMethodQualifier qualifier = new com.android.ide.eclipse.adt.internal.resources.configurations.NavigationMethodQualifier ( method ) ; config.setNavigationMethodQualifier ( qualifier ) ; return true ; } return false ; }

Target:
public boolean checkAndSet ( java.lang.String value , com.android.ide.common.resources.configuration.FolderConfiguration config ) { com.android.resources.Navigation method = com.android.resources.Navigation.getEnum ( value ) ; if ( method != null ) { com.android.ide.common.resources.configuration.NavigationMethodQualifier qualifier = new com.android.ide.common.resources.configuration.NavigationMethodQualifier ( method ) ; config.setNavigationMethodQualifier ( qualifier ) ; return true ; } return false ; }
Source:
protected final java.util.List < com.android.documentsui.model.DocumentInfo > doInBackground ( com.android.documentsui.dirlist.MultiSelectManager.Selection ... selected ) { return mModel.getDocuments ( selected [ 0 ] ) ; }

Target:
void copySelectionToClipboard ( com.android.documentsui.dirlist.MultiSelectManager.Selection selected ) { assert ! ( selected.isEmpty ( ) ) ; java.util.List < com.android.documentsui.model.DocumentInfo > docs = mModel.getDocuments ( selected ) ; mClipper.clipDocuments ( docs ) ; android.app.Activity activity = getActivity ( ) ; com.android.documentsui.Snackbars.makeSnackbar ( activity , activity.getResources ( ) . getQuantityString ( R.plurals.clipboard_files_clipped , docs.size ( ) , docs.size ( ) ) , Snackbar.LENGTH_SHORT ) . show ( ) ; }
Source:
public java.io.File getOutputDirectory ( org.gradle.nativebinaries.BuildType buildType , org.gradle.nativebinaries.platform.Platform platform ) { return new java.io.File ( ( ( ( ( project.getBuildDir ( ) ) + "/" ) + ( com.android.builder.model.AndroidProject.FD_INTERMEDIATES ) ) + "/binaries/" ) , ( ( ( ( ( ndkExtension.getModuleName ( ) ) + "SharedLibrary/" ) + ( buildType.getName ( ) ) ) + "/lib/" ) + ( platform.getName ( ) ) ) ) ; }

Target:
public java.io.File getOutputDirectory ( org.gradle.nativeplatform.BuildType buildType , org.gradle.nativeplatform.platform.Platform platform ) { return new java.io.File ( ( ( ( ( project.getBuildDir ( ) ) + "/" ) + ( com.android.builder.model.AndroidProject.FD_INTERMEDIATES ) ) + "/binaries/" ) , ( ( ( ( ( ndkExtension.getModuleName ( ) ) + "SharedLibrary/" ) + ( buildType.getName ( ) ) ) + "/lib/" ) + ( platform.getName ( ) ) ) ) ; }
Source:
public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { internalName = name ; isInterface = com.google.devtools.build.android.desugar.BitFlags.isSet ( access , Opcodes.ACC_INTERFACE ) ; super . visit ( version , access , name , signature , superName , interfaces ) ; }

Target:
public void visit ( int version , int access , java.lang.String name , java.lang.String signature , java.lang.String superName , java.lang.String [ ] interfaces ) { com.google.common.base.Preconditions.checkState ( ( ( internalName ) == null ) , "not intended for reuse but reused for %s" , name ) ; internalName = name ; isInterface = com.google.devtools.build.android.desugar.BitFlags.isSet ( access , Opcodes.ACC_INTERFACE ) ; super . visit ( version , access , name , signature , superName , interfaces ) ; }
Source:
private boolean shouldTurnOffSignalStrength ( ) { return ( mIsPowerSaveOn ) || ( ( ! ( mIsCharging ) ) && ( ! ( mIsScreenOn ) ) ) ; }

Target:
private boolean shouldTurnOffSignalStrength ( ) { if ( mIsPowerSaveOn ) { return true ; } if ( ( ( mIsCharging ) || ( mIsScreenOn ) ) || ( ( mUpdateModes.get ( TelephonyManager.INDICATION_FILTER_SIGNAL_STRENGTH ) ) == ( android.telephony.TelephonyManager.INDICATION_UPDATE_MODE_IGNORE_SCREEN_OFF ) ) ) { return false ; } return true ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; if ( ( com.android.ide.eclipse.adt.internal.editors.layout.refactoring.AdtProjectTest.sProject ) == null ) { org.eclipse.core.resources.IProject project = null ; java.lang.String projectName = "testproject-" + ( java.lang.System.currentTimeMillis ( ) ) ; project = createProject ( projectName ) ; assertNotNull ( project ) ; com.android.ide.eclipse.adt.internal.editors.layout.refactoring.AdtProjectTest.sProject = project ; } }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; getProject ( ) ; }
Source:
private void updateAccessPointsDelayed ( ) { if ( ( ( ( getActivity ( ) ) != null ) && ( ! ( mIsRestricted ) ) ) && ( mWifiManager.isWifiEnabled ( ) ) ) { setProgressBarVisible ( true ) ; getView ( ) . postDelayed ( mUpdateAccessPointsRunnable , 300 ) ; } }

Target:
private void updateAccessPointsDelayed ( ) { if ( ( ( ( getActivity ( ) ) != null ) && ( ! ( mIsRestricted ) ) ) && ( mWifiManager.isWifiEnabled ( ) ) ) { android.os.Handler handler = getView ( ) . getHandler ( ) ; if ( ( handler != null ) && ( handler.hasCallbacks ( mUpdateAccessPointsRunnable ) ) ) { return ; } setProgressBarVisible ( true ) ; getView ( ) . postDelayed ( mUpdateAccessPointsRunnable , 300 ) ; } }
Source:
public void testAssistStructure ( ) throws java.lang.Exception { mTestActivity.start3pApp ( android.assist.cts.AssistStructureTest.TEST_CASE_TYPE ) ; mTestActivity.startTest ( android.assist.cts.AssistStructureTest.TEST_CASE_TYPE ) ; waitForAssistantToBeReady ( mReadyLatch ) ; waitForOnResume ( ) ; startSession ( ) ; waitForContext ( ) ; verifyAssistDataNullness ( false , false , false , false ) ; verifyAssistStructure ( android.assist.common.Utils.getTestAppComponent ( android.assist.cts.AssistStructureTest.TEST_CASE_TYPE ) , false ) ; }

Target:
public void testAssistStructure ( ) throws java.lang.Exception { if ( mActivityManager.isLowRamDevice ( ) ) { android.util.Log.d ( android.assist.cts.AssistStructureTest.TAG , "Not running assist tests on low-RAM device." ) ; return ; } mTestActivity.start3pApp ( android.assist.cts.AssistStructureTest.TEST_CASE_TYPE ) ; mTestActivity.startTest ( android.assist.cts.AssistStructureTest.TEST_CASE_TYPE ) ; waitForAssistantToBeReady ( mReadyLatch ) ; waitForOnResume ( ) ; startSession ( ) ; waitForContext ( ) ; verifyAssistDataNullness ( false , false , false , false ) ; verifyAssistStructure ( android.assist.common.Utils.getTestAppComponent ( android.assist.cts.AssistStructureTest.TEST_CASE_TYPE ) , false ) ; }
Source:
android.net.INetworkPolicyListener expect ( ) { assertNull ( "expect() called before waitAndVerify()" , latch ) ; latch = new java.util.concurrent.CountDownLatch ( 1 ) ; return org.mockito.Mockito.doAnswer ( this ) . when ( listener ) ; }

Target:
android.net.INetworkPolicyListener waitAndVerify ( ) { org.junit.Assert.assertNotNull ( "waitAndVerify() called before expect()" , latch ) ; try { org.junit.Assert.assertTrue ( "callback not called in 5 seconds" , latch.await ( 5 , java.util.concurrent.TimeUnit.SECONDS ) ) ; } catch ( java.lang.InterruptedException e ) { org.junit.Assert.fail ( "Thread interrupted before callback called" ) ; } finally { latch = null ; } return org.mockito.Mockito.verify ( listener , org.mockito.Mockito.atLeastOnce ( ) ) ; }
Source:
void load ( java.lang.String pathName , java.lang.ClassLoader loader ) { if ( pathName == null ) { throw new java.lang.NullPointerException ( "pathName == null" ) ; } java.lang.String error = java.lang.Runtime.nativeLoad ( pathName , loader ) ; if ( error != null ) { throw new java.lang.UnsatisfiedLinkError ( error ) ; } }

Target:
void load ( java.lang.String pathName , java.lang.ClassLoader loader ) { if ( pathName == null ) { throw new java.lang.NullPointerException ( "pathName == null" ) ; } java.lang.String error = doLoad ( pathName , loader ) ; if ( error != null ) { throw new java.lang.UnsatisfiedLinkError ( error ) ; } }
Source:
private com.android.jack.ir.ast.JExpressionStatement makeRequestCall ( com.android.jack.ir.sourceinfo.SourceInfo info ) { assert ( ( lockClass ) != null ) && ( ( requestMethodId ) != null ) ; return new com.android.jack.ir.ast.JExpressionStatement ( info , new com.android.jack.ir.ast.JMethodCall ( info , null , requestClass , requestMethodId , JPrimitiveTypeEnum.VOID.getType ( ) , false ) ) ; }

Target:
public void endVisit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JSynchronizedBlock jSyncBock ) { assert ( lockClass ) != null ; if ( ! ( jSyncBock.getLockExpr ( ) . getType ( ) . isSameType ( lockClass ) ) ) { return ; } tr.append ( new com.android.jack.transformations.request.PrependStatement ( jSyncBock.getSynchronizedBlock ( ) , makeRequestCall ( jSyncBock.getSourceInfo ( ) ) ) ) ; com.android.jack.ir.ast.JTryStatement tryStmt = makeTryStatement ( jSyncBock.getSourceInfo ( ) , jSyncBock ) ; tr.append ( new com.android.jack.transformations.request.Replace ( jSyncBock , tryStmt ) ) ; }
Source:
public void testTransmitFollowupSuccess ( ) throws org.json.JSONException { final short transactionId = 123 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "id" , transactionId ) ; args.putInt ( "reason" , WifiNanNative.NAN_STATUS_SUCCESS ) ; com.android.server.wifi.nan.WifiNanHalMock.callTransmitFollowup ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mNanStateManager ) . onMessageSendSuccessNotification ( transactionId ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mNanStateManager ) ; }

Target:
public void testTransmitFollowupSuccess ( ) throws org.json.JSONException { final short transactionId = 123 ; android.os.Bundle args = new android.os.Bundle ( ) ; args.putInt ( "id" , transactionId ) ; args.putInt ( "reason" , WifiAwareNative.AWARE_STATUS_SUCCESS ) ; com.android.server.wifi.aware.WifiAwareHalMock.callTransmitFollowup ( com.android.server.wifi.HalMockUtils.convertBundleToJson ( args ) . toString ( ) ) ; org.mockito.Mockito.verify ( mAwareStateManager ) . onMessageSendSuccessNotification ( transactionId ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAwareStateManager ) ; }
Source:
private java.io.File getOutArgumentPath ( java.lang.String filename ) { java.io.File file = new java.io.File ( filename ) ; if ( ! ( file.isAbsolute ( ) ) ) { java.io.File workDir = getLintWorkDir ( ) ; if ( workDir != null ) { java.io.File file2 = new java.io.File ( workDir , filename ) ; try { file = file2.getCanonicalFile ( ) ; } catch ( java.io.IOException e ) { file = file2 ; } } } return file ; }

Target:
private static java.io.File getOutArgumentPath ( java.lang.String filename ) { java.io.File file = new java.io.File ( filename ) ; if ( ! ( file.isAbsolute ( ) ) ) { java.io.File workDir = com.android.tools.lint.Main.getLintWorkDir ( ) ; if ( workDir != null ) { java.io.File file2 = new java.io.File ( workDir , filename ) ; try { file = file2.getCanonicalFile ( ) ; } catch ( java.io.IOException e ) { file = file2 ; } } } return file ; }
Source:
private java.io.File findApk ( java.lang.String filename ) { java.io.File file = new java.io.File ( mApkDir , filename ) ; if ( file.exists ( ) ) { return file ; } file = new java.io.File ( mApkDir , ( ( ( com.google.common.io.Files.getNameWithoutExtension ( filename ) ) + "/" ) + filename ) ) ; if ( file.exists ( ) ) { return file ; } return null ; }

Target:
private java.io.File findApk ( java.lang.String filename ) { java.io.File file = new java.io.File ( getApkDir ( ) , filename ) ; if ( file.exists ( ) ) { return file ; } file = new java.io.File ( getApkDir ( ) , ( ( ( com.google.common.io.Files.getNameWithoutExtension ( filename ) ) + "/" ) + filename ) ) ; if ( file.exists ( ) ) { return file ; } return null ; }
Source:
com.android.jack.ir.JNodeInternalError translateException ( java.lang.Throwable e ) { if ( e instanceof java.lang.VirtualMachineError ) { throw ( ( java.lang.VirtualMachineError ) ( e ) ) ; } com.android.jack.ir.JNodeInternalError ice ; if ( e instanceof com.android.jack.ir.JNodeInternalError ) { ice = ( ( com.android.jack.ir.JNodeInternalError ) ( e ) ) ; } else { ice = new com.android.jack.ir.JNodeInternalError ( "Error constructing Java AST" , e ) ; } return ice ; }

Target:
private com.android.jack.ir.JNodeInternalError translateException ( java.lang.Exception e ) { return new com.android.jack.ir.JNodeInternalError ( "Error building Jack IR" , e ) ; }
Source:
private static java.io.File prepareLib ( @ javax.annotation.Nonnull java.io.File sources , @ javax.annotation.Nonnull java.io.File ... classpath ) throws java.lang.Exception { java.io.File outDir = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; com.android.jack.test.toolchain.IToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( ) ; toolchain.srcToLib ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathsAsString ( toolchain.getDefaultBootClasspath ( ) , classpath ) , outDir , false , sources ) ; return outDir ; }

Target:
private static java.io.File prepareLib ( @ javax.annotation.Nonnull java.io.File sources , @ javax.annotation.Nonnull java.io.File ... classpath ) throws java.lang.Exception { java.io.File outDir = com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ; java.util.List < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > exclude = new java.util.ArrayList < java.lang.Class < ? extends com.android.jack.test.toolchain.IToolchain > > ( ) ; exclude.add ( com.android.jack.test.toolchain.LegacyJillToolchain.class ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class , exclude ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . addToClasspath ( classpath ) . srcToLib ( outDir , false , sources ) ; return outDir ; }
Source:
public void test10089890 ( ) throws java.lang.Exception { assertEquals ( "Jan 1–2" , formatDateRange ( 0 , ( ( ( 24 * 60 ) * 60 ) * 1000L ) , ( ( FORMAT_SHOW_DATE ) | ( FORMAT_ABBREV_ALL ) ) , "Europe/London" ) ) ; assertEquals ( "Dec 31, 1969 – Jan 1, 1970" , formatDateRange ( 0 , ( ( ( 24 * 60 ) * 60 ) * 1000L ) , ( ( FORMAT_SHOW_DATE ) | ( FORMAT_ABBREV_ALL ) ) , "America/Los_Angeles" ) ) ; }

Target:
public void test10089890 ( ) throws java.lang.Exception { assertEquals ( "Jan 1–2" , formatDateRange ( 0 , libcore.icu.DateIntervalFormatTest.DAY , ( ( FORMAT_SHOW_DATE ) | ( FORMAT_ABBREV_ALL ) ) , "Europe/London" ) ) ; assertEquals ( "Dec 31, 1969 – Jan 1, 1970" , formatDateRange ( 0 , libcore.icu.DateIntervalFormatTest.DAY , ( ( FORMAT_SHOW_DATE ) | ( FORMAT_ABBREV_ALL ) ) , "America/Los_Angeles" ) ) ; }
Source:
public void requestImageRef ( final android.os.Message msg ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { requestImageRef ( msg ) ; } } ) ; return ; } mAwContents.requestImageRef ( msg ) ; }

Target:
public void requestFocusNodeHref ( final android.os.Message hrefMsg ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { requestFocusNodeHref ( hrefMsg ) ; } } ) ; return ; } mAwContents.requestFocusNodeHref ( hrefMsg ) ; }
Source:
public void adjustStreamVolume ( int streamType , int direction , int flags ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { if ( mUseMasterVolume ) { service.adjustMasterVolume ( direction , flags , mApplicationContext.getOpPackageName ( ) ) ; } else { service.adjustStreamVolume ( streamType , direction , flags , mApplicationContext.getOpPackageName ( ) ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in adjustStreamVolume" , e ) ; } }

Target:
private void setContext ( android.content.Context context ) { mApplicationContext = context.getApplicationContext ( ) ; if ( ( mApplicationContext ) != null ) { mOriginalContext = null ; } else { mOriginalContext = context ; } }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , short [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 2 ) ) ; }

Target:
public void copy2DRangeTo ( int xoff , int yoff , int w , int h , short [ ] data ) { validateIsInt16 ( ) ; copy2DRangeToUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_16 , data.length ) ; }
Source:
private boolean visibleNotification ( int arrayPos ) { com.android.bluetooth.opp.BluetoothOppShareInfo info = mShares.get ( arrayPos ) ; return info.hasCompletionNotification ( ) ; }

Target:
public void dump ( java.lang.StringBuilder sb ) { super . dump ( sb ) ; if ( ( mShares.size ( ) ) > 0 ) { println ( sb , "Shares:" ) ; for ( com.android.bluetooth.opp.BluetoothOppShareInfo info : mShares ) { java.lang.String dir = ( ( info.mDirection ) == ( BluetoothShare.DIRECTION_OUTBOUND ) ) ? "->" : "<-" ; java.text.SimpleDateFormat format = new java.text.SimpleDateFormat ( "MM'.'dd'@'HH':'mm':'ss" , java.util.Locale.US ) ; java.util.Date date = new java.util.Date ( info.mTimestamp ) ; println ( sb , ( ( ( ( ( ( ( ( " " + ( format.format ( date ) ) ) + ": " ) + dir ) + " " ) + ( info.mCurrentBytes ) ) + "/" ) + ( info.mTotalBytes ) ) + "B " ) ) ; } } }
Source:
public void testSet2 ( ) { try { java.util.concurrent.CopyOnWriteArrayList c = new java.util.concurrent.CopyOnWriteArrayList ( ) ; c.add ( "asdasd" ) ; c.add ( "asdad" ) ; c.set ( 100 , "qwerty" ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } }

Target:
public void testSubList3_IndexOutOfBoundsException ( ) { java.util.concurrent.CopyOnWriteArrayList c = jsr166.CopyOnWriteArrayListTest.populatedArray ( 5 ) ; java.util.List [ ] lists = new java.util.List [ ] { c , c.subList ( 1 , ( ( c.size ( ) ) - 1 ) ) } ; for ( java.util.List list : lists ) { try { list.subList ( ( ( list.size ( ) ) - 1 ) , 1 ) ; shouldThrow ( ) ; } catch ( java.lang.IndexOutOfBoundsException success ) { } } }
Source:
private static java.lang.String getAbiList ( java.io.BufferedWriter writer , java.io.DataInputStream inputStream ) throws java.io.IOException { writer.write ( "1" ) ; writer.newLine ( ) ; writer.write ( "--query-abi-list" ) ; writer.newLine ( ) ; writer.flush ( ) ; int numBytes = inputStream.readInt ( ) ; byte [ ] bytes = new byte [ numBytes ] ; inputStream.readFully ( bytes ) ; return new java.lang.String ( bytes , java.nio.charset.StandardCharsets.US_ASCII ) ; }

Target:
public static final long getStartUptimeMillis ( ) { return android.os.Process.sStartUptimeMillis ; }
Source:
java.lang.Object readResolve ( ) { int n = elements.length ; com.google.common.collect.ImmutableSortedMultiset.Builder < java.lang.Object > builder = com.google.common.collect.ImmutableSortedMultiset.orderedBy ( comparator ) ; for ( int i = 0 ; i < n ; i ++ ) { builder.addCopies ( elements [ i ] , counts [ i ] ) ; } return builder.build ( ) ; }

Target:
java.lang.Object readResolve ( ) { int n = elements.length ; com.google.common.collect.ImmutableSortedMultiset.Builder < E > builder = new com.google.common.collect.ImmutableSortedMultiset.Builder < E > ( comparator ) ; for ( int i = 0 ; i < n ; i ++ ) { builder.addCopies ( elements [ i ] , counts [ i ] ) ; } return builder.build ( ) ; }
Source:
private static int from3DigitVersionString ( java.lang.String versionString ) throws libcore.tzdata.update2.DistroException { final java.lang.String parseErrorMessage = "versionString must be a zero padded, 3 digit, positive" + " decimal integer" ; if ( ( versionString.length ( ) ) != 3 ) { throw new libcore.tzdata.update2.DistroException ( parseErrorMessage ) ; } try { int version = java.lang.Integer.parseInt ( versionString ) ; return libcore.tzdata.update2.DistroVersion.validate3DigitVersion ( version ) ; } catch ( java.lang.NumberFormatException e ) { throw new libcore.tzdata.update2.DistroException ( parseErrorMessage , e ) ; } }

Target:
private static int from3DigitVersionString ( java.lang.String versionString ) throws libcore.tzdata.shared2.DistroException { final java.lang.String parseErrorMessage = "versionString must be a zero padded, 3 digit, positive" + " decimal integer" ; if ( ( versionString.length ( ) ) != 3 ) { throw new libcore.tzdata.shared2.DistroException ( parseErrorMessage ) ; } try { int version = java.lang.Integer.parseInt ( versionString ) ; return libcore.tzdata.shared2.DistroVersion.validate3DigitVersion ( version ) ; } catch ( java.lang.NumberFormatException e ) { throw new libcore.tzdata.shared2.DistroException ( parseErrorMessage , e ) ; } }
Source:
public java.net.Socket createSocket ( java.net.InetAddress addr , int port , java.net.InetAddress localAddr , int localPort ) throws java.io.IOException { org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl s = ( ( org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( addr , port , localAddr , localPort ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; return s ; }

Target:
public java.net.Socket createSocket ( java.net.InetAddress addr , int port , java.net.InetAddress localAddr , int localPort ) throws java.io.IOException { org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl s = ( ( org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl ) ( getDelegate ( ) . createSocket ( addr , port , localAddr , localPort ) ) ) ; s.setNpnProtocols ( mNpnProtocols ) ; s.setHandshakeTimeout ( mHandshakeTimeoutMillis ) ; s.setChannelIdPrivateKey ( mChannelIdPrivateKey ) ; return s ; }
Source:
private static java.util.Properties createProps ( int min_platform_tools_rev ) { java.util.Properties props = new java.util.Properties ( ) ; props.setProperty ( ToolPackage.PROP_MIN_PLATFORM_TOOLS_REV , java.lang.Integer.toString ( min_platform_tools_rev ) ) ; return props ; }

Target:
private static java.util.Properties createProps ( com.android.sdklib.internal.repository.packages.PreviewVersion previewVersion , int minPlatformToolsRev ) { java.util.Properties props = new java.util.Properties ( ) ; props.setProperty ( PkgProps.MIN_PLATFORM_TOOLS_REV , java.lang.Integer.toString ( minPlatformToolsRev ) ) ; if ( previewVersion != null ) { props.setProperty ( PkgProps.PKG_MINOR_REV , java.lang.Integer.toString ( previewVersion.getMinor ( ) ) ) ; props.setProperty ( PkgProps.PKG_MICRO_REV , java.lang.Integer.toString ( previewVersion.getMicro ( ) ) ) ; props.setProperty ( PkgProps.PKG_PREVIEW_REV , java.lang.Integer.toString ( previewVersion.getPreview ( ) ) ) ; } return props ; }
Source:
synchronized boolean disconnect ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( "disconnect(): device=" + device ) ) ; } if ( ! ( checkDevice ( device ) ) ) { return false ; } return disconnectNative ( ) ; }

Target:
synchronized boolean unplug ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.hid.HidDeviceService.DBG ) { android.util.Log.d ( com.android.bluetooth.hid.HidDeviceService.TAG , ( "unplug(): device=" + device ) ) ; } return ( ( checkDevice ( device ) ) && ( checkCallingUid ( ) ) ) && ( mHidDeviceNativeInterface.unplug ( ) ) ; }
Source:
private void setWindowImage ( org.eclipse.swt.widgets.Shell androidSdkUpdater ) { java.lang.String imageName = "android_icon_16.png" ; if ( ( com.android.sdklib.SdkConstants.currentPlatform ( ) ) == ( com.android.sdklib.SdkConstants.PLATFORM_DARWIN ) ) { imageName = "android_icon_128.png" ; } if ( ( mUpdaterData ) != null ) { com.android.sdkuilib.internal.repository.icons.ImageFactory imgFactory = mUpdaterData.getImageFactory ( ) ; if ( imgFactory != null ) { mShell.setImage ( imgFactory.getImageByName ( imageName ) ) ; } } }

Target:
private void setWindowImage ( org.eclipse.swt.widgets.Shell shell ) { java.lang.String imageName = "android_icon_16.png" ; if ( ( com.android.sdklib.SdkConstants.currentPlatform ( ) ) == ( com.android.sdklib.SdkConstants.PLATFORM_DARWIN ) ) { imageName = "android_icon_128.png" ; } if ( ( mUpdaterData ) != null ) { com.android.sdkuilib.internal.repository.icons.ImageFactory imgFactory = mUpdaterData.getImageFactory ( ) ; if ( imgFactory != null ) { shell.setImage ( imgFactory.getImageByName ( imageName ) ) ; } } }
Source:
public java.nio.file.Path convert ( java.lang.String input ) throws com.google.devtools.common.options.OptionsParsingException { try { java.nio.file.Path path = java.nio.file.FileSystems.getDefault ( ) . getPath ( input ) ; if ( ( mustExist ) && ( ! ( java.nio.file.Files.exists ( path ) ) ) ) { throw new com.google.devtools.common.options.OptionsParsingException ( java.lang.String.format ( "%s is not a valid path." , input ) ) ; } return path ; } catch ( java.nio.file.InvalidPathException e ) { throw new com.google.devtools.common.options.OptionsParsingException ( java.lang.String.format ( "%s is not a valid path." , input ) , e ) ; } }

Target:
public java.nio.file.Path convert ( java.lang.String input ) throws com.google.devtools.common.options.OptionsParsingException { try { java.nio.file.Path path = java.nio.file.FileSystems.getDefault ( ) . getPath ( input ) ; if ( ( mustExist ) && ( ! ( java.nio.file.Files.exists ( path ) ) ) ) { throw new com.google.devtools.common.options.OptionsParsingException ( java.lang.String.format ( "%s is not a valid path: it does not exist." , input ) ) ; } return path ; } catch ( java.nio.file.InvalidPathException e ) { throw new com.google.devtools.common.options.OptionsParsingException ( java.lang.String.format ( "%s is not a valid path: %s." , input , e.getMessage ( ) ) , e ) ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; this . source3 = getLongMessage ( 1000000 ) ; this . digest = getMessageDigest ( ) ; this . sourceData = getSourceData ( ) ; this . checkDigest = getCheckDigest ( ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; this . source3 = getLongMessage ( 1000000 ) ; this . digest = java.security.MessageDigest.getInstance ( digestAlgorithmName ) ; this . sourceData = getSourceData ( ) ; this . checkDigest = getCheckDigest ( ) ; }
Source:
public void testClassEntryCompareContract ( ) throws java.lang.Exception { com.android.tools.lint.client.api.LintDriver.ClassEntry c0 = new com.android.tools.lint.client.api.LintDriver.ClassEntry ( new java.io.File ( "abcde" ) , null , null , null ) ; com.android.tools.lint.client.api.LintDriver.ClassEntry c1 = new com.android.tools.lint.client.api.LintDriver.ClassEntry ( new java.io.File ( "abcde" ) , null , null , null ) ; assertTrue ( ( ( c0.compareTo ( c1 ) ) <= 0 ) ) ; assertTrue ( ( ( c1.compareTo ( c0 ) ) <= 0 ) ) ; }

Target:
public void testClassEntryCompareContract ( ) throws java.lang.Exception { com.android.tools.lint.client.api.ClassEntry c0 = new com.android.tools.lint.client.api.ClassEntry ( new java.io.File ( "abcde" ) , null , null , null ) ; com.android.tools.lint.client.api.ClassEntry c1 = new com.android.tools.lint.client.api.ClassEntry ( new java.io.File ( "abcde" ) , null , null , null ) ; assertTrue ( ( ( c0.compareTo ( c1 ) ) <= 0 ) ) ; assertTrue ( ( ( c1.compareTo ( c0 ) ) <= 0 ) ) ; }
Source:
synchronized void nAllocationData2D ( int id , int xoff , int yoff , int mip , int face , int w , int h , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData2D ( long dstAlloc , int dstXoff , int dstYoff , int dstMip , int dstFace , int width , int height , long srcAlloc , int srcXoff , int srcYoff , int srcMip , int srcFace ) { validate ( ) ; rsnAllocationData2D ( mContext , dstAlloc , dstXoff , dstYoff , dstMip , dstFace , width , height , srcAlloc , srcXoff , srcYoff , srcMip , srcFace ) ; }
Source:
public void adjustVolume ( int direction ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_ADJUST_VOLUME , direction , 0 ) ; mHandler.sendMessage ( msg ) ; }

Target:
private void handlePassthroughCmdRequestFromNative ( byte [ ] address , int id , int keyState ) { final com.android.bluetooth.avrcp.Avrcp.AvrcpMessageHandler handler = mHandler ; if ( handler == null ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) { android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "handlePassthroughCmdRequestFromNative: mHandler is already null" ) ; } return ; } android.os.Message msg = handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_PASS_THROUGH , id , keyState ) ; handler.sendMessage ( msg ) ; }
Source:
private static void assertHexadecimalMeidFormat ( java.lang.String deviceId ) { java.lang.String meidPattern = "[0-9a-fA-F]{14}" ; assertTrue ( ( ( ( "MEID hex device id " + deviceId ) + " does not match pattern " ) + meidPattern ) , java.util.regex.Pattern.matches ( meidPattern , deviceId ) ) ; }

Target:
private static void assertCdmaDeviceId ( java.lang.String deviceId ) { if ( ( deviceId.length ( ) ) == 14 ) { android.telephony.cts.TelephonyManagerTest.assertMeidFormat ( deviceId ) ; } else if ( ( deviceId.length ( ) ) == 8 ) { android.telephony.cts.TelephonyManagerTest.assertHexadecimalEsnFormat ( deviceId ) ; } else { fail ( "device id on CDMA must be 14-digit hex MEID or 8-digit hex ESN." ) ; } }
Source:
private boolean checkReadPhoneState ( java.lang.String callingPackage , java.lang.String message ) { try { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , message ) ; return true ; } catch ( java.lang.SecurityException e ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PHONE_STATE , message ) ; } return ( mAppOps.noteOp ( AppOpsManager.OP_READ_PHONE_STATE , android.os.Binder.getCallingUid ( ) , callingPackage ) ) == ( android.app.AppOpsManager.MODE_ALLOWED ) ; }

Target:
public java.lang.String getVoiceMailNumberForSubscriber ( int subId , java.lang.String callingPackage ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mContext , callingPackage , "getVoiceMailNumber" ) ) ) { return null ; } java.lang.String number = android.telephony.PhoneNumberUtils.extractNetworkPortion ( phone.getVoiceMailNumber ( ) ) ; if ( com.android.internal.telephony.PhoneSubInfoController.VDBG ) log ( ( "VM: getVoiceMailNUmber: " + number ) ) ; return number ; } else { loge ( ( "getVoiceMailNumber phone is null for Subscription:" + subId ) ) ; return null ; } }
Source:
public int hashCode ( ) { return ( ( scanType ) * 31 ) + ( ( java.util.Arrays.hashCode ( specifiers ) ) * 37 ) ; }

Target:
public int hashCode ( ) { return ( ( ( ( ( ( ( scanType ) * 31 ) + ( ( java.util.Arrays.hashCode ( specifiers ) ) * 37 ) ) + ( ( searchPeriodicity ) * 41 ) ) + ( ( maxSearchTime ) * 43 ) ) + ( ( ( incrementalResults ) == true ? 1 : 0 ) * 47 ) ) + ( ( incrementalResultsPeriodicity ) * 53 ) ) + ( ( mccMncs.hashCode ( ) ) * 59 ) ; }
Source:
public void testSplashscreenContent ( ) throws java.lang.Exception { launchActivityOnDisplayNoWait ( "SplashscreenActivity" , ActivityAndWindowManagersState.DEFAULT_DISPLAY_ID ) ; mAmWmState.waitForDisplayUnfrozen ( mDevice ) ; mAmWmState.getWmState ( ) . getStableBounds ( ) ; final java.awt.image.BufferedImage image = takeScreenshot ( ) ; assertColors ( image , mAmWmState.getWmState ( ) . getStableBounds ( ) , java.awt.Color.RED.getRGB ( ) , 0.5F , java.awt.Color.BLACK.getRGB ( ) , 0.01F ) ; }

Target:
public void testSplashscreenContent ( ) throws java.lang.Exception { launchActivityNoWait ( "SplashscreenActivity" ) ; mAmWmState.waitForAppTransitionIdle ( mDevice ) ; mAmWmState.getWmState ( ) . getStableBounds ( ) ; final java.awt.image.BufferedImage image = takeScreenshot ( ) ; assertColors ( image , mAmWmState.getWmState ( ) . getStableBounds ( ) , java.awt.Color.RED.getRGB ( ) , 0.5F , java.awt.Color.BLACK.getRGB ( ) , 0.01F ) ; }