auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void makeOptionsObjects ( ) { cfOptions = new com.android.dx.dex.cf.CfOptions ( ) ; cfOptions.positionInfo = positionInfo ; cfOptions.localInfo = localInfo ; cfOptions.strictNameCheck = strictNameCheck ; cfOptions.optimize = optimize ; cfOptions.optimizeListFile = optimizeListFile ; cfOptions.dontOptimizeListFile = dontOptimizeListFile ; cfOptions.statistics = statistics ; if ( warnings ) { cfOptions.warn = context.err ; } else { cfOptions.warn = context.noop ; } dexOptions = new com.android.dx.dex.DexOptions ( ) ; dexOptions.minSdkVersion = minSdkVersion ; dexOptions.forceJumbo = forceJumbo ; }

Target:
public void makeOptionsObjects ( ) { cfOptions = new com.android.dx.dex.cf.CfOptions ( ) ; cfOptions.positionInfo = positionInfo ; cfOptions.localInfo = localInfo ; cfOptions.strictNameCheck = strictNameCheck ; cfOptions.optimize = optimize ; cfOptions.optimizeListFile = optimizeListFile ; cfOptions.dontOptimizeListFile = dontOptimizeListFile ; cfOptions.statistics = statistics ; if ( warnings ) { cfOptions.warn = context.err ; } else { cfOptions.warn = context.noop ; } dexOptions = new com.android.dx.dex.DexOptions ( context.err ) ; dexOptions.minSdkVersion = minSdkVersion ; dexOptions.forceJumbo = forceJumbo ; dexOptions.allowAllInterfaceMethodInvokes = allowAllInterfaceMethodInvokes ; }
Source:
private static java.io.File storeMergedConfigFile ( java.util.Map < java.lang.String , java.util.List < java.lang.String > > configMap , java.lang.String moduleName ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { HEAD ( 47 ) ; com.android.compatibility.common.util.bcf7 Merge ; }

Target:
private static java.io.File storeMergedConfigFile ( java.util.Map < java.lang.String , java.util.List < java.lang.String > > configMap , java.lang.String moduleName ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { java.io.File mergedConfigFile = com.android.tradefed.util.FileUtil.createTempFile ( moduleName , com.android.compatibility.common.util.DynamicConfigHandler.FILE_EXT ) ; java.io.OutputStream stream = new java.io.FileOutputStream ( mergedConfigFile ) ; org.xmlpull.v1.XmlSerializer serializer = org.xmlpull.v1.XmlPullParserFactory.newInstance ( ) . newSerializer ( ) ; serializer.setOutput ( stream , com.android.compatibility.common.util.DynamicConfigHandler.ENCODING ) ; serializer.setFeature ( "http://xmlpull.org/v1/doc/features.html#indent-output" , true ) ; serializer.startDocument ( com.android.compatibility.common.util.DynamicConfigHandler.ENCODING , false ) ; serializer.startTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.CONFIG_TAG ) ; for ( java.lang.String key : configMap.keySet ( ) ) { serializer.startTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.ENTRY_TAG ) ; serializer.attribute ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.KEY_ATTR , key ) ; for ( java.lang.String value : configMap.get ( key ) ) { serializer.startTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.VALUE_TAG ) ; serializer.text ( value ) ; serializer.endTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.VALUE_TAG ) ; } serializer.endTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.ENTRY_TAG ) ; } serializer.endTag ( com.android.compatibility.common.util.DynamicConfigHandler.NS , DynamicConfig.CONFIG_TAG ) ; serializer.endDocument ( ) ; return mergedConfigFile ; }
Source:
public void testCaptureResultCallbacks ( ) throws java.lang.Exception { com.android.mediaframeworktest.integration.CameraDeviceBinderTest.IsMetadataNotEmpty matcher = new com.android.mediaframeworktest.integration.CameraDeviceBinderTest.IsMetadataNotEmpty ( ) ; android.hardware.camera2.CaptureRequest request = createDefaultBuilder ( true ) . build ( ) ; verify ( mMockCb , timeout ( com.android.mediaframeworktest.integration.CameraDeviceBinderTest.WAIT_FOR_COMPLETE_TIMEOUT_MS ) . times ( 1 ) ) . onResultReceived ( argThat ( matcher ) , any ( android.hardware.camera2.impl.CaptureResultExtras.class ) ) ; verify ( mMockCb , timeout ( com.android.mediaframeworktest.integration.CameraDeviceBinderTest.WAIT_FOR_COMPLETE_TIMEOUT_MS ) . atLeast ( com.android.mediaframeworktest.integration.CameraDeviceBinderTest.NUM_CALLBACKS_CHECKED ) ) . onResultReceived ( argThat ( matcher ) , any ( android.hardware.camera2.impl.CaptureResultExtras.class ) ) ; }

Target:
public void testCaptureResultCallbacks ( ) throws java.lang.Exception { com.android.mediaframeworktest.integration.CameraDeviceBinderTest.IsMetadataNotEmpty matcher = new com.android.mediaframeworktest.integration.CameraDeviceBinderTest.IsMetadataNotEmpty ( ) ; android.hardware.camera2.CaptureRequest request = createDefaultBuilder ( true ) . build ( ) ; org.mockito.Mockito.verify ( mMockCb , org.mockito.Mockito.timeout ( com.android.mediaframeworktest.integration.CameraDeviceBinderTest.WAIT_FOR_COMPLETE_TIMEOUT_MS ) . times ( 1 ) ) . onResultReceived ( org.mockito.Mockito.argThat ( matcher ) , org.mockito.Mockito.any ( android.hardware.camera2.impl.CaptureResultExtras.class ) ) ; org.mockito.Mockito.verify ( mMockCb , org.mockito.Mockito.timeout ( com.android.mediaframeworktest.integration.CameraDeviceBinderTest.WAIT_FOR_COMPLETE_TIMEOUT_MS ) . atLeast ( com.android.mediaframeworktest.integration.CameraDeviceBinderTest.NUM_CALLBACKS_CHECKED ) ) . onResultReceived ( org.mockito.Mockito.argThat ( matcher ) , org.mockito.Mockito.any ( android.hardware.camera2.impl.CaptureResultExtras.class ) ) ; }
Source:
protected org.eclipse.swt.widgets.Composite createChildContainer ( org.eclipse.swt.widgets.Composite parent ) { org.eclipse.swt.widgets.Composite composite = super . createChildContainer ( parent ) ; if ( ( mPaletteMode.isPreview ( ) ) && ( ( mBackground ) != null ) ) { composite.setBackground ( mBackground ) ; } addMenu ( composite ) ; return composite ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.CustomViewFinder finder = com.android.ide.eclipse.adt.internal.editors.layout.gle2.CustomViewFinder.get ( mEditor.getProject ( ) ) ; finder.refresh ( new com.android.ide.eclipse.adt.internal.editors.layout.gle2.PaletteControl.ViewFinderListener ( composite ) ) ; }
Source:
public static java.text.NumberFormat getIntegerInstance ( java.util.Locale locale ) { java.text.NumberFormat result = java.text.NumberFormat.getInstance ( libcore.icu.LocaleData.get ( locale ) . integerPattern , locale ) ; result.setParseIntegerOnly ( true ) ; return result ; }

Target:
public static java.text.NumberFormat getIntegerInstance ( java.util.Locale locale ) { if ( locale == null ) { throw new java.lang.NullPointerException ( "locale == null" ) ; } java.text.NumberFormat result = java.text.NumberFormat.getInstance ( libcore.icu.LocaleData.get ( locale ) . integerPattern , locale ) ; result.setParseIntegerOnly ( true ) ; return result ; }
Source:
public void testGetActivities ( ) { assertEquals ( 1 , mManifestTestApp.getActivities ( ) . length ) ; com.android.sdklib.xml.AndroidManifestParser.Activity activity = mManifestTestApp.getActivities ( ) [ 0 ] ; assertEquals ( com.android.ide.eclipse.adt.internal.project.AndroidManifestParserTest.ACTIVITY_NAME , activity.getName ( ) ) ; assertTrue ( activity.hasAction ( ) ) ; assertTrue ( activity.isHomeActivity ( ) ) ; assertTrue ( activity.hasAction ( ) ) ; assertEquals ( activity , mManifestTestApp.getActivities ( ) [ 0 ] ) ; }

Target:
public void testGetLauncherActivity ( ) { com.android.sdklib.xml.ManifestData.Activity activity = mManifestTestApp.getLauncherActivity ( ) ; assertEquals ( com.android.ide.eclipse.adt.internal.project.AndroidManifestParserTest.ACTIVITY_NAME , activity.getName ( ) ) ; assertTrue ( activity.hasAction ( ) ) ; assertTrue ( activity.isHomeActivity ( ) ) ; }
Source:
int checkScreenState ( ) { if ( ! ( mPowerManager.isScreenOn ( ) ) ) { return com.android.nfc.ScreenStateHelper.SCREEN_STATE_OFF ; } else if ( mKeyguardManager.isKeyguardLocked ( ) ) { return com.android.nfc.ScreenStateHelper.SCREEN_STATE_ON_LOCKED ; } else { return com.android.nfc.ScreenStateHelper.SCREEN_STATE_ON_UNLOCKED ; } }

Target:
int checkScreenState ( ) { if ( ! ( mPowerManager.isScreenOn ( ) ) ) { if ( mKeyguardManager.isKeyguardLocked ( ) ) { return com.android.nfc.ScreenStateHelper.SCREEN_STATE_OFF_LOCKED ; } else { return com.android.nfc.ScreenStateHelper.SCREEN_STATE_OFF_UNLOCKED ; } } else if ( mKeyguardManager.isKeyguardLocked ( ) ) { return com.android.nfc.ScreenStateHelper.SCREEN_STATE_ON_LOCKED ; } else { return com.android.nfc.ScreenStateHelper.SCREEN_STATE_ON_UNLOCKED ; } }
Source:
private boolean isSimCardLoaded ( java.lang.String state ) { return com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOADED.equals ( state ) ; }

Target:
public void accept ( android.content.Intent intent ) { final java.lang.String state = intent.getStringExtra ( com.android.internal.telephony.IccCardConstants.INTENT_KEY_ICC_STATE ) ; android.util.Log.d ( com.android.server.connectivity.tethering.SimChangeListener.TAG , ( ( ( "got Sim changed to state " + state ) + ", mSimNotLoadedSeen=" ) + ( mSimNotLoadedSeen ) ) ) ; if ( ! ( com.android.internal.telephony.IccCardConstants.INTENT_VALUE_ICC_LOADED.equals ( state ) ) ) { mSimNotLoadedSeen = true ; return ; } if ( mSimNotLoadedSeen ) { mSimNotLoadedSeen = false ; onSimCardLoadedCallback.run ( ) ; } }
Source:
public void tesNoSplitsNoSharedLibraries ( ) { android.content.pm.ApplicationInfo ai = createMockApplicationInfo ( com.android.server.pm.dex.DexoptUtilsTest.PATH_CLASS_LOADER_NAME , false , false ) ; java.lang.String [ ] contexts = com.android.server.pm.dex.DexoptUtils.getClassLoaderContexts ( ai , null ) ; org.junit.Assert.assertEquals ( 1 , contexts.length ) ; org.junit.Assert.assertEquals ( "PCL[]" , contexts [ 0 ] ) ; }

Target:
public void tesNoSplits ( ) { com.android.server.pm.dex.DexoptUtilsTest.TestData data = createMockApplicationInfo ( com.android.server.pm.dex.DexoptUtilsTest.PATH_CLASS_LOADER_NAME , false , false ) ; java.lang.String [ ] sharedLibrary = new java.lang.String [ ] { "a.dex" , "b.dex" } ; java.lang.String [ ] contexts = com.android.server.pm.dex.DexoptUtils.getClassLoaderContexts ( data.info , sharedLibrary , data.pathsWithCode ) ; org.junit.Assert.assertEquals ( 1 , contexts.length ) ; org.junit.Assert.assertEquals ( "PCL[a.dex:b.dex]" , contexts [ 0 ] ) ; }
Source:
private static Call.State getCallStateFrom ( android.net.sip.SipAudioCall sipAudioCall ) { if ( sipAudioCall.isOnHold ( ) ) return Call.State.HOLDING ; int sessionState = sipAudioCall.getState ( ) ; switch ( sessionState ) { case SipSession.State.READY_TO_CALL : return Call.State.IDLE ; case SipSession.State.INCOMING_CALL : case SipSession.State.INCOMING_CALL_ANSWERING : return Call.State.INCOMING ; case SipSession.State.OUTGOING_CALL : return Call.State.DIALING ; case SipSession.State.OUTGOING_CALL_RING_BACK : return Call.State.ALERTING ; case SipSession.State.OUTGOING_CALL_CANCELING : return Call.State.DISCONNECTING ; case SipSession.State.IN_CALL : return Call.State.ACTIVE ; default : android.util.Log.w ( com.android.internal.telephony.sip.SipPhone.LOG_TAG , ( "illegal connection state: " + sessionState ) ) ; return Call.State.DISCONNECTED ; } }

Target:
private static Call.State getCallStateFrom ( android.net.sip.SipAudioCall sipAudioCall ) { if ( sipAudioCall.isOnHold ( ) ) return Call.State.HOLDING ; int sessionState = sipAudioCall.getState ( ) ; switch ( sessionState ) { case SipSession.State.READY_TO_CALL : return Call.State.IDLE ; case SipSession.State.INCOMING_CALL : case SipSession.State.INCOMING_CALL_ANSWERING : return Call.State.INCOMING ; case SipSession.State.OUTGOING_CALL : return Call.State.DIALING ; case SipSession.State.OUTGOING_CALL_RING_BACK : return Call.State.ALERTING ; case SipSession.State.OUTGOING_CALL_CANCELING : return Call.State.DISCONNECTING ; case SipSession.State.IN_CALL : return Call.State.ACTIVE ; default : android.telephony.Rlog.w ( com.android.internal.telephony.sip.SipPhone.LOG_TAG , ( "illegal connection state: " + sessionState ) ) ; return Call.State.DISCONNECTED ; } }
Source:
public void run ( ) { if ( ( mGattServer ) == null ) { if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "GattServer is null, return" ) ; return ; } android.bluetooth.BluetoothGattCharacteristic characteristic = mService.getCharacteristic ( com.android.cts.verifier.bluetooth.BleServerService.UPDATE_CHARACTERISTIC_UUID ) ; if ( characteristic == null ) return ; java.lang.String date = new java.util.Date ( ) . toString ( ) ; characteristic.setValue ( date ) ; mGattServer.notifyCharacteristicChanged ( mDevice , characteristic , false ) ; }

Target:
public void onNotificationSent ( android.bluetooth.BluetoothDevice device , int status ) { if ( ( mGattServer ) == null ) { if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) { android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "GattServer is null, return" ) ; } return ; } if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) { android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "onNotificationSent" ) ; } if ( status == ( android.bluetooth.BluetoothGatt.GATT_SUCCESS ) ) { if ( mIndicated ) { notifyCharacteristicIndicationRequest ( ) ; } else { ( mNotifyCount ) -- ; if ( ( mNotifyCount ) == 0 ) { notifyCharacteristicNotificationRequest ( ) ; } } } }
Source:
public void notifyDataConnection ( int state , boolean isDataConnectivityPossible , java.lang.String reason , java.lang.String apn , java.lang.String apnType , android.net.LinkProperties linkProperties , android.net.NetworkCapabilities networkCapabilities , int networkType , boolean roaming ) { notifyDataConnectionForSubscriber ( SubscriptionManager.DEFAULT_SUBSCRIPTION_ID , state , isDataConnectivityPossible , reason , apn , apnType , linkProperties , networkCapabilities , networkType , roaming ) ; }

Target:
public void notifyDataConnection ( int state , boolean isDataAllowed , java.lang.String reason , java.lang.String apn , java.lang.String apnType , android.net.LinkProperties linkProperties , android.net.NetworkCapabilities networkCapabilities , int networkType , boolean roaming ) { notifyDataConnectionForSubscriber ( SubscriptionManager.DEFAULT_SUBSCRIPTION_ID , state , isDataAllowed , reason , apn , apnType , linkProperties , networkCapabilities , networkType , roaming ) ; }
Source:
private void fillProjectDependenciesList ( com.android.ide.eclipse.adt.internal.project.ProjectState projectState , java.util.ArrayList < org.eclipse.core.resources.IProject > libraries ) { for ( com.android.ide.eclipse.adt.internal.project.ProjectState.LibraryState libState : projectState.getLibraries ( ) ) { com.android.ide.eclipse.adt.internal.project.ProjectState libProjectState = libState.getProjectState ( ) ; if ( libProjectState != null ) { org.eclipse.core.resources.IProject libProject = libProjectState.getProject ( ) ; if ( ( libraries.contains ( libProject ) ) == false ) { libraries.add ( libProject ) ; } fillProjectDependenciesList ( libProjectState , libraries ) ; } } }

Target:
private void fillProjectDependenciesList ( com.android.ide.eclipse.adt.internal.sdk.ProjectState projectState , java.util.ArrayList < org.eclipse.core.resources.IProject > libraries ) { for ( com.android.ide.eclipse.adt.internal.sdk.ProjectState.LibraryState libState : projectState.getLibraries ( ) ) { com.android.ide.eclipse.adt.internal.sdk.ProjectState libProjectState = libState.getProjectState ( ) ; if ( libProjectState != null ) { org.eclipse.core.resources.IProject libProject = libProjectState.getProject ( ) ; if ( ( libraries.contains ( libProject ) ) == false ) { libraries.add ( libProject ) ; } fillProjectDependenciesList ( libProjectState , libraries ) ; } } }
Source:
private void loadFromStoreAndMigrateAfterUserSwitch ( int userId ) { if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Loading from store after user switch/unlock for " + userId ) ) ; } mWifiConfigStore.switchUserStore ( mWifiConfigStore.createUserFile ( userId ) ) ; if ( loadFromStore ( ) ) { saveToStore ( true ) ; mPendingUnlockStoreRead = false ; } }

Target:
public boolean loadFromUserStoreAfterUnlockOrSwitch ( int userId ) { com.android.server.wifi.WifiConfigStoreData storeData ; try { storeData = mWifiConfigStore.switchUserStoreAndRead ( mWifiConfigStore.createUserFile ( userId ) ) ; } catch ( java.io.IOException e ) { android.util.Log.wtf ( com.android.server.wifi.WifiConfigManager.TAG , "Reading from new store failed. All saved private networks are lost!" , e ) ; return false ; } catch ( org.xmlpull.v1.XmlPullParserException e ) { android.util.Log.wtf ( com.android.server.wifi.WifiConfigManager.TAG , ( "XML deserialization of store failed. All saved private networks are" + "lost!" ) , e ) ; return false ; } loadInternalDataFromUserStore ( storeData.getUserConfigurations ( ) , storeData.getDeletedEphemeralSSIDs ( ) ) ; return true ; }
Source:
public void test_setTrafficClass ( ) throws java.lang.Exception { java.net.Socket s = new java.net.Socket ( ) ; s.setTrafficClass ( 123 ) ; assertEquals ( 123 , s.getTrafficClass ( ) ) ; }

Target:
public void test_setTrafficClass ( ) throws java.lang.Exception { java.net.Socket s = new java.net.Socket ( ) ; for ( int i = 0 ; i <= 255 ; ++ i ) { s.setTrafficClass ( i ) ; assertEquals ( ( i & ( ~ ( libcore.java.net.SocketTest.INET_ECN_MASK ) ) ) , s.getTrafficClass ( ) ) ; } }
Source:
public void addDependencyToPrepareTask ( @ com.android.annotations.NonNull com.android.build.gradle.internal.variant.BaseVariantData < ? extends com.android.build.gradle.internal.variant.BaseVariantOutputData > variantData , @ com.android.annotations.NonNull com.android.build.gradle.internal.tasks.PrepareDependenciesTask prepareDependenciesTask , @ com.android.annotations.NonNull com.android.build.gradle.internal.dependency.LibraryDependencyImpl lib ) { com.android.build.gradle.internal.tasks.PrepareLibraryTask prepareLibTask = prepareTaskMap.get ( lib.getNoDependencyRepresentation ( ) ) ; if ( prepareLibTask != null ) { prepareDependenciesTask.dependsOn ( prepareLibTask ) ; prepareLibTask.dependsOn ( variantData.preBuildTask ) ; } for ( com.android.builder.dependency.LibraryDependency childLib : lib.getDependencies ( ) ) { addDependencyToPrepareTask ( variantData , prepareDependenciesTask , ( ( com.android.build.gradle.internal.dependency.LibraryDependencyImpl ) ( childLib ) ) ) ; } }

Target:
public void addDependencyToPrepareTask ( @ com.android.annotations.NonNull com.android.build.gradle.internal.variant.BaseVariantData < ? extends com.android.build.gradle.internal.variant.BaseVariantOutputData > variantData , @ com.android.annotations.NonNull com.android.build.gradle.internal.tasks.PrepareDependenciesTask prepareDependenciesTask , @ com.android.annotations.NonNull com.android.build.gradle.internal.dependency.LibraryDependencyImpl lib ) { com.android.build.gradle.internal.tasks.PrepareLibraryTask prepareLibTask = prepareTaskMap.get ( lib.getNonTransitiveRepresentation ( ) ) ; if ( prepareLibTask != null ) { prepareDependenciesTask.dependsOn ( prepareLibTask ) ; prepareLibTask.dependsOn ( variantData.preBuildTask ) ; } for ( com.android.builder.dependency.LibraryDependency childLib : lib.getDependencies ( ) ) { addDependencyToPrepareTask ( variantData , prepareDependenciesTask , ( ( com.android.build.gradle.internal.dependency.LibraryDependencyImpl ) ( childLib ) ) ) ; } }
Source:
private void deleteAvd ( ) { try { java.lang.String avdName = mSdkCommandLine.getParamName ( ) ; com.android.sdklib.internal.avd.AvdManager avdManager = com.android.sdklib.internal.avd.AvdManager.getInstance ( mSdkManager , mSdkLog ) ; com.android.sdklib.internal.avd.AvdInfo info = avdManager.getAvd ( avdName , false ) ; if ( info == null ) { errorAndExit ( "There is no Android Virtual Device named '%s'." , avdName ) ; return ; } avdManager.deleteAvd ( info , mSdkLog ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { errorAndExit ( e.getMessage ( ) ) ; } }

Target:
private void deleteAvd ( ) { try { java.lang.String avdName = mSdkCommandLine.getParamName ( ) ; com.android.sdklib.internal.avd.AvdManager avdManager = com.android.sdklib.internal.avd.AvdManager.getInstance ( mSdkManager.getLocalSdk ( ) , mSdkLog ) ; com.android.sdklib.internal.avd.AvdInfo info = avdManager.getAvd ( avdName , false ) ; if ( info == null ) { errorAndExit ( "There is no Android Virtual Device named '%s'." , avdName ) ; return ; } avdManager.deleteAvd ( info , mSdkLog ) ; } catch ( com.android.prefs.AndroidLocation.AndroidLocationException e ) { errorAndExit ( e.getMessage ( ) ) ; } }
Source:
public void onSetCamera ( java.lang.String previewCameraId ) { com.android.dialer.common.LogUtil.i ( "SimulatorVideoProvider.onSetCamera" , ( "previewCameraId: " + previewCameraId ) ) ; this . previewCameraId = previewCameraId ; if ( ( simulatorPreviewCamera ) != null ) { simulatorPreviewCamera.stopCamera ( ) ; simulatorPreviewCamera = null ; } }

Target:
public void onSetCamera ( java.lang.String previewCameraId ) { com.android.dialer.common.LogUtil.i ( "SimulatorVideoProvider.onSetCamera" , ( "previewCameraId: " + previewCameraId ) ) ; this . previewCameraId = previewCameraId ; if ( ( simulatorPreviewCamera ) != null ) { simulatorPreviewCamera.stopCamera ( ) ; simulatorPreviewCamera = null ; } if ( ( previewCameraId == null ) && ( ( simulatorRemoteVideo ) != null ) ) { simulatorRemoteVideo.stopVideo ( ) ; simulatorRemoteVideo = null ; } }
Source:
public static < T > java.util.Iterator < T > concat ( java.util.Iterator < ? extends T > a , java.util.Iterator < ? extends T > b , java.util.Iterator < ? extends T > c , java.util.Iterator < ? extends T > d ) { com.google.common.base.Preconditions.checkNotNull ( a ) ; com.google.common.base.Preconditions.checkNotNull ( b ) ; com.google.common.base.Preconditions.checkNotNull ( c ) ; com.google.common.base.Preconditions.checkNotNull ( d ) ; return com.google.common.collect.Iterators.concat ( java.util.Arrays.asList ( a , b , c , d ) . iterator ( ) ) ; }

Target:
public static < T > java.util.Iterator < T > concat ( java.util.Iterator < ? extends T > a , java.util.Iterator < ? extends T > b , java.util.Iterator < ? extends T > c , java.util.Iterator < ? extends T > d ) { return com.google.common.collect.Iterators.concat ( com.google.common.collect.ImmutableList.of ( a , b , c , d ) . iterator ( ) ) ; }
Source:
protected void executeReferenceToolchain ( ) throws java.lang.Exception { if ( ( jarjarRulesFile ) != null ) { referenceTestTools.setJarjarRules ( jarjarRulesFile ) ; } referenceTestTools.setWithDebugInfos ( withDebugInfos ) ; referenceTestTools.setSourceLevel ( sourceLevel ) ; referenceTestTools.addProguardFlags ( proguardFlagFiles ) . addToClasspath ( referenceClasspath ) . srcToExe ( refDexDir , false , filesOrSourceList ) ; }

Target:
protected void executeReferenceToolchain ( ) throws java.lang.Exception { if ( ( jarjarRulesFile ) != null ) { referenceTestTools.setJarjarRules ( java.util.Collections.singletonList ( jarjarRulesFile ) ) ; } referenceTestTools.setWithDebugInfos ( withDebugInfos ) ; referenceTestTools.setSourceLevel ( sourceLevel ) ; referenceTestTools.addProguardFlags ( proguardFlagFiles ) . addToClasspath ( referenceClasspath ) . srcToExe ( refDexDir , false , filesOrSourceList ) ; }
Source:
public void testUninstallationIsSelective ( ) throws java.security.cert.CertificateException { assertTrue ( mDevicePolicyManager.installCaCert ( getWho ( ) , FAKE_RSA_1.caCertificate ) ) ; assertTrue ( mDevicePolicyManager.installCaCert ( getWho ( ) , FAKE_DSA_1.caCertificate ) ) ; mDevicePolicyManager.uninstallCaCert ( getWho ( ) , FAKE_DSA_1.caCertificate ) ; assertTrue ( hasCaCertInstalled ( FAKE_RSA_1.caCertificate ) ) ; assertFalse ( hasCaCertInstalled ( FAKE_DSA_1.caCertificate ) ) ; mDevicePolicyManager.uninstallCaCert ( getWho ( ) , FAKE_RSA_1.caCertificate ) ; }

Target:
public void testCanUninstallAllUserCaCerts ( ) throws java.security.GeneralSecurityException , java.security.cert.CertificateException { assertTrue ( mDevicePolicyManager.installCaCert ( getWho ( ) , FAKE_RSA_1.caCertificate ) ) ; assertTrue ( mDevicePolicyManager.installCaCert ( getWho ( ) , FAKE_DSA_1.caCertificate ) ) ; mDevicePolicyManager.uninstallAllUserCaCerts ( getWho ( ) ) ; assertUninstalled ( FAKE_RSA_1.caCertificate ) ; assertUninstalled ( FAKE_DSA_1.caCertificate ) ; }
Source:
private static final boolean shouldShowDialogs ( android.content.res.Configuration config ) { return ! ( ( ( ( config.keyboard ) == ( android.content.res.Configuration.KEYBOARD_NOKEYS ) ) && ( ( config.touchscreen ) == ( android.content.res.Configuration.TOUCHSCREEN_NOTOUCH ) ) ) && ( ( config.navigation ) == ( android.content.res.Configuration.NAVIGATION_NONAV ) ) ) ; }

Target:
private static final boolean shouldShowDialogs ( android.content.res.Configuration config , boolean inVrMode ) { final boolean inputMethodExists = ! ( ( ( ( config.keyboard ) == ( android.content.res.Configuration.KEYBOARD_NOKEYS ) ) && ( ( config.touchscreen ) == ( android.content.res.Configuration.TOUCHSCREEN_NOTOUCH ) ) ) && ( ( config.navigation ) == ( android.content.res.Configuration.NAVIGATION_NONAV ) ) ) ; final boolean uiIsNotCarType = ! ( ( ( config.uiMode ) & ( android.content.res.Configuration.UI_MODE_TYPE_MASK ) ) == ( android.content.res.Configuration.UI_MODE_TYPE_CAR ) ) ; return ( inputMethodExists && uiIsNotCarType ) && ( ! inVrMode ) ; }
Source:
private void handlePassthroughCmdRequestFromNative ( byte [ ] address , int id , int keyState ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_PASS_THROUGH , id , keyState ) ; mHandler.sendMessage ( msg ) ; }

Target:
private void handlePassthroughCmdRequestFromNative ( byte [ ] address , int id , int keyState ) { final com.android.bluetooth.avrcp.Avrcp.AvrcpMessageHandler handler = mHandler ; if ( handler == null ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) { android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "handlePassthroughCmdRequestFromNative: mHandler is already null" ) ; } return ; } android.os.Message msg = handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_PASS_THROUGH , id , keyState ) ; handler.sendMessage ( msg ) ; }
Source:
public void enter ( ) { android.os.Message currentMessage = getCurrentMessage ( ) ; android.util.Log.i ( com.android.bluetooth.a2dp.A2dpStateMachine.TAG , ( ( ( "Enter Connected(" + ( mDevice ) ) + "): " ) + ( currentMessage == null ? "null" : com.android.bluetooth.a2dp.A2dpStateMachine.messageWhatToString ( currentMessage.what ) ) ) ) ; mConnectionState = android.bluetooth.BluetoothProfile.STATE_CONNECTED ; removeDeferredMessages ( com.android.bluetooth.a2dp.A2dpStateMachine.CONNECT ) ; removeMessages ( com.android.bluetooth.a2dp.A2dpStateMachine.CONNECT_TIMEOUT ) ; broadcastConnectionState ( mConnectionState , mLastConnectionState ) ; broadcastAudioState ( BluetoothA2dp.STATE_NOT_PLAYING , BluetoothA2dp.STATE_PLAYING ) ; }

Target:
public void exit ( ) { android.os.Message currentMessage = getCurrentMessage ( ) ; log ( ( ( ( "Exit Disconnecting(" + ( mDevice ) ) + "): " ) + ( currentMessage == null ? "null" : com.android.bluetooth.a2dp.A2dpStateMachine.messageWhatToString ( currentMessage.what ) ) ) ) ; mLastConnectionState = android.bluetooth.BluetoothProfile.STATE_DISCONNECTING ; removeMessages ( com.android.bluetooth.a2dp.A2dpStateMachine.CONNECT_TIMEOUT ) ; }
Source:
void delete ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVFile file ) throws com.android.sched.util.file.CannotDeleteFileException { assert ! ( isClosed ( ) ) ; try { com.android.sched.vfs.BaseVFile encoded = vfs.getRootDir ( ) . getVFile ( encode ( file.getPath ( ) ) ) ; vfs.delete ( encoded ) ; } catch ( com.android.sched.util.file.NotDirectoryException e ) { throw new com.android.sched.util.file.CannotDeleteFileException ( file ) ; } catch ( com.android.sched.util.file.NotFileException e ) { throw new com.android.sched.util.file.CannotDeleteFileException ( file ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.sched.util.file.CannotDeleteFileException ( file ) ; } }

Target:
void delete ( @ javax.annotation.Nonnull com.android.sched.vfs.CaseInsensitiveFS.CaseInsensitiveVFile file ) throws com.android.sched.util.file.CannotDeleteFileException { assert ! ( isClosed ( ) ) ; try { com.android.sched.vfs.BaseVFile encoded = vfs.getRootDir ( ) . getVFile ( encode ( file.getPath ( ) ) ) ; vfs.delete ( encoded ) ; file.deleteFromCache ( ) ; } catch ( com.android.sched.util.file.NotDirectoryException e ) { throw new com.android.sched.util.file.CannotDeleteFileException ( file ) ; } catch ( com.android.sched.util.file.NotFileException e ) { throw new com.android.sched.util.file.CannotDeleteFileException ( file ) ; } catch ( com.android.sched.util.file.NoSuchFileException e ) { throw new com.android.sched.util.file.CannotDeleteFileException ( file ) ; } }
Source:
public void onExecuteWrite ( android.bluetooth.BluetoothDevice device , int requestId , boolean execute ) { if ( ( mGattServer ) == null ) { if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "GattServer is null, return" ) ; return ; } if ( com.android.cts.verifier.bluetooth.BleServerService.DEBUG ) android.util.Log.d ( com.android.cts.verifier.bluetooth.BleServerService.TAG , "onExecuteWrite" ) ; if ( execute ) { notifyExecuteWrite ( ) ; getCharacteristic ( com.android.cts.verifier.bluetooth.BleServerService.CHARACTERISTIC_UUID ) . setValue ( mReliableWriteValue ) ; mGattServer.sendResponse ( device , requestId , BluetoothGatt.GATT_SUCCESS , 0 , null ) ; } }

Target:
public void run ( ) { getCharacteristic ( com.android.cts.verifier.bluetooth.BleServerService.CHARACTERISTIC_UUID ) . setValue ( com.android.cts.verifier.bluetooth.BleServerService.WRITE_VALUE.getBytes ( ) ) ; getDescriptor ( ) . setValue ( com.android.cts.verifier.bluetooth.BleServerService.WRITE_VALUE.getBytes ( ) ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( ! ( BluetoothDevice.ACTION_BOND_STATE_CHANGED.equals ( intent.getAction ( ) ) ) ) { return ; } int state = intent.getIntExtra ( BluetoothDevice.EXTRA_BOND_STATE , BluetoothDevice.ERROR ) ; android.bluetooth.BluetoothDevice device = intent.getParcelableExtra ( BluetoothDevice.EXTRA_DEVICE ) ; java.util.Objects.requireNonNull ( device , "ACTION_BOND_STATE_CHANGED with no EXTRA_DEVICE" ) ; bondStateChanged ( device , state ) ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( ! ( BluetoothDevice.ACTION_BOND_STATE_CHANGED.equals ( intent.getAction ( ) ) ) ) { return ; } int state = intent.getIntExtra ( BluetoothDevice.EXTRA_BOND_STATE , BluetoothDevice.ERROR ) ; android.bluetooth.BluetoothDevice device = intent.getParcelableExtra ( BluetoothDevice.EXTRA_DEVICE ) ; if ( com.android.bluetooth.hearingaid.HearingAidService.DBG ) { android.util.Log.d ( com.android.bluetooth.hearingaid.HearingAidService.TAG , ( ( ( "Bond state changed for device: " + device ) + " state: " ) + state ) ) ; } if ( state != ( android.bluetooth.BluetoothDevice.BOND_NONE ) ) { return ; } }
Source:
public void stateChanged ( int oldState , int newState ) { if ( ( newState == ( org.eclipse.wb.core.controls.flyout.IFlyoutPreferences.STATE_OPEN ) ) || ( ( newState == ( org.eclipse.wb.core.controls.flyout.IFlyoutPreferences.STATE_COLLAPSED ) ) && ( oldState == ( org.eclipse.wb.core.controls.flyout.IFlyoutPreferences.STATE_OPEN ) ) ) ) { getCanvasControl ( ) . setFitScale ( true ) ; } }

Target:
public void stateChanged ( int oldState , int newState ) { if ( ( newState == ( org.eclipse.wb.core.controls.flyout.IFlyoutPreferences.STATE_OPEN ) ) || ( ( newState == ( org.eclipse.wb.core.controls.flyout.IFlyoutPreferences.STATE_COLLAPSED ) ) && ( oldState == ( org.eclipse.wb.core.controls.flyout.IFlyoutPreferences.STATE_OPEN ) ) ) ) { getCanvasControl ( ) . setFitScale ( true ) ; } ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.sDockingStateVersion ) ++ ; mDockingStateVersion = com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart.sDockingStateVersion ; }
Source:
private void onRemoveImsFeatureInternal ( int slotId , int featureType ) { android.util.SparseArray < android.telephony.ims.feature.ImsFeature > featureMap = mFeatures.get ( slotId ) ; if ( featureMap == null ) { return ; } android.telephony.ims.feature.ImsFeature featureToRemove = getImsFeatureFromType ( featureMap , featureType ) ; if ( featureToRemove != null ) { featureMap.remove ( featureType ) ; featureToRemove.notifyFeatureRemoved ( slotId ) ; featureToRemove.setImsFeatureStatusCallback ( null ) ; } }

Target:
private void onRemoveImsFeatureInternal ( int slotId , int featureType , com.android.ims.internal.IImsFeatureStatusCallback c ) { android.util.SparseArray < android.telephony.ims.feature.ImsFeature > featureMap = mFeatures.get ( slotId ) ; if ( featureMap == null ) { return ; } android.telephony.ims.feature.ImsFeature featureToRemove = getImsFeatureFromType ( featureMap , featureType ) ; if ( featureToRemove != null ) { featureMap.remove ( featureType ) ; featureToRemove.notifyFeatureRemoved ( slotId ) ; featureToRemove.removeImsFeatureStatusCallback ( c ) ; } }
Source:
public com.android.jack.ir.ast.JAnnotationLiteral exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.ExportSession exportSession ) throws com.android.jack.ir.ast.JTypeLookupException , com.android.jack.lookup.JMethodLookupException { assert ( retentionPolicy ) != null ; assert ( sourceInfo ) != null ; assert ( annotationType ) != null ; com.android.jack.ir.sourceinfo.SourceInfo jSourceInfo = sourceInfo.exportAsJast ( exportSession ) ; com.android.jack.ir.ast.JAnnotation type = exportSession.getLookup ( ) . getAnnotation ( annotationType ) ; com.android.jack.ir.ast.JAnnotationLiteral jAnnotationLiteral = new com.android.jack.ir.ast.JAnnotationLiteral ( jSourceInfo , retentionPolicy , type ) ; for ( com.android.jack.jayce.v0002.nodes.NNameValuePair valuePair : elements ) { jAnnotationLiteral.put ( valuePair.exportAsJast ( exportSession ) ) ; } return jAnnotationLiteral ; }

Target:
public com.android.jack.ir.ast.JAnnotationLiteral exportAsJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.ExportSession exportSession ) throws com.android.jack.ir.ast.JTypeLookupException , com.android.jack.lookup.JMethodLookupException { assert ( retentionPolicy ) != null ; assert ( sourceInfo ) != null ; assert ( annotationType ) != null ; com.android.jack.ir.sourceinfo.SourceInfo jSourceInfo = sourceInfo.exportAsJast ( exportSession ) ; com.android.jack.ir.ast.JAnnotationType type = exportSession.getLookup ( ) . getAnnotationType ( annotationType ) ; com.android.jack.ir.ast.JAnnotationLiteral jAnnotationLiteral = new com.android.jack.ir.ast.JAnnotationLiteral ( jSourceInfo , retentionPolicy , type ) ; for ( com.android.jack.jayce.v0002.nodes.NNameValuePair valuePair : elements ) { jAnnotationLiteral.put ( valuePair.exportAsJast ( exportSession ) ) ; } return jAnnotationLiteral ; }
Source:
public java.nio.ByteBuffer putLong ( long value ) { if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.LONG ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeLong ( ( ( offset ) + ( position ) ) , value , order ) ; position = newPosition ; return this ; }

Target:
public java.nio.ByteBuffer putLong ( long value ) { checkNotFreed ( ) ; if ( isReadOnly ) { throw new java.nio.ReadOnlyBufferException ( ) ; } int newPosition = ( position ) + ( libcore.io.SizeOf.LONG ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferOverflowException ( ) ; } this . block.pokeLong ( ( ( offset ) + ( position ) ) , value , order ) ; position = newPosition ; return this ; }
Source:
public boolean isTypeCF ( ) { return ( ( ( ( ( ( serviceType ) == ( com.android.ims.ImsSsData.SS_CFU ) ) || ( ( serviceType ) == ( com.android.ims.ImsSsData.SS_CF_BUSY ) ) ) || ( ( serviceType ) == ( com.android.ims.ImsSsData.SS_CF_NO_REPLY ) ) ) || ( ( serviceType ) == ( com.android.ims.ImsSsData.SS_CF_NOT_REACHABLE ) ) ) || ( ( serviceType ) == ( com.android.ims.ImsSsData.SS_CF_ALL ) ) ) || ( ( serviceType ) == ( com.android.ims.ImsSsData.SS_CF_ALL_CONDITIONAL ) ) ; }

Target:
public boolean isTypeCF ( ) { return ( ( ( ( ( ( serviceType ) == ( android.telephony.ims.ImsSsData.SS_CFU ) ) || ( ( serviceType ) == ( android.telephony.ims.ImsSsData.SS_CF_BUSY ) ) ) || ( ( serviceType ) == ( android.telephony.ims.ImsSsData.SS_CF_NO_REPLY ) ) ) || ( ( serviceType ) == ( android.telephony.ims.ImsSsData.SS_CF_NOT_REACHABLE ) ) ) || ( ( serviceType ) == ( android.telephony.ims.ImsSsData.SS_CF_ALL ) ) ) || ( ( serviceType ) == ( android.telephony.ims.ImsSsData.SS_CF_ALL_CONDITIONAL ) ) ; }
Source:
public void testLocationShouldStillBeMarkedMockWhenProvidersDoNotMatch ( ) throws java.lang.InterruptedException { double latitude = 20 ; double longitude = 40 ; updateLocationAndWait ( android.location.cts.LocationManagerTest.TEST_MOCK_PROVIDER_NAME , LocationManager.GPS_PROVIDER , latitude , longitude ) ; }

Target:
public void testLocationShouldStillBeMarkedMockWhenProvidersDoNotMatch ( ) throws java.lang.InterruptedException { double latitude = 20 ; double longitude = 40 ; java.util.List < java.lang.String > providers = mManager.getAllProviders ( ) ; if ( providers.isEmpty ( ) ) { return ; } java.lang.String realProviderToFool = providers.get ( 0 ) ; updateLocationAndWait ( android.location.cts.LocationManagerTest.TEST_MOCK_PROVIDER_NAME , realProviderToFool , latitude , longitude ) ; }
Source:
public java.lang.invoke.MethodHandle unreflectConstructor ( java.lang.reflect.Constructor < ? > c ) throws java.lang.IllegalAccessException { if ( c == null ) { throw new java.lang.NullPointerException ( "c == null" ) ; } if ( ! ( c.isAccessible ( ) ) ) { checkAccess ( c.getDeclaringClass ( ) , c.getDeclaringClass ( ) , c.getModifiers ( ) , c.getName ( ) ) ; } return makeMethodHandleForConstructor ( c ) ; }

Target:
public java.lang.invoke.MethodHandle unreflectConstructor ( java.lang.reflect.Constructor < ? > c ) throws java.lang.IllegalAccessException { if ( c == null ) { throw new java.lang.NullPointerException ( "c == null" ) ; } if ( ! ( c.isAccessible ( ) ) ) { checkAccess ( c.getDeclaringClass ( ) , c.getDeclaringClass ( ) , c.getModifiers ( ) , c.getName ( ) ) ; } return createMethodHandleForConstructor ( c ) ; }
Source:
public void test_getDisplayNameZILjava_util_Locale ( ) { java.util.TimeZone timezone = java.util.TimeZone.getTimeZone ( "Asia/Shanghai" ) ; assertEquals ( "中国标准时间" , timezone.getDisplayName ( false , java.util.TimeZone.LONG , java.util.Locale.CHINA ) ) ; assertEquals ( "GMT+0800" , timezone.getDisplayName ( false , java.util.TimeZone.SHORT , java.util.Locale.CHINA ) ) ; try { timezone.getDisplayName ( false , 100 , java.util.Locale.CHINA ) ; fail ( "should throw IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException e ) { } }

Target:
public void test_getDisplayNameZILjava_util_Locale ( ) { java.util.TimeZone timezone = java.util.TimeZone.getTimeZone ( "Asia/Shanghai" ) ; assertEquals ( "中国标准时间" , timezone.getDisplayName ( false , java.util.TimeZone.LONG , java.util.Locale.CHINA ) ) ; assertEquals ( "GMT+08:00" , timezone.getDisplayName ( false , java.util.TimeZone.SHORT , java.util.Locale.CHINA ) ) ; try { timezone.getDisplayName ( false , 100 , java.util.Locale.CHINA ) ; fail ( "should throw IllegalArgumentException" ) ; } catch ( java.lang.IllegalArgumentException e ) { } }
Source:
public final void testDefaultAttributeFilter ( ) { assertEquals ( "true" , BaseLayout.DEFAULT_ATTR_FILTER.replace ( "myuri" , "layout_alignRight" , "true" ) ) ; assertEquals ( null , BaseLayout.DEFAULT_ATTR_FILTER.replace ( BaseLayout.ANDROID_URI , "layout_alignRight" , "true" ) ) ; assertEquals ( "true" , BaseLayout.DEFAULT_ATTR_FILTER.replace ( BaseLayout.ANDROID_URI , "myproperty" , "true" ) ) ; }

Target:
public final void testDefaultAttributeFilter ( ) { assertEquals ( "true" , BaseLayout.DEFAULT_ATTR_FILTER.replace ( "myuri" , "layout_alignRight" , "true" ) ) ; assertEquals ( null , BaseLayout.DEFAULT_ATTR_FILTER.replace ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , "layout_alignRight" , "true" ) ) ; assertEquals ( "true" , BaseLayout.DEFAULT_ATTR_FILTER.replace ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , "myproperty" , "true" ) ) ; }
Source:
public void currentSignalStrength ( int indicationType , com.android.internal.telephony.V1_0.SignalStrength signalStrength ) { mRil.processIndication ( indicationType ) ; android.telephony.SignalStrength ss = new android.telephony.SignalStrength ( signalStrength.gw.signalStrength , signalStrength.gw.bitErrorRate , signalStrength.cdma.dbm , signalStrength.cdma.ecio , signalStrength.evdo.dbm , signalStrength.evdo.ecio , signalStrength.evdo.signalNoiseRatio , signalStrength.lte.signalStrength , signalStrength.lte.rsrp , signalStrength.lte.rsrq , signalStrength.lte.rssnr , signalStrength.lte.cqi , signalStrength.tdScdma.rscp , false ) ; if ( RIL.RILJ_LOGV ) mRil.unsljLogvRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_SIGNAL_STRENGTH , ss ) ; if ( ( mRil.mSignalStrengthRegistrant ) != null ) { mRil.mSignalStrengthRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , ss , null ) ) ; } }

Target:
public void currentSignalStrength ( int indicationType , com.android.internal.telephony.V1_0.SignalStrength signalStrength ) { mRil.processIndication ( indicationType ) ; android.telephony.SignalStrength ss = com.android.internal.telephony.RIL.convertHalSignalStrength ( signalStrength ) ; if ( RIL.RILJ_LOGV ) mRil.unsljLogvRet ( com.android.internal.telephony.RILConstants.RIL_UNSOL_SIGNAL_STRENGTH , ss ) ; if ( ( mRil.mSignalStrengthRegistrant ) != null ) { mRil.mSignalStrengthRegistrant.notifyRegistrant ( new android.os.AsyncResult ( null , ss , null ) ) ; } }
Source:
com.google.common.collect.ImmutableList < V > createAsList ( ) { final com.google.common.collect.ImmutableList < java.util.Map.Entry < K , V > > entryList = map ( ) . entrySet ( ) . asList ( ) ; return new com.google.common.collect.ImmutableAsList < V > ( ) { @ java.lang.Override public V get ( int index ) { return entryList.get ( index ) . getValue ( ) ; } @ java.lang.Override com.google.common.collect.ImmutableCollection < V > delegateCollection ( ) { return com.google.common.collect.ImmutableMapValues.this ; } } ; }

Target:
com.google.common.collect.ImmutableList < V > createAsList ( ) { final com.google.common.collect.ImmutableList < java.util.Map.Entry < K , V > > entryList = map.entrySet ( ) . asList ( ) ; return new com.google.common.collect.ImmutableAsList < V > ( ) { @ java.lang.Override public V get ( int index ) { return entryList.get ( index ) . getValue ( ) ; } @ java.lang.Override com.google.common.collect.ImmutableCollection < V > delegateCollection ( ) { return com.google.common.collect.ImmutableMapValues.this ; } } ; }
Source:
public void destroy ( ) { if ( ( ( mUsage ) & ( android.renderscript.Allocation.USAGE_IO_OUTPUT ) ) != 0 ) { setSurface ( null ) ; } super . destroy ( ) ; }

Target:
public void destroy ( ) { if ( ( ( mUsage ) & ( android.renderscript.Allocation.USAGE_IO_OUTPUT ) ) != 0 ) { setSurface ( null ) ; } if ( ( ( mType ) != null ) && ( mOwningType ) ) { mType.destroy ( ) ; mType = null ; } super . destroy ( ) ; }
Source:
boolean updateCurrentCarrierInProvider ( ) { com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; if ( r != null ) { try { android.net.Uri uri = android.net.Uri.withAppendedPath ( Telephony.Carriers.CONTENT_URI , "current" ) ; android.content.ContentValues map = new android.content.ContentValues ( ) ; map.put ( Telephony.Carriers.NUMERIC , r.getOperatorNumeric ( ) ) ; mContext.getContentResolver ( ) . insert ( uri , map ) ; return true ; } catch ( android.database.SQLException e ) { android.util.Log.e ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "Can't store current operator" , e ) ; } } return false ; }

Target:
boolean updateCurrentCarrierInProvider ( ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; if ( r != null ) { try { android.net.Uri uri = android.net.Uri.withAppendedPath ( Telephony.Carriers.CONTENT_URI , "current" ) ; android.content.ContentValues map = new android.content.ContentValues ( ) ; map.put ( Telephony.Carriers.NUMERIC , r.getOperatorNumeric ( ) ) ; mContext.getContentResolver ( ) . insert ( uri , map ) ; return true ; } catch ( android.database.SQLException e ) { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.GSMPhone.LOG_TAG , "Can't store current operator" , e ) ; } } return false ; }
Source:
public static double nextUp ( double d ) { if ( ( sun.misc.FpUtils.isNaN ( d ) ) || ( d == ( java.lang.Double.POSITIVE_INFINITY ) ) ) return d ; else { d += 0.0 ; return java.lang.Double.longBitsToDouble ( ( ( java.lang.Double.doubleToRawLongBits ( d ) ) + ( d >= 0.0 ? + 1L : - 1L ) ) ) ; } }

Target:
public static double nextUp ( double d ) { return java.lang.Math.nextUp ( d ) ; }
Source:
protected android.app.Dialog onCreateDialog ( int id ) { android.app.AlertDialog dialog = null ; if ( id == ( com.android.phone.EmergencyDialer.BAD_EMERGENCY_NUMBER_DIALOG ) ) { dialog = new android.app.AlertDialog.Builder ( this , R.style.EmergencyDialerAlertDialogTheme ) . setTitle ( getText ( R.string.emergency_enable_radio_dialog_title ) ) . setMessage ( createErrorMessage ( mLastNumber ) ) . setPositiveButton ( R.string.ok , null ) . setCancelable ( true ) . create ( ) ; dialog.getWindow ( ) . addFlags ( WindowManager.LayoutParams.FLAG_BLUR_BEHIND ) ; dialog.getWindow ( ) . addFlags ( WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED ) ; } return dialog ; }

Target:
protected android.app.Dialog onCreateDialog ( int id ) { android.app.AlertDialog dialog = null ; if ( id == ( com.android.phone.EmergencyDialer.BAD_EMERGENCY_NUMBER_DIALOG ) ) { dialog = new android.app.AlertDialog.Builder ( this , R.style.EmergencyDialerAlertDialogTheme ) . setTitle ( getText ( R.string.emergency_enable_radio_dialog_title ) ) . setMessage ( createErrorMessage ( mLastNumber ) ) . setPositiveButton ( R.string.ok , null ) . setCancelable ( true ) . create ( ) ; dialog.getWindow ( ) . addFlags ( WindowManager.LayoutParams.FLAG_BLUR_BEHIND ) ; setShowWhenLocked ( true ) ; } return dialog ; }
Source:
public synchronized void clearNonBondedDevices ( ) { for ( int i = ( mCachedDevices.size ( ) ) - 1 ; i >= 0 ; i -- ) { com.android.settingslib.bluetooth.CachedBluetoothDevice cachedDevice = mCachedDevices.get ( i ) ; if ( ( cachedDevice.getBondState ( ) ) != ( android.bluetooth.BluetoothDevice.BOND_BONDED ) ) { mCachedDevices.remove ( i ) ; } } }

Target:
public synchronized void clearNonBondedDevices ( ) { for ( int i = ( mCachedDevices.size ( ) ) - 1 ; i >= 0 ; i -- ) { com.android.settingslib.bluetooth.CachedBluetoothDevice cachedDevice = mCachedDevices.get ( i ) ; if ( ( cachedDevice.getBondState ( ) ) == ( android.bluetooth.BluetoothDevice.BOND_NONE ) ) { mCachedDevices.remove ( i ) ; } } }