auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected java.util.Set < com.google.common.reflect.TypeToken < ? super T > > delegate ( ) { com.google.common.collect.ImmutableSet < com.google.common.reflect.TypeToken < ? super T > > filteredTypes = types ; if ( filteredTypes == null ) { @ java.lang.SuppressWarnings ( value = { "unchecked" , "rawtypes" } ) com.google.common.collect.ImmutableList < com.google.common.reflect.TypeToken < ? super T > > collectedTypes = ( ( com.google.common.collect.ImmutableList ) ( com.google.common.reflect.TypeToken.TypeCollector.FOR_GENERIC_TYPE.collectTypes ( this ) ) ) ; return types = com.google.common.collect.FluentIterable.from ( collectedTypes ) . filter ( com.google.common.reflect.TypeToken.TypeFilter.IGNORE_TYPE_VARIABLE_OR_WILDCARD ) . toImmutableSet ( ) ; } else { return filteredTypes ; } }

Target:
protected java.util.Set < com.google.common.reflect.TypeToken < ? super T > > delegate ( ) { com.google.common.collect.ImmutableSet < com.google.common.reflect.TypeToken < ? super T > > result = classes ; if ( result == null ) { @ java.lang.SuppressWarnings ( value = { "unchecked" , "rawtypes" } ) com.google.common.collect.ImmutableList < com.google.common.reflect.TypeToken < ? super T > > collectedTypes = ( ( com.google.common.collect.ImmutableList ) ( com.google.common.reflect.TypeToken.TypeCollector.FOR_GENERIC_TYPE.classesOnly ( ) . collectTypes ( this ) ) ) ; return classes = com.google.common.collect.FluentIterable.from ( collectedTypes ) . filter ( com.google.common.reflect.TypeToken.TypeFilter.IGNORE_TYPE_VARIABLE_OR_WILDCARD ) . toSet ( ) ; } else { return result ; } }
Source:
public void testMergeWrite ( ) throws java.lang.Exception { com.android.builder.resources.ResourceSet mergedSet = com.android.builder.resources.ResourceMergerTest.getMergedSet ( ) ; java.io.File folder = com.android.builder.resources.ResourceMergerTest.getWrittenSet ( ) ; com.android.builder.resources.ResourceSet writtenSet = new com.android.builder.resources.ResourceSet ( ) ; writtenSet.addSource ( folder ) ; assertEquals ( mergedSet.getSize ( ) , writtenSet.getSize ( ) ) ; java.util.Map < java.lang.String , com.android.builder.resources.Resource > map = writtenSet.getResourceMap ( ) ; for ( com.android.builder.resources.Resource item : mergedSet.getResources ( ) ) { assertNotNull ( map.get ( item.getKey ( ) ) ) ; } }

Target:
public void testReplacedFile ( ) throws java.lang.Exception { com.android.builder.resources.ResourceMerger merger = com.android.builder.resources.ResourceMergerTest.getResourceMerger ( ) ; com.google.common.collect.ListMultimap < java.lang.String , com.android.builder.resources.Resource > mergedMap = merger.getResourceMap ( ) ; java.util.List < com.android.builder.resources.Resource > values = mergedMap.get ( "layout/file_replaced_by_alias" ) ; assertEquals ( 2 , values.size ( ) ) ; com.android.builder.resources.Resource layout = values.get ( 1 ) ; assertNotNull ( layout.getValue ( ) ) ; }
Source:
private static java.util.Set < java.lang.String > getDisabledCapabilities ( @ android.annotation.Nullable android.os.PersistableBundle bundle ) { if ( bundle == null ) { return null ; } if ( ! ( bundle.containsKey ( com.android.phone.vvm.omtp.OmtpVvmCarrierConfigHelper.KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY ) ) ) { return null ; } android.util.ArraySet < java.lang.String > result = new android.util.ArraySet < java.lang.String > ( ) ; result.addAll ( java.util.Arrays.asList ( bundle.getStringArray ( com.android.phone.vvm.omtp.OmtpVvmCarrierConfigHelper.KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY ) ) ) ; return result ; }

Target:
private static java.util.Set < java.lang.String > getDisabledCapabilities ( @ android.annotation.Nullable android.os.PersistableBundle bundle ) { if ( bundle == null ) { return null ; } if ( ! ( bundle.containsKey ( com.android.phone.vvm.omtp.OmtpVvmCarrierConfigHelper.KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY ) ) ) { return null ; } java.lang.String [ ] disabledCapabilities = bundle.getStringArray ( com.android.phone.vvm.omtp.OmtpVvmCarrierConfigHelper.KEY_VVM_DISABLED_CAPABILITIES_STRING_ARRAY ) ; if ( ( disabledCapabilities != null ) && ( ( disabledCapabilities.length ) > 0 ) ) { android.util.ArraySet < java.lang.String > result = new android.util.ArraySet ( ) ; java.util.Collections.addAll ( result , disabledCapabilities ) ; return result ; } return null ; }
Source:
public void test_getClientAliases ( ) { init ( tests.api.javax.net.ssl.X509KeyManagerTest.CLIENT ) ; assertNull ( manager.getClientAliases ( null , null ) ) ; assertNull ( manager.getClientAliases ( "" , null ) ) ; java.lang.String [ ] resArray = manager.getClientAliases ( tests.api.javax.net.ssl.X509KeyManagerTest.TYPE_RSA , null ) ; assertNotNull ( resArray ) ; assertEquals ( 3 , resArray.length ) ; assertKnownAliases ( resArray ) ; }

Target:
public void test_getClientAliases ( ) { init ( org.apache.harmony.tests.javax.net.ssl.X509KeyManagerTest.CLIENT ) ; assertNull ( manager.getClientAliases ( null , null ) ) ; assertNull ( manager.getClientAliases ( "" , null ) ) ; java.lang.String [ ] resArray = manager.getClientAliases ( org.apache.harmony.tests.javax.net.ssl.X509KeyManagerTest.TYPE_RSA , null ) ; assertNotNull ( resArray ) ; assertEquals ( 3 , resArray.length ) ; assertKnownAliases ( resArray ) ; }
Source:
public com.android.internal.telephony.InboundSmsTracker makeInboundSmsTracker ( byte [ ] pdu , long timestamp , int destPort , boolean is3gpp2 , boolean is3gpp2WapPdu , java.lang.String address , java.lang.String messageBody ) { return new com.android.internal.telephony.InboundSmsTracker ( pdu , timestamp , destPort , is3gpp2 , is3gpp2WapPdu , address , messageBody ) ; }

Target:
public com.android.internal.telephony.InboundSmsTracker makeInboundSmsTracker ( byte [ ] pdu , long timestamp , int destPort , boolean is3gpp2 , boolean is3gpp2WapPdu , java.lang.String address , java.lang.String displayAddr , java.lang.String messageBody ) { return new com.android.internal.telephony.InboundSmsTracker ( pdu , timestamp , destPort , is3gpp2 , is3gpp2WapPdu , address , displayAddr , messageBody ) ; }
Source:
public boolean containsValue ( java.lang.Object o ) { return values ( ) . contains ( o ) ; }

Target:
public java.util.Map < K , java.util.Collection < V > > asMap ( ) { java.util.Map < K , java.util.Collection < V > > result = map ; if ( result == null ) { result = map = java.util.Collections.unmodifiableMap ( com.google.common.collect.Maps.transformValues ( delegate.asMap ( ) , new com.google.common.base.Function < java.util.Collection < V > , java.util.Collection < V > > ( ) { @ java.lang.Override public java.util.Collection < V > apply ( java.util.Collection < V > collection ) { return com.google.common.collect.Multimaps.unmodifiableValueCollection ( collection ) ; } } ) ) ; } return result ; }
Source:
public void noCrashClassObj ( ) throws java.io.IOException { com.android.ahat.TestDump dump = com.android.ahat.TestDump.getTestDump ( ) ; com.android.ahat.heapdump.AhatSnapshot snapshot = dump.getAhatSnapshot ( ) ; com.android.ahat.AhatHandler handler = new com.android.ahat.ObjectHandler ( snapshot ) ; com.android.ahat.heapdump.AhatInstance object = snapshot.findClass ( "Main" ) ; org.junit.Assert.assertNotNull ( object ) ; com.android.ahat.TestHandler.testNoCrash ( handler , ( "http://localhost:7100/object?id=" + ( object.getId ( ) ) ) ) ; }

Target:
public void noCrashClassObj ( ) throws java.io.IOException { com.android.ahat.TestDump dump = com.android.ahat.TestDump.getTestDump ( ) ; com.android.ahat.heapdump.AhatSnapshot snapshot = dump.getAhatSnapshot ( ) ; com.android.ahat.AhatHandler handler = new com.android.ahat.ObjectHandler ( snapshot ) ; com.android.ahat.heapdump.AhatInstance object = dump.findClass ( "Main" ) ; org.junit.Assert.assertNotNull ( object ) ; com.android.ahat.TestHandler.testNoCrash ( handler , ( "http://localhost:7100/object?id=" + ( object.getId ( ) ) ) ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String [ ] pkgs = intent.getStringArrayExtra ( Intent.EXTRA_PACKAGES ) ; if ( pkgs != null ) { for ( java.lang.String pkg : pkgs ) { synchronized ( this ) { if ( forceStopPackageLocked ( pkg , ( - 1 ) , false , false , false ) ) { setResultCode ( Activity.RESULT_OK ) ; return ; } } } } }

Target:
public void revokeUriPermissionFromOwner ( android.os.IBinder token , android.net.Uri uri , int mode ) { synchronized ( this ) { com.android.server.am.UriPermissionOwner owner = com.android.server.am.UriPermissionOwner.fromExternalToken ( token ) ; if ( owner == null ) { throw new java.lang.IllegalArgumentException ( ( "Unknown owner: " + token ) ) ; } if ( uri == null ) { owner.removeUriPermissionsLocked ( mode ) ; } else { owner.removeUriPermissionLocked ( uri , mode ) ; } } }
Source:
public void testAbiOnlyWithNoMatch ( ) { java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "foo" , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "bar" , 2 ) ) ; java.util.List < com.android.build.OutputFile > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertEquals ( 0 , result.size ( ) ) ; }

Target:
public void testAbiOnlyWithNoMatch ( ) throws com.android.ide.common.process.ProcessException { java.util.List < com.android.build.VariantOutput > list = com.google.common.collect.Lists.newArrayList ( ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "foo" , 1 ) ) ; list.add ( com.android.ide.common.build.SplitOutputMatcherTest.getAbiOutput ( "bar" , 2 ) ) ; java.util.List < java.io.File > result = com.android.ide.common.build.SplitOutputMatcherTest.computeBestOutput ( list , 160 , "zzz" ) ; assertEquals ( 0 , result.size ( ) ) ; }
Source:
public int invokeOemRilRequestRaw ( byte [ ] oemReq , byte [ ] oemResp ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.invokeOemRilRequestRaw ( oemReq , oemResp ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return - 1 ; }

Target:
public boolean setNetworkSelectionModeManual ( java.lang.String operatorNumeric , boolean persistSelection ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.setNetworkSelectionModeManual ( getSubId ( ) , operatorNumeric , persistSelection ) ; } } catch ( android.os.RemoteException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeManual RemoteException" , ex ) ; } catch ( java.lang.NullPointerException ex ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , "setNetworkSelectionModeManual NPE" , ex ) ; } return false ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JArrayLiteral arrayLiteral ) { java.util.List < com.android.jack.ir.ast.JLiteral > values = arrayLiteral.getValues ( ) ; if ( ( values.size ( ) ) > 1 ) { print ( '{' ) ; } visitCollectionWithCommas ( values.iterator ( ) ) ; if ( ( values.size ( ) ) > 1 ) { print ( '}' ) ; } return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JField x ) { print ( com.android.jack.ir.ast.JModifier.getStringFieldModifier ( x.getModifier ( ) ) ) ; printType ( x ) ; space ( ) ; printName ( x ) ; return false ; }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , long [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 8 ) ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , java.lang.Object array ) { copy2DRangeFromUnchecked ( xoff , yoff , w , h , array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; }
Source:
public void setVoicemailTranscriptionEnabled ( android.content.Context context , android.telecom.PhoneAccountHandle phoneAccountHandle , boolean enabled ) { com.android.dialer.common.Assert.checkArgument ( isVoicemailTranscriptionAvailable ( context , phoneAccountHandle ) , "transcription must be available before enabling/disabling it" ) ; com.android.voicemail.impl.settings.VisualVoicemailSettingsUtil.setVoicemailTranscriptionEnabled ( context , phoneAccountHandle , enabled ) ; }

Target:
public void setVoicemailTranscriptionEnabled ( android.content.Context context , android.telecom.PhoneAccountHandle phoneAccountHandle , boolean enabled ) { com.android.dialer.common.Assert.checkArgument ( isVoicemailTranscriptionAvailable ( context , phoneAccountHandle ) , "transcription must be available before enabling/disabling it" ) ; com.android.voicemail.impl.settings.VisualVoicemailSettingsUtil.setVoicemailTranscriptionEnabled ( context , phoneAccountHandle , enabled ) ; if ( enabled ) { com.android.voicemail.impl.transcribe.TranscriptionBackfillService.scheduleTask ( context , phoneAccountHandle ) ; } }
Source:
public static com.intellij.execution.ui.ConsoleView createAndAttachConsole ( @ org.jetbrains.annotations.NotNull final java.lang.String testFrameworkName , @ org.jetbrains.annotations.NotNull final com.intellij.execution.process.ProcessHandler processHandler , @ org.jetbrains.annotations.NotNull final com.intellij.execution.configurations.CommandLineState commandLineState , @ org.jetbrains.annotations.NotNull final com.intellij.execution.configurations.ModuleRunConfiguration config , @ org.jetbrains.annotations.NotNull final com.intellij.execution.Executor executor ) throws com.intellij.execution.ExecutionException { final com.intellij.execution.testframework.TestConsoleProperties consoleProperties = new com.intellij.execution.testframework.sm.runner.SMTRunnerConsoleProperties ( config , testFrameworkName , executor ) ; return com.google.gct.testing.results.GoogleCloudTestResultsConnectionUtil.createAndAttachConsole ( testFrameworkName , processHandler , consoleProperties , commandLineState.getEnvironment ( ) ) ; }

Target:
public static com.intellij.execution.testframework.ui.BaseTestsOutputConsoleView createConsole ( @ org.jetbrains.annotations.NotNull final java.lang.String testFrameworkName , @ org.jetbrains.annotations.NotNull final com.intellij.execution.testframework.TestConsoleProperties consoleProperties , com.intellij.execution.runners.ExecutionEnvironment environment , @ org.jetbrains.annotations.NotNull final com.google.gct.testing.CloudMatrixExecutionCancellator matrixExecutionCancellator ) { return com.google.gct.testing.results.GoogleCloudTestResultsConnectionUtil.createConsoleWithCustomLocator ( testFrameworkName , consoleProperties , environment , null , matrixExecutionCancellator ) ; }
Source:
void stopScan ( com.android.bluetooth.gatt.ScanClient client ) { enforceAdminPermission ( ) ; int scanQueueSize = ( mScanManager.getBatchScanQueue ( ) . size ( ) ) + ( mScanManager.getRegularScanQueue ( ) . size ( ) ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "stopScan() - queue size =" + scanQueueSize ) ) ; mScanManager.stopScan ( client ) ; }

Target:
void stopScan ( com.android.bluetooth.gatt.ScanClient client ) { enforceAdminPermission ( ) ; int scanQueueSize = ( mScanManager.getBatchScanQueue ( ) . size ( ) ) + ( mScanManager.getRegularScanQueue ( ) . size ( ) ) ; if ( com.android.bluetooth.gatt.GattService.DBG ) android.util.Log.d ( com.android.bluetooth.gatt.GattService.TAG , ( "stopScan() - queue size =" + scanQueueSize ) ) ; mClientMap.getScanStatsById ( client.clientIf ) . stopScan ( ) ; mScanManager.stopScan ( client ) ; }
Source:
private void createStateVariation ( com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationChooser chooser , com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configuration parent ) { com.android.sdklib.devices.State currentState = parent.getDeviceState ( ) ; com.android.sdklib.devices.State nextState = parent.getNextDeviceState ( currentState ) ; if ( nextState != currentState ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.ComplementingConfiguration configuration = com.android.ide.eclipse.adt.internal.editors.layout.configuration.ComplementingConfiguration.create ( chooser , parent ) ; configuration.setOverrideDeviceState ( true ) ; configuration.setDeviceState ( nextState , false ) ; addPreview ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreview.create ( this , configuration ) ) ; } }

Target:
private void createStateVariation ( com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationChooser chooser , com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configuration parent ) { com.android.sdklib.devices.State currentState = parent.getDeviceState ( ) ; com.android.sdklib.devices.State nextState = parent.getNextDeviceState ( currentState ) ; if ( nextState != currentState ) { com.android.ide.eclipse.adt.internal.editors.layout.configuration.VaryingConfiguration configuration = com.android.ide.eclipse.adt.internal.editors.layout.configuration.VaryingConfiguration.create ( chooser , parent ) ; configuration.setAlternateDeviceState ( true ) ; configuration.syncFolderConfig ( ) ; addPreview ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreview.create ( this , configuration ) ) ; } }
Source:
public boolean isPeripheralModeSupported ( ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return false ; try { return mService.isPeripheralModeSupported ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "failed to get peripheral mode capability: " , e ) ; } return false ; }

Target:
public long getDiscoveryEndMillis ( ) { try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) return mService.getDiscoveryEndMillis ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } return - 1 ; }
Source:
public void onViewHolderExpanded ( com.android.dialer.voicemail.listui.NewVoicemailViewHolder expandedViewHolder ) { currentlyExpandedViewHolderId = expandedViewHolder.getViewHolderId ( ) ; for ( com.android.dialer.voicemail.listui.NewVoicemailViewHolder viewHolder : newVoicemailViewHolderSet ) { if ( ! ( viewHolder.equals ( expandedViewHolder ) ) ) { viewHolder.collapseViewHolder ( ) ; } } }

Target:
public void collapseExpandedViewHolder ( com.android.dialer.voicemail.listui.NewVoicemailViewHolder collapseViewHolder ) { com.android.dialer.common.Assert.checkArgument ( ( ( collapseViewHolder.getViewHolderId ( ) ) == ( currentlyExpandedViewHolderId ) ) ) ; collapseViewHolder.collapseViewHolder ( ) ; currentlyExpandedViewHolderId = - 1 ; if ( mediaPlayer.isPlaying ( ) ) { com.android.dialer.common.Assert.checkArgument ( java.util.Objects.equals ( mediaPlayer.getLastPlayedOrPlayingVoicemailUri ( ) , collapseViewHolder.getViewHolderVoicemailUri ( ) ) , "the voicemail being played should have been of the recently collapsed view holder." ) ; mediaPlayer.reset ( ) ; } }
Source:
public void setUp ( ) { helper.setUp ( ) ; com.android.vts.util.ProfilingPointSummaryTest.summary = new com.android.vts.util.ProfilingPointSummary ( ) ; com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode mode = com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode.VTS_REGRESSION_MODE_INCREASING ; com.android.vts.entity.ProfilingPointRunEntity pt = com.android.vts.util.ProfilingPointSummaryTest.createProfilingReport ( com.android.vts.util.ProfilingPointSummaryTest.labels , com.android.vts.util.ProfilingPointSummaryTest.values , mode ) ; com.android.vts.util.ProfilingPointSummaryTest.summary.update ( pt ) ; }

Target:
public void setUp ( ) { helper.setUp ( ) ; com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode mode = com.android.vts.proto.VtsReportMessage.VtsProfilingRegressionMode.VTS_REGRESSION_MODE_INCREASING ; com.android.vts.util.ProfilingPointSummaryTest.summary = new com.android.vts.util.ProfilingPointSummary ( "x" , "y" , mode ) ; com.android.vts.entity.ProfilingPointSummaryEntity pt = com.android.vts.util.ProfilingPointSummaryTest.createProfilingReport ( com.android.vts.util.ProfilingPointSummaryTest.labels , com.android.vts.util.ProfilingPointSummaryTest.values , mode ) ; com.android.vts.util.ProfilingPointSummaryTest.summary.update ( pt ) ; }
Source:
public void setVideoProvider ( java.lang.String callId , com.android.internal.telecom.IVideoProvider videoProvider , android.telecom.Logging.Session.Info sessionInfo ) { java.lang.String callingPackage = mOurConnectionServiceImpl.getApplicationContext ( ) . getOpPackageName ( ) ; android.telecom.RemoteConnection.VideoProvider remoteVideoProvider = null ; if ( videoProvider != null ) { remoteVideoProvider = new android.telecom.RemoteConnection.VideoProvider ( videoProvider , callingPackage ) ; } findConnectionForAction ( callId , "setVideoProvider" ) . setVideoProvider ( remoteVideoProvider ) ; }

Target:
public void setVideoProvider ( java.lang.String callId , com.android.internal.telecom.IVideoProvider videoProvider , android.telecom.Logging.Session.Info sessionInfo ) { java.lang.String callingPackage = mOurConnectionServiceImpl.getApplicationContext ( ) . getOpPackageName ( ) ; int targetSdkVersion = mOurConnectionServiceImpl.getApplicationInfo ( ) . targetSdkVersion ; android.telecom.RemoteConnection.VideoProvider remoteVideoProvider = null ; if ( videoProvider != null ) { remoteVideoProvider = new android.telecom.RemoteConnection.VideoProvider ( videoProvider , callingPackage , targetSdkVersion ) ; } findConnectionForAction ( callId , "setVideoProvider" ) . setVideoProvider ( remoteVideoProvider ) ; }
Source:
public java.lang.String getIsimImpi ( ) { com.android.internal.telephony.Phone phone = getPhone ( getDefaultSubscription ( ) ) ; mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , "Requires READ_PRIVILEGED_PHONE_STATE" ) ; com.android.internal.telephony.uicc.IsimRecords isim = phone.getIsimRecords ( ) ; if ( isim != null ) { return isim.getIsimImpi ( ) ; } else { return null ; } }

Target:
public java.lang.String getIsimImpi ( int subId ) { com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { mContext.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE , "Requires READ_PRIVILEGED_PHONE_STATE" ) ; com.android.internal.telephony.uicc.IsimRecords isim = phone.getIsimRecords ( ) ; if ( isim != null ) { return isim.getIsimImpi ( ) ; } else { return null ; } } else { loge ( ( "getIsimImpi phone is null for Subscription:" + subId ) ) ; return null ; } }
Source:
public boolean resetRoamingConfiguration ( ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "resetRoamingConfiguration " ) ; try { if ( ( mWifiVendorHal ) != null ) { com.android.server.wifi.WifiNative.RoamingConfig config = new com.android.server.wifi.WifiNative.RoamingConfig ( ) ; return mWifiVendorHal.configureRoaming ( config ) ; } } catch ( java.lang.UnsupportedOperationException e ) { } return false ; }

Target:
public boolean resetRoamingConfiguration ( ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , "resetRoamingConfiguration " ) ; if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.configureRoaming ( new com.android.server.wifi.WifiNative.RoamingConfig ( ) ) ; } else { android.util.Log.e ( com.android.server.wifi.WifiNative.TAG , "resetRoamingConfiguration not supported" ) ; return false ; } }
Source:
public void update ( final com.intellij.openapi.actionSystem.AnActionEvent e ) { final com.intellij.openapi.actionSystem.Presentation presentation = e.getPresentation ( ) ; presentation.setEnabled ( ( ( com.google.gct.testing.ShowScreenshotsAction.getSelectedTestProxy ( e ) ) != null ) ) ; }

Target:
public void update ( com.intellij.openapi.actionSystem.AnActionEvent actionEvent ) { com.google.gct.testing.results.GoogleCloudTestTreeView sender = actionEvent.getData ( GoogleCloudTestTreeView.CLOUD_TEST_RUNNER_VIEW ) ; if ( sender == null ) { return ; } com.intellij.execution.testframework.AbstractTestProxy selectedNode = ( ( com.google.gct.testing.results.GoogleCloudTestingResultsForm ) ( sender.getResultsViewer ( ) ) ) . getTreeView ( ) . getSelectedTest ( ) ; if ( ( selectedNode == null ) || ( selectedNode instanceof com.google.gct.testing.results.GoogleCloudTestProxy.GoogleCloudRootTestProxy ) ) { actionEvent.getPresentation ( ) . setEnabled ( false ) ; } else { actionEvent.getPresentation ( ) . setEnabled ( true ) ; } }
Source:
private java.lang.String getRawScanResults ( java.lang.String range ) { return doStringCommandWithoutLogging ( ( ( "BSS RANGE=" + range ) + " MASK=0x21d97" ) ) ; }

Target:
public java.lang.String getMacAddress ( ) { if ( com.android.server.wifi.WifiNative.HIDL_SUP_ENABLE ) { return mSupplicantStaIfaceHal.getMacAddress ( ) ; } else { java.lang.String ret = doStringCommand ( "DRIVER MACADDR" ) ; if ( ! ( android.text.TextUtils.isEmpty ( ret ) ) ) { java.lang.String [ ] tokens = ret.split ( " = " ) ; if ( ( tokens.length ) == 2 ) return tokens [ 1 ] ; } return null ; } }
Source:
byte [ ] getLocaleData ( ) { android.content.res.Configuration conf = mContext.getResources ( ) . getConfiguration ( ) ; final java.util.Locale loc = conf.locale ; java.lang.String localeString = loc.getLanguage ( ) ; java.lang.String country = loc.getCountry ( ) ; if ( ! ( android.text.TextUtils.isEmpty ( country ) ) ) { localeString += "_" + country ; } return localeString.getBytes ( ) ; }

Target:
byte [ ] getLocaleData ( ) { android.content.res.Configuration conf = mContext.getResources ( ) . getConfiguration ( ) ; final java.util.Locale loc = conf.locale ; java.lang.String localeString = loc.getLanguage ( ) ; java.lang.String country = loc.getCountry ( ) ; if ( ! ( android.text.TextUtils.isEmpty ( country ) ) ) { localeString += "-" + country ; } return localeString.getBytes ( ) ; }
Source:
public void dumpShowsLastFailureTraceAndCurrentConnectionTrace ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( BaseWifiDiagnostics.CONNECTION_EVENT_STARTED ) ; android.os.FileUtils.stringToFile ( mTraceDataFile.getPath ( ) , "rdev_connect try #1" ) ; mLastMileLogger.reportConnectionEvent ( BaseWifiDiagnostics.CONNECTION_EVENT_FAILED ) ; mLastMileLogger.reportConnectionEvent ( BaseWifiDiagnostics.CONNECTION_EVENT_STARTED ) ; android.os.FileUtils.stringToFile ( mTraceDataFile.getPath ( ) , "rdev_connect try #2" ) ; mLastMileLogger.reportConnectionEvent ( BaseWifiDiagnostics.CONNECTION_EVENT_SUCCEEDED ) ; java.lang.String dumpString = getDumpString ( ) ; org.junit.Assert.assertTrue ( dumpString.contains ( "rdev_connect try #1" ) ) ; org.junit.Assert.assertTrue ( dumpString.contains ( "rdev_connect try #2" ) ) ; }

Target:
public void dumpDoesNotClearLastFailureData ( ) throws java.lang.Exception { mLastMileLogger.reportConnectionEvent ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID , BaseWifiDiagnostics.CONNECTION_EVENT_STARTED ) ; android.os.FileUtils.stringToFile ( mTraceDataFile.getPath ( ) , "rdev_connect" ) ; mLastMileLogger.reportConnectionEvent ( com.android.server.wifi.LastMileLoggerTest.FAKE_CONNECTION_ID , BaseWifiDiagnostics.CONNECTION_EVENT_FAILED ) ; getDumpString ( ) ; java.lang.String dumpString = getDumpString ( ) ; org.junit.Assert.assertTrue ( dumpString.contains ( "rdev_connect" ) ) ; }
Source:
void updateThumbnail ( android.graphics.Bitmap newThumbnail , java.lang.CharSequence description ) { if ( newThumbnail != null ) { if ( ActivityManagerService.DEBUG_THUMBNAILS ) android.util.Slog.i ( ActivityManagerService.TAG , ( ( ( "Setting thumbnail of " + ( this ) ) + " to " ) + newThumbnail ) ) ; boolean thumbnailUpdated = task.setLastThumbnail ( newThumbnail ) ; if ( thumbnailUpdated && ( isPersistable ( ) ) ) { mStackSupervisor.mService.notifyTaskPersisterLocked ( task , false ) ; } } task.lastDescription = description ; }

Target:
void updateThumbnailLocked ( android.graphics.Bitmap newThumbnail , java.lang.CharSequence description ) { if ( newThumbnail != null ) { if ( ActivityManagerService.DEBUG_THUMBNAILS ) android.util.Slog.i ( ActivityManagerService.TAG , ( ( ( "Setting thumbnail of " + ( this ) ) + " to " ) + newThumbnail ) ) ; boolean thumbnailUpdated = task.setLastThumbnail ( newThumbnail ) ; if ( thumbnailUpdated && ( isPersistable ( ) ) ) { mStackSupervisor.mService.notifyTaskPersisterLocked ( task , false ) ; } } task.lastDescription = description ; }
Source:
public void dump ( java.io.FileDescriptor fd , java.io.PrintWriter pw , java.lang.String [ ] args ) { pw.println ( "WifiNanDataPathStateManager:" ) ; pw.println ( ( " mInterfaces: " + ( mInterfaces ) ) ) ; pw.println ( ( " mNetworkCapabilitiesFilter: " + ( mNetworkCapabilitiesFilter ) ) ) ; pw.println ( ( " mNetworkRequestsCache: " + ( mNetworkRequestsCache ) ) ) ; pw.println ( " mNetworkFactory:" ) ; mNetworkFactory.dump ( fd , pw , args ) ; }

Target:
public void dump ( java.io.FileDescriptor fd , java.io.PrintWriter pw , java.lang.String [ ] args ) { pw.println ( "WifiAwareDataPathStateManager:" ) ; pw.println ( ( " mInterfaces: " + ( mInterfaces ) ) ) ; pw.println ( ( " mNetworkCapabilitiesFilter: " + ( mNetworkCapabilitiesFilter ) ) ) ; pw.println ( ( " mNetworkRequestsCache: " + ( mNetworkRequestsCache ) ) ) ; pw.println ( " mNetworkFactory:" ) ; mNetworkFactory.dump ( fd , pw , args ) ; }
Source:
public void createAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , int appId , java.lang.String seInfo , int targetSdkVersion ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.createAppData ( uuid , packageName , userId , flags , appId , seInfo , targetSdkVersion ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void createAppData ( java.lang.String uuid , java.lang.String packageName , int userId , int flags , int appId , java.lang.String seInfo , int targetSdkVersion ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.createAppData ( uuid , packageName , userId , flags , appId , seInfo , targetSdkVersion ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public java.lang.String getUrl ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.String ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.String > ( ) { @ java.lang.Override public java.lang.String call ( ) { return getUrl ( ) ; } } ) ; return ret ; } java.lang.String url = mAwContents.getUrl ( ) ; if ( ( url == null ) || ( url.trim ( ) . isEmpty ( ) ) ) return null ; return url ; }

Target:
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 ) ; }
Source:
void enqueueEvent ( java.lang.Object event , com.google.common.eventbus.EventHandler handler ) { eventsToDispatch.get ( ) . offer ( new com.google.common.eventbus.EventBus.EventWithHandler ( event , handler ) ) ; }

Target:
void dispatchQueuedEvents ( ) { if ( isDispatching.get ( ) ) { return ; } isDispatching.set ( true ) ; try { java.util.Queue < com.google.common.eventbus.EventBus.EventWithSubscriber > events = eventsToDispatch.get ( ) ; com.google.common.eventbus.EventBus.EventWithSubscriber eventWithSubscriber ; while ( ( eventWithSubscriber = events.poll ( ) ) != null ) { dispatch ( eventWithSubscriber.event , eventWithSubscriber.subscriber ) ; } } finally { isDispatching.remove ( ) ; eventsToDispatch.remove ( ) ; } }
Source:
public void setStatusHints ( java.lang.String callId , android.telecom.StatusHints statusHints ) { android.telecom.Log.startSession ( "CSW.sSH" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setStatusHints %s %s" , callId , statusHints ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.setStatusHints ( statusHints ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }

Target:
public void setStatusHints ( java.lang.String callId , android.telecom.StatusHints statusHints , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.Log.startSession ( sessionInfo , "CSW.sSH" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { logIncoming ( "setStatusHints %s %s" , callId , statusHints ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.setStatusHints ( statusHints ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
public void testPocBug_35216793 ( ) throws java.lang.Exception { enableAdbRoot ( getDevice ( ) ) ; if ( containsDriver ( getDevice ( ) , "/dev/v4l-subdev*" ) ) { android.security.cts.AdbUtils.runPocNoOutput ( "Bug-35216793" , getDevice ( ) , 60 ) ; } }

Target:
public void testPocBug_35644815 ( ) throws java.lang.Exception { enableAdbRoot ( getDevice ( ) ) ; if ( containsDriver ( getDevice ( ) , "/sys/kernel/debug/ion/clients/pids/" ) ) { java.lang.String pocOut = android.security.cts.AdbUtils.runPoc ( "Bug-35644815" , getDevice ( ) , 60 ) ; assertNotMatches ( "[\\s\\n\\S]*INFO DISC FLAG[\\s\\n\\S]*" , pocOut ) ; } }
Source:
public void testRoamingDataIcon ( ) { setupDefaultSignal ( ) ; setGsmRoaming ( true ) ; verifyLastMobileDataIndicators ( true , TelephonyIcons.TELEPHONY_SIGNAL_STRENGTH_ROAMING [ 1 ] [ DEFAULT_LEVEL ] , TelephonyIcons.ROAMING_ICON ) ; verifyLastQsMobileDataIndicators ( true , TelephonyIcons.QS_TELEPHONY_SIGNAL_STRENGTH [ 1 ] [ DEFAULT_LEVEL ] , TelephonyIcons.QS_DATA_R , false , false ) ; }

Target:
public void testDataDisabledIcon ( ) { setupNetworkController ( ) ; org.mockito.Mockito.when ( mMockTm.getDataEnabled ( mSubId ) ) . thenReturn ( false ) ; setupDefaultSignal ( ) ; updateDataConnectionState ( TelephonyManager.DATA_DISCONNECTED , 0 ) ; setConnectivity ( NetworkCapabilities.TRANSPORT_CELLULAR , false , false ) ; verifyDataIndicators ( TelephonyIcons.ICON_DATA_DISABLED , TelephonyIcons.QS_ICON_DATA_DISABLED ) ; }
Source:
public static com.android.manifmerger.XmlDocument load ( com.android.manifmerger.KeyResolver < java.lang.String > selectors , com.android.manifmerger.PlaceholderHandler.KeyBasedValueResolver < com.android.manifmerger.ManifestMerger2.SystemProperty > systemPropertyResolver , com.android.manifmerger.XmlLoader.SourceLocation sourceLocation , java.lang.String xml , com.android.manifmerger.XmlDocument.Type type ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( xml ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , sourceLocation , selectors , systemPropertyResolver , domDocument.getDocumentElement ( ) , type ) : null ; }

Target:
public static com.android.manifmerger.XmlDocument load ( com.android.manifmerger.KeyResolver < java.lang.String > selectors , com.android.manifmerger.PlaceholderHandler.KeyBasedValueResolver < com.android.manifmerger.ManifestMerger2.SystemProperty > systemPropertyResolver , com.android.manifmerger.XmlLoader.SourceLocation sourceLocation , java.lang.String xml , com.android.manifmerger.XmlDocument.Type type , com.google.common.base.Optional < java.lang.String > mainManifestPackageName ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( xml ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , sourceLocation , selectors , systemPropertyResolver , domDocument.getDocumentElement ( ) , type , mainManifestPackageName ) : null ; }
Source:
public void systemReady ( ) { if ( ( mKeyguardMediator ) != null ) { mKeyguardMediator.onSystemReady ( ) ; } synchronized ( mLock ) { updateOrientationListenerLp ( ) ; mSystemReady = true ; mHandler.post ( new java.lang.Runnable ( ) { public void run ( ) { updateSettings ( ) ; } } ) ; } }

Target:
public void dismissKeyguardLw ( ) { if ( mKeyguardMediator.isShowing ( ) ) { mHandler.post ( new java.lang.Runnable ( ) { public void run ( ) { if ( mKeyguardMediator.isDismissable ( ) ) { mKeyguardMediator.keyguardDone ( false , true ) ; } else { mKeyguardMediator.dismiss ( ) ; } } } ) ; } }
Source:
public void testBatchAndFlush ( ) throws java.lang.Exception { try { mWakeLock.acquire ( ) ; for ( android.hardware.Sensor sensor : mSensorList ) { if ( ( sensor.getReportingMode ( ) ) != ( android.hardware.Sensor.REPORTING_MODE_ONE_SHOT ) ) { registerListenerCallFlush ( sensor , null ) ; } } } finally { mWakeLock.release ( ) ; } }

Target:
public void testBatchAndFlush ( ) throws java.lang.Exception { java.util.ArrayList < java.lang.Throwable > errorsFound = new java.util.ArrayList < > ( ) ; for ( android.hardware.Sensor sensor : mSensorList ) { verifyRegisterListenerCallFlush ( sensor , null , errorsFound ) ; } assertOnErrors ( errorsFound ) ; }
Source:
private void forgetNetworkAndVerifySuccess ( ) throws java.lang.Exception { when ( mWifiNative.removeNetwork ( 0 ) ) . thenReturn ( true ) ; mLooper.startAutoDispatch ( ) ; final android.os.Message result = mWsmAsyncChannel.sendMessageSynchronously ( WifiManager.FORGET_NETWORK , 0 ) ; mLooper.stopAutoDispatch ( ) ; org.junit.Assert.assertEquals ( WifiManager.FORGET_NETWORK_SUCCEEDED , result.what ) ; result.recycle ( ) ; mLooper.startAutoDispatch ( ) ; org.junit.Assert.assertTrue ( mWsm.syncGetConfiguredNetworks ( ( - 1 ) , mWsmAsyncChannel ) . isEmpty ( ) ) ; mLooper.stopAutoDispatch ( ) ; }

Target:
public void connectionFailureDoesNotSetHasEverConnectedTrue ( ) throws java.lang.Exception { testDhcpFailure ( ) ; verify ( mWifiConfigManager , never ( ) ) . updateNetworkAfterConnect ( 0 ) ; }
Source:
public void setPlaybackInfoForRcc ( int rccId , int what , int value ) { mMediaFocusControl.setPlaybackInfoForRcc ( rccId , what , value ) ; }

Target:
private void makeA2dpDeviceUnavailableNow ( java.lang.String address ) { synchronized ( mA2dpAvrcpLock ) { mAvrcpAbsVolSupported = false ; } android.media.AudioSystem.setDeviceConnectionState ( AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP , AudioSystem.DEVICE_STATE_UNAVAILABLE , address ) ; mConnectedDevices.remove ( AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP ) ; synchronized ( mCurAudioRoutes ) { if ( ( mCurAudioRoutes.mBluetoothName ) != null ) { mCurAudioRoutes.mBluetoothName = null ; android.media.AudioService.sendMsg ( mAudioHandler , android.media.AudioService.MSG_REPORT_NEW_ROUTES , android.media.AudioService.SENDMSG_NOOP , 0 , 0 , null , 0 ) ; } } }
Source:
public java.lang.String describeFirstNonRequestableCapability ( ) { if ( hasCapability ( android.net.NetworkCapabilities.NET_CAPABILITY_VALIDATED ) ) return "NET_CAPABILITY_VALIDATED" ; if ( hasCapability ( android.net.NetworkCapabilities.NET_CAPABILITY_CAPTIVE_PORTAL ) ) return "NET_CAPABILITY_CAPTIVE_PORTAL" ; if ( hasCapability ( android.net.NetworkCapabilities.NET_CAPABILITY_FOREGROUND ) ) return "NET_CAPABILITY_FOREGROUND" ; if ( ( ( mNetworkCapabilities ) & ( android.net.NetworkCapabilities.NON_REQUESTABLE_CAPABILITIES ) ) != 0 ) { return "unknown non-requestable capabilities " + ( java.lang.Long.toHexString ( mNetworkCapabilities ) ) ; } if ( ( ( mLinkUpBandwidthKbps ) != 0 ) || ( ( mLinkDownBandwidthKbps ) != 0 ) ) return "link bandwidth" ; if ( hasSignalStrength ( ) ) return "signalStrength" ; return null ; }

Target:
public void clearAll ( ) { mNetworkCapabilities = mTransportTypes = 0 ; mLinkUpBandwidthKbps = mLinkDownBandwidthKbps = android.net.NetworkCapabilities.LINK_BANDWIDTH_UNSPECIFIED ; mNetworkSpecifier = null ; mSignalStrength = android.net.NetworkCapabilities.SIGNAL_STRENGTH_UNSPECIFIED ; mUids = null ; mEstablishingVpnAppUid = android.net.NetworkCapabilities.INVALID_UID ; }
Source:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) return true ; if ( ! ( obj instanceof android.hardware.radio.RadioManager.BandConfig ) ) return false ; android.hardware.radio.RadioManager.BandConfig other = ( ( android.hardware.radio.RadioManager.BandConfig ) ( obj ) ) ; if ( ( mDescriptor ) != ( other.getDescriptor ( ) ) ) return false ; return true ; }

Target:
public boolean equals ( java.lang.Object obj ) { if ( ( this ) == obj ) return true ; if ( ! ( obj instanceof android.hardware.radio.RadioManager.BandConfig ) ) return false ; android.hardware.radio.RadioManager.BandConfig other = ( ( android.hardware.radio.RadioManager.BandConfig ) ( obj ) ) ; android.hardware.radio.RadioManager.BandDescriptor otherDesc = other.getDescriptor ( ) ; if ( ( ( mDescriptor ) == null ) != ( otherDesc == null ) ) return false ; if ( ( ( mDescriptor ) != null ) && ( ! ( mDescriptor.equals ( otherDesc ) ) ) ) return false ; return true ; }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.loadLibrary ( args [ 1 ] ) ; java.util.ArrayList < java.lang.Object > l = new java.util.ArrayList < > ( 100 ) ; Main.doTest ( l ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { java.lang.System.loadLibrary ( args [ 1 ] ) ; java.util.ArrayList < java.lang.Object > l = new java.util.ArrayList < > ( 100 ) ; Main.prefetchClassNames ( ) ; Main.doTest ( l ) ; }
Source:
public void updateRecordedProgram ( com.android.tv.dvr.RecordedProgram r ) { long id = r.getId ( ) ; if ( mRecordedPrograms.containsKey ( id ) ) { mRecordedPrograms.put ( id , r ) ; notifyRecordedProgramsChanged ( r ) ; } else { throw new java.lang.IllegalArgumentException ( ( "Recording not found:" + r ) ) ; } }

Target:
public void updateRecordedProgram ( com.android.tv.dvr.data.RecordedProgram r ) { long id = r.getId ( ) ; if ( mRecordedPrograms.containsKey ( id ) ) { mRecordedPrograms.put ( id , r ) ; notifyRecordedProgramsChanged ( r ) ; } else { throw new java.lang.IllegalArgumentException ( ( "Recording not found:" + r ) ) ; } }
Source:
private android.net.wifi.WifiConfiguration updateExistingInternalWifiConfigurationFromExternal ( android.net.wifi.WifiConfiguration config , int uid ) { android.net.wifi.WifiConfiguration existingConfig = new android.net.wifi.WifiConfiguration ( getInternalConfiguredNetwork ( config ) ) ; mergeWithInternalWifiConfiguration ( config , existingConfig ) ; existingConfig.lastUpdateUid = uid ; existingConfig.lastUpdateName = mContext.getPackageManager ( ) . getNameForUid ( uid ) ; existingConfig.updateTime = com.android.server.wifi.WifiConfigManagerNew.createDebugTimeStampString ( mClock.getWallClockMillis ( ) ) ; return existingConfig ; }

Target:
private android.net.wifi.WifiConfiguration updateExistingInternalWifiConfigurationFromExternal ( android.net.wifi.WifiConfiguration config , int uid ) { android.net.wifi.WifiConfiguration existingConfig = new android.net.wifi.WifiConfiguration ( getInternalConfiguredNetwork ( config ) ) ; mergeWithInternalWifiConfiguration ( config , existingConfig ) ; existingConfig.lastUpdateUid = uid ; existingConfig.lastUpdateName = mContext.getPackageManager ( ) . getNameForUid ( uid ) ; existingConfig.updateTime = com.android.server.wifi.WifiConfigManager.createDebugTimeStampString ( mClock.getWallClockMillis ( ) ) ; return existingConfig ; }
Source:
public int dexopt ( java.lang.String apkPath , int uid , boolean isPublic , java.lang.String pkgName , java.lang.String instructionSet , int dexoptNeeded , boolean vmSafeMode , boolean debuggable , @ android.annotation.Nullable java.lang.String outputPath , boolean bootComplete ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , isPublic , pkgName , instructionSet , dexoptNeeded , vmSafeMode , debuggable , outputPath , bootComplete ) ; }

Target:
public int dexopt ( java.lang.String apkPath , int uid , java.lang.String pkgName , java.lang.String instructionSet , int dexoptNeeded , @ android.annotation.Nullable java.lang.String outputPath , int dexFlags ) { if ( ! ( com.android.server.pm.Installer.isValidInstructionSet ( instructionSet ) ) ) { android.util.Slog.e ( com.android.server.pm.Installer.TAG , ( "Invalid instruction set: " + instructionSet ) ) ; return - 1 ; } return mInstaller.dexopt ( apkPath , uid , pkgName , instructionSet , dexoptNeeded , outputPath , dexFlags ) ; }
Source:
public void writeTo ( com.google.protobuf.nano.CodedOutputByteBufferNano output ) throws java.io.IOException { int unknownFieldCount = ( ( unknownFieldData ) == null ) ? 0 : unknownFieldData.size ( ) ; for ( int i = 0 ; i < unknownFieldCount ; i ++ ) { com.google.protobuf.nano.UnknownFieldData unknownField = unknownFieldData.get ( i ) ; output.writeRawVarint32 ( unknownField.tag ) ; output.writeRawBytes ( unknownField.bytes ) ; } }

Target:
public void writeTo ( com.google.protobuf.nano.CodedOutputByteBufferNano output ) throws java.io.IOException { if ( ( unknownFieldData ) == null ) { return ; } for ( int i = 0 ; i < ( unknownFieldData.size ( ) ) ; i ++ ) { com.google.protobuf.nano.FieldData field = unknownFieldData.dataAt ( i ) ; field.writeTo ( output ) ; } }
Source:
void bindPaymentServiceLocked ( int userId , android.content.ComponentName service ) { unbindPaymentServiceLocked ( ) ; android.content.Intent intent = new android.content.Intent ( android.nfc.cardemulation.HostApduService.SERVICE_INTERFACE ) ; intent.setComponent ( service ) ; mLastBoundPaymentServiceName = service ; if ( ! ( mContext.bindServiceAsUser ( intent , mPaymentConnection , Context.BIND_AUTO_CREATE , new android.os.UserHandle ( userId ) ) ) ) { android.util.Log.e ( com.android.nfc.cardemulation.HostEmulationManager.TAG , "Could not bind (persistent) payment service." ) ; } }

Target:
void bindPaymentServiceLocked ( int userId , android.content.ComponentName service ) { unbindPaymentServiceLocked ( ) ; android.content.Intent intent = new android.content.Intent ( android.nfc.cardemulation.HostApduService.SERVICE_INTERFACE ) ; intent.setComponent ( service ) ; mLastBoundPaymentServiceName = service ; if ( mContext.bindServiceAsUser ( intent , mPaymentConnection , Context.BIND_AUTO_CREATE , new android.os.UserHandle ( userId ) ) ) { mPaymentServiceBound = true ; } else { android.util.Log.e ( com.android.nfc.cardemulation.HostEmulationManager.TAG , "Could not bind (persistent) payment service." ) ; } }
Source:
private void rangeCheck ( int index ) { if ( ( index < 0 ) || ( index >= ( size ) ) ) throw new java.lang.IndexOutOfBoundsException ( java.util.concurrent.CopyOnWriteArrayList.outOfBounds ( index , size ) ) ; }

Target:
void checkPositionIndex ( int index ) { if ( ( index < 0 ) || ( index > ( ( to ) - ( from ) ) ) ) { throw new java.lang.IndexOutOfBoundsException ( ( ( ( "index=" + index ) + ", size=" ) + ( ( to ) - ( from ) ) ) ) ; } }
Source:
private android.os.Message obtainCompleteMessage ( int what ) { ( pendingOperations ) ++ ; lastRelevantPoll = null ; needsPoll = true ; if ( com.android.internal.telephony.gsm.GsmCallTracker.DBG_POLL ) log ( ( ( ( "obtainCompleteMessage: pendingOperations=" + ( pendingOperations ) ) + ", needsPoll=" ) + ( needsPoll ) ) ) ; return obtainMessage ( what ) ; }

Target:
private void internalClearDisconnected ( ) { mRingingCall.clearDisconnected ( ) ; mForegroundCall.clearDisconnected ( ) ; mBackgroundCall.clearDisconnected ( ) ; }