auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setup ( android.content.Context context , android.support.v4.app.FragmentManager manager , int containerId ) { super . setup ( ) ; mContext = context ; mFragmentManager = manager ; mContainerId = containerId ; ensureContent ( ) ; mRealTabContent.setId ( containerId ) ; if ( ( getId ( ) ) == ( android.view.View.NO_ID ) ) { setId ( android.R.id.tabhost ) ; } }

Target:
public void setup ( android.content.Context context , android.support.v4.app.FragmentManager manager , int containerId ) { ensureHierarchy ( context ) ; super . setup ( ) ; mContext = context ; mFragmentManager = manager ; mContainerId = containerId ; ensureContent ( ) ; mRealTabContent.setId ( containerId ) ; if ( ( getId ( ) ) == ( android.view.View.NO_ID ) ) { setId ( android.R.id.tabhost ) ; } }
Source:
private void onConnectionStateChanged ( int state , int peer_feat , int chld_feat , byte [ ] address ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_CONNECTION_STATE_CHANGED ) ; event.valueInt = state ; event.valueInt2 = peer_feat ; event.valueInt3 = chld_feat ; event.device = getDevice ( address ) ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }

Target:
private void onAudioStateChanged ( int state , byte [ ] address ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_AUDIO_STATE_CHANGED ) ; event.valueInt = state ; event.device = getDevice ( address ) ; if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; } sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }
Source:
public java.lang.String getNameForUid ( int uid ) { synchronized ( mPackages ) { java.lang.Object obj = mSettings.getUserIdLPr ( uid ) ; if ( obj instanceof com.android.server.pm.SharedUserSetting ) { final com.android.server.pm.SharedUserSetting sus = ( ( com.android.server.pm.SharedUserSetting ) ( obj ) ) ; return ( ( sus.name ) + ":" ) + ( sus.userId ) ; } else if ( obj instanceof com.android.server.pm.PackageSetting ) { final com.android.server.pm.PackageSetting ps = ( ( com.android.server.pm.PackageSetting ) ( obj ) ) ; return ps.name ; } } return null ; }

Target:
public java.lang.String getNameForUid ( int uid ) { synchronized ( mPackages ) { java.lang.Object obj = mSettings.getUserIdLPr ( android.os.UserId.getAppId ( uid ) ) ; if ( obj instanceof com.android.server.pm.SharedUserSetting ) { final com.android.server.pm.SharedUserSetting sus = ( ( com.android.server.pm.SharedUserSetting ) ( obj ) ) ; return ( ( sus.name ) + ":" ) + ( sus.userId ) ; } else if ( obj instanceof com.android.server.pm.PackageSetting ) { final com.android.server.pm.PackageSetting ps = ( ( com.android.server.pm.PackageSetting ) ( obj ) ) ; return ps.name ; } } return null ; }
Source:
public int getPreferredNetworkType ( int subId ) { enforceModifyPermissionOrCarrierPrivilege ( subId ) ; if ( com.android.phone.PhoneInterfaceManager.DBG ) com.android.phone.PhoneInterfaceManager.log ( "getPreferredNetworkType" ) ; int [ ] result = ( ( int [ ] ) ( sendRequest ( com.android.phone.PhoneInterfaceManager.CMD_GET_PREFERRED_NETWORK_TYPE , null , subId ) ) ) ; int networkType = ( result != null ) ? result [ 0 ] : - 1 ; if ( com.android.phone.PhoneInterfaceManager.DBG ) com.android.phone.PhoneInterfaceManager.log ( ( "getPreferredNetworkType: " + networkType ) ) ; return networkType ; }

Target:
public int getPreferredNetworkType ( int subId ) { com.android.internal.telephony.TelephonyPermissions.enforceCallingOrSelfModifyPermissionOrCarrierPrivilege ( mApp , subId , "getPreferredNetworkType" ) ; if ( com.android.phone.PhoneInterfaceManager.DBG ) com.android.phone.PhoneInterfaceManager.log ( "getPreferredNetworkType" ) ; int [ ] result = ( ( int [ ] ) ( sendRequest ( com.android.phone.PhoneInterfaceManager.CMD_GET_PREFERRED_NETWORK_TYPE , null , subId ) ) ) ; int networkType = ( result != null ) ? result [ 0 ] : - 1 ; if ( com.android.phone.PhoneInterfaceManager.DBG ) com.android.phone.PhoneInterfaceManager.log ( ( "getPreferredNetworkType: " + networkType ) ) ; return networkType ; }
Source:
public boolean isBetterMatchThan ( com.android.ide.common.resources.configuration.ResourceQualifier compareTo , com.android.ide.common.resources.configuration.ResourceQualifier reference ) { if ( compareTo == null ) { return true ; } com.android.ide.common.resources.configuration.PixelDensityQualifier compareQ = ( ( com.android.ide.common.resources.configuration.PixelDensityQualifier ) ( compareTo ) ) ; com.android.ide.common.resources.configuration.PixelDensityQualifier referenceQ = ( ( com.android.ide.common.resources.configuration.PixelDensityQualifier ) ( reference ) ) ; if ( ( compareQ.mValue ) == ( referenceQ.mValue ) ) { return false ; } else if ( ( mValue ) == ( referenceQ.mValue ) ) { return true ; } else { return ( mValue.getDpiValue ( ) ) > ( compareQ.mValue.getDpiValue ( ) ) ; } }

Target:
public boolean isBetterMatchThan ( com.android.ide.common.resources.configuration.ResourceQualifier compareTo , com.android.ide.common.resources.configuration.ResourceQualifier reference ) { if ( compareTo == null ) { return true ; } com.android.ide.common.resources.configuration.DensityQualifier compareQ = ( ( com.android.ide.common.resources.configuration.DensityQualifier ) ( compareTo ) ) ; com.android.ide.common.resources.configuration.DensityQualifier referenceQ = ( ( com.android.ide.common.resources.configuration.DensityQualifier ) ( reference ) ) ; if ( ( compareQ.mValue ) == ( referenceQ.mValue ) ) { return false ; } else if ( ( mValue ) == ( referenceQ.mValue ) ) { return true ; } else { return ( mValue.getDpiValue ( ) ) > ( compareQ.mValue.getDpiValue ( ) ) ; } }
Source:
public void onSuccess ( byte [ ] data , final com.android.ddmlib.Client client ) { try { java.io.File tempFile = saveTempFile ( data ) ; openInTraceview ( tempFile.getAbsolutePath ( ) ) ; } catch ( java.io.IOException e ) { java.lang.String errorMsg = e.getMessage ( ) ; displayErrorInUiThread ( "Failed to save trace data into temp file%1$s" , ( errorMsg != null ? ":\n" + errorMsg : "." ) ) ; } }

Target:
public void onSuccess ( byte [ ] data , final com.android.ddmlib.Client client ) { try { java.io.File tempFile = saveTempFile ( data , DdmConstants.DOT_TRACE ) ; open ( tempFile.getAbsolutePath ( ) ) ; } catch ( java.io.IOException e ) { java.lang.String errorMsg = e.getMessage ( ) ; displayErrorInUiThread ( "Failed to save trace data into temp file%1$s" , ( errorMsg != null ? ":\n" + errorMsg : "." ) ) ; } }
Source:
public java.util.List < com.intellij.execution.impl.RunnerAndConfigurationSettings > getConfigurationSettingsList ( @ org.jetbrains.annotations.NotNull final com.intellij.execution.impl.ConfigurationType type ) { final java.util.LinkedHashSet < com.intellij.execution.impl.RunnerAndConfigurationSettings > set = new java.util.LinkedHashSet < com.intellij.execution.impl.RunnerAndConfigurationSettings > ( ) ; for ( com.intellij.execution.impl.RunnerAndConfigurationSettings configuration : getSortedConfigurations ( ) ) { final com.intellij.execution.impl.ConfigurationType configurationType = configuration.getType ( ) ; if ( ( configurationType != null ) && ( type.getId ( ) . equals ( configurationType.getId ( ) ) ) ) { set.add ( configuration ) ; } } return java.util.Collections.unmodifiableList ( new java.util.ArrayList < com.intellij.execution.impl.RunnerAndConfigurationSettings > ( set ) ) ; }

Target:
public java.util.List < com.intellij.execution.impl.RunnerAndConfigurationSettings > getConfigurationSettingsList ( @ org.jetbrains.annotations.NotNull com.intellij.execution.impl.ConfigurationType type ) { java.util.List < com.intellij.execution.impl.RunnerAndConfigurationSettings > result = new com.intellij.util.SmartList < com.intellij.execution.impl.RunnerAndConfigurationSettings > ( ) ; for ( com.intellij.execution.impl.RunnerAndConfigurationSettings configuration : getSortedConfigurations ( ) ) { com.intellij.execution.impl.ConfigurationType configurationType = configuration.getType ( ) ; if ( ( configurationType != null ) && ( type.getId ( ) . equals ( configurationType.getId ( ) ) ) ) { result.add ( configuration ) ; } } return result ; }
Source:
public void dragLeave ( org.eclipse.swt.dnd.DropTargetEvent event ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = mGraphicalEditorPart.getCanvasControl ( ) ; if ( canvas != null ) { adjustEventCoordinates ( canvas , event ) ; canvas.getDropListener ( ) . dragLeave ( event ) ; } }

Target:
static com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo getViewInfo ( java.lang.Object viewData ) { if ( viewData instanceof com.android.ide.eclipse.adt.internal.editors.layout.gle2.OutlinePage.RootWrapper ) { return ( ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.OutlinePage.RootWrapper ) ( viewData ) ) . getRoot ( ) ; } if ( viewData instanceof com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ) { return ( ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ) ( viewData ) ) ; } return null ; }
Source:
private void onHfIndicatorValueChanged ( android.content.Intent intent ) { android.bluetooth.BluetoothDevice device = intent.getParcelableExtra ( BluetoothDevice.EXTRA_DEVICE ) ; if ( device == null ) { android.util.Log.e ( com.android.bluetooth.btservice.RemoteDevices.TAG , "onHfIndicatorValueChanged() remote device is null" ) ; return ; } int indicatorId = intent.getIntExtra ( BluetoothHeadset.EXTRA_HF_INDICATORS_IND_ID , ( - 1 ) ) ; int indicatorValue = intent.getIntExtra ( BluetoothHeadset.EXTRA_HF_INDICATORS_IND_VALUE , ( - 1 ) ) ; if ( indicatorId == ( HeadsetHalConstants.HF_INDICATOR_BATTERY_LEVEL_STATUS ) ) { updateBatteryLevel ( device , indicatorValue ) ; } }

Target:
void onHfIndicatorValueChanged ( android.content.Intent intent ) { android.bluetooth.BluetoothDevice device = intent.getParcelableExtra ( BluetoothDevice.EXTRA_DEVICE ) ; if ( device == null ) { android.util.Log.e ( com.android.bluetooth.btservice.RemoteDevices.TAG , "onHfIndicatorValueChanged() remote device is null" ) ; return ; } int indicatorId = intent.getIntExtra ( BluetoothHeadset.EXTRA_HF_INDICATORS_IND_ID , ( - 1 ) ) ; int indicatorValue = intent.getIntExtra ( BluetoothHeadset.EXTRA_HF_INDICATORS_IND_VALUE , ( - 1 ) ) ; if ( indicatorId == ( com.android.bluetooth.hfp.HeadsetHalConstants.HF_INDICATOR_BATTERY_LEVEL_STATUS ) ) { updateBatteryLevel ( device , indicatorValue ) ; } }
Source:
private void setCurrentAppType ( boolean isGsm ) { if ( com.android.internal.telephony.uicc.UiccProfile.VDBG ) log ( "setCurrentAppType" ) ; synchronized ( mLock ) { boolean isLteOnCdmaMode = ( android.telephony.TelephonyManager.getLteOnCdmaModeStatic ( ) ) == ( com.android.internal.telephony.PhoneConstants.LTE_ON_CDMA_TRUE ) ; if ( isGsm || isLteOnCdmaMode ) { mCurrentAppType = UiccController.APP_FAM_3GPP ; } else { mCurrentAppType = UiccController.APP_FAM_3GPP2 ; } } }

Target:
private void setCurrentAppType ( boolean isGsm ) { if ( com.android.internal.telephony.uicc.UiccProfile.VDBG ) com.android.internal.telephony.uicc.UiccProfile.log ( "setCurrentAppType" ) ; synchronized ( mLock ) { boolean isLteOnCdmaMode = ( android.telephony.TelephonyManager.getLteOnCdmaModeStatic ( ) ) == ( com.android.internal.telephony.PhoneConstants.LTE_ON_CDMA_TRUE ) ; if ( isGsm || isLteOnCdmaMode ) { mCurrentAppType = UiccController.APP_FAM_3GPP ; } else { mCurrentAppType = UiccController.APP_FAM_3GPP2 ; } } }
Source:
public void getCallBarring ( java.lang.String facility , android.os.Message onComplete ) { if ( com.android.internal.telephony.imsphone.ImsPhone.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.imsphone.ImsPhone.LOG_TAG , ( "getCallBarring facility=" + facility ) ) ; android.os.Message resp ; resp = obtainMessage ( com.android.internal.telephony.imsphone.ImsPhone.EVENT_GET_CALL_BARRING_DONE , onComplete ) ; try { com.android.ims.ImsUtInterface ut = mCT.getUtInterface ( ) ; ut.queryCallBarring ( getCBTypeFromFacility ( facility ) , resp ) ; } catch ( com.android.ims.ImsException e ) { sendErrorResponse ( onComplete , e ) ; } }

Target:
public void getCallBarring ( java.lang.String facility , android.os.Message onComplete ) { getCallBarring ( facility , onComplete , CommandsInterface.SERVICE_CLASS_NONE ) ; }
Source:
public void startVariant ( final com.android.build.gradle.internal.ApplicationVariant variant ) { if ( hasConfigs ) { getTextOutput ( ) . println ( ) ; } hasConfigs = true ; renderer = new org.gradle.internal.graph.GraphRenderer ( getTextOutput ( ) ) ; renderer.visit ( new org.gradle.api.Action < org.gradle.logging.StyledTextOutput > ( ) { @ java.lang.Override public void execute ( org.gradle.logging.StyledTextOutput styledTextOutput ) { getTextOutput ( ) . withStyle ( org.gradle.logging.StyledTextOutput.Style.Identifier ) . text ( variant.getName ( ) ) ; getTextOutput ( ) . withStyle ( org.gradle.logging.StyledTextOutput.Style.Description ) . text ( "" ) ; } } , true ) ; }

Target:
public void startVariant ( final com.android.build.gradle.internal.variant.BaseVariantData variantData ) { if ( hasConfigs ) { getTextOutput ( ) . println ( ) ; } hasConfigs = true ; renderer = new org.gradle.internal.graph.GraphRenderer ( getTextOutput ( ) ) ; renderer.visit ( new org.gradle.api.Action < org.gradle.logging.StyledTextOutput > ( ) { @ java.lang.Override public void execute ( org.gradle.logging.StyledTextOutput styledTextOutput ) { getTextOutput ( ) . withStyle ( org.gradle.logging.StyledTextOutput.Style.Identifier ) . text ( variantData.getName ( ) ) ; getTextOutput ( ) . withStyle ( org.gradle.logging.StyledTextOutput.Style.Description ) . text ( "" ) ; } } , true ) ; }
Source:
public void testWildcardMatchesWildcardSuffix ( ) { assertTrue ( verifier.verifyHostName ( "b.c.d" , "*.b.c.d" ) ) ; assertTrue ( verifier.verifyHostName ( "imap.google.com" , "*.imap.google.com" ) ) ; }

Target:
public void testWildcardsRejectedForIpAddress ( ) { assertFalse ( verifyWithServerCertificate ( "1.2.3.4" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "cn=*.2.3.4" ) ) ) ; assertFalse ( verifyWithServerCertificate ( "1.2.3.4" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "cn=*.2.3.4" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_IPA_NAME , "*.2.3.4" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_DNS_NAME , "*.2.3.4" ) ) ) ; assertFalse ( verifyWithServerCertificate ( "2001:1234::1" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "cn=*:1234::1" ) ) ) ; assertFalse ( verifyWithServerCertificate ( "2001:1234::1" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "cn=*:1234::1" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_IPA_NAME , "*:1234::1" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_DNS_NAME , "*:1234::1" ) ) ) ; }
Source:
public synchronized void close ( ) throws com.android.jack.library.LibraryIOException { try { baseVFS.close ( ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.LibraryIOException ( getLocation ( ) , e ) ; } }

Target:
public synchronized void close ( ) throws com.android.jack.library.LibraryIOException { try { for ( com.android.sched.vfs.InputVFS currentSectionVFS : sectionVFS.values ( ) ) { currentSectionVFS.close ( ) ; } baseVFS.close ( ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.LibraryIOException ( getLocation ( ) , e ) ; } }
Source:
public void testJar ( ) throws java.lang.Exception { assertEquals ( ( "GetterTest.java:47: Warning: Calling getter method getFoo1() on self is slower than field access (mFoo1)\n" + ( ( ( "GetterTest.java:48: Warning: Calling getter method getFoo2() on self is slower than field access (mFoo2)\n" + "GetterTest.java:52: Warning: Calling getter method isBar1() on self is slower than field access (mBar1)\n" ) + "GetterTest.java:54: Warning: Calling getter method getFoo1() on self is slower than field access (mFoo1)\n" ) + "GetterTest.java:55: Warning: Calling getter method getFoo2() on self is slower than field access (mFoo2)" ) ) , lintProject ( "bytecode/classpath-jar=>.classpath" , "apicheck/minsdk1.xml=>AndroidManifest.xml" , "bytecode/GetterTest.java.txt=>src/test/bytecode/GetterTest.java" , "bytecode/GetterTest.jar.data=>bin/classes.jar" ) ) ; }

Target:
public void testJar ( ) throws java.lang.Exception { assertEquals ( ( "src/test/bytecode/GetterTest.java:47: Warning: Calling getter method getFoo1() on self is slower than field access (mFoo1) [FieldGetter]\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " getFoo1();\n" + " ~~~~~~~\n" ) + "src/test/bytecode/GetterTest.java:48: Warning: Calling getter method getFoo2() on self is slower than field access (mFoo2) [FieldGetter]\n" ) + " getFoo2();\n" ) + " ~~~~~~~\n" ) + "src/test/bytecode/GetterTest.java:52: Warning: Calling getter method isBar1() on self is slower than field access (mBar1) [FieldGetter]\n" ) + " isBar1();\n" ) + " ~~~~~~\n" ) + "src/test/bytecode/GetterTest.java:54: Warning: Calling getter method getFoo1() on self is slower than field access (mFoo1) [FieldGetter]\n" ) + " this.getFoo1();\n" ) + " ~~~~~~~\n" ) + "src/test/bytecode/GetterTest.java:55: Warning: Calling getter method getFoo2() on self is slower than field access (mFoo2) [FieldGetter]\n" ) + " this.getFoo2();\n" ) + " ~~~~~~~\n" ) + "0 errors, 5 warnings\n" ) + "" ) ) , lintProject ( "bytecode/classpath-jar=>.classpath" , "apicheck/minsdk1.xml=>AndroidManifest.xml" , "bytecode/GetterTest.java.txt=>src/test/bytecode/GetterTest.java" , "bytecode/GetterTest.jar.data=>bin/classes.jar" ) ) ; }
Source:
public void testConfigurationUpdatesWhenResizedFromDockedStack ( ) throws java.lang.Exception { if ( ! ( supportsMultiWindowMode ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes dockedSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; moveActivityToStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes fullscreenSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesAreSane ( fullscreenSizes , dockedSizes ) ; }

Target:
public void testConfigurationUpdatesWhenResizedFromDockedStack ( ) throws java.lang.Exception { if ( ! ( supportsSplitScreenMultiWindow ( ) ) ) { com.android.tradefed.log.LogUtil.CLog.logAndDisplay ( LogLevel.INFO , "Skipping test: no multi-window support" ) ; return ; } launchActivityInStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; final android.server.cts.ReportedSizes dockedSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.DOCKED_STACK_ID ) ; moveActivityToStack ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; final android.server.cts.ReportedSizes fullscreenSizes = getActivityDisplaySize ( android.server.cts.ActivityManagerAppConfigurationTests.RESIZEABLE_ACTIVITY_NAME , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; android.server.cts.ActivityManagerAppConfigurationTests.assertSizesAreSane ( fullscreenSizes , dockedSizes ) ; }
Source:
private static void waitForIdleHandler ( android.os.HandlerThread handlerThread , int timeoutMs ) { final android.os.ConditionVariable cv = new android.os.ConditionVariable ( ) ; final android.os.Handler handler = new android.os.Handler ( handlerThread.getLooper ( ) ) ; handler.post ( ( ) -> cv.open ( ) ) ; if ( ! ( cv.block ( timeoutMs ) ) ) { fail ( ( ( ( ( "HandlerThread " + ( handlerThread.getName ( ) ) ) + " did not become idle after " ) + timeoutMs ) + " ms" ) ) ; } }

Target:
private void verifyNoNetwork ( ) { assertNull ( mCm.getActiveNetworkInfo ( ) ) ; assertNull ( mCm.getActiveNetwork ( ) ) ; assertNull ( mCm.getActiveNetworkForUid ( java.lang.Process.myUid ( ) ) ) ; assertEquals ( 0 , mCm.getAllNetworks ( ) . length ) ; }
Source:
public final int initialize ( android.telephony.mbms.IMbmsStreamingManagerCallback listener , int subscriptionId ) throws android.os.RemoteException { return initialize ( new android.telephony.mbms.MbmsStreamingManagerCallback ( ) { @ java.lang.Override public void error ( int errorCode , java.lang.String message ) throws android.os.RemoteException { listener.error ( errorCode , message ) ; } @ java.lang.Override public void streamingServicesUpdated ( java.util.List < android.telephony.mbms.StreamingServiceInfo > services ) throws android.os.RemoteException { listener.streamingServicesUpdated ( services ) ; } @ java.lang.Override public void middlewareReady ( ) throws android.os.RemoteException { listener.middlewareReady ( ) ; } } , subscriptionId ) ; }

Target:
public void onAppCallbackDied ( int uid , int subscriptionId ) { }
Source:
public void testAnyOfMatcherWithOneMatch ( ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) org.hamcrest.Matcher < android.net.Uri > anyOfMatcher = org.hamcrest.CoreMatchers.anyOf ( android.support.test.espresso.intent.matcher.UriMatchers.hasHost ( org.hamcrest.CoreMatchers.equalTo ( "www.google.com" ) ) , android.support.test.espresso.intent.matcher.UriMatchers.hasParamWithName ( org.hamcrest.CoreMatchers.equalTo ( "param1" ) ) , android.support.test.espresso.intent.matcher.UriMatchers.hasParamWithName ( org.hamcrest.CoreMatchers.equalTo ( "param2" ) ) ) ; assertTrue ( "AnyOf matcher didn't match" , anyOfMatcher.matches ( uri ) ) ; }

Target:
public void anyOfMatcherWithOneMatch ( ) { @ java.lang.SuppressWarnings ( value = "unchecked" ) org.hamcrest.Matcher < android.net.Uri > anyOfMatcher = org.hamcrest.CoreMatchers.anyOf ( android.support.test.espresso.intent.matcher.UriMatchers.hasHost ( org.hamcrest.CoreMatchers.equalTo ( "www.google.com" ) ) , android.support.test.espresso.intent.matcher.UriMatchers.hasParamWithName ( org.hamcrest.CoreMatchers.equalTo ( "param1" ) ) , android.support.test.espresso.intent.matcher.UriMatchers.hasParamWithName ( org.hamcrest.CoreMatchers.equalTo ( "param2" ) ) ) ; org.junit.Assert.assertTrue ( "AnyOf matcher didn't match" , anyOfMatcher.matches ( uri ) ) ; }
Source:
public android.view.View getView ( int position , android.view.View convertView , android.view.ViewGroup parent ) { final com.android.terminal.TerminalLineView view ; if ( convertView != null ) { view = ( ( com.android.terminal.TerminalLineView ) ( convertView ) ) ; } else { view = new com.android.terminal.TerminalLineView ( parent.getContext ( ) , mTerm , mMetrics ) ; } view.pos = position ; view.row = posToRow ( position ) ; view.cols = mCols ; return view ; }

Target:
public void run ( ) { invalidateViews ( ) ; if ( com.android.terminal.TerminalView.SCROLL_ON_DAMAGE ) { scrollToBottom ( true ) ; } }
Source:
private void createTunnel ( ) throws java.io.IOException , java.lang.InterruptedException { while ( true ) { com.google.mockwebserver.MockResponse connect = responseQueue.peek ( ) ; if ( ! ( processOneRequest ( raw , raw.getInputStream ( ) , raw.getOutputStream ( ) ) ) ) { throw new java.lang.IllegalStateException ( "Tunnel without any CONNECT!" ) ; } if ( ( connect.getSocketPolicy ( ) ) == ( SocketPolicy.UPGRADE_TO_SSL_AT_END ) ) { return ; } } }

Target:
private void createTunnel ( ) throws java.io.IOException , java.lang.InterruptedException { while ( true ) { com.google.mockwebserver.BaseMockResponse < ? > connect = responseQueue.peek ( ) ; if ( ! ( processOneRequest ( raw , raw.getInputStream ( ) , raw.getOutputStream ( ) ) ) ) { throw new java.lang.IllegalStateException ( "Tunnel without any CONNECT!" ) ; } if ( ( connect.getSocketPolicy ( ) ) == ( SocketPolicy.UPGRADE_TO_SSL_AT_END ) ) { return ; } } }
Source:
private android.bluetooth.BluetoothGattDescriptor getDescriptor ( ) { android.bluetooth.BluetoothGattCharacteristic characteristic = getCharacteristic ( com.android.cts.verifier.bluetooth.BleClientService.CHARACTERISTIC_UUID ) ; if ( characteristic == null ) return null ; android.bluetooth.BluetoothGattDescriptor descriptor = characteristic.getDescriptor ( com.android.cts.verifier.bluetooth.BleClientService.DESCRIPTOR_UUID ) ; if ( descriptor == null ) { showMessage ( "Descriptor not found" ) ; return null ; } return descriptor ; }

Target:
private android.bluetooth.BluetoothGattDescriptor getDescriptor ( java.util.UUID cuid , java.util.UUID duid ) { android.bluetooth.BluetoothGattDescriptor descriptor = null ; android.bluetooth.BluetoothGattCharacteristic characteristic = getCharacteristic ( cuid ) ; if ( characteristic != null ) { descriptor = characteristic.getDescriptor ( duid ) ; if ( descriptor == null ) { showMessage ( "Descriptor not found" ) ; } } return descriptor ; }
Source:
public void getCellInfoList ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_CELL_INFO_LIST , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void pullLceData ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_PULL_LCEDATA , response , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } send ( rr ) ; }
Source:
public boolean canReportAsInvalidNumber ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_LOCAL : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_REMOTE : return false ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo peopleApiInfo = phoneLookupInfo.getPeopleApiInfo ( ) ; return ( ( peopleApiInfo.getInfoType ( ) ) != ( com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo.InfoType.UNKNOWN ) ) && ( ! ( peopleApiInfo.getPersonId ( ) . isEmpty ( ) ) ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return false ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }

Target:
public boolean canReportAsInvalidNumber ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return false ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo peopleApiInfo = phoneLookupInfo.getPeopleApiInfo ( ) ; return ( ( peopleApiInfo.getInfoType ( ) ) != ( com.android.dialer.phonelookup.PhoneLookupInfo.PeopleApiInfo.InfoType.UNKNOWN ) ) && ( ! ( peopleApiInfo.getPersonId ( ) . isEmpty ( ) ) ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return false ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public boolean iccCloseLogicalChannel ( int channel ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccCloseLogicalChannel ( channel ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return false ; }

Target:
public boolean isVisualVoicemailEnabled ( android.telecom.PhoneAccountHandle phoneAccountHandle ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.isVisualVoicemailEnabled ( mContext.getOpPackageName ( ) , phoneAccountHandle ) ; } } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return false ; }
Source:
private static < K , V > java.util.Map < K , V > filterFiltered ( com.google.common.collect.Maps.AbstractFilteredMap < K , V > map , com.google.common.base.Predicate < ? super java.util.Map.Entry < K , V > > entryPredicate ) { com.google.common.base.Predicate < java.util.Map.Entry < K , V > > predicate = com.google.common.base.Predicates.and ( map.predicate , entryPredicate ) ; return new com.google.common.collect.Maps.FilteredEntryMap < K , V > ( map.unfiltered , predicate ) ; }

Target:
private static < K , V > com.google.common.collect.BiMap < K , V > filterFiltered ( com.google.common.collect.Maps.FilteredEntryBiMap < K , V > map , com.google.common.base.Predicate < ? super java.util.Map.Entry < K , V > > entryPredicate ) { com.google.common.base.Predicate < java.util.Map.Entry < K , V > > predicate = com.google.common.base.Predicates.and ( map.predicate , entryPredicate ) ; return new com.google.common.collect.Maps.FilteredEntryBiMap < K , V > ( map.unfiltered ( ) , predicate ) ; }
Source:
public void testGrantPreviouslyRevokedWithPrejudiceShowsPrompt23 ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , false , false ) ) ; try { runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part1" ) ; fail ( "App must be killed on a permission revoke" ) ; } catch ( java.lang.Throwable expected ) { } runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.USES_PERMISSION_PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testGrantPreviouslyRevokedWithPrejudiceShowsPrompt_part2" ) ; }

Target:
public void testRequestNonRuntimePermission23 ( ) throws java.lang.Exception { assertNull ( getDevice ( ) . installPackage ( com.android.cts.migration.MigrationHelper.getTestFile ( mCtsBuild , android.appsecurity.cts.PermissionsHostTest.APK_23 ) , false , false ) ) ; runDeviceTests ( android.appsecurity.cts.PermissionsHostTest.PKG , "com.android.cts.usepermission.UsePermissionTest23" , "testRequestNonRuntimePermission" ) ; }
Source:
public boolean setPriority ( android.bluetooth.BluetoothDevice device , int priority ) { enforceCallingOrSelfPermission ( com.android.bluetooth.pbapclient.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; Settings.Global.putInt ( getContentResolver ( ) , Settings.Global.getBluetoothPbapClientPriorityKey ( device.getAddress ( ) ) , priority ) ; if ( com.android.bluetooth.pbapclient.PbapClientService.DBG ) { android.util.Log.d ( com.android.bluetooth.pbapclient.PbapClientService.TAG , ( ( ( "Saved priority " + device ) + " = " ) + priority ) ) ; } return true ; }

Target:
public boolean setPriority ( android.bluetooth.BluetoothDevice device , int priority ) { if ( device == null ) throw new java.lang.IllegalArgumentException ( "Null device" ) ; enforceCallingOrSelfPermission ( com.android.bluetooth.pbapclient.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; Settings.Global.putInt ( getContentResolver ( ) , Settings.Global.getBluetoothPbapClientPriorityKey ( device.getAddress ( ) ) , priority ) ; if ( com.android.bluetooth.pbapclient.PbapClientService.DBG ) { android.util.Log.d ( com.android.bluetooth.pbapclient.PbapClientService.TAG , ( ( ( "Saved priority " + device ) + " = " ) + priority ) ) ; } return true ; }
Source:
protected void engineSetPadding ( java.lang.String padding ) throws javax.crypto.NoSuchPaddingException { final java.lang.String paddingUpper = padding.toUpperCase ( ) ; if ( "PKCS1PADDING" . equals ( paddingUpper ) ) { this . padding = NativeCrypto.RSA_PKCS1_PADDING ; return ; } if ( "NOPADDING" . equals ( paddingUpper ) ) { this . padding = NativeCrypto.RSA_NO_PADDING ; return ; } throw new javax.crypto.NoSuchPaddingException ( ( "padding not supported: " + padding ) ) ; }

Target:
protected void engineSetPadding ( java.lang.String padding ) throws javax.crypto.NoSuchPaddingException { final java.lang.String paddingUpper = padding.toUpperCase ( java.util.Locale.ROOT ) ; if ( "PKCS1PADDING" . equals ( paddingUpper ) ) { this . padding = NativeCrypto.RSA_PKCS1_PADDING ; return ; } if ( "NOPADDING" . equals ( paddingUpper ) ) { this . padding = NativeCrypto.RSA_NO_PADDING ; return ; } throw new javax.crypto.NoSuchPaddingException ( ( "padding not supported: " + padding ) ) ; }
Source:
public void stop ( ) throws android.os.RemoteException { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.stopNetworkScan ( mSubId , mScanId ) ; } else { throw new android.os.RemoteException ( "Failed to get the ITelephony instance." ) ; } } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.NetworkScan.TAG , "stopNetworkScan RemoteException" , ex ) ; throw new android.os.RemoteException ( ( "Failed to stop the network scan with id " + ( mScanId ) ) ) ; } }

Target:
public void stopScan ( ) { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony == null ) { android.telephony.Rlog.e ( android.telephony.NetworkScan.TAG , "Failed to get the ITelephony instance." ) ; throw new java.lang.RuntimeException ( "Failed to get the ITelephony instance." ) ; } try { telephony.stopNetworkScan ( mSubId , mScanId ) ; } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.NetworkScan.TAG , "stopNetworkScan RemoteException" , ex ) ; ex.rethrowAsRuntimeException ( ) ; } }
Source:
public void beforeCheckFile ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { java.lang.String language = getLocale ( context.file.getParentFile ( ) . getName ( ) ) ; if ( language == null ) { language = "en" ; } if ( ! ( com.google.common.base.Objects.equal ( mLastLanguage , language ) ) ) { mLastLanguage = language ; mLookup = com.android.tools.lint.checks.TypoLookup.get ( context.getClient ( ) , language ) ; } }

Target:
public void beforeCheckFile ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Context context ) { initLocale ( context.file.getParentFile ( ) . getName ( ) ) ; if ( ( mLanguage ) == null ) { mLanguage = "en" ; } if ( ( ! ( com.google.common.base.Objects.equal ( mLastLanguage , mLanguage ) ) ) || ( ! ( com.google.common.base.Objects.equal ( mLastRegion , mRegion ) ) ) ) { mLookup = com.android.tools.lint.checks.TypoLookup.get ( context.getClient ( ) , mLanguage , mRegion ) ; mLastLanguage = mLanguage ; mLastRegion = mRegion ; } }
Source:
public static int getTunerCount ( android.content.Context context ) { if ( ( com.android.tv.tuner.TunerHal.getTunerType ( context ) ) == ( com.android.tv.tuner.TunerHal.TUNER_TYPE_BUILT_IN ) ) { } return com.android.tv.tuner.UsbTunerHal.getNumberOfDevices ( context ) ; }

Target:
public static android.util.Pair < java.lang.Integer , java.lang.Integer > getTunerTypeAndCount ( android.content.Context context ) { if ( com.android.tv.tuner.TunerHal.useBuiltInTuner ( context ) ) { } int usbTunerCount = com.android.tv.tuner.UsbTunerHal.getNumberOfDevices ( context ) ; if ( usbTunerCount > 0 ) { return new android.util.Pair ( com.android.tv.tuner.TunerHal.TUNER_TYPE_USB , usbTunerCount ) ; } return new android.util.Pair ( null , 0 ) ; }
Source:
private void doBadSubscribeConfiguration ( java.lang.String serviceName , byte [ ] ssi , byte [ ] matchFilter ) throws java.lang.IllegalArgumentException { android.net.wifi.aware.SubscribeConfig subscribeConfig = new android.net.wifi.aware.SubscribeConfig.Builder ( ) . setServiceName ( serviceName ) . setServiceSpecificInfo ( ssi ) . setMatchFilter ( matchFilter ) . build ( ) ; int clientId = doConnect ( ) ; android.net.wifi.aware.IWifiAwareDiscoverySessionCallback mockCallback = org.mockito.Mockito.mock ( android.net.wifi.aware.IWifiAwareDiscoverySessionCallback.class ) ; mDut.subscribe ( clientId , subscribeConfig , mockCallback ) ; org.mockito.Mockito.verify ( mAwareStateManagerMock ) . subscribe ( clientId , subscribeConfig , mockCallback ) ; }

Target:
private void doBadSubscribeConfiguration ( java.lang.String serviceName , byte [ ] ssi , byte [ ] matchFilter ) throws java.lang.IllegalArgumentException { android.net.wifi.aware.SubscribeConfig subscribeConfig = new android.net.wifi.aware.SubscribeConfig ( serviceName.getBytes ( ) , ssi , matchFilter , android.net.wifi.aware.SubscribeConfig.SUBSCRIBE_TYPE_PASSIVE , 0 , 0 , android.net.wifi.aware.SubscribeConfig.MATCH_STYLE_ALL , true ) ; int clientId = doConnect ( ) ; android.net.wifi.aware.IWifiAwareDiscoverySessionCallback mockCallback = org.mockito.Mockito.mock ( android.net.wifi.aware.IWifiAwareDiscoverySessionCallback.class ) ; mDut.subscribe ( clientId , subscribeConfig , mockCallback ) ; org.mockito.Mockito.verify ( mAwareStateManagerMock ) . subscribe ( clientId , subscribeConfig , mockCallback ) ; }
Source:
protected void runTest ( ) throws java.lang.Throwable { com.android.build.tests.AndroidProjectConnector connector = new com.android.build.tests.AndroidProjectConnector ( mSdkFolder , mNdkFolder ) ; connector.runGradleTasks ( mProjectFolder , com.android.build.tests.ProjectTest.GRADLE_VERSION , java.util.Collections.< java.lang.String > emptyList ( ) , "clean" , "assembleDebug" ) ; }

Target:
protected void runTest ( ) throws java.lang.Throwable { com.android.build.tests.AndroidProjectConnector connector = new com.android.build.tests.AndroidProjectConnector ( mSdkFolder , mNdkFolder ) ; connector.runGradleTasks ( mProjectFolder , com.android.build.tests.ProjectTest.GRADLE_VERSION , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String , java.lang.String > emptyMap ( ) , "clean" , "assembleDebug" ) ; }
Source:
public com.android.sched.vfs.InputVDir getInputVDir ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileOrDirectoryException { java.io.File file = new java.io.File ( dir , path.getPathAsString ( java.io.File.separatorChar ) ) ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } if ( ! ( file.isFile ( ) ) ) { throw new com.android.sched.util.file.NotFileOrDirectoryException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } return new com.android.sched.vfs.InputOutputZipVDir ( vfs , file , new java.util.zip.ZipEntry ( path.getPathAsString ( com.android.sched.vfs.InputOutputZipVDir.ZIP_ENTRY_SEPARATOR ) ) ) ; }

Target:
public com.android.sched.vfs.InputVFile getInputVFile ( @ javax.annotation.Nonnull com.android.sched.vfs.VPath path ) throws com.android.sched.util.file.NoSuchFileException , com.android.sched.util.file.NotFileOrDirectoryException { java.io.File file = new java.io.File ( dir , path.getPathAsString ( java.io.File.separatorChar ) ) ; if ( ! ( file.exists ( ) ) ) { throw new com.android.sched.util.file.NoSuchFileException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } if ( ! ( file.isFile ( ) ) ) { throw new com.android.sched.util.file.NotFileOrDirectoryException ( new com.android.sched.util.location.FileLocation ( file ) ) ; } return new com.android.sched.vfs.InputOutputZipVFile ( vfs , file , new java.util.zip.ZipEntry ( path.getPathAsString ( ZipUtils.ZIP_SEPARATOR ) ) ) ; }
Source:
public void writeToParcel ( android.os.Parcel dest , int flags ) { if ( android.telephony.CellIdentityCdma.DBG ) android.telephony.CellIdentityCdma.log ( ( "writeToParcel(Parcel, int): " + ( toString ( ) ) ) ) ; dest.writeInt ( mNetworkId ) ; dest.writeInt ( mSystemId ) ; dest.writeInt ( mBasestationId ) ; dest.writeInt ( mLongitude ) ; dest.writeInt ( mLatitude ) ; dest.writeString ( mAlphaLong ) ; dest.writeString ( mAlphaShort ) ; }

Target:
public void writeToParcel ( android.os.Parcel dest , int flags ) { if ( android.telephony.CellIdentityCdma.DBG ) log ( ( "writeToParcel(Parcel, int): " + ( toString ( ) ) ) ) ; super . writeToParcel ( dest , android.telephony.TYPE_CDMA ) ; dest.writeInt ( mNetworkId ) ; dest.writeInt ( mSystemId ) ; dest.writeInt ( mBasestationId ) ; dest.writeInt ( mLongitude ) ; dest.writeInt ( mLatitude ) ; dest.writeString ( mAlphaLong ) ; dest.writeString ( mAlphaShort ) ; }
Source:
public static java.util.List < android.telecom.PhoneAccountHandle > getCallCapablePhoneAccounts ( android.content.Context context ) { if ( com.android.dialer.telecom.TelecomUtil.hasReadPhoneStatePermission ( context ) ) { return com.android.dialer.telecom.TelecomUtil.getTelecomManager ( context ) . getCallCapablePhoneAccounts ( ) ; } return new java.util.ArrayList < > ( ) ; }

Target:
public static java.util.List < android.telecom.PhoneAccountHandle > getCallCapablePhoneAccounts ( android.content.Context context ) { if ( com.android.dialer.telecom.TelecomUtil.hasReadPhoneStatePermission ( context ) ) { return com.google.common.base.Optional.fromNullable ( com.android.dialer.telecom.TelecomUtil.getTelecomManager ( context ) . getCallCapablePhoneAccounts ( ) ) . or ( new java.util.ArrayList < > ( ) ) ; } return new java.util.ArrayList < > ( ) ; }
Source:
public void testUpdateBatteryLevel_errorNegativeValue ( ) { int batteryLevel = - 1 ; org.junit.Assert.assertNull ( mRemoteDevices.getDeviceProperties ( mDevice1 ) ) ; mRemoteDevices.updateBatteryLevel ( mDevice1 , batteryLevel ) ; org.mockito.Mockito.verify ( mAdapterService , org.mockito.Mockito.never ( ) ) . sendBroadcast ( org.mockito.Mockito.any ( ) , org.mockito.Mockito.anyString ( ) ) ; org.junit.Assert.assertNull ( mRemoteDevices.getDeviceProperties ( mDevice1 ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAdapterService ) ; }

Target:
public void testUpdateBatteryLevel_errorNegativeValue ( ) { int batteryLevel = android.bluetooth.BluetoothDevice.BATTERY_LEVEL_UNKNOWN ; org.junit.Assert.assertNull ( mRemoteDevices.getDeviceProperties ( mDevice1 ) ) ; mRemoteDevices.updateBatteryLevel ( mDevice1 , batteryLevel ) ; org.mockito.Mockito.verify ( mAdapterService , org.mockito.Mockito.never ( ) ) . sendBroadcast ( org.mockito.Mockito.any ( ) , org.mockito.Mockito.anyString ( ) ) ; org.junit.Assert.assertNull ( mRemoteDevices.getDeviceProperties ( mDevice1 ) ) ; org.mockito.Mockito.verifyNoMoreInteractions ( mAdapterService ) ; }
Source:
public void onDialpadQueryChanged ( java.lang.String query ) { query = com.android.dialer.smartdial.util.SmartDialNameMatcher.normalizeNumber ( activity , query ) ; if ( ( searchFragment ) != null ) { searchFragment.setQuery ( query , CallInitiationType.Type.DIALPAD ) ; } dialpadFragment.process_quote_emergency_unquote ( query ) ; }

Target:
public void onDialpadQueryChanged ( java.lang.String query ) { java.lang.String normalizedQuery = com.android.dialer.smartdial.util.SmartDialNameMatcher.normalizeNumber ( activity , query ) ; if ( ( searchFragment ) != null ) { searchFragment.setRawNumber ( query ) ; searchFragment.setQuery ( normalizedQuery , CallInitiationType.Type.DIALPAD ) ; } dialpadFragment.process_quote_emergency_unquote ( normalizedQuery ) ; }
Source:
protected java.lang.Class < ? > findClass ( java.lang.String name ) throws java.lang.ClassNotFoundException { java.lang.Class clazz = pathList.findClass ( name ) ; if ( clazz == null ) { throw new java.lang.ClassNotFoundException ( name ) ; } return clazz ; }

Target:
protected java.lang.Class < ? > findClass ( java.lang.String name ) throws java.lang.ClassNotFoundException { java.lang.Class clazz = pathList.findClass ( name ) ; if ( clazz == null ) { throw new java.lang.ClassNotFoundException ( ( ( ( "Didn\'t find class \"" + name ) + "\" on path: " ) + ( originalPath ) ) ) ; } return clazz ; }
Source:
public void testAesCbcHmacSha384Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA384 , android.net.cts.IpSecManagerTest.getKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , null , false , 1 , true ) ; }

Target:
public void testAesCbcHmacSha384Udp6 ( ) 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_SHA384 , getAuthKey ( 384 ) , 192 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth , false , 1 , true ) ; }
Source:
public long getNetworkTotalBytes ( android.net.NetworkTemplate template , long start , long end ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_NETWORK_USAGE_HISTORY , com.android.server.net.NetworkStatsService.TAG ) ; assertBandwidthControlEnabled ( ) ; return internalGetSummaryForNetwork ( template , start , end , NetworkStatsAccess.Level.DEVICE ) . getTotalBytes ( ) ; }

Target:
public long getNetworkTotalBytes ( android.net.NetworkTemplate template , long start , long end ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_NETWORK_USAGE_HISTORY , com.android.server.net.NetworkStatsService.TAG ) ; assertBandwidthControlEnabled ( ) ; return internalGetSummaryForNetwork ( template , NetworkStatsManager.FLAG_AUGMENT_WITH_SUBSCRIPTION_PLAN , start , end , NetworkStatsAccess.Level.DEVICE , android.os.Binder.getCallingUid ( ) ) . getTotalBytes ( ) ; }
Source:
private boolean matchDSTString ( java.lang.String text , int start , int zoneIndex , int standardIndex , java.lang.String [ ] [ ] zoneStrings ) { int index = standardIndex + 2 ; java.lang.String zoneName = zoneStrings [ zoneIndex ] [ index ] ; if ( text.regionMatches ( true , start , zoneName , 0 , zoneName.length ( ) ) ) { return true ; } return false ; }

Target:
private int subParseZoneString ( java.lang.String text , int start , java.text.CalendarBuilder calb ) { if ( formatData.isZoneStringsSet ) { return subParseZoneStringFromSymbols ( text , start , calb ) ; } else { return subParseZoneStringFromICU ( text , start , calb ) ; } }