auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void enter ( ) { setWifiState ( android.net.wifi.WifiManager.WIFI_STATE_ENABLED ) ; mNetworkInfo.setIsAvailable ( true ) ; if ( ( mNetworkAgent ) != null ) mNetworkAgent.sendNetworkInfo ( mNetworkInfo ) ; setNetworkDetailedState ( DetailedState.DISCONNECTED ) ; mWifiConnectivityManager.setWifiEnabled ( true ) ; mWifiMetrics.setWifiState ( WifiMetricsProto.WifiLog.WIFI_DISCONNECTED ) ; }

Target:
public void enter ( ) { setWifiState ( android.net.wifi.WifiManager.WIFI_STATE_ENABLED ) ; mNetworkInfo.setIsAvailable ( true ) ; if ( ( mNetworkAgent ) != null ) mNetworkAgent.sendNetworkInfo ( mNetworkInfo ) ; setNetworkDetailedState ( DetailedState.DISCONNECTED ) ; mWifiConnectivityManager.setWifiEnabled ( true ) ; mWifiMetrics.setWifiState ( WifiMetricsProto.WifiLog.WIFI_DISCONNECTED ) ; p2pSendMessage ( com.android.server.wifi.WifiStateMachine.CMD_ENABLE_P2P ) ; }
Source:
public void run ( ) { org.eclipse.swt.widgets.Shell shell = display.getActiveShell ( ) ; if ( org.eclipse.jface.dialogs.MessageDialog.openQuestion ( shell , "Android AVD Error" , "No compatible targets were found. Do you wish to a add new Android Virtual Device?" ) ) { com.android.ide.eclipse.adt.internal.actions.AvdManagerAction action = new com.android.ide.eclipse.adt.internal.actions.AvdManagerAction ( ) ; action.run ( null ) ; searchAgain [ 0 ] = true ; } }

Target:
public void run ( ) { org.eclipse.swt.widgets.Shell shell = display.getActiveShell ( ) ; if ( org.eclipse.jface.dialogs.MessageDialog.openQuestion ( shell , "Android AVD Error" , "No compatible targets were found. Do you wish to add a new Android Virtual Device?" ) ) { com.android.ide.eclipse.adt.internal.actions.AvdManagerAction action = new com.android.ide.eclipse.adt.internal.actions.AvdManagerAction ( ) ; action.run ( null ) ; searchAgain [ 0 ] = true ; } }
Source:
public boolean hasUnsupportedCriticalExtension ( ) { java.util.Set extns = getCriticalExtensionOIDs ( ) ; if ( extns == null ) { return false ; } extns.remove ( RFC3280CertPathUtilities.ISSUING_DISTRIBUTION_POINT ) ; extns.remove ( RFC3280CertPathUtilities.DELTA_CRL_INDICATOR ) ; return ! ( extns.isEmpty ( ) ) ; }

Target:
public boolean hasUnsupportedCriticalExtension ( ) { java.util.Set extns = getCriticalExtensionOIDs ( ) ; if ( extns == null ) { return false ; } extns.remove ( Extension.issuingDistributionPoint.getId ( ) ) ; extns.remove ( Extension.deltaCRLIndicator.getId ( ) ) ; return ! ( extns.isEmpty ( ) ) ; }
Source:
private void dispatchBookkeepingRequest ( int sequenceNumber , java.net.Socket socket ) throws java.lang.InterruptedException { requestCount.incrementAndGet ( ) ; dispatcher.dispatch ( new com.google.mockwebserver.RecordedRequest ( null , null , null , ( - 1 ) , null , sequenceNumber , socket ) ) ; }

Target:
private void dispatchBookkeepingRequest ( int sequenceNumber , java.net.Socket socket ) throws java.lang.InterruptedException { requestCount.incrementAndGet ( ) ; com.google.mockwebserver.RecordedRequest request = new com.google.mockwebserver.RecordedRequest ( null , null , null , ( - 1 ) , null , sequenceNumber , socket ) ; dispatcher.dispatch ( request ) ; requestQueue.add ( request ) ; }
Source:
final void showAskCompatModeDialogLocked ( com.android.server.am.ActivityRecord r ) { android.os.Message msg = android.os.Message.obtain ( ) ; msg.what = ActivityManagerService.SHOW_COMPAT_MODE_DIALOG_MSG ; msg.obj = ( r.task.askedCompatMode ) ? null : r ; mService.mHandler.sendMessage ( msg ) ; }

Target:
void setLaunchTime ( com.android.server.am.ActivityRecord r ) { if ( ( r.displayStartTime ) == 0 ) { r.fullyDrawnStartTime = r.displayStartTime = android.os.SystemClock.uptimeMillis ( ) ; if ( ( mLaunchStartTime ) == 0 ) { startLaunchTraces ( ) ; mLaunchStartTime = mFullyDrawnStartTime = r.displayStartTime ; } } else if ( ( mLaunchStartTime ) == 0 ) { startLaunchTraces ( ) ; mLaunchStartTime = mFullyDrawnStartTime = android.os.SystemClock.uptimeMillis ( ) ; } }
Source:
public void sendSMSExpectMore ( java.lang.String smscPDU , java.lang.String pdu , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SEND_SMS_EXPECT_MORE , result ) ; constructGsmSendSmsRilRequest ( rr , smscPDU , pdu ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; mMetrics.writeRilSendSms ( mInstanceId , rr.mSerial , SmsSession.Event.Tech.SMS_GSM , SmsSession.Event.Format.SMS_FORMAT_3GPP ) ; send ( rr ) ; }

Target:
public void sendSMS ( java.lang.String smscPDU , java.lang.String pdu , android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SEND_SMS , result , mRILDefaultWorkSource ) ; constructGsmSendSmsRilRequest ( rr , smscPDU , pdu ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; mMetrics.writeRilSendSms ( mInstanceId , rr.mSerial , SmsSession.Event.Tech.SMS_GSM , SmsSession.Event.Format.SMS_FORMAT_3GPP ) ; send ( rr ) ; }
Source:
private void createContextMenu ( ) { mMenuManager = new org.eclipse.jface.action.MenuManager ( ) { @ java.lang.Override public boolean isDynamic ( ) { return true ; } } ; setupStaticMenuActions ( mMenuManager ) ; setupDynamicMenuActions ( mMenuManager ) ; org.eclipse.swt.widgets.Menu menu = mMenuManager.createContextMenu ( this ) ; setMenu ( menu ) ; }

Target:
java.util.List < com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasSelection > getCanvasSelection ( ) { if ( ( mUnmodifiableSelection ) == null ) { mUnmodifiableSelection = java.util.Collections.unmodifiableList ( mSelections ) ; } return mUnmodifiableSelection ; }
Source:
public void getDataRegistrationState ( android.os.Message result ) { mGetDataRegistrationStateCallCount.incrementAndGet ( ) ; java.lang.String [ ] ret = new java.lang.String [ 11 ] ; ret [ 0 ] = java.lang.Integer.toString ( mDataRegState ) ; ret [ 3 ] = java.lang.Integer.toString ( mDataRadioTech ) ; resultSuccess ( result , ret ) ; }

Target:
public void getDataRegistrationState ( android.os.Message result ) { mGetDataRegistrationStateCallCount.incrementAndGet ( ) ; android.hardware.radio.V1_0.DataRegStateResult ret = new android.hardware.radio.V1_0.DataRegStateResult ( ) ; ret.regState = mDataRegState ; ret.rat = mDataRadioTech ; resultSuccess ( result , ret ) ; }
Source:
public void stop ( org.osgi.framework.BundleContext context ) throws java.lang.Exception { com.android.ide.eclipse.hierarchyviewer.HierarchyViewerPlugin.plugin = null ; super . stop ( context ) ; }

Target:
public void stop ( org.osgi.framework.BundleContext context ) throws java.lang.Exception { com.android.ide.eclipse.hierarchyviewer.HierarchyViewerPlugin.plugin = null ; super . stop ( context ) ; redColor.dispose ( ) ; com.android.hierarchyviewerlib.HierarchyViewerDirector director = com.android.hierarchyviewerlib.HierarchyViewerDirector.getDirector ( ) ; director.stopListenForDevices ( ) ; director.stopDebugBridge ( ) ; director.terminate ( ) ; }
Source:
public void enter ( ) { android.util.Log.d ( com.android.bluetooth.pbapclient.PbapClientStateMachine.TAG , ( "Enter Disconnecting: " + ( getCurrentMessage ( ) . what ) ) ) ; onConnectionStateChanged ( mCurrentDevice , mMostRecentState , BluetoothProfile.STATE_DISCONNECTING ) ; mMostRecentState = android.bluetooth.BluetoothProfile.STATE_DISCONNECTING ; mConnectionHandler.obtainMessage ( PbapClientConnectionHandler.MSG_DISCONNECT ) . sendToTarget ( ) ; sendMessageDelayed ( com.android.bluetooth.pbapclient.PbapClientStateMachine.MSG_DISCONNECT_TIMEOUT , com.android.bluetooth.pbapclient.PbapClientStateMachine.DISCONNECT_TIMEOUT ) ; }

Target:
public void enter ( ) { if ( com.android.bluetooth.pbapclient.PbapClientStateMachine.DBG ) android.util.Log.d ( com.android.bluetooth.pbapclient.PbapClientStateMachine.TAG , ( "Enter Disconnecting: " + ( getCurrentMessage ( ) . what ) ) ) ; onConnectionStateChanged ( mCurrentDevice , mMostRecentState , BluetoothProfile.STATE_DISCONNECTING ) ; mMostRecentState = android.bluetooth.BluetoothProfile.STATE_DISCONNECTING ; mConnectionHandler.obtainMessage ( PbapClientConnectionHandler.MSG_DISCONNECT ) . sendToTarget ( ) ; sendMessageDelayed ( com.android.bluetooth.pbapclient.PbapClientStateMachine.MSG_DISCONNECT_TIMEOUT , com.android.bluetooth.pbapclient.PbapClientStateMachine.DISCONNECT_TIMEOUT ) ; }
Source:
private void recordMedia ( long maxFileSize ) throws java.lang.Exception { mMediaRecorder.setMaxFileSize ( maxFileSize ) ; mMediaRecorder.prepare ( ) ; mMediaRecorder.start ( ) ; java.lang.Thread.sleep ( android.media.cts.MediaRecorderTest.RECORD_TIME ) ; mMediaRecorder.stop ( ) ; assertTrue ( mOutFile.exists ( ) ) ; assertTrue ( ( ( mOutFile.length ( ) ) < ( 1.1 * maxFileSize ) ) ) ; assertTrue ( ( ( mOutFile.length ( ) ) > 0 ) ) ; }

Target:
, @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "getMaxAmplitude" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "prepare" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setAudioEncoder" , args = { int . class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setAudioSource" , args = { int . class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setOutputFile" , args = { java.lang.String.class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setOutputFormat" , args = { int . class } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "start" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "stop" , args = { } ) , @ dalvik.annotation.TestTargetNew ( level = dalvik.annotation.TestLevel.COMPLETE , method = "setMaxFileSize" , args = { long . class } ) } ) public void testRecorderAudio ( ) throws java.lang.Exception { mMediaRecorder.setAudioSource ( MediaRecorder.AudioSource.MIC ) ; assertEquals ( 0 , mMediaRecorder.getMaxAmplitude ( ) ) ; mMediaRecorder.setOutputFormat ( MediaRecorder.OutputFormat.THREE_GPP ) ; mMediaRecorder.setOutputFile ( OUTPUT_PATH ) ; mMediaRecorder.setAudioEncoder ( MediaRecorder.AudioEncoder.AMR_NB ) ; recordMedia ( android.media.cts.MediaRecorderTest.MAX_FILE_SIZE , mOutFile ) ; }
Source:
private void revertToNitzTimeZone ( ) { if ( ( Settings.Global.getInt ( mCr , Settings.Global.AUTO_TIME_ZONE , 0 ) ) == 0 ) { return ; } if ( com.android.internal.telephony.ServiceStateTracker.DBG ) log ( ( "Reverting to NITZ TimeZone: tz='" + ( mSavedTimeZone ) ) ) ; if ( ( mSavedTimeZone ) != null ) { setAndBroadcastNetworkSetTimeZone ( mSavedTimeZone ) ; } }

Target:
private void updateServiceStateLteEarfcnBoost ( android.telephony.ServiceState serviceState , int lteEarfcn ) { synchronized ( mLteRsrpBoostLock ) { if ( ( lteEarfcn != ( com.android.internal.telephony.ServiceStateTracker.INVALID_LTE_EARFCN ) ) && ( containsEarfcnInEarfcnRange ( mEarfcnPairListForRsrpBoost , lteEarfcn ) ) ) { serviceState.setLteEarfcnRsrpBoost ( mLteRsrpBoost ) ; } else { serviceState.setLteEarfcnRsrpBoost ( 0 ) ; } } }
Source:
public static com.android.tools.perflib.heap.Instance [ ] instancesOf ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Snapshot snapshot , java.lang.String baseClassName ) { com.android.tools.perflib.heap.ClassObj theClass = snapshot.findClass ( baseClassName ) ; if ( theClass == null ) { throw new java.lang.IllegalArgumentException ( ( "Class not found: " + baseClassName ) ) ; } com.android.tools.perflib.heap.Instance [ ] instances = new com.android.tools.perflib.heap.Instance [ theClass.mInstances.size ( ) ] ; return theClass.mInstances.toArray ( instances ) ; }

Target:
public static com.android.tools.perflib.heap.Instance [ ] instancesOf ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Snapshot snapshot , java.lang.String baseClassName ) { com.android.tools.perflib.heap.ClassObj theClass = snapshot.findClass ( baseClassName ) ; if ( theClass == null ) { throw new java.lang.IllegalArgumentException ( ( "Class not found: " + baseClassName ) ) ; } java.util.List < com.android.tools.perflib.heap.Instance > instances = theClass.getInstancesList ( ) ; return instances.toArray ( new com.android.tools.perflib.heap.Instance [ instances.size ( ) ] ) ; }
Source:
public void testPownF32 ( ) { script_f32 = new android.renderscript.cts.ScriptC_pown_f32 ( mRS , mRes , R.raw.pown_f32 ) ; android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ INPUTSIZE ] ; android.renderscript.cts.RSUtils.genRandom ( 305419896 , 32 , 1 , ( - 16 ) , n ) ; nAlloc.copyFrom ( n ) ; script_f32.set_n ( nAlloc ) ; doF32 ( 7432909 , 16 ) ; }

Target:
public void testPownF32 ( ) { android.renderscript.Allocation nAlloc = android.renderscript.Allocation.createSized ( mRS , android.renderscript.Element.I32 ( mRS ) , android.renderscript.cts.INPUTSIZE ) ; n = new int [ INPUTSIZE ] ; android.renderscript.cts.RSUtils.genRandom ( 305419896 , 32 , 1 , ( - 16 ) , n ) ; nAlloc.copyFrom ( n ) ; script_f32.set_n1 ( nAlloc ) ; doF32 ( 7432909 , 16 ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { if ( ! ( android.media.tv.cts.Utils.hasTvInputFramework ( getContext ( ) ) ) ) { return ; } mManager = ( ( android.media.tv.TvInputManager ) ( mContext.getSystemService ( Context.TV_INPUT_SERVICE ) ) ) ; mStubId = android.media.tv.cts.TvInputManagerTest.getInfoForClassName ( mManager.getTvInputList ( ) , android.media.tv.cts.StubTunerTvInputService.class . getName ( ) ) . getId ( ) ; }

Target:
public void testGetTvInputList ( ) throws java.lang.Exception { if ( ! ( android.media.tv.cts.Utils.hasTvInputFramework ( getActivity ( ) ) ) ) { return ; } java.util.List < android.media.tv.TvInputInfo > list = mManager.getTvInputList ( ) ; for ( java.lang.String name : android.media.tv.cts.TvInputManagerTest.VALID_TV_INPUT_SERVICES ) { assertNotNull ( ( "getTvInputList() doesn't contain valid input: " + name ) , android.media.tv.cts.TvInputManagerTest.getInfoForClassName ( list , name ) ) ; } for ( java.lang.String name : android.media.tv.cts.TvInputManagerTest.INVALID_TV_INPUT_SERVICES ) { assertNull ( ( "getTvInputList() contains invalind input: " + name ) , android.media.tv.cts.TvInputManagerTest.getInfoForClassName ( list , name ) ) ; } }
Source:
public void entering ( java.lang.String sourceClass , java.lang.String sourceMethod ) { if ( ( java.util.logging.Level.FINER.intValue ( ) ) < ( levelValue ) ) { return ; } logp ( java.util.logging.Level.FINER , sourceClass , sourceMethod , "ENTRY" ) ; }

Target:
public void logp ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.util.function.Supplier < java.lang.String > msgSupplier ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msgSupplier.get ( ) ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; doLog ( lr ) ; }
Source:
public void testInjectSms ( ) { transitionFromStartupToIdle ( ) ; mGsmInboundSmsHandler.sendMessage ( InboundSmsHandler.EVENT_INJECT_SMS , new android.os.AsyncResult ( null , mSmsMessage , null ) ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; verifySmsIntentBroadcasts ( 0 ) ; mGsmInboundSmsHandler.sendMessage ( InboundSmsHandler.EVENT_INJECT_SMS , new android.os.AsyncResult ( null , mSmsMessage , null ) ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; verify ( mContext , times ( 2 ) ) . sendBroadcast ( any ( android.content.Intent.class ) ) ; assertEquals ( "IdleState" , getCurrentState ( ) . getName ( ) ) ; }

Target:
public void testBroadcastSms ( ) { transitionFromStartupToIdle ( ) ; org.mockito.Mockito.doReturn ( 0 ) . when ( mInboundSmsTracker ) . getDestPort ( ) ; mGsmInboundSmsHandler.sendMessage ( InboundSmsHandler.EVENT_BROADCAST_SMS , mInboundSmsTracker ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; verifyDataSmsIntentBroadcasts ( 0 ) ; mGsmInboundSmsHandler.sendMessage ( InboundSmsHandler.EVENT_BROADCAST_SMS , mInboundSmsTracker ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 100 ) ; verifyDataSmsIntentBroadcasts ( 1 ) ; }
Source:
public void subData1D ( int off , int count , float [ ] d ) { super . copy1DRangeFrom ( off , count , d ) ; }

Target:
public static android.renderscript.AllocationAdapter create1D ( android.renderscript.RenderScript rs , android.renderscript.Allocation a ) { rs.validate ( ) ; android.renderscript.Type t = android.renderscript.Type.createX ( rs , a.getElement ( ) , a.getType ( ) . getX ( ) ) ; return android.renderscript.AllocationAdapter.createTyped ( rs , a , t ) ; }
Source:
public static java.io.File manageFileCharset ( @ javax.annotation.Nonnull java.io.File file ) { if ( file instanceof com.android.jack.api.v04c.HasCharset ) { return new java.io.File ( file.getParent ( ) , ( ( ( ( file.getName ( ) ) + "[" ) + ( ( ( com.android.jack.api.v04c.HasCharset ) ( file ) ) . getCharset ( ) . name ( ) ) ) + "]" ) ) ; } else { return file ; } }

Target:
public static java.io.File manageFileCharset ( @ javax.annotation.Nonnull java.io.File file ) { if ( file instanceof com.android.jack.api.v04.HasCharset ) { return new java.io.File ( file.getParent ( ) , ( ( ( ( file.getName ( ) ) + "[" ) + ( ( ( com.android.jack.api.v04.HasCharset ) ( file ) ) . getCharset ( ) . name ( ) ) ) + "]" ) ) ; } else { return file ; } }
Source:
public void apply ( ) { for ( java.lang.Object candidate : toAnnotate ) { if ( candidate instanceof com.android.jack.ir.ast.Annotable ) { com.android.jack.ir.ast.Annotable annotable = ( ( com.android.jack.ir.ast.Annotable ) ( candidate ) ) ; if ( ( annotable.getAnnotation ( annotation ) ) == null ) { com.android.jack.ir.ast.JAnnotationLiteral literal = new com.android.jack.ir.ast.JAnnotationLiteral ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , annotation.getRetentionPolicy ( ) , annotation ) ; annotable.addAnnotation ( literal ) ; literal.updateParents ( ( ( com.android.jack.ir.ast.JNode ) ( annotable ) ) ) ; } } } }

Target:
public void apply ( ) { for ( java.lang.Object candidate : toAnnotate ) { if ( candidate instanceof com.android.jack.ir.ast.Annotable ) { com.android.jack.ir.ast.Annotable annotable = ( ( com.android.jack.ir.ast.Annotable ) ( candidate ) ) ; if ( annotable.getAnnotations ( annotation ) . isEmpty ( ) ) { com.android.jack.ir.ast.JAnnotationLiteral literal = new com.android.jack.ir.ast.JAnnotationLiteral ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN , annotation.getRetentionPolicy ( ) , annotation ) ; annotable.addAnnotation ( literal ) ; literal.updateParents ( ( ( com.android.jack.ir.ast.JNode ) ( annotable ) ) ) ; } } } }
Source:
private void notifyAllFeaturesRemoved ( ) { if ( ( mCallbacks ) == null ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , "notifyAllFeaturesRemoved called with invalid callbacks." ) ; return ; } synchronized ( mLock ) { for ( android.util.Pair < java.lang.Integer , java.lang.Integer > feature : mImsFeatures ) { mCallbacks.imsServiceFeatureRemoved ( feature.first , feature.second , this ) ; sendImsFeatureRemovedCallback ( feature.first , feature.second ) ; } } }

Target:
private void notifyAllFeaturesRemoved ( ) { if ( ( mCallbacks ) == null ) { android.util.Log.w ( com.android.internal.telephony.ims.ImsServiceController.LOG_TAG , "notifyAllFeaturesRemoved called with invalid callbacks." ) ; return ; } synchronized ( mLock ) { for ( android.telephony.ims.stub.ImsFeatureConfiguration.FeatureSlotPair feature : mImsFeatures ) { if ( ( feature.featureType ) != ( android.telephony.ims.feature.ImsFeature.FEATURE_EMERGENCY_MMTEL ) ) { mCallbacks.imsServiceFeatureRemoved ( feature.slotId , feature.featureType , this ) ; } sendImsFeatureRemovedCallback ( feature.slotId , feature.featureType ) ; } } }
Source:
public void testE3 ( ) { dot.junit.opcodes.aget_boolean.d.T_aget_boolean_1 t = new dot.junit.opcodes.aget_boolean.d.T_aget_boolean_1 ( ) ; boolean [ ] arr = new boolean [ 2 ] ; try { t.run ( arr , ( - 1 ) ) ; fail ( "expected ArrayIndexOutOfBoundsException" ) ; } catch ( java.lang.ArrayIndexOutOfBoundsException aie ) { } }

Target:
public void testVFE4 ( ) { load ( "dot.junit.opcodes.aget_boolean.d.T_aget_boolean_5" , java.lang.VerifyError.class ) ; }
Source:
public void getVoiceRegistrationState ( android.os.Message result ) { mGetVoiceRegistrationStateCallCount.incrementAndGet ( ) ; android.hardware.radio.V1_0.VoiceRegStateResult ret = new android.hardware.radio.V1_0.VoiceRegStateResult ( ) ; ret.regState = mVoiceRegState ; ret.rat = mVoiceRadioTech ; resultSuccess ( result , ret ) ; }

Target:
public void getVoiceRegistrationState ( android.os.Message result ) { mGetVoiceRegistrationStateCallCount.incrementAndGet ( ) ; android.hardware.radio.V1_0.VoiceRegStateResult ret = new android.hardware.radio.V1_0.VoiceRegStateResult ( ) ; ret.regState = mVoiceRegState ; ret.rat = mVoiceRadioTech ; ret.cssSupported = mCssSupported ; ret.roamingIndicator = mRoamingIndicator ; ret.systemIsInPrl = mSystemIsInPrl ; ret.defaultRoamingIndicator = mDefaultRoamingIndicator ; ret.reasonForDenial = mReasonForDenial ; resultSuccess ( result , ret ) ; }
Source:
public void run ( ) { int numSuccessfulConnections = 0 ; while ( true ) { try { java.net.Socket socket = serverSocket.accept ( ) ; numSuccessfulConnections ++ ; socket.close ( ) ; } catch ( java.net.SocketException e ) { this . numSuccessfulConnections = numSuccessfulConnections ; shutdownLatch.countDown ( ) ; return ; } catch ( java.io.IOException e ) { } } }

Target:
public void run ( ) { startLatch.countDown ( ) ; int numSuccessfulConnections = 0 ; while ( true ) { try { java.net.Socket socket = serverSocket.accept ( ) ; numSuccessfulConnections ++ ; socket.close ( ) ; } catch ( java.net.SocketException e ) { this . numSuccessfulConnections = numSuccessfulConnections ; shutdownLatch.countDown ( ) ; return ; } catch ( java.io.IOException e ) { } } }
Source:
public void testAesCbcHmacMd5Tcp4UdpEncap ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.getKey ( 256 ) ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , android.net.cts.IpSecManagerTest.getKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , null , true , 1 , true ) ; }

Target:
public void testCryptTcp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_TCP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , null , false , 1 , true ) ; }
Source:
public void getIMEISV ( android.os.Message result ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_GET_IMEISV , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void reportStkServiceIsRunning ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.reportStkServiceIsRunning ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "reportStkServiceIsRunning" , e ) ; } } }
Source:
public void out ( @ com.android.annotations.Nullable java.lang.String line ) { if ( line != null ) { aaptOutput.add ( line ) ; } }

Target:
private java.util.List < java.lang.String > getAaptOutput ( @ com.android.annotations.NonNull java.io.File apkFile ) throws com.android.ide.common.process.ProcessException { com.android.ide.common.process.ProcessInfoBuilder builder = new com.android.ide.common.process.ProcessInfoBuilder ( ) ; builder.setExecutable ( mAaptFile ) ; builder.addArgs ( "dump" , "badging" , apkFile.getPath ( ) ) ; com.android.ide.common.process.CachedProcessOutputHandler processOutputHandler = new com.android.ide.common.process.CachedProcessOutputHandler ( ) ; mProcessExecutor.execute ( builder.createProcess ( ) , processOutputHandler ) . rethrowFailure ( ) . assertNormalExitValue ( ) ; com.android.ide.common.process.BaseProcessOutputHandler.BaseProcessOutput output = processOutputHandler.getProcessOutput ( ) ; return com.google.common.base.Splitter.on ( '\n' ) . splitToList ( output.getStandardOutputAsString ( ) ) ; }
Source:
public java.lang.String getSymbol ( java.util.Locale locale ) { libcore.icu.LocaleData localeData = libcore.icu.LocaleData.get ( locale ) ; if ( localeData.internationalCurrencySymbol.equals ( currencyCode ) ) { return localeData.currencySymbol ; } java.lang.String symbol = libcore.icu.ICU.getCurrencySymbol ( locale , currencyCode ) ; return symbol != null ? symbol : currencyCode ; }

Target:
public java.lang.String getSymbol ( java.util.Locale locale ) { if ( locale == null ) { throw new java.lang.NullPointerException ( "locale == null" ) ; } libcore.icu.LocaleData localeData = libcore.icu.LocaleData.get ( locale ) ; if ( localeData.internationalCurrencySymbol.equals ( currencyCode ) ) { return localeData.currencySymbol ; } java.lang.String symbol = libcore.icu.ICU.getCurrencySymbol ( locale , currencyCode ) ; return symbol != null ? symbol : currencyCode ; }
Source:
public void turnOffIms ( int slotId , int featureType ) throws android.os.RemoteException { synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { feature.turnOffIms ( ) ; } } }

Target:
public void turnOffIms ( int slotId , int featureType ) throws android.os.RemoteException { enforceCallingOrSelfPermission ( android.Manifest.permission.MODIFY_PHONE_STATE , "turnOffIms" ) ; synchronized ( mFeatures ) { android.telephony.ims.feature.MMTelFeature feature = resolveMMTelFeature ( slotId , featureType ) ; if ( feature != null ) { feature.turnOffIms ( ) ; } } }
Source:
public void onMessageReceived ( int requestorInstanceId , byte [ ] peerMac , byte [ ] message ) { java.lang.String prevMac = mMacByRequestorInstanceId.get ( requestorInstanceId ) ; mMacByRequestorInstanceId.put ( requestorInstanceId , new java.lang.String ( libcore.util.HexEncoding.encode ( peerMac ) ) ) ; if ( com.android.server.wifi.nan.WifiNanSessionState.DBG ) { android.util.Log.d ( com.android.server.wifi.nan.WifiNanSessionState.TAG , ( "onMessageReceived: previous peer MAC replaced - " + prevMac ) ) ; } try { mCallback.onMessageReceived ( requestorInstanceId , message ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.server.wifi.nan.WifiNanSessionState.TAG , ( "onMessageReceived: RemoteException (FYI): " + e ) ) ; } }

Target:
public void onMessageReceived ( int requestorInstanceId , byte [ ] peerMac , byte [ ] message ) { java.lang.String prevMac = mMacByRequestorInstanceId.get ( requestorInstanceId ) ; mMacByRequestorInstanceId.put ( requestorInstanceId , new java.lang.String ( libcore.util.HexEncoding.encode ( peerMac ) ) ) ; if ( com.android.server.wifi.nan.WifiNanDiscoverySessionState.DBG ) { android.util.Log.d ( com.android.server.wifi.nan.WifiNanDiscoverySessionState.TAG , ( "onMessageReceived: previous peer MAC replaced - " + prevMac ) ) ; } try { mCallback.onMessageReceived ( requestorInstanceId , message ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( com.android.server.wifi.nan.WifiNanDiscoverySessionState.TAG , ( "onMessageReceived: RemoteException (FYI): " + e ) ) ; } }
Source:
public void onClick ( android.view.View v ) { if ( ! ( mDpm.isAdminActive ( com.android.cts.verifier.managedprovisioning.DeviceAdminTestReceiver.getReceiverComponentName ( ) ) ) ) { android.widget.Toast.makeText ( this , R.string.provisioning_byod_keyguard_disabled_features_not_admin , Toast.LENGTH_SHORT ) . show ( ) ; return ; } mDpm.resetPassword ( "testpassword" , 0 ) ; setKeyguardDisabledFeatures ( ( ( ( android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_TRUST_AGENTS ) | ( android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT ) ) | ( android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS ) ) ) ; }

Target:
protected int getKeyguardDisabledFeatures ( ) { return ( ( android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_TRUST_AGENTS ) | ( android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT ) ) | ( android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS ) ; }
Source:
public void onLayoutChildren ( android.support.v7.widget.RecyclerView.Recycler recycler , android.support.v7.widget.RecyclerView.State state ) { super . onLayoutChildren ( recycler , state ) ; int itemsShown = ( ( findLastVisibleItemPosition ( ) ) - ( findFirstVisibleItemPosition ( ) ) ) + 1 ; if ( ( adapter.getItemCount ( ) ) > itemsShown ) { fastScroller.setVisibility ( View.VISIBLE ) ; recyclerView.setOnScrollChangeListener ( this ) ; } else { fastScroller.setVisibility ( View.GONE ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { getLoaderManager ( ) . initLoader ( 0 , null , this ) ; }
Source:
boolean disconnectAudio ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( ! ( mStateMachine.isAudioOn ( ) ) ) { return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.DISCONNECT_AUDIO ) ; return true ; }

Target:
boolean connectAudio ( ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; if ( ( mStateMachine.getConnectionState ( mStateMachine.getCurrentDevice ( ) ) ) != ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetService.TAG , "connectAudio: profile not connected" ) ; return false ; } if ( isAudioOn ( ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetService.TAG , ( "connectAudio: audio is not idle, current state " + ( mStateMachine.getAudioState ( ) ) ) ) ; return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.CONNECT_AUDIO , mStateMachine.getCurrentDevice ( ) ) ; return true ; }
Source:
protected void restartDataStallAlarm ( ) { if ( ( isConnected ( ) ) == false ) return ; int nextAction = getRecoveryAction ( ) ; if ( com.android.internal.telephony.gsm.GsmDataConnectionTracker.RecoveryAction.isAggressiveRecovery ( nextAction ) ) { if ( DBG ) log ( "data stall recovery action is pending. not resetting the alarm." ) ; return ; } stopDataStallAlarm ( ) ; startDataStallAlarm ( com.android.internal.telephony.gsm.GsmDataConnectionTracker.DATA_STALL_NOT_SUSPECTED ) ; }

Target:
protected void onVoiceCallEnded ( ) { if ( DBG ) log ( "onVoiceCallEnded" ) ; if ( isConnected ( ) ) { if ( ! ( mPhone.getServiceStateTracker ( ) . isConcurrentVoiceAndDataAllowed ( ) ) ) { startNetStatPoll ( ) ; startDataStallAlarm ( com.android.internal.telephony.gsm.GsmDataConnectionTracker.DATA_STALL_NOT_SUSPECTED ) ; notifyDataConnection ( Phone.REASON_VOICE_CALL_ENDED ) ; } else { resetPollStats ( ) ; } } setupDataOnReadyApns ( Phone.REASON_VOICE_CALL_ENDED ) ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { server.setEnabledProtocols ( new java.lang.String [ ] { "TLSv1" , "SSLv3" } ) ; server.setEnabledCipherSuites ( serverCipherSuites ) ; try { server.startHandshake ( ) ; fail ( "Should result in inappropriate fallback" ) ; } catch ( javax.net.ssl.SSLHandshakeException expected ) { } return null ; }

Target:
public java.lang.Void call ( ) throws java.lang.Exception { client.setEnabledProtocols ( new java.lang.String [ ] { "SSLv3" } ) ; client.setEnabledCipherSuites ( clientCipherSuites ) ; try { client.startHandshake ( ) ; fail ( "Should receive TLS alert inappropriate fallback" ) ; } catch ( javax.net.ssl.SSLHandshakeException expected ) { } return null ; }
Source:
public static com.google.common.io.OutputSupplier < java.io.FileOutputStream > newOutputStreamSupplier ( final java.io.File file , final boolean append ) { com.google.common.base.Preconditions.checkNotNull ( file ) ; return new com.google.common.io.OutputSupplier < java.io.FileOutputStream > ( ) { @ java.lang.Override public java.io.FileOutputStream getOutput ( ) throws java.io.IOException { return new java.io.FileOutputStream ( file , append ) ; } } ; }

Target:
public static java.io.BufferedReader newReader ( java.io.File file , java.nio.charset.Charset charset ) throws java.io.FileNotFoundException { com.google.common.base.Preconditions.checkNotNull ( file ) ; com.google.common.base.Preconditions.checkNotNull ( charset ) ; return new java.io.BufferedReader ( new java.io.InputStreamReader ( new java.io.FileInputStream ( file ) , charset ) ) ; }
Source:
private static boolean checkPlatformContent ( java.io.File platform , com.android.sdklib.ISdkLog log ) { for ( java.lang.String relativePath : com.android.sdklib.SdkManager.sPlatformContentList ) ; java.io.File f = new java.io.File ( platform , relativePath ) ; Merge ( com.android.sdklib.I7b091c36 , com.android.sdklib.I767c1513 ) ; }

Target:
private static boolean checkPlatformContent ( java.io.File platform , com.android.sdklib.ISdkLog log ) { for ( java.lang.String relativePath : com.android.sdklib.SdkManager.sPlatformContentList ) { java.io.File f = new java.io.File ( platform , relativePath ) ; if ( ! ( f.exists ( ) ) ) { log.warning ( "Ignoring platform '%1$s': %2$s is missing." , platform.getName ( ) , relativePath ) ; return false ; } } return true ; }
Source:
public boolean removeUser ( int userId ) { com.android.server.pm.PackageManagerService.enforceSystemOrRoot ( "Only the system can remove users" ) ; if ( ( userId == 0 ) || ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) ) { return false ; } cleanUpUser ( userId ) ; if ( com.android.server.pm.PackageManagerService.sUserManager.removeUser ( userId ) ) { android.content.Intent addedIntent = new android.content.Intent ( android.content.Intent.ACTION_USER_REMOVED ) ; addedIntent.putExtra ( Intent.EXTRA_USERID , userId ) ; mContext.sendBroadcast ( addedIntent , android.Manifest.permission.MANAGE_ACCOUNTS ) ; } com.android.server.pm.PackageManagerService.sUserManager.removePackageFolders ( userId ) ; return true ; }

Target:
public int getApplicationEnabledSetting ( java.lang.String packageName , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED ; int uid = android.os.Binder.getCallingUid ( ) ; enforceCrossUserPermission ( uid , userId , false , "get enabled" ) ; synchronized ( mPackages ) { return mSettings.getApplicationEnabledSettingLPr ( packageName , userId ) ; } }
Source:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.ext.ExtCompilationTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.BOOTCLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.zip" ) } ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.REF_BOOTCLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jar" ) } ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "ext" ) ; }

Target:
public static void setUpClass ( ) { com.android.jack.compile.androidtree.ext.ExtCompilationTest.class . getClassLoader ( ) . setDefaultAssertionStatus ( true ) ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.CLASSPATH = new java.io.File [ ] { com.android.jack.TestTools.getFromAndroidTree ( "out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.zip" ) } ; com.android.jack.compile.androidtree.ext.ExtCompilationTest.SOURCELIST = com.android.jack.TestTools.getTargetLibSourcelist ( "ext" ) ; }
Source:
public void copyFrom ( float [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyFrom" ) ; mRS.validate ( ) ; if ( ( mCurrentDimZ ) > 0 ) { copy3DRangeFrom ( 0 , 0 , 0 , mCurrentDimX , mCurrentDimY , mCurrentDimZ , d ) ; } else if ( ( mCurrentDimY ) > 0 ) { copy2DRangeFrom ( 0 , 0 , mCurrentDimX , mCurrentDimY , d ) ; } else { copy1DRangeFrom ( 0 , mCurrentCount , d ) ; } android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copyFrom ( float [ ] d ) { validateIsFloat32 ( ) ; copyFromUnchecked ( d , Element.DataType.FLOAT_32 , d.length ) ; }
Source:
private java.util.Set < vogar.ModeId > readModes ( com.google.caliper.internal.gson.stream.JsonReader reader ) throws java.io.IOException { java.util.Set < vogar.ModeId > result = new java.util.LinkedHashSet < vogar.ModeId > ( ) ; reader.beginArray ( ) ; while ( reader.hasNext ( ) ) { result.add ( vogar.ModeId.valueOf ( reader.nextString ( ) . toUpperCase ( ) ) ) ; } reader.endArray ( ) ; return result ; }

Target:
private java.util.Set < vogar.ModeId > readModes ( com.google.gson.stream.JsonReader reader ) throws java.io.IOException { java.util.Set < vogar.ModeId > result = new java.util.LinkedHashSet < vogar.ModeId > ( ) ; reader.beginArray ( ) ; while ( reader.hasNext ( ) ) { result.add ( vogar.ModeId.valueOf ( reader.nextString ( ) . toUpperCase ( ) ) ) ; } reader.endArray ( ) ; return result ; }
Source:
public java.net.URL getEntryUrlOrNull ( java.lang.String entryName ) { if ( ( jarFile.findEntry ( entryName ) ) != null ) { try { return new java.net.URL ( "jar" , null , ( - 1 ) , ( ( ( fileUri ) + "!/" ) + entryName ) , this ) ; } catch ( java.net.MalformedURLException e ) { throw new java.lang.RuntimeException ( "Invalid entry name" , e ) ; } } return null ; }

Target:
public java.net.URL getEntryUrlOrNull ( java.lang.String entryName ) { if ( ( libcore.io.ClassPathURLStreamHandler.findEntryWithDirectoryFallback ( jarFile , entryName ) ) != null ) { try { return new java.net.URL ( "jar" , null , ( - 1 ) , ( ( ( fileUri ) + "!/" ) + entryName ) , this ) ; } catch ( java.net.MalformedURLException e ) { throw new java.lang.RuntimeException ( "Invalid entry name" , e ) ; } } return null ; }
Source:
private boolean optimize ( ) throws java.io.IOException { if ( configuration.verbose ) { java.lang.System.out.println ( "Optimizing..." ) ; } return new proguard.Optimizer ( configuration ) . execute ( programClassPool , libraryClassPool ) ; }

Target:
private void shrink ( ) throws java.io.IOException { if ( configuration.verbose ) { java.lang.System.out.println ( "Shrinking..." ) ; if ( ( configuration.whyAreYouKeeping ) != null ) { java.lang.System.out.println ( "Explaining why classes and class members are being kept..." ) ; } if ( ( configuration.printUsage ) != null ) { java.lang.System.out.println ( ( ( "Printing usage to [" + ( fileName ( configuration.printUsage ) ) ) + "]..." ) ) ; } } programClassPool = new proguard.shrink.Shrinker ( configuration ) . execute ( programClassPool , libraryClassPool ) ; }
Source:
public void setLocationUpdates ( boolean enable , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SET_LOCATION_UPDATES , response ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( ( enable ? 1 : 0 ) ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + ": " ) + enable ) ) ; send ( rr ) ; }

Target:
public void setLocationUpdates ( boolean enable , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_SET_LOCATION_UPDATES , response , mRILDefaultWorkSource ) ; rr.mParcel.writeInt ( 1 ) ; rr.mParcel.writeInt ( ( enable ? 1 : 0 ) ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) + ": " ) + enable ) ) ; send ( rr ) ; }
Source:
public void linkNativeLibraryDirectory ( java.lang.String uuid , java.lang.String packageName , java.lang.String nativeLibPath32 , int userId ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.linkNativeLibraryDirectory ( uuid , packageName , nativeLibPath32 , userId ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void linkNativeLibraryDirectory ( java.lang.String uuid , java.lang.String packageName , java.lang.String nativeLibPath32 , int userId ) throws com.android.server.pm.Installer.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.linkNativeLibraryDirectory ( uuid , packageName , nativeLibPath32 , userId ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
protected boolean stop ( ) { android.util.Log.v ( com.android.bluetooth.sap.SapService.TAG , "stop()" ) ; try { unregisterReceiver ( mSapReceiver ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.sap.SapService.TAG , "Unable to unregister sap receiver" , e ) ; } setState ( BluetoothSap.STATE_DISCONNECTED , BluetoothSap.RESULT_CANCELED ) ; sendShutdownMessage ( ) ; return true ; }

Target:
protected boolean stop ( ) { android.util.Log.v ( com.android.bluetooth.sap.SapService.TAG , "stop()" ) ; if ( ! ( mIsRegistered ) ) { android.util.Log.i ( com.android.bluetooth.sap.SapService.TAG , "Avoid unregister when receiver it is not registered" ) ; return true ; } try { mIsRegistered = false ; unregisterReceiver ( mSapReceiver ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.sap.SapService.TAG , "Unable to unregister sap receiver" , e ) ; } setState ( BluetoothSap.STATE_DISCONNECTED , BluetoothSap.RESULT_CANCELED ) ; sendShutdownMessage ( ) ; return true ; }
Source:
public static boolean isSyncPending ( android.accounts.Account account , java.lang.String authority ) { try { return android.content.ContentResolver.getContentService ( ) . isSyncPending ( account , authority ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( "the ContentService should always be reachable" , e ) ; } }

Target:
public static boolean getSyncAutomaticallyAsUser ( android.accounts.Account account , java.lang.String authority , int userId ) { try { return android.content.ContentResolver.getContentService ( ) . getSyncAutomaticallyAsUser ( account , authority , userId ) ; } catch ( android.os.RemoteException e ) { throw new java.lang.RuntimeException ( "the ContentService should always be reachable" , e ) ; } }
Source:
public android.telephony.SignalStrength getSignalStrength ( int subId ) { com.android.internal.telephony.Phone p = getPhone ( subId ) ; if ( p == null ) { return null ; } return p.getSignalStrength ( ) ; }

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 boolean accept ( java.io.File pathname ) { if ( ( ! ( com.android.cts.verifier.suid.SuidFilesActivity.WHITELIST.contains ( pathname.getName ( ) ) ) ) && ( com.android.cts.verifier.os.FileUtils.getFileStatus ( pathname.getPath ( ) , status , true ) ) ) { return ( ( ! ( status.isDirectory ( ) ) ) && ( ! ( status.isSymbolicLink ( ) ) ) ) && ( status.isSetUid ( ) ) ; } else { android.util.Log.w ( com.android.cts.verifier.suid.SuidFilesActivity.TAG , ( "Could not stat " + pathname ) ) ; return false ; } }

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 com.android.ide.common.res2.MergingException addFilePosition ( @ com.android.annotations.NonNull java.io.File file , @ com.android.annotations.NonNull org.xml.sax.SAXParseException exception ) { int lineNumber = exception.getLineNumber ( ) ; if ( lineNumber != ( - 1 ) ) { addFilePosition ( new com.android.ide.common.blame.FilePosition ( file , new com.android.ide.common.blame.SourceFragmentPositionRange ( ( ( exception.getLineNumber ( ) ) - 1 ) , ( ( exception.getColumnNumber ( ) ) - 1 ) , ( - 1 ) ) ) ) ; } else { addFile ( file ) ; } return this ; }

Target:
public com.android.ide.common.res2.MergingException addFilePosition ( @ com.android.annotations.NonNull java.io.File file , @ com.android.annotations.NonNull org.xml.sax.SAXParseException exception ) { int lineNumber = exception.getLineNumber ( ) ; if ( lineNumber != ( - 1 ) ) { addFilePosition ( new com.android.ide.common.blame.FilePosition ( file , new com.android.ide.common.blame.SourcePosition ( ( ( exception.getLineNumber ( ) ) - 1 ) , ( ( exception.getColumnNumber ( ) ) - 1 ) , ( - 1 ) ) ) ) ; } else { addFile ( file ) ; } return this ; }
Source:
public final int getCompositeSize ( ) { com.android.tools.perflib.heap.Instance.CollectingVisitor visitor = new com.android.tools.perflib.heap.Instance.CollectingVisitor ( ) ; this . accept ( visitor ) ; int size = 0 ; for ( com.android.tools.perflib.heap.Instance instance : visitor.getVisited ( ) ) { size += instance.getSize ( ) ; } return size ; }

Target:
public final int getCompositeSize ( ) { com.android.tools.perflib.heap.Instance.CompositeSizeVisitor visitor = new com.android.tools.perflib.heap.Instance.CompositeSizeVisitor ( ) ; visitor.doVisit ( com.google.common.collect.ImmutableList.of ( this ) ) ; return visitor.getCompositeSize ( ) ; }