auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
protected void syncClirSetting ( ) { android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences ( getContext ( ) ) ; int clirSetting = sp.getInt ( com.android.internal.telephony.gsm.CLIR_KEY , ( - 1 ) ) ; if ( clirSetting >= 0 ) { mCM.setCLIR ( clirSetting , null ) ; } }

Target:
protected void syncClirSetting ( ) { android.content.SharedPreferences sp = android.preference.PreferenceManager.getDefaultSharedPreferences ( getContext ( ) ) ; int clirSetting = sp.getInt ( com.android.internal.telephony.gsm.CLIR_KEY , ( - 1 ) ) ; if ( clirSetting >= 0 ) { mCi.setCLIR ( clirSetting , null ) ; } }
Source:
public boolean onPreferenceChange ( android.support.v7.preference.Preference preference , java.lang.Object newValue ) { android.content.ComponentName name = new android.content.ComponentName ( getContext ( ) , com.android.traceur.QsService.class ) ; getContext ( ) . getPackageManager ( ) . setComponentEnabledSetting ( name , ( ( ( java.lang.Boolean ) ( newValue ) ) ? android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED : android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED ) , PackageManager.DONT_KILL_APP ) ; return true ; }

Target:
public boolean onPreferenceClick ( android.support.v7.preference.Preference preference ) { new android.app.AlertDialog.Builder ( getContext ( ) ) . setMessage ( R.string.clear_saved_traces_confirm ) . setPositiveButton ( android.R.string.yes , new android.content.DialogInterface.OnClickListener ( ) { public void onClick ( android.content.DialogInterface dialog , int which ) { com.android.traceur.AtraceUtils.clearSavedTraces ( ) ; } } ) . setNegativeButton ( android.R.string.no , new android.content.DialogInterface.OnClickListener ( ) { public void onClick ( android.content.DialogInterface dialog , int which ) { dialog.dismiss ( ) ; } } ) . create ( ) . show ( ) ; return true ; }
Source:
private static int getTargetApi ( lombok.ast.ClassDeclaration node ) { while ( node != null ) { int targetApi = com.android.tools.lint.checks.ApiDetector.getTargetApi ( node.astModifiers ( ) ) ; if ( targetApi != ( - 1 ) ) { return targetApi ; } node = com.android.tools.lint.detector.api.JavaContext.findSurroundingClass ( node.getParent ( ) ) ; } return - 1 ; }

Target:
private static int getTargetApi ( @ com.android.annotations.NonNull com.intellij.psi.PsiClass node ) { while ( node != null ) { int targetApi = com.android.tools.lint.checks.ApiDetector.getTargetApi ( node.getModifierList ( ) ) ; if ( targetApi != ( - 1 ) ) { return targetApi ; } node = com.intellij.psi.util.PsiTreeUtil.getParentOfType ( node , com.intellij.psi.PsiClass.class , true ) ; } return - 1 ; }
Source:
public void testLanguageLevelWhenConfigurationIsNotSpecified ( ) throws java.lang.Exception { importProject ( ( "<groupId>test</groupId>" + ( ( ( ( ( ( ( ( ( "<artifactId>project</artifactId>" + "<version>1</version>" ) + "<build>" ) + " <plugins>" ) + " <plugin>" ) + " <groupId>org.apache.maven.plugins</groupId>" ) + " <artifactId>maven-compiler-plugin</artifactId>" ) + " </plugin>" ) + " </plugins>" ) + "</build>" ) ) ) ; assertModules ( "project" ) ; assertNull ( getLanguageLevelForModule ( ) ) ; }

Target:
public void testLanguageLevelWhenConfigurationIsNotSpecified ( ) throws java.lang.Exception { importProject ( ( "<groupId>test</groupId>" + ( ( ( ( ( ( ( ( ( "<artifactId>project</artifactId>" + "<version>1</version>" ) + "<build>" ) + " <plugins>" ) + " <plugin>" ) + " <groupId>org.apache.maven.plugins</groupId>" ) + " <artifactId>maven-compiler-plugin</artifactId>" ) + " </plugin>" ) + " </plugins>" ) + "</build>" ) ) ) ; assertModules ( "project" ) ; assertEquals ( LanguageLevel.JDK_1_5 , getLanguageLevelForModule ( ) ) ; }
Source:
public void untetherAll ( ) { synchronized ( mPublicSync ) { if ( com.android.server.connectivity.Tethering.DBG ) android.util.Log.d ( com.android.server.connectivity.Tethering.TAG , ( "Untethering " + ( mTetherStates.keySet ( ) ) ) ) ; for ( int i = 0 ; i < ( mTetherStates.size ( ) ) ; i ++ ) { untether ( mTetherStates.keyAt ( i ) ) ; } } }

Target:
public void untetherAll ( ) { stopTethering ( ConnectivityManager.TETHERING_WIFI ) ; stopTethering ( ConnectivityManager.TETHERING_USB ) ; stopTethering ( ConnectivityManager.TETHERING_BLUETOOTH ) ; }
Source:
public com.android.sched.vfs.OutputVFS checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.vfs.GenericOutputVFS ( new com.android.sched.vfs.DirectFS ( new com.android.sched.util.file.Directory ( context.getWorkingDirectory ( ) , string , context.getRunnableHooks ( ) , existence , permissions , change ) , permissions ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e.getMessage ( ) , e ) ; } }

Target:
public com.android.sched.vfs.OutputVFS parseString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull java.lang.String string ) { try { return checkString ( context , string ) ; } catch ( com.android.sched.util.codec.ParsingException e ) { throw new com.android.sched.util.config.ConfigurationError ( e ) ; } }
Source:
private int putListener ( java.lang.Object listener , android.net.nsd.NsdServiceInfo s ) { android.net.nsd.NsdManager.checkListener ( listener ) ; final int key ; synchronized ( mMapLock ) { int valueIndex = mListenerMap.indexOfValue ( listener ) ; com.android.internal.util.Preconditions.checkArgument ( ( valueIndex == ( - 1 ) ) , "listener already in use" ) ; key = java.lang.Math.abs ( ( ( mListenerKey ) ++ ) ) ; mListenerMap.put ( key , listener ) ; mServiceMap.put ( key , s ) ; } return key ; }

Target:
private int nextListenerKey ( ) { mListenerKey = java.lang.Math.max ( android.net.nsd.NsdManager.FIRST_LISTENER_KEY , ( ( mListenerKey ) + 1 ) ) ; return mListenerKey ; }
Source:
public void getDownloadableSubscriptionMetadata ( android.telephony.euicc.DownloadableSubscription subscription , android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { getIEuiccController ( ) . getDownloadableSubscriptionMetadata ( subscription , mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void getDefaultDownloadableSubscriptionList ( android.app.PendingIntent callbackIntent ) { if ( ! ( isEnabled ( ) ) ) { android.telephony.euicc.EuiccManager.sendUnavailableError ( callbackIntent ) ; return ; } try { android.telephony.euicc.EuiccManager.getIEuiccController ( ) . getDefaultDownloadableSubscriptionList ( mContext.getOpPackageName ( ) , callbackIntent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }
Source:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { Main.testI ( ) ; Main.testB ( ) ; Main.testO ( ) ; Main.testIOB ( ) ; Main.testF ( ) ; Main.testD ( ) ; Main.testL ( ) ; Main.testLL ( ) ; }

Target:
public static void main ( java.lang.String [ ] args ) throws java.lang.Exception { Main.testI ( ) ; Main.testB ( ) ; Main.testO ( ) ; Main.testIOB ( ) ; Main.testF ( ) ; Main.testD ( ) ; Main.testL ( ) ; Main.testLL ( ) ; Main.testMore ( 1 , 1.0 , 2.0 , 3.0 , 4.0 , 5.0 , 6.0 , 7.0 , 8.0 , 9.0 , 2 , 3 , 4 , 5 , 6 ) ; }
Source:
public int onStartCommand ( android.content.Intent intent , int flags , int startId ) { mStartId = startId ; if ( ( mAdapter ) == null ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , ( "Stopping BluetoothPbapService: " + "device does not have BT or device is not ready" ) ) ; closeService ( ) ; } else { if ( intent != null ) { parseIntent ( intent ) ; } } return START_NOT_STICKY ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { parseIntent ( intent ) ; }
Source:
public boolean isTrue ( ) throws java.lang.Exception { return ( airplaneModeIcon.exists ( ) ) && ( airplaneModeIcon.isEnabled ( ) ) ; }

Target:
private void toggleRoaming ( android.support.test.uiautomator.UiDevice device ) throws android.support.test.uiautomator.UiObjectNotFoundException { android.support.test.uiautomator.UiObject dataRoamingSwitch = device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( "Data roaming" ) ) ; dataRoamingSwitch.clickAndWaitForNewWindow ( ) ; android.support.test.uiautomator.UiObject allowRoaming = device.findObject ( new android.support.test.uiautomator.UiSelector ( ) . text ( "OK" ) ) ; if ( allowRoaming.exists ( ) ) { allowRoaming.clickAndWaitForNewWindow ( ) ; } }
Source:
public long getPhotoId ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return java.lang.Math.max ( com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getPhotoId ( ) , 0 ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return java.lang.Math.max ( com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getPhotoId ( ) , 0 ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return 0 ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }

Target:
public long getPhotoId ( ) { switch ( nameSource ) { case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_DEFAULT_DIRECTORY : return java.lang.Math.max ( com.android.dialer.common.Assert.isNotNull ( firstDefaultCp2Contact ) . getPhotoId ( ) , 0 ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CP2_EXTENDED_DIRECTORY : return java.lang.Math.max ( com.android.dialer.common.Assert.isNotNull ( firstExtendedCp2Contact ) . getPhotoId ( ) , 0 ) ; case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.PEOPLE_API : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.CNAP : case com.android.dialer.phonelookup.consolidator.PhoneLookupInfoConsolidator.NameSource.NONE : return 0 ; default : throw com.android.dialer.common.Assert.createUnsupportedOperationFailException ( java.lang.String.format ( "Unsupported name source: %s" , nameSource ) ) ; } }
Source:
public void run ( ) { try { com.android.sched.util.file.FileUtils.deleteDir ( dir.getFile ( ) ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.JackIOException ( ( "Failed to delete temporary directory " + ( dir ) ) , e ) ; } }

Target:
public void run ( ) { try { com.android.sched.util.file.FileUtils.deleteDir ( dir.getFile ( ) ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.JackIOException ( ( "Failed to delete temporary " + ( dir.getLocation ( ) . getDescription ( ) ) ) , e ) ; } }
Source:
public synchronized void reload ( ) { if ( mProjectFolder.exists ( ) ) { com.android.sdklib.io.IAbstractFile propFile = mProjectFolder.getFile ( mType.mFilename ) ; if ( propFile.exists ( ) ) { java.util.Map < java.lang.String , java.lang.String > map = com.android.sdklib.internal.project.ProjectProperties.parsePropertyFile ( propFile , null ) ; if ( map != null ) { mProperties.clear ( ) ; mProperties.putAll ( map ) ; } } } }

Target:
public synchronized void reload ( ) { if ( mProjectFolder.exists ( ) ) { com.android.io.IAbstractFile propFile = mProjectFolder.getFile ( mType.mFilename ) ; if ( propFile.exists ( ) ) { java.util.Map < java.lang.String , java.lang.String > map = com.android.sdklib.internal.project.ProjectProperties.parsePropertyFile ( propFile , null ) ; if ( map != null ) { mProperties.clear ( ) ; mProperties.putAll ( map ) ; } } } }
Source:
public void testValidateLocalRepositoryFile3 ( ) throws java.lang.Exception { java.io.InputStream xmlStream = this . getClass ( ) . getResourceAsStream ( "/com/android/sdklib/testdata/repository_sample_3.xml" ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( xmlStream ) ; com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler handler = new com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler ( ) ; javax.xml.validation.Validator validator = getValidator ( 3 , handler ) ; validator.validate ( source ) ; handler.verify ( ) ; }

Target:
public void testValidateLocalRepositoryFile2 ( ) throws java.lang.Exception { java.io.InputStream xmlStream = this . getClass ( ) . getResourceAsStream ( "/com/android/sdklib/testdata/repository_sample_2.xml" ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( xmlStream ) ; com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler handler = new com.android.sdklib.repository.SdkRepositoryTest.CaptureErrorHandler ( ) ; javax.xml.validation.Validator validator = getRepoValidator ( 2 , handler ) ; validator.validate ( source ) ; handler.verify ( ) ; }
Source:
private void killApplication ( java.lang.String pkgName , int appId , java.lang.String reason ) { android.app.IActivityManager am = android.app.ActivityManagerNative.getDefault ( ) ; if ( am != null ) { try { am.killApplicationWithAppId ( pkgName , appId , reason ) ; } catch ( android.os.RemoteException e ) { } } }

Target:
private void killApplication ( java.lang.String pkgName , int appId , int userId , java.lang.String reason ) { final long token = android.os.Binder.clearCallingIdentity ( ) ; try { android.app.IActivityManager am = android.app.ActivityManagerNative.getDefault ( ) ; if ( am != null ) { try { am.killApplication ( pkgName , appId , userId , reason ) ; } catch ( android.os.RemoteException e ) { } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } }
Source:
public void requireVersion ( int version ) { if ( ( mVersion ) >= version ) { return ; } mVersion = version ; org.chromium.mojo.bindings.RunOrClosePipeMessageParams message = new org.chromium.mojo.bindings.RunOrClosePipeMessageParams ( ) ; message.reserved0 = 16 ; message.reserved1 = 0 ; message.requireVersion = new org.chromium.mojo.bindings.RequireVersion ( ) ; message.requireVersion.version = version ; org.chromium.mojo.bindings.InterfaceControlMessagesHelper.sendRunOrClosePipeMessage ( getCore ( ) , mMessageReceiver , message ) ; }

Target:
public void requireVersion ( int version ) { if ( ( mVersion ) >= version ) { return ; } mVersion = version ; org.chromium.mojo.bindings.interfacecontrol.RunOrClosePipeMessageParams message = new org.chromium.mojo.bindings.interfacecontrol.RunOrClosePipeMessageParams ( ) ; message.input = new org.chromium.mojo.bindings.interfacecontrol.RunOrClosePipeInput ( ) ; message.input.setRequireVersion ( new org.chromium.mojo.bindings.interfacecontrol.RequireVersion ( ) ) ; message.input.getRequireVersion ( ) . version = version ; org.chromium.mojo.bindings.InterfaceControlMessagesHelper.sendRunOrClosePipeMessage ( getCore ( ) , mMessageReceiver , message ) ; }
Source:
public java.lang.Object clone ( ) { android.icu.text.DateIntervalFormat other = ( ( android.icu.text.DateIntervalFormat ) ( super . clone ( ) ) ) ; other.fDateFormat = ( ( android.icu.text.SimpleDateFormat ) ( fDateFormat.clone ( ) ) ) ; other.fInfo = ( ( android.icu.text.DateIntervalInfo ) ( fInfo.clone ( ) ) ) ; other.fFromCalendar = ( ( android.icu.util.Calendar ) ( fFromCalendar.clone ( ) ) ) ; other.fToCalendar = ( ( android.icu.util.Calendar ) ( fToCalendar.clone ( ) ) ) ; return other ; }

Target:
public java.lang.Object clone ( ) { android.icu.text.DateIntervalFormat other = ( ( android.icu.text.DateIntervalFormat ) ( super . clone ( ) ) ) ; other.fDateFormat = ( ( android.icu.text.SimpleDateFormat ) ( fDateFormat.clone ( ) ) ) ; other.fInfo = ( ( android.icu.text.DateIntervalInfo ) ( fInfo.clone ( ) ) ) ; other.fFromCalendar = ( ( android.icu.util.Calendar ) ( fFromCalendar.clone ( ) ) ) ; other.fToCalendar = ( ( android.icu.util.Calendar ) ( fToCalendar.clone ( ) ) ) ; other.fDatePattern = fDatePattern ; other.fTimePattern = fTimePattern ; other.fDateTimeFormat = fDateTimeFormat ; return other ; }
Source:
public final java.nio.MappedByteBuffer load ( ) { try { Libcore.os.mlock ( block.toInt ( ) , block.getSize ( ) ) ; Libcore.os.munlock ( block.toInt ( ) , block.getSize ( ) ) ; } catch ( libcore.io.ErrnoException ignored ) { } return this ; }

Target:
public final java.nio.MappedByteBuffer load ( ) { checkIsMapped ( ) ; try { Libcore.os.mlock ( block.toInt ( ) , block.getSize ( ) ) ; Libcore.os.munlock ( block.toInt ( ) , block.getSize ( ) ) ; } catch ( libcore.io.ErrnoException ignored ) { } return this ; }
Source:
private int getScanBand ( boolean isFullBandScan ) { if ( isFullBandScan ) { int freqBand = mStateMachine.getFrequencyBand ( ) ; if ( freqBand == ( android.net.wifi.WifiManager.WIFI_FREQUENCY_BAND_5GHZ ) ) { return android.net.wifi.WifiScanner.WIFI_BAND_5_GHZ_WITH_DFS ; } else if ( freqBand == ( android.net.wifi.WifiManager.WIFI_FREQUENCY_BAND_2GHZ ) ) { return android.net.wifi.WifiScanner.WIFI_BAND_24_GHZ ; } else { return android.net.wifi.WifiScanner.WIFI_BAND_BOTH_WITH_DFS ; } } else { return android.net.wifi.WifiScanner.WIFI_BAND_UNSPECIFIED ; } }

Target:
private void watchdogHandler ( ) { localLog ( "watchdogHandler" ) ; if ( ( mWifiState ) == ( com.android.server.wifi.WifiConnectivityManager.WIFI_STATE_DISCONNECTED ) ) { localLog ( "start a single scan from watchdogHandler" ) ; scheduleWatchdogTimer ( ) ; startSingleScan ( true ) ; } }
Source:
public void handleMessage ( android.os.Message msg ) { try { java.lang.Thread.sleep ( 2000 ) ; } catch ( java.lang.InterruptedException e ) { java.lang.Thread.currentThread ( ) . interrupt ( ) ; } stopSelf ( msg.arg1 ) ; }

Target:
public void handleMessage ( android.os.Message msg ) { android.util.Log.i ( com.android.server.cts.device.batterystats.SimpleForegroundService.TAG , "Handling message." ) ; try { java.lang.Thread.sleep ( 2000 ) ; } catch ( java.lang.InterruptedException e ) { java.lang.Thread.currentThread ( ) . interrupt ( ) ; } android.util.Log.i ( com.android.server.cts.device.batterystats.SimpleForegroundService.TAG , "Stopping service." ) ; stopSelf ( msg.arg1 ) ; }
Source:
com.android.dx.util.IntList getSuccessors ( ) { com.android.dx.util.IntList successors = new com.android.dx.util.IntList ( callerBlocks.size ( ) ) ; for ( int label = callerBlocks.nextSetBit ( 0 ) ; label >= 0 ; label = callerBlocks.nextSetBit ( ( label + 1 ) ) ) { com.android.dx.cf.code.BasicBlock subCaller = labelToBlock ( label ) ; successors.add ( subCaller.getSuccessors ( ) . get ( 0 ) ) ; } successors.setImmutable ( ) ; return successors ; }

Target:
com.android.dx.util.IntList getSuccessors ( ) { com.android.dx.util.IntList successors = new com.android.dx.util.IntList ( callerBlocks.size ( ) ) ; for ( int label = callerBlocks.nextSetBit ( 0 ) ; label >= 0 ; label = callerBlocks.nextSetBit ( ( label + 1 ) ) ) { com.android.dx.rop.code.BasicBlock subCaller = labelToBlock ( label ) ; successors.add ( subCaller.getSuccessors ( ) . get ( 0 ) ) ; } successors.setImmutable ( ) ; return successors ; }
Source:
public void onDestroy ( ) { try { if ( ( fileLock ) != null ) { fileLock.release ( ) ; } } catch ( java.io.IOException e ) { android.util.Log.e ( LOG_MESSAGE_TAG , e.getMessage ( ) ) ; } android.content.Intent intent = new android.content.Intent ( ) . putExtra ( android.cts.LockHoldingService.NOTIFICATION_KEY , android.cts.LockHoldingService.NOTIFICATION_STOP ) . setAction ( android.cts.LockHoldingService.ACTION_TYPE_FOR_INTENT_COMMUNICATION ) ; sendBroadcast ( intent ) ; }

Target:
public void onDestroy ( ) { try { if ( ( fileLock ) != null ) { fileLock.release ( ) ; } } catch ( java.io.IOException e ) { android.util.Log.e ( LOG_MESSAGE_TAG , e.getMessage ( ) ) ; } android.content.Intent intent = new android.content.Intent ( ) . setPackage ( "android.libcorefileio.cts" ) . putExtra ( android.cts.LockHoldingService.NOTIFICATION_KEY , android.cts.LockHoldingService.NOTIFICATION_STOP ) . setAction ( android.cts.LockHoldingService.ACTION_TYPE_FOR_INTENT_COMMUNICATION ) ; sendBroadcast ( intent ) ; }
Source:
public java.util.Set < com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > getInvisibleNodes ( ) { if ( ( mInvisibleParents.size ( ) ) == 0 ) { return java.util.Collections.emptySet ( ) ; } java.util.Set < com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > nodes = new java.util.HashSet < com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > ( mInvisibleParents.size ( ) ) ; for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo info : mInvisibleParents ) { com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode node = info.getUiViewKey ( ) ; if ( node != null ) { nodes.add ( node ) ; } } return nodes ; }

Target:
public java.util.Set < com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > getInvisibleNodes ( ) { if ( ( mInvisibleParents.size ( ) ) == 0 ) { return java.util.Collections.emptySet ( ) ; } java.util.Set < com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > nodes = new java.util.HashSet < com.android.ide.eclipse.adt.internal.editors.uimodel.UiElementNode > ( mInvisibleParents.size ( ) ) ; for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo info : mInvisibleParents ) { com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode node = info.getUiViewNode ( ) ; if ( node != null ) { nodes.add ( node ) ; } } return nodes ; }
Source:
public boolean disableNetwork ( int netId ) { if ( com.android.server.wifi.WifiNative.DBG ) logDbg ( ( "disableNetwork nid=" + ( java.lang.Integer.toString ( netId ) ) ) ) ; return doBooleanCommand ( ( "DISABLE_NETWORK " + netId ) ) ; }

Target:
void enableVerboseLogging ( int verbose ) { if ( verbose > 0 ) { com.android.server.wifi.WifiNative.DBG = true ; } else { com.android.server.wifi.WifiNative.DBG = false ; } if ( ( mWificondControl ) != null ) { mWificondControl.enableVerboseLogging ( ( verbose > 0 ? true : false ) ) ; } }
Source:
public boolean startWpsPbc ( java.lang.String iface , java.lang.String bssid ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.startWpsPbc ( iface , bssid ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " WPS_PBC" ) ) ; } else { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PBC " ) + bssid ) ) ; } } } }

Target:
public void setMiracastMode ( int mode ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { mSupplicantP2pIfaceHal.setMiracastMode ( mode ) ; } else { doBooleanCommand ( ( "DRIVER MIRACAST " + mode ) ) ; } }
Source:
public int getWatchedStatus ( com.android.tv.dvr.RecordedProgram recordedProgram ) { long watchedPosition = getWatchedPosition ( recordedProgram.getId ( ) ) ; if ( watchedPosition == ( android.media.tv.TvInputManager.TIME_SHIFT_INVALID_TIME ) ) { return com.android.tv.dvr.DvrWatchedPositionManager.DVR_WATCHED_STATUS_NEW ; } else if ( watchedPosition > ( ( recordedProgram.getDurationMillis ( ) ) * ( com.android.tv.dvr.DvrWatchedPositionManager.DVR_WATCHED_THRESHOLD_RATE ) ) ) { return com.android.tv.dvr.DvrWatchedPositionManager.DVR_WATCHED_STATUS_WATCHED ; } else { return com.android.tv.dvr.DvrWatchedPositionManager.DVR_WATCHED_STATUS_WATCHING ; } }

Target:
public int getWatchedStatus ( com.android.tv.dvr.data.RecordedProgram recordedProgram ) { long watchedPosition = getWatchedPosition ( recordedProgram.getId ( ) ) ; if ( watchedPosition == ( android.media.tv.TvInputManager.TIME_SHIFT_INVALID_TIME ) ) { return com.android.tv.dvr.DvrWatchedPositionManager.DVR_WATCHED_STATUS_NEW ; } else if ( watchedPosition > ( ( recordedProgram.getDurationMillis ( ) ) * ( com.android.tv.dvr.DvrWatchedPositionManager.DVR_WATCHED_THRESHOLD_RATE ) ) ) { return com.android.tv.dvr.DvrWatchedPositionManager.DVR_WATCHED_STATUS_WATCHED ; } else { return com.android.tv.dvr.DvrWatchedPositionManager.DVR_WATCHED_STATUS_WATCHING ; } }
Source:
public void addI16 ( android.support.v8.renderscript.Short3 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addI16 ( new android.support.v8.renderscript.Short3 ( v.x , v.y , v.z ) ) ; return ; } addI16 ( v.x ) ; addI16 ( v.y ) ; addI16 ( v.z ) ; }

Target:
public void addU8 ( android.support.v8.renderscript.Short3 v ) { if ( android.support.v8.renderscript.RenderScript.shouldThunk ( ) ) { mN.addU8 ( v ) ; return ; } addU8 ( v.x ) ; addU8 ( v.y ) ; addU8 ( v.z ) ; }
Source:
public void writeRilDeactivateDataCall ( int phoneId , int rilSerial , int cid , int reason ) { com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.RilDeactivateDataCall deactivateDataCall = new com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.RilDeactivateDataCall ( ) ; deactivateDataCall.cid = cid ; deactivateDataCall.reason = reason + 1 ; addTelephonyEvent ( new com.android.internal.telephony.metrics.TelephonyEventBuilder ( phoneId ) . setDeactivateDataCall ( deactivateDataCall ) . build ( ) ) ; }

Target:
public void writeRilDeactivateDataCall ( int phoneId , int rilSerial , int cid , int reason ) { com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.RilDeactivateDataCall deactivateDataCall = new com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.RilDeactivateDataCall ( ) ; deactivateDataCall.cid = cid ; switch ( reason ) { case android.telephony.data.DataService.REQUEST_REASON_NORMAL : deactivateDataCall.reason = com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.RilDeactivateDataCall.DeactivateReason.DEACTIVATE_REASON_NONE ; break ; case android.telephony.data.DataService.REQUEST_REASON_SHUTDOWN : deactivateDataCall.reason = com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.RilDeactivateDataCall.DeactivateReason.DEACTIVATE_REASON_RADIO_OFF ; break ; case android.telephony.data.DataService.REQUEST_REASON_HANDOVER : deactivateDataCall.reason = com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.RilDeactivateDataCall.DeactivateReason.DEACTIVATE_REASON_HANDOVER ; break ; default : deactivateDataCall.reason = com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.RilDeactivateDataCall.DeactivateReason.DEACTIVATE_REASON_UNKNOWN ; } addTelephonyEvent ( new com.android.internal.telephony.metrics.TelephonyEventBuilder ( phoneId ) . setDeactivateDataCall ( deactivateDataCall ) . build ( ) ) ; }
Source:
public java.lang.String [ ] setPackagesSuspended ( @ android.annotation.NonNull android.content.ComponentName admin , java.lang.String [ ] packageNames , boolean suspended ) { throwIfParentInstance ( "setPackagesSuspended" ) ; if ( ( mService ) != null ) { try { return mService.setPackagesSuspended ( admin , packageNames , suspended ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } } return packageNames ; }

Target:
public boolean isDeviceManaged ( ) { try { return mService.hasDeviceOwner ( ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } }
Source:
public void TestCurrFmtNegSameAsPositive ( ) { android.icu.text.DecimalFormatSymbols decfmtsym = android.icu.text.DecimalFormatSymbols.getInstance ( java.util.Locale.US ) ; decfmtsym.setMinusSign ( '​' ) ; android.icu.text.DecimalFormat decfmt = new android.icu.text.DecimalFormat ( "¤#,##0.00;¤#,##0.00" , decfmtsym ) ; java.lang.String currFmtResult = decfmt.format ( ( - 100.0 ) ) ; if ( ! ( currFmtResult.equals ( "​$100.00" ) ) ) { errln ( ( "decfmt.toPattern results wrong, expected ​$100.00, got " + currFmtResult ) ) ; } }

Target:
public void TestCurrFmtNegSameAsPositive ( ) { android.icu.text.DecimalFormatSymbols decfmtsym = android.icu.text.DecimalFormatSymbols.getInstance ( java.util.Locale.US ) ; decfmtsym.setMinusSign ( '​' ) ; android.icu.text.DecimalFormat decfmt = new android.icu.text.DecimalFormat ( "¤#,##0.00;-¤#,##0.00" , decfmtsym ) ; java.lang.String currFmtResult = decfmt.format ( ( - 100.0 ) ) ; if ( ! ( currFmtResult.equals ( "​$100.00" ) ) ) { errln ( ( "decfmt.toPattern results wrong, expected ​$100.00, got " + currFmtResult ) ) ; } }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , float [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , short [ ] data ) { validateIsInt16 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_16 , data.length ) ; }
Source:
public java.lang.Number parse ( java.lang.String text , java.text.ParsePosition parsePosition ) { com.ibm.icu.impl.number.Properties pprops = com.ibm.icu.text.DecimalFormat.threadLocalProperties.get ( ) ; synchronized ( this ) { pprops.copyFrom ( properties ) ; } java.lang.Number result = com.ibm.icu.impl.number.Parse.parse ( text , parsePosition , pprops , symbols ) ; if ( result instanceof java.math.BigDecimal ) { result = new com.ibm.icu.math.BigDecimal ( ( ( java.math.BigDecimal ) ( result ) ) ) ; } return result ; }

Target:
public java.lang.Number parse ( java.lang.String text , java.text.ParsePosition parsePosition ) { com.ibm.icu.impl.number.Properties pprops = com.ibm.icu.text.DecimalFormat.threadLocalProperties.get ( ) ; synchronized ( this ) { pprops.copyFrom ( properties ) ; } java.lang.Number result = com.ibm.icu.impl.number.Parse.parse ( text , parsePosition , pprops , symbols ) ; if ( result instanceof java.math.BigDecimal ) { result = safeConvertBigDecimal ( ( ( java.math.BigDecimal ) ( result ) ) ) ; } return result ; }
Source:
public boolean execute ( org.intellij.plugins.intelliLang.inject.groovy.PsiElement element , int offsetInElement ) { final com.intellij.psi.xml.XmlTag tag = com.intellij.psi.util.PsiTreeUtil.getParentOfType ( element , com.intellij.psi.xml.XmlTag.class ) ; final java.lang.String className = ( tag == null ) ? null : tag.getAttributeValue ( "className" ) ; if ( ( className != null ) && ( tag.getLocalName ( ) . endsWith ( "patternClass" ) ) ) { com.intellij.util.containers.ContainerUtil.addIfNotNull ( psiFacade.findClass ( className , com.intellij.psi.search.GlobalSearchScope.allScope ( project ) ) , roots ) ; } return true ; }

Target:
public boolean execute ( @ org.jetbrains.annotations.NotNull org.intellij.plugins.intelliLang.inject.groovy.PsiElement element , int offsetInElement ) { com.intellij.psi.xml.XmlTag tag = org.intellij.plugins.intelliLang.inject.groovy.PsiTreeUtil.getParentOfType ( element , com.intellij.psi.xml.XmlTag.class ) ; java.lang.String className = ( tag == null ) ? null : tag.getAttributeValue ( "className" ) ; if ( ( com.intellij.openapi.util.text.StringUtil.isNotEmpty ( className ) ) && ( tag.getLocalName ( ) . endsWith ( "patternClass" ) ) ) { roots.add ( className ) ; } return true ; }
Source:
private byte getPlayStateBytes ( android.media.session.PlaybackState pbState ) { byte playStateBytes = com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_STOPPED ; if ( pbState != null ) { playStateBytes = ( ( byte ) ( convertPlayStateToBytes ( pbState.getState ( ) ) ) ) ; android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "getPlayBackState: playStateBytes = " + playStateBytes ) ) ; } else { android.util.Log.w ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "playState object null, sending playStateBytes = " + playStateBytes ) ) ; } return playStateBytes ; }

Target:
private boolean addMediaPlayerPackage ( java.lang.String packageName ) { com.android.bluetooth.avrcp.MediaPlayerInfo info = new com.android.bluetooth.avrcp.MediaPlayerInfo ( null , AvrcpConstants.PLAYER_TYPE_AUDIO , AvrcpConstants.PLAYER_SUBTYPE_NONE , com.android.bluetooth.avrcp.Avrcp.PLAYSTATUS_STOPPED , getFeatureBitMask ( packageName ) , packageName , getAppLabel ( packageName ) ) ; return addMediaPlayerInfo ( info ) ; }
Source:
public void testPownF32_2 ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_2 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ ( INPUTSIZE ) * 2 ] ; android.renderscript.cts.RSUtils.genRandom ( 11329265 , 32 , 1 , ( - 16 ) , n ) ; nAlloc.copyFrom ( n ) ; script_f32.set_n2 ( nAlloc ) ; doF32_2 ( 11329265 , 16 ) ; }

Target:
public void testPownF32_2 ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32_2 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ ( INPUTSIZE ) * 2 ] ; android.renderscript.cts.RSUtils.genRandomInts ( 11329265 , 32 , ( - 16 ) , n ) ; nAlloc.copyFrom ( n ) ; script_f32.set_n2 ( nAlloc ) ; doF32_2 ( 11329265 , 16 ) ; }
Source:
public android.view.View getView ( int position , android.view.View convertView , android.view.ViewGroup parent ) { android.widget.TextView view = ( ( android.widget.TextView ) ( super . getView ( position , convertView , parent ) ) ) ; java.io.File file = getItem ( position ) ; view.setText ( file.getName ( ) ) ; return view ; }

Target:
public android.view.View getView ( int position , android.view.View convertView , android.view.ViewGroup parent ) { android.widget.TextView view = ( ( android.widget.TextView ) ( super . getView ( position , convertView , parent ) ) ) ; java.io.File file = getItem ( position ) ; view.setText ( file.getName ( ) ) ; view.setBackgroundResource ( ( com.android.cts.verifier.suid.SuidFilesActivity.WHITELIST.contains ( file.getName ( ) ) ? R.drawable.test_pass_gradient : R.drawable.test_fail_gradient ) ) ; return view ; }
Source:
public void flingScroll ( final int vx , final int vy ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { flingScroll ( vx , vy ) ; } } ) ; return ; } mAwContents.flingScroll ( vx , vy ) ; }

Target:
public boolean zoomIn ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return zoomIn ( ) ; } } ) ; return ret ; } return mAwContents.zoomIn ( ) ; }
Source:
public void prepareFullBuild ( org.eclipse.core.resources.IProject project , java.util.List < org.eclipse.core.runtime.IPath > sourceFolders ) { mDeltaVisitor.reset ( ) ; buildCompilationList ( project , sourceFolders ) ; }

Target:
protected void buildSourceFileList ( ) { mFiles.clear ( ) ; org.eclipse.core.resources.IWorkspaceRoot root = org.eclipse.core.resources.ResourcesPlugin.getWorkspace ( ) . getRoot ( ) ; java.util.List < org.eclipse.core.runtime.IPath > sourceFolderPathList = com.android.ide.eclipse.adt.internal.project.BaseProjectHelper.getSourceClasspaths ( mJavaProject ) ; for ( org.eclipse.core.runtime.IPath sourceFolderPath : sourceFolderPathList ) { org.eclipse.core.resources.IFolder sourceFolder = root.getFolder ( sourceFolderPath ) ; if ( ( sourceFolder.exists ( ) ) && ( ( sourceFolder.equals ( getGenFolder ( ) ) ) == false ) ) { scanFolderForSourceFiles ( sourceFolder , sourceFolder ) ; } } }
Source:
private static java.util.List < com.android.jack.test.runner.RuntimeRunner > parseRuntimeList ( @ javax.annotation.CheckForNull java.lang.String runtimeList ) throws com.android.jack.test.runner.RuntimeRunnerException , java.lang.IllegalArgumentException , java.lang.SecurityException { java.util.List < com.android.jack.test.runner.RuntimeRunner > result = new java.util.ArrayList < com.android.jack.test.runner.RuntimeRunner > ( 0 ) ; if ( runtimeList != null ) { java.lang.String [ ] rtList = runtimeList.split ( com.android.jack.test.toolchain.AbstractTestTools.PROPERTY_VALUE_SEPARATOR ) ; for ( java.lang.String rtName : rtList ) { result.add ( com.android.jack.test.runner.RuntimeRunnerFactory.create ( rtName ) ) ; } } return result ; }

Target:
private static java.util.List < com.android.jack.test.runner.RuntimeRunner > parseRuntimeList ( @ javax.annotation.CheckForNull java.lang.String runtimeList ) throws com.android.jack.test.runner.RuntimeRunnerException , java.lang.IllegalArgumentException , java.lang.SecurityException { java.util.List < com.android.jack.test.runner.RuntimeRunner > result = new java.util.ArrayList < com.android.jack.test.runner.RuntimeRunner > ( 0 ) ; if ( runtimeList != null ) { for ( java.lang.String rtName : com.android.jack.test.toolchain.AbstractTestTools.listSplitter.split ( runtimeList ) ) { result.add ( com.android.jack.test.runner.RuntimeRunnerFactory.create ( rtName ) ) ; } } return result ; }
Source:
public void addQueryListener ( int token , com.android.internal.telephony.CallerInfoAsyncQuery.OnQueryCompleteListener listener , java.lang.Object cookie ) { if ( com.android.internal.telephony.CallerInfoAsyncQuery.DBG ) android.util.Log.d ( com.android.internal.telephony.CallerInfoAsyncQuery.LOG_TAG , ( ( ( "adding listener to query: " + ( com.android.internal.telephony.CallerInfoAsyncQuery.sanitizeUriToString ( mHandler.mQueryUri ) ) ) + " handler: " ) + ( mHandler.toString ( ) ) ) ) ; com.android.internal.telephony.CallerInfoAsyncQuery.CookieWrapper cw = new com.android.internal.telephony.CallerInfoAsyncQuery.CookieWrapper ( ) ; cw.listener = listener ; cw.cookie = cookie ; cw.event = com.android.internal.telephony.CallerInfoAsyncQuery.EVENT_ADD_LISTENER ; mHandler.startQuery ( token , cw , null , null , null , null , null ) ; }

Target:
public void addQueryListener ( int token , com.android.internal.telephony.CallerInfoAsyncQuery.OnQueryCompleteListener listener , java.lang.Object cookie ) { if ( com.android.internal.telephony.CallerInfoAsyncQuery.DBG ) android.telephony.Rlog.d ( com.android.internal.telephony.CallerInfoAsyncQuery.LOG_TAG , ( ( ( "adding listener to query: " + ( com.android.internal.telephony.CallerInfoAsyncQuery.sanitizeUriToString ( mHandler.mQueryUri ) ) ) + " handler: " ) + ( mHandler.toString ( ) ) ) ) ; com.android.internal.telephony.CallerInfoAsyncQuery.CookieWrapper cw = new com.android.internal.telephony.CallerInfoAsyncQuery.CookieWrapper ( ) ; cw.listener = listener ; cw.cookie = cookie ; cw.event = com.android.internal.telephony.CallerInfoAsyncQuery.EVENT_ADD_LISTENER ; mHandler.startQuery ( token , cw , null , null , null , null , null ) ; }
Source:
private void assertLinkAddressesEqual ( android.net.LinkAddress l1 , android.net.LinkAddress l2 ) { assertTrue ( ( ( l1 + " unexpectedly not equal to " ) + l2 ) , l1.equals ( l2 ) ) ; assertTrue ( ( ( l2 + " unexpectedly not equal to " ) + l1 ) , l2.equals ( l1 ) ) ; assertEquals ( l1.hashCode ( ) , l2.hashCode ( ) ) ; }

Target:
private void assertLinkAddressesEqual ( android.net.LinkAddress l1 , android.net.LinkAddress l2 ) { org.junit.Assert.assertTrue ( ( ( l1 + " unexpectedly not equal to " ) + l2 ) , l1.equals ( l2 ) ) ; org.junit.Assert.assertTrue ( ( ( l2 + " unexpectedly not equal to " ) + l1 ) , l2.equals ( l1 ) ) ; org.junit.Assert.assertEquals ( l1.hashCode ( ) , l2.hashCode ( ) ) ; }
Source:
public static com.android.internal.telephony.gsm.SmsMessage newFromCMT ( java.lang.String [ ] lines ) { try { com.android.internal.telephony.gsm.SmsMessage msg = new com.android.internal.telephony.gsm.SmsMessage ( ) ; msg.parsePdu ( com.android.internal.telephony.IccUtils.hexStringToBytes ( lines [ 1 ] ) ) ; return msg ; } catch ( java.lang.RuntimeException ex ) { android.util.Log.e ( com.android.internal.telephony.gsm.SmsMessage.LOG_TAG , "SMS PDU parsing failed: " , ex ) ; return null ; } }

Target:
public static com.android.internal.telephony.gsm.SmsMessage newFromCMT ( java.lang.String [ ] lines ) { try { com.android.internal.telephony.gsm.SmsMessage msg = new com.android.internal.telephony.gsm.SmsMessage ( ) ; msg.parsePdu ( com.android.internal.telephony.IccUtils.hexStringToBytes ( lines [ 1 ] ) ) ; return msg ; } catch ( java.lang.RuntimeException ex ) { android.telephony.Rlog.e ( com.android.internal.telephony.gsm.SmsMessage.LOG_TAG , "SMS PDU parsing failed: " , ex ) ; return null ; } }
Source:
public void start ( android.content.Context context , android.os.Looper looper ) { if ( com.android.server.wifi.nan.WifiNanRttStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.nan.WifiNanRttStateManager.TAG , "start()" ) ; android.os.IBinder b = android.os.ServiceManager.getService ( Context.WIFI_RTT_SERVICE ) ; android.net.wifi.IRttManager service = IRttManager.Stub.asInterface ( b ) ; if ( service == null ) { android.util.Log.e ( com.android.server.wifi.nan.WifiNanRttStateManager.TAG , "start(): not able to get WIFI_RTT_SERVICE" ) ; return ; } startWithRttService ( context , looper , service ) ; }

Target:
public void start ( android.content.Context context , android.os.Looper looper ) { if ( com.android.server.wifi.aware.WifiAwareRttStateManager.VDBG ) android.util.Log.v ( com.android.server.wifi.aware.WifiAwareRttStateManager.TAG , "start()" ) ; android.os.IBinder b = android.os.ServiceManager.getService ( Context.WIFI_RTT_SERVICE ) ; android.net.wifi.IRttManager service = IRttManager.Stub.asInterface ( b ) ; if ( service == null ) { android.util.Log.e ( com.android.server.wifi.aware.WifiAwareRttStateManager.TAG , "start(): not able to get WIFI_RTT_SERVICE" ) ; return ; } startWithRttService ( context , looper , service ) ; }
Source:
public void removeActiveDownstream ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine downstream ) { com.android.server.connectivity.tethering.IPv6TetheringCoordinator.stopIPv6TetheringOn ( downstream ) ; if ( mActiveDownstreams.remove ( downstream ) ) { updateIPv6TetheringInterfaces ( ) ; } }

Target:
public void removeActiveDownstream ( com.android.server.connectivity.tethering.TetherInterfaceStateMachine downstream ) { com.android.server.connectivity.tethering.IPv6TetheringCoordinator.stopIPv6TetheringOn ( downstream ) ; if ( mActiveDownstreams.remove ( findDownstream ( downstream ) ) ) { updateIPv6TetheringInterfaces ( ) ; } if ( mNotifyList.isEmpty ( ) ) { if ( ! ( mActiveDownstreams.isEmpty ( ) ) ) { android.util.Log.wtf ( com.android.server.connectivity.tethering.IPv6TetheringCoordinator.TAG , "Tethering notify list empty, IPv6 downstreams non-empty." ) ; } mNextSubnetId = 0 ; } }
Source:
public boolean enableNoAutoConnect ( ) { if ( ( isEnabled ( ) ) == true ) { if ( android.bluetooth.BluetoothAdapter.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , "enableNoAutoConnect(): BT is already enabled..!" ) ; return true ; } try { return mManagerService.enableNoAutoConnect ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }

Target:
public void onBrEdrDown ( ) { if ( android.bluetooth.BluetoothAdapter.VDBG ) android.util.Log.i ( android.bluetooth.BluetoothAdapter.TAG , ( "onBrEdrDown: " + ( mService ) ) ) ; }
Source:
public static long digestRegularFile ( java.io.File file ) throws java.io.IOException { java.io.InputStream in = new java.io.BufferedInputStream ( new java.io.FileInputStream ( file ) ) ; try { return com.intellij.updater.Digester.digestStream ( in ) ; } finally { in.close ( ) ; } }

Target:
public static long digestRegularFile ( java.io.File file ) throws java.io.IOException { if ( file.isDirectory ( ) ) { return com.intellij.updater.Digester.DIRECTORY ; } java.io.InputStream in = new java.io.BufferedInputStream ( new java.io.FileInputStream ( file ) ) ; try { return com.intellij.updater.Digester.digestStream ( in ) ; } finally { in.close ( ) ; } }
Source:
private boolean isDuoCallButtonVisible ( android.view.View videoCallButtonView ) { if ( videoCallButtonView == null ) { return false ; } if ( ( videoCallButtonView.getVisibility ( ) ) != ( android.view.View.VISIBLE ) ) { return false ; } com.android.dialer.app.calllog.IntentProvider intentProvider = ( ( com.android.dialer.app.calllog.IntentProvider ) ( videoCallButtonView.getTag ( ) ) ) ; if ( intentProvider == null ) { return false ; } return DuoConstants.PACKAGE_NAME.equals ( intentProvider.getIntent ( activity ) . getPackage ( ) ) ; }

Target:
private boolean isDuoCallButtonVisible ( android.view.View videoCallButtonView ) { if ( videoCallButtonView == null ) { return false ; } if ( ( videoCallButtonView.getVisibility ( ) ) != ( android.view.View.VISIBLE ) ) { return false ; } com.android.dialer.app.calllog.IntentProvider intentProvider = ( ( com.android.dialer.app.calllog.IntentProvider ) ( videoCallButtonView.getTag ( ) ) ) ; if ( intentProvider == null ) { return false ; } return com.android.dialer.duo.DuoComponent.get ( activity ) . getDuo ( ) . getIntentType ( intentProvider.getIntent ( activity ) ) . isPresent ( ) ; }
Source:
public void log ( com.android.utils.ILogger logger ) { for ( com.android.manifmerger.MergingReport.Record record : mRecords ) { switch ( record.mType ) { case WARNING : logger.warning ( record.mLog ) ; break ; case ERROR : logger.error ( null , record.mLog ) ; break ; case INFO : logger.info ( record.mLog ) ; break ; default : logger.error ( null , ( "Unhandled record type " + ( record.mType ) ) ) ; } } mActionRecorder.log ( logger ) ; }

Target:
public void log ( com.android.utils.ILogger logger ) { for ( com.android.manifmerger.MergingReport.Record record : mRecords ) { switch ( record.mSeverity ) { case WARNING : logger.warning ( record.mLog ) ; break ; case ERROR : logger.error ( null , record.mLog ) ; break ; case INFO : logger.info ( record.mLog ) ; break ; default : logger.error ( null , ( "Unhandled record type " + ( record.mSeverity ) ) ) ; } } mActionRecorder.log ( logger ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { int rc = getResultCode ( ) ; boolean success = ( rc == ( android.app.Activity.RESULT_OK ) ) || ( rc == ( android.provider.Telephony.Sms.Intents.RESULT_SMS_HANDLED ) ) ; acknowledgeLastIncomingSms ( success , rc , null ) ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( ( intent.getAction ( ) . equals ( Intents.SMS_CB_RECEIVED_ACTION ) ) || ( intent.getAction ( ) . equals ( Intents.SMS_EMERGENCY_CB_RECEIVED_ACTION ) ) ) { } else { int rc = getResultCode ( ) ; boolean success = ( rc == ( android.app.Activity.RESULT_OK ) ) || ( rc == ( android.provider.Telephony.Sms.Intents.RESULT_SMS_HANDLED ) ) ; acknowledgeLastIncomingSms ( success , rc , null ) ; } }
Source:
public void generateComponentLayout ( final com.intellij.uiDesigner.lw.LwComponent lwComponent , final org.jetbrains.asm4.commons.GeneratorAdapter generator , final int componentLocal , final int parentLocal ) { generator.loadLocal ( parentLocal ) ; generator.loadLocal ( componentLocal ) ; generator.push ( ( ( java.lang.String ) ( lwComponent.getCustomLayoutConstraints ( ) ) ) ) ; generator.invokeVirtual ( ourContainerType , ourAddMethod ) ; }

Target:
public void generateComponentLayout ( final com.intellij.uiDesigner.lw.LwComponent lwComponent , final org.jetbrains.org.objectweb.asm.commons.GeneratorAdapter generator , final int componentLocal , final int parentLocal ) { generator.loadLocal ( parentLocal ) ; generator.loadLocal ( componentLocal ) ; generator.push ( ( ( java.lang.String ) ( lwComponent.getCustomLayoutConstraints ( ) ) ) ) ; generator.invokeVirtual ( ourContainerType , ourAddMethod ) ; }
Source:
private static byte [ ] readFullyNoClose ( java.io.InputStream in ) throws java.io.IOException { java.io.ByteArrayOutputStream bytes = new java.io.ByteArrayOutputStream ( ) ; byte [ ] buffer = new byte [ 1024 ] ; int count ; while ( ( count = in.read ( buffer ) ) != ( - 1 ) ) { bytes.write ( buffer , 0 , count ) ; } return bytes.toByteArray ( ) ; }

Target:
public void writeResponse ( java.io.OutputStream out ) throws java.io.IOException { super . writeResponse ( new java.io.ByteArrayInputStream ( body ) , out ) ; }