auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void onCallForwardingIndicatorChanged ( boolean visible ) { android.util.Log.i ( com.android.phone.CallNotifier.LOG_TAG , ( ( ( "onCallForwardingIndicatorChanged(): subId=" + ( this . mSubId ) ) + ", visible=" ) + ( visible ? "Y" : "N" ) ) ) ; mCFIStatus.put ( this . mSubId , visible ) ; updatePhoneStateListeners ( false ) ; }

Target:
public void onCallForwardingIndicatorChanged ( boolean visible ) { android.util.Log.i ( com.android.phone.CallNotifier.LOG_TAG , ( ( ( "onCallForwardingIndicatorChanged(): subId=" + ( this . mSubId ) ) + ", visible=" ) + ( visible ? "Y" : "N" ) ) ) ; mCFIStatus.put ( this . mSubId , visible ) ; updatePhoneStateListeners ( false , com.android.phone.CallNotifier.UPDATE_TYPE_CFI , this . mSubId ) ; }
Source:
public int invokeOemRilRequestRaw ( byte [ ] oemReq , byte [ ] oemResp ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.invokeOemRilRequestRaw ( oemReq , oemResp ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return - 1 ; }

Target:
public com.android.ims.internal.IImsRcsFeature getImsRcsFeatureAndListen ( int slotIndex , com.android.ims.internal.IImsServiceFeatureCallback callback ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getRcsFeatureAndListen ( slotIndex , callback ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsRcsFeatureAndListen, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }
Source:
public void close ( ) throws java.io.IOException { guard.close ( ) ; synchronized ( this ) { if ( ( ( channel ) != null ) && ( channel.isOpen ( ) ) ) { channel.close ( ) ; channel = null ; } libcore.io.IoUtils.close ( fd ) ; } }

Target:
public void close ( ) throws java.io.IOException { guard.close ( ) ; synchronized ( this ) { if ( ( ( channel ) != null ) && ( channel.isOpen ( ) ) ) { channel.close ( ) ; channel = null ; } libcore.io.IoBridge.closeAndSignalBlockedThreads ( fd ) ; } }
Source:
public void sendUSSD ( java.lang.String ussdString , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SEND_USSD , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + ussdString ) ) ; rr.mp.writeString ( ussdString ) ; send ( rr ) ; }

Target:
public void sendUSSD ( java.lang.String ussdString , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SEND_USSD , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { java.lang.String logUssdString = "*******" ; if ( com.android.internal.telephony.RIL.RILJ_LOGV ) logUssdString = ussdString ; riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + " " ) + logUssdString ) ) ; } rr.mp.writeString ( ussdString ) ; send ( rr ) ; }
Source:
public void onAnimationEnd ( android.view.animation.Animation animation ) { if ( ! ( ( activity.isFinishing ( ) ) || ( activity.isDestroyed ( ) ) ) ) { activity.getFragmentManager ( ) . beginTransaction ( ) . hide ( dialpadFragment ) . commit ( ) ; } }

Target:
public void onAnimationEnd ( android.view.animation.Animation animation ) { if ( ( activity.isSafeToCommitTransactions ( ) ) && ( ! ( ( activity.isFinishing ( ) ) || ( activity.isDestroyed ( ) ) ) ) ) { activity.getFragmentManager ( ) . beginTransaction ( ) . hide ( dialpadFragment ) . commit ( ) ; } }
Source:
private void removeAccount ( android.accounts.Account acc ) { if ( mAccountManager.removeAccountExplicitly ( acc ) ) { if ( com.android.bluetooth.pbapclient.PbapClientConnectionHandler.DBG ) { android.util.Log.d ( com.android.bluetooth.pbapclient.PbapClientConnectionHandler.TAG , ( "Removed account " + acc ) ) ; } } else { android.util.Log.e ( com.android.bluetooth.pbapclient.PbapClientConnectionHandler.TAG , ( "Failed to remove account " + ( mAccount ) ) ) ; } }

Target:
private void removeAccount ( android.accounts.Account account ) { if ( mAccountManager.removeAccountExplicitly ( account ) ) { if ( com.android.bluetooth.pbapclient.PbapClientConnectionHandler.DBG ) { android.util.Log.d ( com.android.bluetooth.pbapclient.PbapClientConnectionHandler.TAG , ( "Removed account " + account ) ) ; } } else { android.util.Log.e ( com.android.bluetooth.pbapclient.PbapClientConnectionHandler.TAG , ( "Failed to remove account " + ( mAccount ) ) ) ; } }
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 force ( ) { checkIsMapped ( ) ; if ( ( mapMode ) == ( java.nio.channels.FileChannel.MapMode.READ_WRITE ) ) { try { Libcore.os.msync ( block.toLong ( ) , block.getSize ( ) , java.nio.MS_SYNC ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw new java.lang.AssertionError ( errnoException ) ; } } return this ; }
Source:
public java.lang.String formatToE164 ( @ android.support.annotation.NonNull com.android.dialer.DialerPhoneNumber number ) { com.android.dialer.common.Assert.isWorkerThread ( ) ; if ( number.hasDialerInternalPhoneNumber ( ) ) { return phoneNumberUtil.format ( com.android.dialer.phonenumberproto.Converter.protoToPojo ( number.getDialerInternalPhoneNumber ( ) ) , PhoneNumberFormat.E164 ) ; } return number.getRawInput ( ) . getNumber ( ) ; }

Target:
public java.lang.String normalizeNumber ( com.android.dialer.DialerPhoneNumber number ) { com.android.dialer.common.Assert.isWorkerThread ( ) ; return formatToE164 ( number ) . or ( number.getRawInput ( ) . getNumber ( ) ) ; }
Source:
private void testInterruptWritableChannel ( final java.nio.channels.WritableByteChannel channel ) throws java.lang.Exception { interruptMeLater ( ) ; try { while ( true ) { channel.write ( java.nio.ByteBuffer.allocate ( libcore.java.io.InterruptedStreamTest.BUFFER_SIZE ) ) ; } } catch ( java.nio.channels.ClosedByInterruptException expected ) { } catch ( java.nio.channels.ClosedChannelException expected ) { } }

Target:
private void testInterruptWriter ( final java.io.PipedWriter writer ) throws java.lang.Exception { java.lang.Thread thread = interruptMeLater ( ) ; try { while ( true ) { writer.write ( new char [ libcore.java.io.InterruptedStreamTest.BUFFER_SIZE ] ) ; } } catch ( java.io.InterruptedIOException expected ) { } finally { libcore.java.io.InterruptedStreamTest.confirmInterrupted ( thread ) ; } }
Source:
public < T > com.intellij.openapi.externalSystem.model.DataNode < T > createOrReplaceChild ( @ org.jetbrains.annotations.NotNull com.intellij.openapi.externalSystem.model.Key < T > key , @ org.jetbrains.annotations.NotNull T data ) { for ( java.util.Iterator < com.intellij.openapi.externalSystem.model.DataNode < ? > > iterator = myChildren.iterator ( ) ; iterator.hasNext ( ) ; ) { com.intellij.openapi.externalSystem.model.DataNode < ? > child = iterator.next ( ) ; if ( child.getKey ( ) . equals ( key ) ) { iterator.remove ( ) ; break ; } } return createChild ( key , data ) ; }

Target:
public java.util.Collection < com.intellij.openapi.externalSystem.model.DataNode < ? > > getChildren ( ) { return myChildrenView ; }
Source:
private void updateCanAddCall ( ) { boolean newCanAddCall = canAddCall ( ) ; if ( newCanAddCall != ( mCanAddCall ) ) { mCanAddCall = newCanAddCall ; for ( com.android.server.telecom.CallsManager.CallsManagerListener listener : mListeners ) { if ( Log.SYSTRACE_DEBUG ) { android.os.Trace.beginSection ( ( ( listener.getClass ( ) . toString ( ) ) + " updateCanAddCall" ) ) ; } listener.onCanAddCallChanged ( mCanAddCall ) ; if ( Log.SYSTRACE_DEBUG ) { android.os.Trace.endSection ( ) ; } } } }

Target:
private void updateCanAddCall ( ) { boolean newCanAddCall = canAddCall ( ) ; if ( newCanAddCall != ( mCanAddCall ) ) { mCanAddCall = newCanAddCall ; for ( com.android.server.telecom.CallsManager.CallsManagerListener listener : mListeners ) { if ( LogUtils.SYSTRACE_DEBUG ) { android.os.Trace.beginSection ( ( ( listener.getClass ( ) . toString ( ) ) + " updateCanAddCall" ) ) ; } listener.onCanAddCallChanged ( mCanAddCall ) ; if ( LogUtils.SYSTRACE_DEBUG ) { android.os.Trace.endSection ( ) ; } } } }
Source:
public com.android.sdklib.repository.local.LocalPkgInfo getPkgInfo ( int filter , java.lang.String vendorPath ) { assert ( ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_EXTRAS ) ) || ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_ADDONS ) ) ) || ( filter == ( com.android.sdklib.repository.local.LocalSdk.PKG_PLATFORMS ) ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : getPkgsInfos ( filter ) ) { if ( ( pkg.hasPath ( ) ) && ( vendorPath.equals ( pkg.getPath ( ) ) ) ) { return pkg ; } } return null ; }

Target:
public com.android.sdklib.BuildToolInfo getBuildTool ( @ com.android.annotations.Nullable com.android.sdklib.repository.FullRevision revision ) { com.android.sdklib.repository.local.LocalPkgInfo pkg = getPkgInfo ( PkgType.PKG_BUILD_TOOLS , revision ) ; if ( pkg instanceof com.android.sdklib.repository.local.LocalBuildToolPkgInfo ) { return ( ( com.android.sdklib.repository.local.LocalBuildToolPkgInfo ) ( pkg ) ) . getBuildToolInfo ( ) ; } return null ; }
Source:
private static android.net.NetworkState buildWifiState ( boolean isMetered ) { final android.net.NetworkInfo info = new android.net.NetworkInfo ( android.net.ConnectivityManager.TYPE_WIFI , 0 , null , null ) ; info.setDetailedState ( DetailedState.CONNECTED , null , null ) ; final android.net.LinkProperties prop = new android.net.LinkProperties ( ) ; prop.setInterfaceName ( com.android.server.net.NetworkStatsServiceTest.TEST_IFACE ) ; final android.net.NetworkCapabilities capabilities = new android.net.NetworkCapabilities ( ) ; capabilities.setCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_METERED , ( ! isMetered ) ) ; capabilities.setCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING , true ) ; return new android.net.NetworkState ( info , prop , capabilities , null , null , com.android.server.net.NetworkStatsServiceTest.TEST_SSID ) ; }

Target:
private static android.net.NetworkState buildWifiState ( boolean isMetered ) { final android.net.NetworkInfo info = new android.net.NetworkInfo ( android.net.ConnectivityManager.TYPE_WIFI , 0 , null , null ) ; info.setDetailedState ( DetailedState.CONNECTED , null , null ) ; final android.net.LinkProperties prop = new android.net.LinkProperties ( ) ; prop.setInterfaceName ( com.android.server.net.NetworkStatsServiceTest.TEST_IFACE ) ; final android.net.NetworkCapabilities capabilities = new android.net.NetworkCapabilities ( ) ; capabilities.setCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_METERED , ( ! isMetered ) ) ; capabilities.setCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_ROAMING , true ) ; return new android.net.NetworkState ( info , prop , capabilities , com.android.server.net.NetworkStatsServiceTest.WIFI_NETWORK , null , com.android.server.net.NetworkStatsServiceTest.TEST_SSID ) ; }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mTelephonyManager = ( ( android.telephony.TelephonyManager ) ( getContext ( ) . getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; android.telephony.cts.TelephonyManagerTest.mCm = ( ( android.net.ConnectivityManager ) ( getContext ( ) . getSystemService ( Context.CONNECTIVITY_SERVICE ) ) ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mTelephonyManager = ( ( android.telephony.TelephonyManager ) ( android.telephony.cts.TelephonyManagerTest.getContext ( ) . getSystemService ( Context.TELEPHONY_SERVICE ) ) ) ; android.telephony.cts.TelephonyManagerTest.mCm = ( ( android.net.ConnectivityManager ) ( android.telephony.cts.TelephonyManagerTest.getContext ( ) . getSystemService ( Context.CONNECTIVITY_SERVICE ) ) ) ; }
Source:
public android.telephony.mbms.DownloadRequest.Builder setOpaqueData ( byte [ ] data ) { try { java.io.ObjectInputStream stream = new java.io.ObjectInputStream ( new java.io.ByteArrayInputStream ( data ) ) ; android.telephony.mbms.DownloadRequest.OpaqueDataContainer dataContainer = ( ( android.telephony.mbms.DownloadRequest.OpaqueDataContainer ) ( stream.readObject ( ) ) ) ; version = dataContainer.version ; appIntent = dataContainer.appIntent ; } catch ( java.io.IOException e ) { android.util.Log.e ( android.telephony.mbms.DownloadRequest.LOG_TAG , "Got IOException trying to parse opaque data" ) ; throw new java.lang.IllegalArgumentException ( e ) ; } catch ( java.lang.ClassNotFoundException e ) { android.util.Log.e ( android.telephony.mbms.DownloadRequest.LOG_TAG , "Got ClassNotFoundException trying to parse opaque data" ) ; throw new java.lang.IllegalArgumentException ( e ) ; } return this ; }

Target:
public android.telephony.mbms.DownloadRequest build ( ) { return new android.telephony.mbms.DownloadRequest ( fileServiceId , source , destination , subscriptionId , appIntent , version ) ; }
Source:
private java.lang.String maybeReadClassLoaderContext ( java.io.BufferedReader in , int version ) throws java.io.IOException { java.lang.String context = null ; if ( version == ( com.android.server.pm.dex.PackageDexUsage.PACKAGE_DEX_USAGE_VERSION ) ) { context = in.readLine ( ) ; if ( context == null ) { throw new java.lang.IllegalStateException ( "Could not find the classLoaderContext line." ) ; } } return context == null ? com.android.server.pm.dex.PackageDexUsage.UNKNOWN_CLASS_LOADER_CONTEXT : context ; }

Target:
private java.lang.String maybeReadClassLoaderContext ( java.io.BufferedReader in , int version ) throws java.io.IOException { java.lang.String context = null ; if ( version >= ( com.android.server.pm.dex.PackageDexUsage.PACKAGE_DEX_USAGE_SUPPORTED_VERSION_2 ) ) { context = in.readLine ( ) ; if ( context == null ) { throw new java.lang.IllegalStateException ( "Could not find the classLoaderContext line." ) ; } } return context == null ? com.android.server.pm.dex.PackageDexUsage.UNKNOWN_CLASS_LOADER_CONTEXT : context ; }
Source:
public void onSuccessfulOutgoingCall ( com.android.server.telecom.Call call , int callState ) { com.android.server.telecom.Log.v ( this , "onSuccessfulOutgoingCall, %s" , call ) ; setCallState ( call , callState , "successful outgoing call" ) ; if ( ! ( mCalls.contains ( call ) ) ) { addCall ( call ) ; } for ( com.android.server.telecom.CallsManager.CallsManagerListener listener : mListeners ) { listener.onConnectionServiceChanged ( call , null , call.getConnectionService ( ) ) ; } markCallAsDialing ( call ) ; }

Target:
public void onSuccessfulOutgoingCall ( com.android.server.telecom.Call call , int callState ) { android.telecom.Log.v ( this , "onSuccessfulOutgoingCall, %s" , call ) ; setCallState ( call , callState , "successful outgoing call" ) ; if ( ! ( mCalls.contains ( call ) ) ) { addCall ( call ) ; } for ( com.android.server.telecom.CallsManager.CallsManagerListener listener : mListeners ) { listener.onConnectionServiceChanged ( call , null , call.getConnectionService ( ) ) ; } markCallAsDialing ( call ) ; }
Source:
public android.net.NetworkStats getVtDataUsage ( int subId , boolean perUidStats ) { mApp.enforceCallingOrSelfPermission ( android.Manifest.permission.READ_NETWORK_USAGE_HISTORY , null ) ; com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone != null ) { return phone.getVtDataUsage ( perUidStats ) ; } return null ; }

Target:
private boolean isUssdApiAllowed ( int subId ) { android.telephony.CarrierConfigManager configManager = ( ( android.telephony.CarrierConfigManager ) ( mPhone.getContext ( ) . getSystemService ( Context.CARRIER_CONFIG_SERVICE ) ) ) ; if ( configManager == null ) { return false ; } android.os.PersistableBundle pb = configManager.getConfigForSubId ( subId ) ; if ( pb == null ) { return false ; } return pb.getBoolean ( CarrierConfigManager.KEY_ALLOW_USSD_REQUESTS_VIA_TELEPHONY_MANAGER_BOOL ) ; }
Source:
public com.android.hierarchyviewerlib.device.Window [ ] getWindows ( com.android.ddmlib.IDevice device ) { com.android.hierarchyviewerlib.device.Window [ ] windows = null ; synchronized ( mDeviceMap ) { com.android.hierarchyviewerlib.models.DeviceSelectionModel.DeviceInfo info = mDeviceMap.get ( device ) ; if ( info != null ) { windows = mDeviceMap.get ( device ) . windows ; } } return windows ; }

Target:
public com.android.hierarchyviewerlib.models.Window [ ] getWindows ( com.android.hierarchyviewerlib.device.IHvDevice device ) { synchronized ( mDeviceMap ) { com.android.hierarchyviewerlib.models.DeviceSelectionModel.DeviceInfo info = mDeviceMap.get ( device ) ; if ( info != null ) { return info.windows ; } } return null ; }
Source:
public static int getTotalNumberOfLocals ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethod m , @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { com.android.jack.ir.ast.JMethodBodyCfg body = ( ( com.android.jack.ir.ast.JMethodBodyCfg ) ( m.getBody ( ) ) ) ; assert body != null ; int numParam = m.getParams ( ) . size ( ) ; assert ( body.getLocals ( ) ) != null ; int numLocal = body.getLocals ( ) . size ( ) ; int numCatch = com.android.jack.transformations.ssa.SsaUtil.getCatchVariables ( cfg ) . size ( ) ; return ( numLocal + numParam ) + numCatch ; }

Target:
public static int getTotalNumberOfLocals ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { com.android.jack.ir.ast.JMethodBodyCfg body = cfg.getMethodBody ( ) ; assert body != null ; int numParam = body.getMethod ( ) . getParams ( ) . size ( ) ; assert ( body.getLocals ( ) ) != null ; int numLocal = body.getLocals ( ) . size ( ) ; int numCatch = body.getNumCatchLocals ( ) ; return ( numLocal + numParam ) + numCatch ; }
Source:
public static com.android.dialer.calllog.model.CoalescedRow.Builder builder ( ) { return new com.android.dialer.calllog.model.AutoValue_CoalescedRow.Builder ( ) . setId ( 0 ) . setTimestamp ( 0 ) . setNumber ( com.android.dialer.DialerPhoneNumber.getDefaultInstance ( ) ) . setPhotoId ( 0 ) . setIsRead ( false ) . setIsNew ( false ) . setPhoneAccountColor ( 0 ) . setFeatures ( 0 ) . setIsBusiness ( false ) . setIsVoicemail ( false ) . setCallType ( 0 ) . setCanReportAsInvalidNumber ( false ) . setCoalescedIds ( com.android.dialer.CoalescedIds.getDefaultInstance ( ) ) ; }

Target:
public static com.android.dialer.calllog.model.CoalescedRow.Builder builder ( ) { return new com.android.dialer.calllog.model.AutoValue_CoalescedRow.Builder ( ) . setId ( 0 ) . setTimestamp ( 0 ) . setNumber ( com.android.dialer.DialerPhoneNumber.getDefaultInstance ( ) ) . setPhotoId ( 0 ) . setIsRead ( false ) . setIsNew ( false ) . setPhoneAccountColor ( 0 ) . setFeatures ( 0 ) . setIsBusiness ( false ) . setIsVoicemail ( false ) . setCallType ( 0 ) . setCanReportAsInvalidNumber ( false ) . setCp2InfoIncomplete ( false ) . setCoalescedIds ( com.android.dialer.CoalescedIds.getDefaultInstance ( ) ) ; }
Source:
public boolean equals ( @ javax.annotation.Nullable java.lang.Object obj ) { if ( obj instanceof com.google.common.collect.Table ) { com.google.common.collect.Table < ? , ? , ? > other = ( ( com.google.common.collect.Table < ? , ? , ? > ) ( obj ) ) ; return cellSet ( ) . equals ( other.cellSet ( ) ) ; } return false ; }

Target:
public java.util.Set < com.google.common.collect.Table.Cell < R , C , V > > cellSet ( ) { return super . cellSet ( ) ; }
Source:
public boolean isInCall ( java.lang.String callingPackage ) { try { android.telecom.Log.startSession ( "TSI.iIC" ) ; if ( ! ( canReadPhoneState ( callingPackage , "isInCall" ) ) ) { return false ; } synchronized ( mLock ) { final int callState = mCallsManager.getCallState ( ) ; return ( callState == ( android.telephony.TelephonyManager.CALL_STATE_OFFHOOK ) ) || ( callState == ( android.telephony.TelephonyManager.CALL_STATE_RINGING ) ) ; } } finally { android.telecom.Log.endSession ( ) ; } }

Target:
public boolean isInCall ( java.lang.String callingPackage ) { try { android.telecom.Log.startSession ( "TSI.iIC" ) ; if ( ! ( canReadPhoneState ( callingPackage , "isInCall" ) ) ) { return false ; } synchronized ( mLock ) { return mCallsManager.hasOngoingCalls ( ) ; } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
void setSdkManager ( com.android.sdklib.SdkManager sdkManager ) { mSdkManager = sdkManager ; }

Target:
void setupForTest ( @ com.android.annotations.Nullable com.android.sdklib.SdkManager sdkManager , @ com.android.annotations.Nullable com.android.utils.ILogger logger , @ com.android.annotations.Nullable com.android.sdkmanager.SdkCommandLine cmdLineParser , @ com.android.annotations.Nullable java.lang.String ... args ) { if ( logger != null ) { setLogger ( logger ) ; } if ( cmdLineParser != null ) { mSdkCommandLine = cmdLineParser ; } if ( args != null ) { if ( ( mSdkCommandLine ) == null ) { mSdkCommandLine = new com.android.sdkmanager.SdkCommandLine ( logger ) ; } mSdkCommandLine.parseArgs ( args ) ; } if ( sdkManager != null ) { mSdkManager = sdkManager ; } }
Source:
public void loggerFetchesRxFatesEvenIfFetchingTxFatesFails ( ) { final boolean verbosityToggle = true ; org.mockito.Mockito.when ( mWifiNative.getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ) . thenReturn ( false ) ; mWifiDiagnostics.startLogging ( verbosityToggle ) ; mWifiDiagnostics.reportConnectionEvent ( WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; org.mockito.Mockito.verify ( mWifiNative ) . getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; org.mockito.Mockito.verify ( mWifiNative ) . getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; }

Target:
public void loggerFetchesRxFatesEvenIfFetchingTxFatesFails ( ) { final boolean verbosityToggle = true ; org.mockito.Mockito.when ( mWifiNative.getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ) . thenReturn ( false ) ; mWifiDiagnostics.startLogging ( verbosityToggle ) ; mWifiDiagnostics.reportConnectionEvent ( com.android.server.wifi.WifiDiagnosticsTest.FAKE_CONNECTION_ID , WifiDiagnostics.CONNECTION_EVENT_FAILED ) ; org.mockito.Mockito.verify ( mWifiNative ) . getTxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; org.mockito.Mockito.verify ( mWifiNative ) . getRxPktFates ( org.mockito.Mockito.anyObject ( ) ) ; }
Source:
private boolean isNetworkInConfigStoreData ( android.net.wifi.WifiConfiguration configuration ) { com.android.server.wifi.WifiConfigStoreData storeData = captureWriteStoreData ( ) ; if ( storeData == null ) { return false ; } return isNetworkInConfigStoreData ( configuration , storeData ) ; }

Target:
private void setupStoreDataForRead ( java.util.List < android.net.wifi.WifiConfiguration > sharedConfigurations , java.util.List < android.net.wifi.WifiConfiguration > userConfigurations , java.util.Set < java.lang.String > deletedEphemeralSsids ) { when ( mNetworkListStoreData.getSharedConfigurations ( ) ) . thenReturn ( sharedConfigurations ) ; when ( mNetworkListStoreData.getUserConfigurations ( ) ) . thenReturn ( userConfigurations ) ; when ( mDeletedEphemeralSsidsStoreData.getSsidList ( ) ) . thenReturn ( deletedEphemeralSsids ) ; }
Source:
private void addListValue ( java.lang.reflect.Field field , java.lang.Object value , com.google.devtools.common.options.OptionPriority priority , java.lang.String source , java.lang.String implicitDependant , java.lang.String expandedFrom ) { com.google.devtools.common.options.OptionsParserImpl.ParsedOptionEntry entry = parsedValues.get ( field ) ; if ( entry == null ) { entry = new com.google.devtools.common.options.OptionsParserImpl.ParsedOptionEntry ( com.google.common.collect.ArrayListMultimap.create ( ) , priority , source , implicitDependant , expandedFrom , true ) ; parsedValues.put ( field , entry ) ; maybeAddDeprecationWarning ( field ) ; } entry.addValue ( priority , value ) ; }

Target:
boolean containsExplicitOption ( java.lang.String name ) { java.lang.reflect.Field field = optionsData.getFieldFromName ( name ) ; if ( field == null ) { throw new java.lang.IllegalArgumentException ( ( ( "No such option '" + name ) + "'" ) ) ; } return ( parsedValues.get ( field ) ) != null ; }
Source:
public boolean dumpProfiles ( int uid , java.lang.String packageName , java.lang.String codePaths ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { return mInstalld.dumpProfiles ( uid , packageName , codePaths ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public boolean mergeProfiles ( int uid , java.lang.String packageName ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return false ; try { return mInstalld.mergeProfiles ( uid , packageName ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
void addElapsedTime ( long elapsedTime ) { mElapsedTime += elapsedTime ; }

Target:
public void testRunEnded ( long elapsedTime , java.util.Map < java.lang.String , java.lang.String > runMetrics ) { if ( mAggregateMetrics ) { for ( java.util.Map.Entry < java.lang.String , java.lang.String > entry : runMetrics.entrySet ( ) ) { java.lang.String existingValue = mRunMetrics.get ( entry.getKey ( ) ) ; java.lang.String combinedValue = combineValues ( existingValue , entry.getValue ( ) ) ; mRunMetrics.put ( entry.getKey ( ) , combinedValue ) ; } } else { mRunMetrics.putAll ( runMetrics ) ; } mElapsedTime += elapsedTime ; mIsRunComplete = true ; }
Source:
public void onActivityCreated ( android.os.Bundle savedInstanceState ) { super . onActivityCreated ( savedInstanceState ) ; initializeSubscriptions ( ) ; }

Target:
public void onActivityCreated ( android.os.Bundle savedInstanceState ) { super . onActivityCreated ( savedInstanceState ) ; if ( ( mUm.hasUserRestriction ( UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS ) ) || ( ! ( mUm.isSystemUser ( ) ) ) ) { mUnavailable = true ; getActivity ( ) . setContentView ( R.layout.telephony_disallowed_preference_screen ) ; } else { initializeSubscriptions ( ) ; } }
Source:
public void testCheckReadPhoneState_hasPermissionWithoutAppOp ( ) { org.mockito.Mockito.doNothing ( ) . when ( mMockContext ) . enforcePermission ( android.Manifest.permission.READ_PHONE_STATE , com.android.internal.telephony.TelephonyPermissionsTest.PID , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.MSG ) ; org.junit.Assert.assertFalse ( com.android.internal.telephony.TelephonyPermissions.checkReadPhoneState ( mMockContext , com.android.internal.telephony.TelephonyPermissionsTest.PID , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.PACKAGE , com.android.internal.telephony.TelephonyPermissionsTest.MSG ) ) ; }

Target:
public void testCheckReadPhoneState_hasPermissionAndAppOp ( ) { org.mockito.Mockito.doNothing ( ) . when ( mMockContext ) . enforcePermission ( android.Manifest.permission.READ_PHONE_STATE , com.android.internal.telephony.TelephonyPermissionsTest.PID , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.MSG ) ; org.mockito.Mockito.when ( mMockAppOps.noteOp ( AppOpsManager.OP_READ_PHONE_STATE , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.PACKAGE ) ) . thenReturn ( AppOpsManager.MODE_ALLOWED ) ; org.junit.Assert.assertTrue ( com.android.internal.telephony.TelephonyPermissions.checkReadPhoneState ( mMockContext , ( ) -> mMockTelephony , com.android.internal.telephony.TelephonyPermissionsTest.SUB_ID , com.android.internal.telephony.TelephonyPermissionsTest.PID , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.PACKAGE , com.android.internal.telephony.TelephonyPermissionsTest.MSG ) ) ; }
Source:
public int setAllowedCarriers ( int slotId , java.util.List < android.service.carrier.CarrierIdentifier > carriers ) { enforceModifyPermission ( ) ; int subId = android.telephony.SubscriptionManager.getSubId ( slotId ) [ 0 ] ; int [ ] retVal = ( ( int [ ] ) ( sendRequest ( com.android.phone.PhoneInterfaceManager.CMD_SET_ALLOWED_CARRIERS , carriers , subId ) ) ) ; return retVal [ 0 ] ; }

Target:
public int setAllowedCarriers ( int slotIndex , java.util.List < android.service.carrier.CarrierIdentifier > carriers ) { enforceModifyPermission ( ) ; int subId = android.telephony.SubscriptionManager.getSubId ( slotIndex ) [ 0 ] ; int [ ] retVal = ( ( int [ ] ) ( sendRequest ( com.android.phone.PhoneInterfaceManager.CMD_SET_ALLOWED_CARRIERS , carriers , subId ) ) ) ; return retVal [ 0 ] ; }
Source:
private static java.util.Locale initDefault ( java.util.Locale.Category category ) { return java.util.Locale.getInstance ( java.lang.System.getProperty ( category.languageKey , java.util.Locale.defaultLocale.getLanguage ( ) ) , java.lang.System.getProperty ( category.scriptKey , java.util.Locale.defaultLocale.getScript ( ) ) , java.lang.System.getProperty ( category.countryKey , java.util.Locale.defaultLocale.getCountry ( ) ) , java.lang.System.getProperty ( category.variantKey , java.util.Locale.defaultLocale.getVariant ( ) ) , null ) ; }

Target:
private static java.util.Locale initDefault ( java.util.Locale.Category category ) { final java.util.Locale defaultLocale = java.util.Locale.NoImagePreloadHolder.defaultLocale ; return java.util.Locale.getInstance ( java.lang.System.getProperty ( category.languageKey , defaultLocale.getLanguage ( ) ) , java.lang.System.getProperty ( category.scriptKey , defaultLocale.getScript ( ) ) , java.lang.System.getProperty ( category.countryKey , defaultLocale.getCountry ( ) ) , java.lang.System.getProperty ( category.variantKey , defaultLocale.getVariant ( ) ) , null ) ; }
Source:
public void testNotifyChange1 ( ) throws java.lang.InterruptedException { android.content.cts.ContentResolverTest.MockContentObserver mco = new android.content.cts.ContentResolverTest.MockContentObserver ( ) ; mContentResolver.registerContentObserver ( android.content.cts.ContentResolverTest.TABLE1_URI , true , mco ) ; assertFalse ( mco.hadOnChanged ( ) ) ; mContentResolver.notifyChange ( android.content.cts.ContentResolverTest.TABLE1_URI , mco ) ; assertTrue ( mco.hadOnChanged ( ) ) ; mContentResolver.unregisterContentObserver ( mco ) ; }

Target:
public void testNotifyChange1 ( ) { final android.content.cts.ContentResolverTest.MockContentObserver mco = new android.content.cts.ContentResolverTest.MockContentObserver ( ) ; mContentResolver.registerContentObserver ( android.content.cts.ContentResolverTest.TABLE1_URI , true , mco ) ; assertFalse ( mco.hadOnChanged ( ) ) ; mContentResolver.notifyChange ( android.content.cts.ContentResolverTest.TABLE1_URI , mco ) ; new android.view.animation.cts.DelayedCheck ( ) { @ java.lang.Override protected boolean check ( ) { return mco.hadOnChanged ( ) ; } } . run ( ) ; mContentResolver.unregisterContentObserver ( mco ) ; }
Source:
public java.util.Collection < java.util.List < ? > > valueOfIssuerAlternativeName ( ) throws java.io.IOException { org.apache.harmony.security.x509.Extension extension = getExtensionByOID ( "2.5.29.18" ) ; if ( extension == null ) { return null ; } return ( ( org.apache.harmony.security.x509.GeneralNames ) ( GeneralNames.ASN1.decode ( extension.getExtnValue ( ) ) ) ) . getPairsList ( ) ; }

Target:
public java.util.Collection < java.util.List < ? > > valueOfIssuerAlternativeName ( ) throws java.io.IOException { return org.apache.harmony.security.x509.Extensions.decodeGeneralNames ( getExtensionByOID ( "2.5.29.18" ) ) ; }
Source:
public void testSuccess ( ) throws java.io.IOException { mProcess = new com.android.tradefed.util.ProcessHelper ( new java.lang.ProcessBuilder ( "echo" , "123" ) . start ( ) ) ; com.android.tradefed.util.CommandStatus status = mProcess.waitForProcess ( 1000 ) ; assertEquals ( CommandStatus.SUCCESS , status ) ; assertFalse ( mProcess.isRunning ( ) ) ; assertTrue ( mProcess.getStdout ( ) . equals ( "123\n" ) ) ; assertTrue ( mProcess.getStderr ( ) . isEmpty ( ) ) ; }

Target:
public void testSuccess ( ) throws java.io.IOException { mProcess = new com.android.tradefed.util.ProcessHelper ( new java.lang.ProcessBuilder ( "echo" , "123" ) . start ( ) ) ; com.android.tradefed.util.CommandStatus status = mProcess.waitForProcess ( 1000 ) ; org.junit.Assert.assertEquals ( CommandStatus.SUCCESS , status ) ; org.junit.Assert.assertFalse ( mProcess.isRunning ( ) ) ; org.junit.Assert.assertTrue ( mProcess.getStdout ( ) . equals ( "123\n" ) ) ; org.junit.Assert.assertTrue ( mProcess.getStderr ( ) . isEmpty ( ) ) ; }
Source:
private static java.lang.ClassLoader createClassLoader ( java.util.List < java.nio.file.Path > bootclasspath , java.nio.file.Path inputJar , java.util.List < java.nio.file.Path > classpath , java.lang.ClassLoader parent ) throws java.io.IOException { classpath = com.google.common.collect.ImmutableList.< java.nio.file.Path > builder ( ) . add ( inputJar ) . addAll ( classpath ) . build ( ) ; if ( ! ( bootclasspath.isEmpty ( ) ) ) { parent = com.google.devtools.build.android.desugar.HeaderClassLoader.fromClassPath ( bootclasspath , parent ) ; } return com.google.devtools.build.android.desugar.HeaderClassLoader.fromClassPath ( classpath , parent ) ; }

Target:
private static java.lang.ClassLoader createClassLoader ( com.google.devtools.build.android.desugar.CoreLibraryRewriter rewriter , java.util.List < java.nio.file.Path > bootclasspath , java.nio.file.Path inputJar , java.util.List < java.nio.file.Path > classpath , java.lang.ClassLoader parent ) throws java.io.IOException { classpath = com.google.common.collect.ImmutableList.< java.nio.file.Path > builder ( ) . add ( inputJar ) . addAll ( classpath ) . build ( ) ; if ( ! ( bootclasspath.isEmpty ( ) ) ) { parent = com.google.devtools.build.android.desugar.HeaderClassLoader.fromClassPath ( bootclasspath , rewriter , parent ) ; } return com.google.devtools.build.android.desugar.HeaderClassLoader.fromClassPath ( classpath , rewriter , parent ) ; }
Source:
public boolean onHandleForceStop ( android.content.Intent intent , java.lang.String [ ] packages , int uid , boolean doit ) { int userId = intent.getIntExtra ( Intent.EXTRA_USER_HANDLE , 0 ) ; if ( packages != null ) { for ( java.lang.String pkg : packages ) { synchronized ( this ) { if ( forceStopPackageLocked ( pkg , ( - 1 ) , false , false , false , false , false , userId , "finished booting" ) ) { return true ; } } } } return false ; }

Target:
private boolean shouldSleepLocked ( ) { if ( mRunningVoice ) { return false ; } switch ( mWakefulness ) { case android.os.PowerManagerInternal.WAKEFULNESS_AWAKE : case android.os.PowerManagerInternal.WAKEFULNESS_DREAMING : return ( mSleeping ) && ( ( mLockScreenShown ) != ( com.android.server.am.ActivityManagerService.LOCK_SCREEN_HIDDEN ) ) ; case android.os.PowerManagerInternal.WAKEFULNESS_DOZING : return ( mLockScreenShown ) != ( com.android.server.am.ActivityManagerService.LOCK_SCREEN_HIDDEN ) ; case android.os.PowerManagerInternal.WAKEFULNESS_ASLEEP : default : return true ; } }
Source:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType == ( com.android.ide.common.api.InsertType.CREATE ) ) { for ( int i = 0 ; i < 3 ; i ++ ) { com.android.ide.common.api.INode handle = node.appendChild ( LayoutConstants.FQCN_RADIO_BUTTON ) ; handle.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ID , java.lang.String.format ( "@+id/radio%d" , i ) ) ; if ( i == 0 ) { handle.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_CHECKED , com.android.ide.common.layout.LayoutConstants.VALUE_TRUE ) ; } } } }

Target:
public void onCreate ( com.android.ide.common.api.INode node , com.android.ide.common.api.INode parent , com.android.ide.common.api.InsertType insertType ) { super . onCreate ( node , parent , insertType ) ; if ( insertType.isCreate ( ) ) { for ( int i = 0 ; i < 3 ; i ++ ) { com.android.ide.common.api.INode handle = node.appendChild ( LayoutConstants.FQCN_RADIO_BUTTON ) ; handle.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ID , java.lang.String.format ( "@+id/radio%d" , i ) ) ; if ( i == 0 ) { handle.setAttribute ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_CHECKED , com.android.ide.common.layout.LayoutConstants.VALUE_TRUE ) ; } } } }
Source:
public void testTimeFormat12And24 ( ) throws java.lang.Exception { libcore.icu.LocaleData en_US = libcore.icu.LocaleData.get ( java.util.Locale.US ) ; assertEquals ( "h:mm a" , en_US.timeFormat12 ) ; assertEquals ( "HH:mm" , en_US.timeFormat24 ) ; libcore.icu.LocaleData ja_JP = libcore.icu.LocaleData.get ( java.util.Locale.JAPAN ) ; assertEquals ( "aK:mm" , ja_JP.timeFormat12 ) ; assertEquals ( "H:mm" , ja_JP.timeFormat24 ) ; }

Target:
public void testTimeFormat12And24 ( ) throws java.lang.Exception { libcore.icu.LocaleData en_US = libcore.icu.LocaleData.get ( java.util.Locale.US ) ; assertEquals ( "h:mm a" , en_US.timeFormat_hm ) ; assertEquals ( "HH:mm" , en_US.timeFormat_Hm ) ; libcore.icu.LocaleData ja_JP = libcore.icu.LocaleData.get ( java.util.Locale.JAPAN ) ; assertEquals ( "aK:mm" , ja_JP.timeFormat_hm ) ; assertEquals ( "H:mm" , ja_JP.timeFormat_Hm ) ; }
Source:
public boolean isEncrypted ( ) { if ( ( android.bluetooth.BluetoothDevice.sService ) == null ) { return false ; } try { return ( android.bluetooth.BluetoothDevice.sService.getConnectionState ( this ) ) > ( android.bluetooth.BluetoothDevice.CONNECTION_STATE_CONNECTED ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; return false ; } }

Target:
public int getBondState ( ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot get bond state" ) ; return android.bluetooth.BluetoothDevice.BOND_NONE ; } try { return service.getBondState ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return android.bluetooth.BluetoothDevice.BOND_NONE ; }
Source:
public void run ( ) { android.app.Notification n = new android.app.Notification ( R.drawable.icon1 , ( " " + ( ( ( ( "tick tock tick tock\n\nSometimes notifications can " + "be really long and wrap to more than one line.\n" ) + "Sometimes." ) + "Ohandwhathappensifwehaveonereallylongstringarewesure" ) + "thatwesegmentitcorrectly?\n" ) ) , java.lang.System.currentTimeMillis ( ) ) ; n.setLatestEventInfo ( this , "Still Persistent #1" , "This is still a notification!!!" , makeIntent ( ) ) ; mNM.notify ( 1 , n ) ; }

Target:
public void run ( ) { android.app.Notification n = new android.app.Notification ( R.drawable.icon2 , "tock tock tock" , java.lang.System.currentTimeMillis ( ) ) ; n.setLatestEventInfo ( this , "Persistent #2" , "Notify me!!!" , makeIntent ( ) ) ; mNM.notify ( 2 , n ) ; }
Source:
synchronized void nAllocationData3D ( int id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , byte [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , android.graphics.Bitmap b ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , b ) ; }
Source:
public static com.google.common.collect.ImmutableList < com.google.gct.testing.GoogleCloudTestingConfiguration > getDefaultConfigurationsFromStorage ( org.jetbrains.android.facet.AndroidFacet facet ) { com.google.gct.testing.GoogleCloudTestingConfiguration allConfiguration = new com.google.gct.testing.GoogleCloudTestingConfiguration ( "All" , icons.AndroidIcons.Display , facet ) ; allConfiguration.deviceDimension.enableAll ( ) ; allConfiguration.apiDimension.enableAll ( ) ; allConfiguration.languageDimension.enableAll ( ) ; allConfiguration.orientationDimension.enableAll ( ) ; allConfiguration.setNonEditable ( ) ; return com.google.common.collect.ImmutableList.of ( allConfiguration ) ; }

Target:
public static com.google.common.collect.ImmutableList < com.google.gct.testing.GoogleCloudTestingConfiguration > getDefaultConfigurationsFromStorage ( org.jetbrains.android.facet.AndroidFacet facet ) { com.google.gct.testing.GoogleCloudTestingConfiguration allConfiguration = new com.google.gct.testing.GoogleCloudTestingConfiguration ( GoogleCloudTestingConfiguration.ALL_ID , "All" , icons.AndroidIcons.Display , facet ) ; allConfiguration.deviceDimension.enableAll ( ) ; allConfiguration.apiDimension.enableAll ( ) ; allConfiguration.languageDimension.enableAll ( ) ; allConfiguration.orientationDimension.enableAll ( ) ; allConfiguration.setNonEditable ( ) ; return com.google.common.collect.ImmutableList.of ( allConfiguration ) ; }
Source:
public void run ( ) { com.android.jack.server.Server.cancelTimer ( ) ; com.android.jack.server.Server.shutdownFifo ( ) ; }

Target:
public void run ( ) { com.android.jack.server.Server.cancelTimer ( ) ; com.android.jack.server.Server.shutdownFifo ( ) ; if ( ! ( com.android.jack.server.Server.lock.delete ( ) ) ) { com.android.jack.server.Server.logger.log ( java.util.logging.Level.SEVERE , ( ( "Can not remove lock file '" + ( com.android.jack.server.Server.lock.getPath ( ) ) ) + "'" ) ) ; } }
Source:
public void setVar ( int index , android.renderscript.BaseObj o ) { mRS.nScriptSetVarObj ( getID ( mRS ) , index , ( o == null ? 0 : o.getID ( mRS ) ) ) ; }

Target:
public void setVar ( int index , android.renderscript.BaseObj o ) { mRS.validate ( ) ; mRS.validateObject ( o ) ; mRS.nScriptSetVarObj ( getID ( mRS ) , index , ( o == null ? 0 : o.getID ( mRS ) ) ) ; }
Source:
public void sendDtmf ( char c , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_DTMF , result ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; rr.mParcel.writeString ( java.lang.Character.toString ( c ) ) ; send ( rr ) ; }

Target:
public void sendDtmf ( char c , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_DTMF , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; rr.mParcel.writeString ( java.lang.Character.toString ( c ) ) ; send ( rr ) ; }
Source:
private java.util.HashMap < com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor , com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode > getInternalUiAttributes ( ) { if ( ( mUiAttributes ) == null ) { com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ ] attr_list = getAttributeDescriptors ( ) ; mUiAttributes = new java.util.HashMap < com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor , com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode > ( attr_list.length ) ; for ( com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor desc : attr_list ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode ui_node = desc.createUiNode ( this ) ; if ( ui_node != null ) { mUiAttributes.put ( desc , ui_node ) ; } } } return mUiAttributes ; }

Target:
private java.util.HashMap < com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor , com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode > getInternalUiAttributes ( ) { if ( ( mUiAttributes ) == null ) { com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ ] attrList = getAttributeDescriptors ( ) ; mUiAttributes = new java.util.HashMap < com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor , com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode > ( attrList.length ) ; for ( com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor desc : attrList ) { com.android.ide.eclipse.adt.internal.editors.uimodel.UiAttributeNode uiNode = desc.createUiNode ( this ) ; if ( uiNode != null ) { mUiAttributes.put ( desc , uiNode ) ; } } } return mUiAttributes ; }
Source:
protected void datagramSocketCreate ( ) throws java.net.SocketException { fd = libcore.io.IoBridge.socket ( android.system.OsConstants.AF_INET6 , android.system.OsConstants.SOCK_DGRAM , 0 ) ; libcore.io.IoBridge.setSocketOption ( fd , java.net.SocketOptions.SO_BROADCAST , true ) ; }

Target:
protected void datagramSocketCreate ( ) throws java.net.SocketException { fd = libcore.io.IoBridge.socket ( android.system.OsConstants.AF_INET6 , android.system.OsConstants.SOCK_DGRAM , 0 ) ; libcore.io.IoBridge.setSocketOption ( fd , java.net.SocketOptions.SO_BROADCAST , true ) ; try { Libcore.os.setsockoptInt ( fd , android.system.OsConstants.IPPROTO_IP , android.system.OsConstants.IP_MULTICAST_ALL , 0 ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }
Source:
protected final void doStart ( ) { executorService = executor ( ) ; executorService.execute ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { lock.lock ( ) ; try { startUp ( ) ; runningTask = scheduler ( ) . schedule ( delegate , executorService , task ) ; notifyStarted ( ) ; } catch ( java.lang.Throwable t ) { notifyFailed ( t ) ; throw com.google.common.base.Throwables.propagate ( t ) ; } finally { lock.unlock ( ) ; } } } ) ; }

Target:
public java.lang.String get ( ) { return ( ( serviceName ( ) ) + " " ) + ( state ( ) ) ; }
Source:
void sendTrackChangeWithId ( int type , @ android.annotation.Nullable com.android.bluetooth.avrcp.MediaController mediaController ) { android.util.Log.d ( com.android.bluetooth.avrcp.AddressedMediaPlayer.TAG , ( ( ( "sendTrackChangeWithId (" + type ) + "): controller " ) + mediaController ) ) ; long qid = getActiveQueueItemId ( mediaController ) ; byte [ ] track = java.nio.ByteBuffer.allocate ( AvrcpConstants.UID_SIZE ) . putLong ( qid ) . array ( ) ; }

Target:
void sendTrackChangeWithId ( int type , @ android.annotation.Nullable com.android.bluetooth.avrcp.MediaController mediaController ) { android.util.Log.d ( com.android.bluetooth.avrcp.AddressedMediaPlayer.TAG , ( ( ( "sendTrackChangeWithId (" + type ) + "): controller " ) + mediaController ) ) ; long qid = getActiveQueueItemId ( mediaController ) ; byte [ ] track = java.nio.ByteBuffer.allocate ( AvrcpConstants.UID_SIZE ) . putLong ( qid ) . array ( ) ; mMediaInterface.trackChangedRsp ( type , track ) ; mLastTrackIdSent = qid ; }