auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void testDial ( ) throws java.lang.Exception { java.lang.String dialString = "1234567890" ; int videoState = 0 ; mImsPhoneUT.dial ( dialString , videoState ) ; org.mockito.Mockito.verify ( mImsCT ) . dial ( dialString , videoState , null ) ; }

Target:
public void testDial ( ) throws java.lang.Exception { java.lang.String dialString = "1234567890" ; int videoState = 0 ; mImsPhoneUT.dial ( dialString , new com.android.internal.telephony.imsphone.ImsPhone.ImsDialArgs.Builder ( ) . setVideoState ( videoState ) . build ( ) ) ; org.mockito.Mockito.verify ( mImsCT ) . dial ( org.mockito.Mockito.eq ( dialString ) , org.mockito.Matchers.any ( ImsPhone.ImsDialArgs.class ) ) ; }
Source:
native void socketSendUrgentData ( int data ) throws java.io.IOException ;

Target:
void socketSendUrgentData ( int data ) throws java.io.IOException { if ( ( ( fd ) == null ) || ( ! ( fd.valid ( ) ) ) ) { throw new java.net.SocketException ( "Socket closed" ) ; } try { byte [ ] buffer = new byte [ ] { ( ( byte ) ( data ) ) } ; Libcore.os.sendto ( fd , buffer , 0 , 1 , android.system.OsConstants.MSG_OOB , null , 0 ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }
Source:
void flushBatchResults ( int clientIf ) { logd ( ( "flushPendingBatchResults - clientIf = " + clientIf ) ) ; if ( ( mBatchScanParms.fullScanClientIf ) != ( - 1 ) ) { resetCountDownLatch ( ) ; gattClientReadScanReportsNative ( mBatchScanParms.fullScanClientIf , com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_FULL ) ; waitForCallback ( ) ; } if ( ( mBatchScanParms.truncatedScanClientIf ) != ( - 1 ) ) { resetCountDownLatch ( ) ; gattClientReadScanReportsNative ( mBatchScanParms.truncatedScanClientIf , com.android.bluetooth.gatt.ScanManager.SCAN_RESULT_TYPE_TRUNCATED ) ; waitForCallback ( ) ; } setBatchAlarm ( ) ; }

Target:
void stopBatchScan ( com.android.bluetooth.gatt.ScanClient client ) { mBatchClients.remove ( client ) ; removeScanFilters ( client.scannerId ) ; if ( ! ( isOpportunisticScanClient ( client ) ) ) { resetBatchScan ( client ) ; } }
Source:
private void onNetworkRoaming ( int state ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_ROAMING_STATE ) ; event.valueInt = state ; android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }

Target:
private void onSubscriberInfo ( java.lang.String number , int type ) { com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent event = new com.android.bluetooth.hfpclient.HeadsetClientStateMachine.StackEvent ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.EVENT_TYPE_SUBSCRIBER_INFO ) ; event.valueInt = type ; event.valueString = number ; if ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.DBG ) { android.util.Log.d ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.TAG , ( "incoming" + event ) ) ; } sendMessage ( com.android.bluetooth.hfpclient.HeadsetClientStateMachine.STACK_EVENT , event ) ; }
Source:
public boolean setP2pSsidPostfix ( java.lang.String postfix ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.setSsidPostfix ( postfix ) ; } else { return doBooleanCommand ( ( "SET p2p_ssid_postfix " + postfix ) ) ; } }

Target:
public java.lang.String startWpsPinDisplay ( java.lang.String iface , java.lang.String bssid ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.startWpsPinDisplay ( iface , bssid ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doStringCommandNative ( ( ( "IFNAME=" + iface ) + " WPS_PIN any" ) ) ; } else { return doStringCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PIN " ) + bssid ) ) ; } } } }
Source:
public static final java.util.HashMap < java.lang.String , ? > readMapXml ( java.io.InputStream in ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { org.xmlpull.v1.XmlPullParser parser = android.util.Xml.newPullParser ( ) ; parser.setInput ( in , null ) ; return ( ( java.util.HashMap < java.lang.String , ? > ) ( com.android.internal.util.XmlUtils.readValueXml ( parser , new java.lang.String [ 1 ] ) ) ) ; }

Target:
public static final java.util.HashMap < java.lang.String , ? > readMapXml ( java.io.InputStream in ) throws java.io.IOException , org.xmlpull.v1.XmlPullParserException { org.xmlpull.v1.XmlPullParser parser = android.util.Xml.newPullParser ( ) ; parser.setInput ( in , java.nio.charset.StandardCharsets.UTF_8.name ( ) ) ; return ( ( java.util.HashMap < java.lang.String , ? > ) ( com.android.internal.util.XmlUtils.readValueXml ( parser , new java.lang.String [ 1 ] ) ) ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { android.widget.TextView tv = ( ( android.widget.TextView ) ( msg.obj ) ) ; int x = tv.getScrollX ( ) ; x = ( x * 3 ) / 4 ; tv.scrollTo ( x , 0 ) ; if ( x == 0 ) { tv.setEllipsize ( TruncateAt.END ) ; } else { android.os.Message newmsg = obtainMessage ( 0 , tv ) ; mLabelScroller.sendMessageDelayed ( newmsg , 15 ) ; } }

Target:
public void onPlaybackStateChanged ( android.media.session.PlaybackState state ) { if ( state == null ) { return ; } com.android.music.utils.LogHelper.d ( com.android.music.MediaPlaybackActivity.TAG , "Received playback state change to state " , state.toString ( ) ) ; updateProgressBar ( ) ; setPauseButtonImage ( ) ; }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( getClass ( ) . getSimpleName ( ) ) ; mIccCardStatus.mApplications = new com.android.internal.telephony.uicc.IccCardApplicationStatus [ ] { } ; mIccCardStatus.mCdmaSubscriptionAppIndex = mIccCardStatus.mImsSubscriptionAppIndex = mIccCardStatus.mGsmUmtsSubscriptionAppIndex = - 1 ; testHelper ( "FF40" ) ; mTestHandlerThread = new com.android.internal.telephony.uicc.UiccProfileTest.UiccProfileHandlerThread ( TAG ) ; mTestHandlerThread.start ( ) ; waitUntilReady ( ) ; replaceInstance ( com.android.internal.telephony.uicc.UiccProfile.class , "mCatService" , mUiccProfile , mCAT ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { super . setUp ( getClass ( ) . getSimpleName ( ) ) ; mIccCardStatus.mApplications = new com.android.internal.telephony.uicc.IccCardApplicationStatus [ ] { } ; mIccCardStatus.mCdmaSubscriptionAppIndex = mIccCardStatus.mImsSubscriptionAppIndex = mIccCardStatus.mGsmUmtsSubscriptionAppIndex = - 1 ; testHelper ( "FF40" ) ; mTestHandlerThread = new com.android.internal.telephony.uicc.UiccProfileTest.UiccProfileHandlerThread ( TAG ) ; mTestHandlerThread.start ( ) ; waitUntilReady ( ) ; com.android.internal.telephony.TelephonyTestUtils.waitForMs ( 50 ) ; replaceInstance ( com.android.internal.telephony.uicc.UiccProfile.class , "mCatService" , mUiccProfile , mCAT ) ; }
Source:
public void logp ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String msg ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; doLog ( lr ) ; }

Target:
public void log ( java.util.logging.Level level , java.lang.String msg , java.lang.Object param1 ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; java.lang.Object [ ] params = new java.lang.Object [ ] { param1 } ; lr.setParameters ( params ) ; doLog ( lr ) ; }
Source:
public static com.android.manifmerger.XmlDocument load ( com.android.manifmerger.KeyResolver < java.lang.String > selectors , com.android.manifmerger.PlaceholderHandler.KeyBasedValueResolver < com.android.manifmerger.ManifestMerger2.SystemProperty > systemPropertyResolver , com.android.manifmerger.XmlLoader.SourceLocation sourceLocation , java.lang.String xml ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( xml ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , sourceLocation , selectors , systemPropertyResolver , domDocument.getDocumentElement ( ) ) : null ; }

Target:
public static com.android.manifmerger.XmlDocument load ( com.android.manifmerger.KeyResolver < java.lang.String > selectors , com.android.manifmerger.PlaceholderHandler.KeyBasedValueResolver < com.android.manifmerger.ManifestMerger2.SystemProperty > systemPropertyResolver , com.android.manifmerger.XmlLoader.SourceLocation sourceLocation , java.lang.String xml , com.android.manifmerger.XmlDocument.Type type ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( xml ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , sourceLocation , selectors , systemPropertyResolver , domDocument.getDocumentElement ( ) , type ) : null ; }
Source:
public void callSessionStartFailed ( com.android.ims.internal.ImsCallSession session , com.android.ims.ImsReasonInfo reasonInfo ) { loge ( ( ( ( "callSessionStartFailed :: session=" + session ) + " reasonInfo=" ) + reasonInfo ) ) ; if ( isTransientConferenceSession ( session ) ) { logi ( ( "callSessionStartFailed :: not supported for transient conference session=" + session ) ) ; return ; } com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; mLastReasonInfo = reasonInfo ; } if ( listener != null ) { try { listener.onCallStartFailed ( this , reasonInfo ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionStarted :: " , t ) ; } } }

Target:
public void callSessionStartFailed ( android.telephony.ims.ImsCallSession session , android.telephony.ims.ImsReasonInfo reasonInfo ) { loge ( ( ( ( "callSessionStartFailed :: session=" + session ) + " reasonInfo=" ) + reasonInfo ) ) ; if ( isTransientConferenceSession ( session ) ) { logi ( ( "callSessionStartFailed :: not supported for transient conference session=" + session ) ) ; return ; } com.android.ims.ImsCall.Listener listener ; synchronized ( this ) { listener = mListener ; mLastReasonInfo = reasonInfo ; } if ( listener != null ) { try { listener.onCallStartFailed ( this , reasonInfo ) ; } catch ( java.lang.Throwable t ) { loge ( "callSessionStarted :: " , t ) ; } } }
Source:
public void process ( org.simpleframework.transport.Socket socket ) throws java.io.IOException { configureSocket ( socket ) ; super . process ( socket ) ; }

Target:
public void changedMode ( @ javax.annotation.Nonnull com.android.jack.server.ServerMode oldMode , @ javax.annotation.Nonnull com.android.jack.server.ServerMode newMode ) { cleanJacks ( java.util.EnumSet.of ( Category.CODE , Category.MEMORY ) , java.util.EnumSet.of ( Impact.LATENCY ) ) ; assert ( timer ) != null ; timer.schedule ( new java.util.TimerTask ( ) { @ com.android.sched.util.findbugs.SuppressFBWarnings ( value = "DM_GC" ) @ java.lang.Override public void run ( ) { java.lang.System.gc ( ) ; } } , 0L , ( ( 60 * 60 ) * 1000 ) ) ; }
Source:
public boolean setWfdEnable ( boolean enable ) { return doBooleanCommand ( ( "SET wifi_display " + ( enable ? "1" : "0" ) ) ) ; }

Target:
public boolean setWfdEnable ( boolean enable ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.enableWfd ( enable ) ; } else { return doBooleanCommand ( ( "SET wifi_display " + ( enable ? "1" : "0" ) ) ) ; } }
Source:
protected boolean markIfNecessary ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode node ) { if ( ( node instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) && ( ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( node ) ) . isExternal ( ) ) ) { return false ; } else if ( node.getParent ( com.android.jack.ir.ast.JDefinedClassOrInterface.class ) . isExternal ( ) ) { return false ; } else { return super . markIfNecessary ( node ) ; } }

Target:
protected boolean markIfNecessary ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JNode node ) { com.android.jack.ir.ast.JDefinedClassOrInterface jdcoi ; if ( node instanceof com.android.jack.ir.ast.JDefinedClassOrInterface ) { jdcoi = ( ( com.android.jack.ir.ast.JDefinedClassOrInterface ) ( node ) ) ; } else { jdcoi = node.getParent ( com.android.jack.ir.ast.JDefinedClassOrInterface.class ) ; } if ( jdcoi.isExternal ( ) ) { return false ; } return super . markIfNecessary ( node ) ; }
Source:
public static int FloatLtNonmatCond_IntVarVar ( float a , float b , int x , int y ) { return a > b ? x : y ; }

Target:
public static int IntMatCond_IntVarVar ( int a , int b , int x , int y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } int result = ( a > b ) ? x : y ; return result + ( a > b ? 0 : 1 ) ; }
Source:
private void loadInternalDataFromUserStore ( java.util.List < android.net.wifi.WifiConfiguration > configurations , java.util.Set < java.lang.String > deletedEphemeralSSIDs ) { for ( android.net.wifi.WifiConfiguration configuration : configurations ) { configuration.networkId = ( mNextNetworkId ) ++ ; if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Adding network from user store " + ( configuration.configKey ( ) ) ) ) ; } mConfiguredNetworks.put ( configuration ) ; } for ( java.lang.String ssid : deletedEphemeralSSIDs ) { mDeletedEphemeralSSIDs.add ( ssid ) ; } }

Target:
private void loadInternalDataFromSharedStore ( java.util.List < android.net.wifi.WifiConfiguration > configurations ) { for ( android.net.wifi.WifiConfiguration configuration : configurations ) { configuration.networkId = ( mNextNetworkId ) ++ ; if ( mVerboseLoggingEnabled ) { android.util.Log.v ( com.android.server.wifi.WifiConfigManager.TAG , ( "Adding network from shared store " + ( configuration.configKey ( ) ) ) ) ; } try { mConfiguredNetworks.put ( configuration ) ; } catch ( java.lang.IllegalArgumentException e ) { android.util.Log.e ( com.android.server.wifi.WifiConfigManager.TAG , "Failed to add network to config map" , e ) ; } } }
Source:
public boolean setP2pGroupIdle ( java.lang.String iface , int time ) { synchronized ( com.android.server.wifi.WifiNative.sLock ) { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " SET p2p_group_idle " ) + time ) ) ; } }

Target:
public boolean setP2pGroupIdle ( java.lang.String iface , int time ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.setGroupIdle ( iface , time ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " SET p2p_group_idle " ) + time ) ) ; } } }
Source:
public boolean processBytes ( byte [ ] buf , int off , int len ) { checksum.update ( buf , off , len ) ; return true ; }

Target:
public synchronized void reset ( ) throws java.io.IOException { if ( ! ( in.markSupported ( ) ) ) { throw new java.io.IOException ( "Mark not supported" ) ; } if ( ( mark ) == ( - 1 ) ) { throw new java.io.IOException ( "Mark not set" ) ; } in.reset ( ) ; left = mark ; }
Source:
private java.lang.String getToolchainDirectory ( com.android.build.gradle.internal.core.Toolchain toolchain , java.lang.String toolchainVersion , com.android.build.gradle.internal.core.Abi abi ) { java.lang.String version = ( toolchainVersion.isEmpty ( ) ) ? getDefaultToolchainVersion ( abi ) : toolchainVersion ; return ( ( ( abi.getPlatform ( ) ) + "-" ) + ( toolchain == ( com.android.build.gradle.internal.core.Toolchain.GCC ) ? "" : "clang" ) ) + version ; }

Target:
private static java.lang.String getToolchainPrefix ( com.android.build.gradle.internal.core.Toolchain toolchain , com.android.build.gradle.internal.core.Abi abi ) { if ( toolchain == ( com.android.build.gradle.internal.core.Toolchain.GCC ) ) { return abi.getGccToolchainPrefix ( ) ; } else { return "llvm" ; } }
Source:
public static void wtf ( java.lang.Object objectPrefix , java.lang.String format , java.lang.Object ... args ) { java.lang.String msg = com.android.services.telephony.Log.buildMessage ( com.android.services.telephony.Log.getPrefixFromObject ( objectPrefix ) , format , args ) ; android.util.Log.wtf ( com.android.services.telephony.Log.TAG , msg , new java.lang.IllegalStateException ( msg ) ) ; }

Target:
public static void v ( java.lang.Object objectPrefix , java.lang.String format , java.lang.Object ... args ) { android.telecom.Log.v ( objectPrefix , format , args ) ; }
Source:
private com.android.jack.ir.ast.JMethod findMethod ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodId methodId , @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassOrInterface enclosingType , @ javax.annotation.Nonnull com.android.jack.ir.ast.JType returnType ) { for ( com.android.jack.ir.ast.JMethod m : methodId.getMethods ( ) ) { if ( ( m.getEnclosingType ( ) . isSameType ( enclosingType ) ) && ( m.getType ( ) . isSameType ( returnType ) ) ) { return m ; } } return null ; }

Target:
private com.android.jack.ir.ast.JMethod findMethod ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JMethodIdWide methodIdWide , @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassOrInterface enclosingType , @ javax.annotation.Nonnull com.android.jack.ir.ast.JType returnType ) { com.android.jack.ir.ast.JMethodId id = methodIdWide.getMethodId ( returnType ) ; if ( id == null ) { return null ; } for ( com.android.jack.ir.ast.JMethod m : id.getMethods ( ) ) { if ( m.getEnclosingType ( ) . isSameType ( enclosingType ) ) { return m ; } } return null ; }
Source:
void addAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral annotation ) throws java.lang.UnsupportedOperationException { com.android.jack.ir.ast.JAnnotationType type = annotation.getType ( ) ; java.util.ArrayList < com.android.jack.ir.ast.JAnnotationLiteral > annotationLiterals = annotations.get ( type ) ; if ( annotationLiterals == null ) { annotationLiterals = new java.util.ArrayList < com.android.jack.ir.ast.JAnnotationLiteral > ( 1 ) ; annotations.put ( type , annotationLiterals ) ; } annotationLiterals.add ( annotation ) ; }

Target:
void addAnnotation ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotation annotation ) throws java.lang.UnsupportedOperationException { com.android.jack.ir.ast.JAnnotationType type = annotation.getType ( ) ; java.util.ArrayList < com.android.jack.ir.ast.JAnnotation > annotationLiterals = annotations.get ( type ) ; if ( annotationLiterals == null ) { annotationLiterals = new java.util.ArrayList < com.android.jack.ir.ast.JAnnotation > ( 1 ) ; annotations.put ( type , annotationLiterals ) ; } annotationLiterals.add ( annotation ) ; }
Source:
protected void deleteFile ( java.io.File dir ) { if ( dir.isDirectory ( ) ) { for ( java.io.File f : dir.listFiles ( ) ) { deleteFile ( f ) ; } } else if ( dir.isFile ( ) ) { assertTrue ( dir.getPath ( ) , dir.delete ( ) ) ; } }

Target:
protected java.io.File getTargetDir ( ) { java.io.File targetDir = new java.io.File ( getTempDir ( ) , ( ( ( getClass ( ) . getSimpleName ( ) ) + "_" ) + ( getName ( ) ) ) ) ; addCleanupDir ( targetDir ) ; return targetDir ; }
Source:
public void animateExpandNotificationsPanel ( ) { if ( com.android.systemui.statusbar.phone.PhoneStatusBar.SPEW ) android.util.Slog.d ( com.android.systemui.statusbar.phone.PhoneStatusBar.TAG , ( "animateExpand: mExpandedVisible=" + ( mExpandedVisible ) ) ) ; if ( ( ( mDisabled ) & ( android.app.StatusBarManager.DISABLE_EXPAND ) ) != 0 ) { return ; } mNotificationPanel.expand ( ) ; if ( ( mHasFlipSettings ) && ( ( mScrollView.getVisibility ( ) ) != ( android.view.View.VISIBLE ) ) ) { flipToNotifications ( ) ; } if ( false ) postStartTracing ( ) ; }

Target:
private void escalateHeadsUp ( ) { if ( ( mInterruptingNotificationEntry ) != null ) { final android.service.notification.StatusBarNotification sbn = mInterruptingNotificationEntry.notification ; final android.app.Notification notification = sbn.getNotification ( ) ; if ( ( notification.fullScreenIntent ) != null ) { if ( com.android.systemui.statusbar.phone.PhoneStatusBar.DEBUG ) android.util.Log.d ( com.android.systemui.statusbar.phone.PhoneStatusBar.TAG , "converting a heads up to fullScreen" ) ; try { notification.fullScreenIntent.send ( ) ; } catch ( android.app.PendingIntent e ) { } } } }
Source:
private static android.net.IpSecTransform buildIpSecTransform ( android.content.Context mContext , android.net.IpSecManager.SecurityParameterIndex spi , android.net.IpSecManager.UdpEncapsulationSocket encapSocket , java.net.InetAddress remoteAddr ) throws java.lang.Exception { java.lang.String localAddr = ( remoteAddr instanceof java.net.Inet4Address ) ? android.net.cts.IpSecManagerTest.IPV4_LOOPBACK : android.net.cts.IpSecManagerTest.IPV6_LOOPBACK ; return new android.net.IpSecTransform.Builder ( mContext ) . setEncryption ( new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ) . setAuthentication ( new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , android.net.cts.IpSecManagerTest.AUTH_KEY , ( ( android.net.cts.IpSecManagerTest.AUTH_KEY.length ) * 4 ) ) ) . setIpv4Encapsulation ( encapSocket , encapSocket.getPort ( ) ) . buildTransportModeTransform ( java.net.InetAddress.getByName ( localAddr ) , spi ) ; }

Target:
public void testAuthUdp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA256 , getKey ( 256 ) , 128 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IPV4_LOOPBACK , null , auth , null , false , 1 , false ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IPV4_LOOPBACK , null , auth , null , false , 1 , true ) ; }
Source:
private static void loadAlternateFormatsMetadataFromFile ( int countryCallingCode ) { java.lang.String fileName = ( ( com.google.i18n.phonenumbers.MetadataManager.ALTERNATE_FORMATS_FILE_PREFIX ) + "_" ) + countryCallingCode ; java.io.InputStream source = com.google.i18n.phonenumbers.MetadataManager.class . getResourceAsStream ( fileName ) ; if ( source == null ) { throw new java.lang.IllegalStateException ( ( "missing metadata: " + fileName ) ) ; } com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadataCollection alternateFormats = com.google.i18n.phonenumbers.MetadataManager.loadMetadataAndCloseInput ( source ) ; for ( com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata : alternateFormats.getMetadataList ( ) ) { com.google.i18n.phonenumbers.MetadataManager.callingCodeToAlternateFormatsMap.put ( metadata.getCountryCode ( ) , metadata ) ; } }

Target:
static com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata getAlternateFormatsForCountry ( int countryCallingCode ) { if ( ! ( com.google.i18n.phonenumbers.MetadataManager.alternateFormatsCountryCodes.contains ( countryCallingCode ) ) ) { return null ; } return com.google.i18n.phonenumbers.MetadataManager.getMetadataFromMultiFilePrefix ( countryCallingCode , com.google.i18n.phonenumbers.MetadataManager.alternateFormatsMap , com.google.i18n.phonenumbers.MetadataManager.ALTERNATE_FORMATS_FILE_PREFIX , com.google.i18n.phonenumbers.MetadataManager.DEFAULT_METADATA_LOADER ) ; }
Source:
private int putListener ( java.lang.Object listener , android.net.nsd.NsdServiceInfo s ) { android.net.nsd.NsdManager.checkListener ( listener ) ; final int key ; synchronized ( mMapLock ) { int valueIndex = mListenerMap.indexOfValue ( listener ) ; com.android.internal.util.Preconditions.checkArgument ( ( valueIndex == ( - 1 ) ) , "listener already in use" ) ; key = java.lang.Math.abs ( ( ( mListenerKey ) ++ ) ) ; mListenerMap.put ( key , listener ) ; mServiceMap.put ( key , s ) ; } return key ; }

Target:
private int putListener ( java.lang.Object listener , android.net.nsd.NsdServiceInfo s ) { android.net.nsd.NsdManager.checkListener ( listener ) ; final int key ; synchronized ( mMapLock ) { int valueIndex = mListenerMap.indexOfValue ( listener ) ; com.android.internal.util.Preconditions.checkArgument ( ( valueIndex == ( - 1 ) ) , "listener already in use" ) ; key = nextListenerKey ( ) ; mListenerMap.put ( key , listener ) ; mServiceMap.put ( key , s ) ; } return key ; }
Source:
public boolean onTouch ( android.view.View v , android.view.MotionEvent event ) { switch ( event.getAction ( ) ) { case android.view.MotionEvent.ACTION_DOWN : if ( ! ( shouldDisableNavbarGestures ( ) ) ) { mHandler.removeCallbacks ( mShowSearchPanel ) ; mHandler.postDelayed ( mShowSearchPanel , mShowSearchHoldoff ) ; } break ; case android.view.MotionEvent.ACTION_UP : case android.view.MotionEvent.ACTION_CANCEL : mHandler.removeCallbacks ( mShowSearchPanel ) ; awakenDreams ( ) ; break ; } return false ; }

Target:
public void onClick ( android.view.View v ) { awakenDreams ( ) ; toggleRecentApps ( ) ; }
Source:
private static void doFollowReferencesTestRoot ( ) { Main.Verifier v = new Main.Verifier ( ) ; Main.tagClasses ( v ) ; Main.A a = Main.createTree ( v ) ; Main.doFollowReferencesTestImpl ( null , java.lang.Integer.MAX_VALUE , ( - 1 ) , a , v , null ) ; Main.doFollowReferencesTestImpl ( a.foo , java.lang.Integer.MAX_VALUE , ( - 1 ) , a , v , "2@1000" ) ; }

Target:
private static void doFollowReferencesTestRoot ( ) { Main.Verifier v = new Main.Verifier ( ) ; Main.tagClasses ( v ) ; Main.A a = Main.createTree ( v ) ; Main.doFollowReferencesTestImpl ( null , java.lang.Integer.MAX_VALUE , ( - 1 ) , a , v , null ) ; Main.doFollowReferencesTestImpl ( a.foo2 , java.lang.Integer.MAX_VALUE , ( - 1 ) , a , v , "3@1001" ) ; }
Source:
public boolean accept ( java.io.File file ) { if ( file.isDirectory ( ) ) return false ; if ( file.getName ( ) . endsWith ( com.android.server.pm.PackageInstallerSession.REMOVE_SPLIT_MARKER_EXTENSION ) ) return false ; return true ; }

Target:
public boolean accept ( java.io.File file ) { if ( file.isDirectory ( ) ) return false ; if ( file.getName ( ) . endsWith ( com.android.server.pm.PackageInstallerSession.REMOVE_SPLIT_MARKER_EXTENSION ) ) return false ; if ( android.content.pm.dex.DexMetadataHelper.isDexMetadataFile ( file ) ) return false ; return true ; }
Source:
void cleanup ( ) { mRegularScanClients.clear ( ) ; mBatchClients.clear ( ) ; mSuspendedScanClients.clear ( ) ; mScanNative.cleanup ( ) ; if ( ( mHandler ) != null ) { mHandler.removeCallbacksAndMessages ( null ) ; android.os.Looper looper = mHandler.getLooper ( ) ; if ( looper != null ) { looper.quit ( ) ; } mHandler = null ; } }

Target:
void cleanup ( ) { mRegularScanClients.clear ( ) ; mBatchClients.clear ( ) ; mSuspendedScanClients.clear ( ) ; mScanNative.cleanup ( ) ; if ( ( mDm ) != null ) { mDm.unregisterDisplayListener ( mDisplayListener ) ; } if ( ( mHandler ) != null ) { mHandler.removeCallbacksAndMessages ( null ) ; android.os.Looper looper = mHandler.getLooper ( ) ; if ( looper != null ) { looper.quit ( ) ; } mHandler = null ; } }
Source:
private static com.android.sched.util.file.Directory createTempDir ( @ javax.annotation.Nonnull com.android.sched.util.RunnableHooks hooks ) { try { java.io.File tmp = com.android.sched.util.file.Files.createTempDir ( ) ; com.android.sched.util.file.Directory dir = new com.android.sched.util.file.Directory ( tmp.getPath ( ) , hooks , com.android.sched.util.file.FileOrDirectory.Existence.MUST_EXIST , com.android.sched.util.file.FileOrDirectory.Permission.WRITE , com.android.sched.util.file.FileOrDirectory.ChangePermission.NOCHANGE ) ; hooks.addHook ( new com.android.jack.Options.TempDirDeleter ( dir ) ) ; return dir ; } catch ( java.io.IOException e ) { throw new com.android.jack.JackUserException ( e ) ; } }

Target:
private static com.android.sched.util.file.Directory createTempDir ( @ javax.annotation.Nonnull com.android.sched.util.RunnableHooks hooks ) { try { java.io.File tmp = com.android.sched.util.file.Files.createTempDir ( "jack-" ) ; com.android.sched.util.file.Directory dir = new com.android.sched.util.file.Directory ( tmp.getPath ( ) , hooks , com.android.sched.util.file.FileOrDirectory.Existence.MUST_EXIST , com.android.sched.util.file.FileOrDirectory.Permission.WRITE , com.android.sched.util.file.FileOrDirectory.ChangePermission.NOCHANGE ) ; hooks.addHook ( new com.android.jack.Options.TempDirDeleter ( dir ) ) ; return dir ; } catch ( com.android.sched.util.file.CannotChangePermissionException | com.android.sched.util.file.CannotCreateFileException | com.android.sched.util.file.FileAlreadyExistsException | com.android.sched.util.file.NotDirectoryException | com.android.sched.util.file.NoSuchFileException | com.android.sched.util.file.WrongPermissionException e ) { throw new com.android.jack.JackUserException ( e ) ; } }
Source:
public static int mapApiToArtVersion ( int api ) { switch ( api ) { case 19 : case 20 : return 7 ; case 21 : return 39 ; case 22 : return 45 ; case 23 : return 64 ; case 24 : return 79 ; } if ( api > 24 ) { return 79 ; } return org.jf.dexlib2.VersionMap.NO_VERSION ; }

Target:
public static int mapApiToArtVersion ( int api ) { switch ( api ) { case 19 : case 20 : return 7 ; case 21 : return 39 ; case 22 : return 45 ; case 23 : return 64 ; case 24 : case 25 : return 79 ; } if ( api > 25 ) { return 87 ; } return org.jf.dexlib2.VersionMap.NO_VERSION ; }
Source:
private void unregisterUiccCardEvents ( ) { if ( ( mUiccCard ) != null ) mUiccCard.unregisterForCarrierPrivilegeRulesLoaded ( this ) ; if ( ( mUiccApplication ) != null ) mUiccApplication.unregisterForReady ( this ) ; if ( ( mUiccApplication ) != null ) mUiccApplication.unregisterForLocked ( this ) ; if ( ( mUiccApplication ) != null ) mUiccApplication.unregisterForNetworkLocked ( this ) ; if ( ( mIccRecords ) != null ) mIccRecords.unregisterForRecordsLoaded ( this ) ; if ( ( mIccRecords ) != null ) mIccRecords.unregisterForRecordsEvents ( this ) ; }

Target:
private boolean areAllApplicationsReady ( ) { for ( com.android.internal.telephony.uicc.UiccCardApplication app : mUiccApplications ) { if ( ( ( app != null ) && ( isSupportedApplication ( app ) ) ) && ( ! ( app.isReady ( ) ) ) ) { return false ; } } return ( mUiccApplications [ 0 ] ) != null ; }
Source:
public void documentHasImages ( final android.os.Message response ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { documentHasImages ( response ) ; } } ) ; return ; } mAwContents.documentHasImages ( response ) ; }

Target:
public void setPictureListener ( final android.webkit.WebView.PictureListener listener ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setPictureListener ( listener ) ; } } ) ; return ; } mContentsClientAdapter.setPictureListener ( listener ) ; mAwContents.enableOnNewPicture ( ( listener != null ) , ( ( mAppTargetSdkVersion ) >= ( Build.VERSION_CODES.JELLY_BEAN_MR2 ) ) ) ; }
Source:
private void rewriteClass ( java.util.jar.JarEntry entry , java.io.InputStream inputStream , java.util.jar.JarOutputStream outputStream ) throws java.io.IOException { org.objectweb.asm.ClassReader classReader = new org.objectweb.asm.ClassReader ( inputStream ) ; org.objectweb.asm.tree.ClassNode classNode = new org.objectweb.asm.tree.ClassNode ( org.objectweb.asm.Opcodes.ASM5 ) ; classReader.accept ( classNode , com.android.builder.testing.MockableJarGenerator.EMPTY_FLAGS ) ; modifyClass ( classNode ) ; org.objectweb.asm.ClassWriter classWriter = new org.objectweb.asm.ClassWriter ( com.android.builder.testing.MockableJarGenerator.EMPTY_FLAGS ) ; classNode.accept ( classWriter ) ; outputStream.putNextEntry ( new java.util.zip.ZipEntry ( entry.getName ( ) ) ) ; outputStream.write ( classWriter.toByteArray ( ) ) ; }

Target:
private void rewriteClass ( java.util.jar.JarEntry entry , java.io.InputStream inputStream , java.util.jar.JarOutputStream outputStream ) throws java.io.IOException { org.objectweb.asm.ClassReader classReader = new org.objectweb.asm.ClassReader ( inputStream ) ; org.objectweb.asm.tree.ClassNode classNode = new org.objectweb.asm.tree.ClassNode ( org.objectweb.asm.Opcodes.ASM5 ) ; classReader.accept ( classNode , com.android.builder.testing.MockableJarGenerator.EMPTY_FLAGS ) ; modifyClass ( classNode ) ; org.objectweb.asm.ClassWriter classWriter = new org.objectweb.asm.ClassWriter ( ( ( org.objectweb.asm.ClassWriter.COMPUTE_MAXS ) | ( org.objectweb.asm.ClassWriter.COMPUTE_FRAMES ) ) ) ; classNode.accept ( classWriter ) ; outputStream.putNextEntry ( new java.util.zip.ZipEntry ( entry.getName ( ) ) ) ; outputStream.write ( classWriter.toByteArray ( ) ) ; }
Source:
private void initStateMachine ( int interfaceType ) throws java.lang.Exception { mTestedSm = new com.android.server.connectivity.tethering.TetherInterfaceStateMachine ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mLooper.getLooper ( ) , interfaceType , mNMService , mStatsService , mTetherHelper , mIPv6TetheringInterfaceServices ) ; mTestedSm.start ( ) ; mLooper.dispatchAll ( ) ; org.mockito.Mockito.reset ( mNMService , mStatsService , mTetherHelper ) ; org.mockito.Mockito.when ( mNMService.getInterfaceConfig ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ) . thenReturn ( mInterfaceConfiguration ) ; }

Target:
private void initStateMachine ( int interfaceType ) throws java.lang.Exception { mTestedSm = new com.android.server.connectivity.tethering.TetherInterfaceStateMachine ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME , mLooper.getLooper ( ) , interfaceType , mSharedLog , mNMService , mStatsService , mTetherHelper , mIPv6TetheringInterfaceServices ) ; mTestedSm.start ( ) ; mLooper.dispatchAll ( ) ; org.mockito.Mockito.reset ( mNMService , mStatsService , mTetherHelper ) ; org.mockito.Mockito.when ( mNMService.getInterfaceConfig ( com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest.IFACE_NAME ) ) . thenReturn ( mInterfaceConfiguration ) ; }
Source:
private static java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > getNegativeCurrencyVectorTR ( ) { java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > v = new java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > ( ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 0 , 1 , java.text.NumberFormat.Field.SIGN ) ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 1 , 4 , java.text.NumberFormat.Field.INTEGER ) ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 5 , 7 , java.text.NumberFormat.Field.CURRENCY ) ) ; return v ; }

Target:
private static java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > getPositiveCurrencyVectorTR ( ) { java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > v = new java.util.Vector < org.apache.harmony.tests.java.text.FieldContainer > ( ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 0 , 3 , java.text.NumberFormat.Field.INTEGER ) ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 3 , 4 , java.text.NumberFormat.Field.DECIMAL_SEPARATOR ) ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 4 , 6 , java.text.NumberFormat.Field.FRACTION ) ) ; v.add ( new org.apache.harmony.tests.java.text.FieldContainer ( 7 , 9 , java.text.NumberFormat.Field.CURRENCY ) ) ; return v ; }
Source:
public java.lang.String sendEnvelopeWithStatus ( java.lang.String content ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.sendEnvelopeWithStatus ( content ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return "" ; }

Target:
public java.lang.String iccTransmitApduLogicalChannel ( int subId , int channel , int cla , int instruction , int p1 , int p2 , int p3 , java.lang.String data ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) return telephony.iccTransmitApduLogicalChannel ( subId , channel , cla , instruction , p1 , p2 , p3 , data ) ; } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } return "" ; }
Source:
public void testStopPnoScan ( ) throws java.lang.Exception { com.android.server.wifi.WificondControl wificondControl = org.mockito.Mockito.mock ( com.android.server.wifi.WificondControl.class ) ; mWifiNative.setWificondControl ( wificondControl ) ; mWifiNative.stopPnoScan ( ) ; org.mockito.Mockito.verify ( wificondControl ) . stopPnoScan ( ) ; }

Target:
public void testSetupDriverForSoftApMode ( ) { android.net.wifi.IApInterface apInterface = org.mockito.Mockito.mock ( android.net.wifi.IApInterface.class ) ; org.mockito.Mockito.when ( mWificondControl.setupDriverForSoftApMode ( ) ) . thenReturn ( apInterface ) ; android.net.wifi.IApInterface returnedApInterface = mWifiNative.setupForSoftApMode ( ) ; org.junit.Assert.assertEquals ( apInterface , returnedApInterface ) ; org.mockito.Mockito.verify ( mWifiVendorHal ) . startVendorHal ( org.mockito.Mockito.eq ( false ) ) ; org.mockito.Mockito.verify ( mWificondControl ) . setupDriverForSoftApMode ( ) ; }
Source:
public void testParsingUncommonTimeZoneAbbreviations ( ) { java.lang.String fmt = "yyyy-MM-dd HH:mm:ss.SSS z" ; java.lang.String date = "2010-12-23 12:44:57.0 CET" ; assertEquals ( 1293104697000L , libcore.java.text.SimpleDateFormatTest.parseDate ( java.util.Locale.UK , fmt , date ) . getTimeInMillis ( ) ) ; assertEquals ( 1293104697000L , libcore.java.text.SimpleDateFormatTest.parseDate ( java.util.Locale.US , fmt , date ) . getTimeInMillis ( ) ) ; }

Target:
public void testParsingUncommonTimeZoneAbbreviations ( ) { java.lang.String fmt = "yyyy-MM-dd HH:mm:ss.SSS z" ; java.lang.String date = "2010-12-23 12:44:57.0 CET" ; assertEquals ( 1293104697000L , libcore.java.text.SimpleDateFormatTest.parseDate ( java.util.Locale.UK , fmt , date ) . getTimeInMillis ( ) ) ; libcore.java.text.SimpleDateFormatTest.assertCannotParse ( java.util.Locale.US , fmt , date ) ; }
Source:
public void startScan ( int appIf , boolean isServer , android.bluetooth.le.ScanSettings settings , java.util.List < android.bluetooth.le.ScanFilter > filters , android.os.WorkSource workSource , java.util.List storages , java.lang.String callingPackage ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.startScan ( appIf , isServer , settings , filters , workSource , storages , callingPackage ) ; }

Target:
public void stopScan ( int scannerId ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.stopScan ( new com.android.bluetooth.gatt.ScanClient ( scannerId ) ) ; }
Source:
public static void computeMix ( android.renderscript.cts.TestMix.ArgumentsFloatFloatFloatFloat args ) { android.renderscript.cts.Floaty start = new android.renderscript.cts.Floaty ( args.inStart ) ; android.renderscript.cts.Floaty stop = new android.renderscript.cts.Floaty ( args.inStop ) ; android.renderscript.cts.Floaty diff = android.renderscript.cts.Floaty.subtract ( stop , start ) ; args.out = android.renderscript.cts.Floaty.add ( start , android.renderscript.cts.Floaty.multiply ( diff , new android.renderscript.cts.Floaty ( args.inAmount ) ) ) ; }

Target:
public static void computeMix ( android.renderscript.cts.TestMix.ArgumentsFloatFloatFloatFloat args ) { android.renderscript.cts.Floaty start = new android.renderscript.cts.Floaty ( args.inStart ) ; android.renderscript.cts.Floaty stop = new android.renderscript.cts.Floaty ( args.inStop ) ; android.renderscript.cts.Floaty diff = android.renderscript.cts.Floaty.subtract ( stop , start ) ; args.out = android.renderscript.cts.Floaty.add ( start , android.renderscript.cts.Floaty.multiply ( diff , new android.renderscript.cts.Floaty ( args.inAmount ) ) ) ; args.out.setMinimumError ( 1 , 4 ) ; }
Source:
public void test_getAllByName_localhost ( ) throws java.lang.Exception { java.net.InetAddress [ ] inetAddresses = java.net.InetAddress.getAllByName ( "localhost" ) ; libcore.java.net.InetAddressTest.assertEquals ( 1 , inetAddresses.length ) ; java.net.InetAddress inetAddress = inetAddresses [ 0 ] ; libcore.java.net.InetAddressTest.assertEquals ( libcore.java.net.InetAddressTest.LOOPBACK4_BYTES , "localhost" , inetAddress ) ; assertTrue ( inetAddress.isLoopbackAddress ( ) ) ; }

Target:
public void test_getAllByName_localhost ( ) throws java.lang.Exception { java.net.InetAddress [ ] inetAddresses = java.net.InetAddress.getAllByName ( "localhost" ) ; org.junit.Assert.assertEquals ( 1 , inetAddresses.length ) ; java.net.InetAddress inetAddress = inetAddresses [ 0 ] ; libcore.java.net.InetAddressTest.checkInetAddress ( libcore.java.net.InetAddressTest.LOOPBACK4_BYTES , "localhost" , inetAddress ) ; org.junit.Assert.assertTrue ( inetAddress.isLoopbackAddress ( ) ) ; }
Source:
public void bindResponse ( int ind_id , boolean ind_status ) { if ( ( ( mService ) != null ) && ( isEnabled ( ) ) ) { try { mService.bindResponse ( ind_id , ind_status ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHeadset.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHeadset.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothHeadset.DBG ) android.util.Log.d ( android.bluetooth.BluetoothHeadset.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } }

Target:
public boolean disableWBS ( ) { final android.bluetooth.IBluetoothHeadset service = mService ; if ( ( service != null ) && ( isEnabled ( ) ) ) { try { return service.disableWBS ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothHeadset.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothHeadset.TAG , "Proxy not attached to service" ) ; if ( android.bluetooth.BluetoothHeadset.DBG ) android.util.Log.d ( android.bluetooth.BluetoothHeadset.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } return false ; }
Source:
public void startScan ( int scannerId , android.bluetooth.le.ScanSettings settings , java.util.List < android.bluetooth.le.ScanFilter > filters , android.os.WorkSource workSource , java.util.List storages , java.lang.String callingPackage ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.startScan ( scannerId , settings , filters , workSource , storages , callingPackage ) ; }

Target:
public void registerScanner ( android.bluetooth.le.IScannerCallback callback , android.os.WorkSource workSource ) { com.android.bluetooth.gatt.GattService service = getService ( ) ; if ( service == null ) return ; service.registerScanner ( callback , workSource ) ; }
Source:
private void computeDetectors ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Project project ) { mCurrentFolderType = null ; mCurrentVisitor = null ; com.android.tools.lint.client.api.Configuration configuration = project.getConfiguration ( ) ; mScopeDetectors = new java.util.HashMap < com.android.tools.lint.detector.api.Scope , java.util.List < com.android.tools.lint.detector.api.Detector > > ( ) ; mApplicableDetectors = mRegistry.createDetectors ( mClient , configuration , mScope , mScopeDetectors ) ; validateScopeList ( ) ; }

Target:
private void computeDetectors ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.Project project ) { mCurrentFolderType = null ; mCurrentVisitor = null ; com.android.tools.lint.client.api.Configuration configuration = project.getConfiguration ( ) ; mScopeDetectors = new java.util.EnumMap < com.android.tools.lint.detector.api.Scope , java.util.List < com.android.tools.lint.detector.api.Detector > > ( com.android.tools.lint.detector.api.Scope.class ) ; mApplicableDetectors = mRegistry.createDetectors ( mClient , configuration , mScope , mScopeDetectors ) ; validateScopeList ( ) ; }
Source:
public void changeEnabledCapabilities ( android.telephony.ims.internal.feature.CapabilityChangeRequest request , android.telephony.ims.internal.CapabilityCallbackProxy c ) { lastRequest = request ; if ( ( setCapabilitiesResult ) != ( android.telephony.ims.internal.feature.ImsFeature.CAPABILITY_SUCCESS ) ) { android.telephony.ims.internal.feature.CapabilityChangeRequest.CapabilityPair capPair = request.getCapabilitiesToEnable ( ) . get ( 0 ) ; c.onChangeCapabilityConfigurationError ( capPair.getCapability ( ) , capPair.getRadioTech ( ) , ImsFeature.CAPABILITY_ERROR_GENERIC ) ; } }

Target:
public void changeEnabledCapabilities ( android.telephony.ims.feature.CapabilityChangeRequest request , android.telephony.ims.CapabilityCallbackProxy c ) { lastRequest = request ; if ( ( setCapabilitiesResult ) != ( android.telephony.ims.feature.ImsFeature.CAPABILITY_SUCCESS ) ) { android.telephony.ims.feature.CapabilityChangeRequest.CapabilityPair capPair = request.getCapabilitiesToEnable ( ) . get ( 0 ) ; c.onChangeCapabilityConfigurationError ( capPair.getCapability ( ) , capPair.getRadioTech ( ) , ImsFeature.CAPABILITY_ERROR_GENERIC ) ; } }
Source:
private void writeConstructor ( ) throws java.io.IOException { computeStartAndEndLine ( ) ; sourceInfoWriter.writeDebugBegin ( currentClass , startLine ) ; writer.writeKeyword ( Token.CONSTRUCTOR ) ; writer.writeOpen ( ) ; writeParameters ( ) ; writer.writeInt ( com.android.jill.frontend.java.AsmHelper.getModifiers ( currentMethod ) ) ; annotWriter.writeAnnotations ( currentMethod ) ; writeMethodBody ( ) ; writer.writeOpenNodeList ( ) ; writeOriginalTypeInfoMarker ( ) ; writeThrownExceptionMarker ( ) ; writer.writeCloseNodeList ( ) ; sourceInfoWriter.writeDebugEnd ( currentClass , endLine ) ; writer.writeClose ( ) ; }

Target:
private void writeConstructor ( ) throws java.io.IOException { computeStartAndEndLine ( ) ; sourceInfoWriter.writeDebugBegin ( currentClass , startLine ) ; writer.writeKeyword ( Token.CONSTRUCTOR ) ; writer.writeOpen ( ) ; writeParameters ( ) ; writer.writeInt ( com.android.jill.frontend.java.AsmHelper.getModifiers ( currentMethod ) ) ; annotWriter.writeAnnotations ( currentMethod ) ; writeMethodBody ( ) ; writer.writeOpenNodeList ( ) ; writeGenericSignatureMarker ( ) ; writeThrownExceptionMarker ( ) ; writer.writeCloseNodeList ( ) ; sourceInfoWriter.writeDebugEnd ( currentClass , endLine ) ; writer.writeClose ( ) ; }
Source:
public boolean delKey ( java.lang.String key ) { try { return ( mBinder.del_key ( key , ( - 1 ) ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }

Target:
public boolean generate ( java.lang.String key , int uid ) { try { return ( mBinder.generate ( key , uid ) ) == ( android.security.KeyStore.NO_ERROR ) ; } catch ( android.os.RemoteException e ) { android.util.Log.w ( android.security.KeyStore.TAG , "Cannot connect to keystore" , e ) ; return false ; } }