auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void recordTosAcceptance ( ) { if ( isVvm3 ( ) ) { preferences.edit ( ) . putInt ( com.android.dialer.app.voicemail.error.VoicemailTosMessageCreator.PREF_VVM3_TOS_VERSION_ACCEPTED_KEY , com.android.dialer.app.voicemail.error.VoicemailTosMessageCreator.CURRENT_VVM3_TOS_VERSION ) . apply ( ) ; } else { preferences.edit ( ) . putInt ( com.android.dialer.app.voicemail.error.VoicemailTosMessageCreator.PREF_DIALER_TOS_VERSION_ACCEPTED_KEY , com.android.dialer.app.voicemail.error.VoicemailTosMessageCreator.CURRENT_DIALER_TOS_VERSION ) . apply ( ) ; } android.telecom.PhoneAccountHandle handle = new android.telecom.PhoneAccountHandle ( android.content.ComponentName.unflattenFromString ( status.phoneAccountComponentName ) , status.phoneAccountId ) ; com.android.voicemail.VoicemailComponent.get ( context ) . getVoicemailClient ( ) . onTosAccepted ( context , handle ) ; }

Target:
private void recordFeatureAcknowledgement ( ) { preferences.edit ( ) . putInt ( VoicemailVersionConstants.PREF_DIALER_FEATURE_VERSION_ACKNOWLEDGED_KEY , VoicemailVersionConstants.CURRENT_VOICEMAIL_FEATURE_VERSION ) . apply ( ) ; }
Source:
private int getInternalStateUid ( int clientId ) throws java.lang.Exception { java.lang.reflect.Field field = com.android.server.wifi.nan.WifiNanServiceImpl.class . getDeclaredField ( "mUidByClientId" ) ; field.setAccessible ( true ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) android.util.SparseIntArray uidByClientId = ( ( android.util.SparseIntArray ) ( field.get ( mDut ) ) ) ; return uidByClientId.get ( clientId , ( - 1 ) ) ; }

Target:
private int getInternalStateUid ( int clientId ) throws java.lang.Exception { java.lang.reflect.Field field = com.android.server.wifi.aware.WifiAwareServiceImpl.class . getDeclaredField ( "mUidByClientId" ) ; field.setAccessible ( true ) ; @ java.lang.SuppressWarnings ( value = "unchecked" ) android.util.SparseIntArray uidByClientId = ( ( android.util.SparseIntArray ) ( field.get ( mDut ) ) ) ; return uidByClientId.get ( clientId , ( - 1 ) ) ; }
Source:
private void postMessage ( int messageCode , boolean shouldCreateHandler , com.android.internal.os.SomeArgs args ) { synchronized ( this ) { if ( ( ( mHandler ) == null ) && shouldCreateHandler ) { mHandler = getNewHandler ( ) ; } if ( ( mHandler ) == null ) { com.android.server.telecom.Log.d ( this , "Message %d skipped because there is no handler." , messageCode ) ; } else { mHandler.obtainMessage ( messageCode , args ) . sendToTarget ( ) ; } } }

Target:
private void postMessage ( int messageCode , boolean shouldCreateHandler , com.android.internal.os.SomeArgs args ) { synchronized ( this ) { if ( ( ( mHandler ) == null ) && shouldCreateHandler ) { mHandler = getNewHandler ( ) ; } if ( ( mHandler ) == null ) { android.telecom.Log.d ( this , "Message %d skipped because there is no handler." , messageCode ) ; } else { mHandler.obtainMessage ( messageCode , args ) . sendToTarget ( ) ; } } }
Source:
private static int getGroupSourceReqOp ( int javaValue ) { switch ( javaValue ) { case libcore.io.IoBridge.JAVA_MCAST_JOIN_SOURCE_GROUP : return MCAST_JOIN_SOURCE_GROUP ; case libcore.io.IoBridge.JAVA_MCAST_LEAVE_SOURCE_GROUP : return MCAST_LEAVE_SOURCE_GROUP ; case libcore.io.IoBridge.JAVA_MCAST_BLOCK_SOURCE : return MCAST_BLOCK_SOURCE ; case libcore.io.IoBridge.JAVA_MCAST_UNBLOCK_SOURCE : return MCAST_UNBLOCK_SOURCE ; default : throw new java.lang.AssertionError ( ( "Unknown java value for setsocketopt op lookup: " + javaValue ) ) ; } }

Target:
public static java.net.InetSocketAddress getLocalInetSocketAddress ( java.io.FileDescriptor fd ) throws java.net.SocketException { try { java.net.SocketAddress socketAddress = Libcore.os.getsockname ( fd ) ; if ( ( socketAddress != null ) && ( ! ( socketAddress instanceof java.net.InetSocketAddress ) ) ) { throw new java.net.SocketException ( ( ( "Socket assumed to be pending closure: Expected sockname " + "to be an InetSocketAddress, got " ) + ( socketAddress.getClass ( ) ) ) ) ; } return ( ( java.net.InetSocketAddress ) ( socketAddress ) ) ; } catch ( android.system.ErrnoException errnoException ) { throw errnoException.rethrowAsSocketException ( ) ; } }
Source:
public int totalCount ( ) { synchronized ( mScoClients ) { int count = 0 ; int size = mScoClients.size ( ) ; for ( int i = 0 ; i < size ; i ++ ) { count += mScoClients.get ( i ) . getCount ( ) ; } return count ; } }

Target:
public int totalCount ( ) { synchronized ( mScoClients ) { int count = 0 ; for ( com.android.server.audio.AudioService.ScoClient mScoClient : mScoClients ) { count += mScoClient.getCount ( ) ; } return count ; } }
Source:
private static void handleSystemServerProcess ( com.android.internal.os.ZygoteConnection.Arguments parsedArgs ) throws com.android.internal.os.ZygoteInit.MethodAndArgsCaller { com.android.internal.os.ZygoteInit.closeServerSocket ( ) ; Libcore.os.umask ( ( ( libcore.io.OsConstants.S_IRWXG ) | ( libcore.io.OsConstants.S_IRWXO ) ) ) ; if ( ( parsedArgs.niceName ) != null ) { java.lang.Process.setArgV0 ( parsedArgs.niceName ) ; } if ( ( parsedArgs.invokeWith ) != null ) { com.android.internal.os.WrapperInit.execApplication ( parsedArgs.invokeWith , parsedArgs.niceName , parsedArgs.targetSdkVersion , null , parsedArgs.remainingArgs ) ; } else { com.android.internal.os.RuntimeInit.zygoteInit ( parsedArgs.targetSdkVersion , parsedArgs.remainingArgs ) ; } }

Target:
private static void handleSystemServerProcess ( com.android.internal.os.ZygoteConnection.Arguments parsedArgs ) throws com.android.internal.os.ZygoteInit.MethodAndArgsCaller { com.android.internal.os.ZygoteInit.closeServerSocket ( ) ; android.system.Os.umask ( ( ( libcore.io.OsConstants.S_IRWXG ) | ( libcore.io.OsConstants.S_IRWXO ) ) ) ; if ( ( parsedArgs.niceName ) != null ) { java.lang.Process.setArgV0 ( parsedArgs.niceName ) ; } if ( ( parsedArgs.invokeWith ) != null ) { com.android.internal.os.WrapperInit.execApplication ( parsedArgs.invokeWith , parsedArgs.niceName , parsedArgs.targetSdkVersion , null , parsedArgs.remainingArgs ) ; } else { com.android.internal.os.RuntimeInit.zygoteInit ( parsedArgs.targetSdkVersion , parsedArgs.remainingArgs ) ; } }
Source:
public void setDataDependency ( int networkType , boolean met ) { try { mService.setDataDependency ( networkType , met ) ; } catch ( android.os.RemoteException e ) { } }

Target:
public android.net.ProxyInfo getDefaultProxy ( ) { final android.net.Network network = android.net.ConnectivityManager.getProcessDefaultNetwork ( ) ; if ( network != null ) { final android.net.ProxyInfo globalProxy = getGlobalProxy ( ) ; if ( globalProxy != null ) return globalProxy ; final android.net.LinkProperties lp = getLinkProperties ( network ) ; if ( lp != null ) return lp.getHttpProxy ( ) ; return null ; } try { return mService.getDefaultProxy ( ) ; } catch ( android.os.RemoteException e ) { return null ; } }
Source:
static int getMajorVersion ( ) { java.lang.String version = android.opengl.GLES20.glGetString ( GLES20.GL_VERSION ) ; java.util.regex.Pattern pattern = java.util.regex.Pattern.compile ( "OpenGL ES ([0-9]+)\\.([0-9]+)" ) ; java.util.regex.Matcher matcher = pattern.matcher ( version ) ; if ( matcher.find ( ) ) { return java.lang.Integer.parseInt ( matcher.group ( 1 ) ) ; } return 2 ; }

Target:
static android.util.Pair < java.lang.Integer , java.lang.Integer > getVersion ( ) { java.lang.String version = android.opengl.GLES20.glGetString ( GLES20.GL_VERSION ) ; java.util.regex.Pattern pattern = java.util.regex.Pattern.compile ( "OpenGL ES ([0-9]+)\\.([0-9]+)" ) ; java.util.regex.Matcher matcher = pattern.matcher ( version ) ; if ( matcher.find ( ) ) { return new android.util.Pair ( java.lang.Integer.parseInt ( matcher.group ( 1 ) ) , java.lang.Integer.parseInt ( matcher.group ( 2 ) ) ) ; } return new android.util.Pair ( 2 , 0 ) ; }
Source:
void stop ( ) { if ( ( mDefaultNetworkCallback ) != null ) { getConnectivityManager ( ) . unregisterNetworkCallback ( mDefaultNetworkCallback ) ; mDefaultNetworkCallback = null ; } if ( ( mDunTetheringCallback ) != null ) { getConnectivityManager ( ) . unregisterNetworkCallback ( mDunTetheringCallback ) ; mDunTetheringCallback = null ; } mNetworkMap.clear ( ) ; }

Target:
public void start ( ) { stop ( ) ; mDefaultNetworkCallback = new com.android.server.connectivity.Tethering.UpstreamNetworkMonitor.UpstreamNetworkCallback ( ) ; cm ( ) . registerDefaultNetworkCallback ( mDefaultNetworkCallback ) ; final android.net.NetworkRequest dunTetheringRequest = new android.net.NetworkRequest.Builder ( ) . addTransportType ( NetworkCapabilities.TRANSPORT_CELLULAR ) . removeCapability ( NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED ) . addCapability ( NetworkCapabilities.NET_CAPABILITY_DUN ) . build ( ) ; mDunTetheringCallback = new com.android.server.connectivity.Tethering.UpstreamNetworkMonitor.UpstreamNetworkCallback ( ) ; cm ( ) . registerNetworkCallback ( dunTetheringRequest , mDunTetheringCallback ) ; }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , float [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 4 ) ) ; }

Target:
public void copy2DRangeTo ( int xoff , int yoff , int w , int h , byte [ ] data ) { validateIsInt8 ( ) ; copy2DRangeToUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_8 , data.length ) ; }
Source:
public void installPackage ( @ com.android.annotations.NonNull java.io.File apkFile , int timeout ) throws com.android.builder.testing.api.DeviceException { try { iDevice.installPackage ( apkFile.getAbsolutePath ( ) , true ) ; } catch ( java.lang.Exception e ) { throw new com.android.builder.testing.api.DeviceException ( e ) ; } }

Target:
public void uninstallPackage ( @ com.android.annotations.NonNull java.lang.String packageName , int timeout , com.android.utils.ILogger logger ) throws com.android.builder.testing.api.DeviceException { try { iDevice.uninstallPackage ( packageName ) ; } catch ( java.lang.Exception e ) { logger.error ( e , ( "Unable to uninstall " + packageName ) ) ; throw new com.android.builder.testing.api.DeviceException ( e ) ; } }
Source:
public void testReleaseVersion ( ) { assertEquals ( android.os.cts.BuildVersionTest.EXPECTED_RELEASE , Build.VERSION.RELEASE ) ; assertEquals ( android.os.cts.BuildVersionTest.EXPECTED_SDK , Build.VERSION.SDK ) ; }

Target:
public void testReleaseVersion ( ) { assertTrue ( ( ( ( "Your Build.VERSION.RELEASE of " + ( Build.VERSION.RELEASE ) ) + " was not one of the following: " ) + ( android.os.cts.BuildVersionTest.EXPECTED_RELEASES ) ) , android.os.cts.BuildVersionTest.EXPECTED_RELEASES.contains ( Build.VERSION.RELEASE ) ) ; assertEquals ( ( "" + ( android.os.cts.BuildVersionTest.EXPECTED_SDK ) ) , Build.VERSION.SDK ) ; assertEquals ( android.os.cts.BuildVersionTest.EXPECTED_SDK , Build.VERSION.SDK_INT ) ; }
Source:
public void bind ( java.net.SocketAddress localAddr ) throws java.net.SocketException { if ( channelImpl.isConnected ( ) ) { throw new java.nio.channels.AlreadyConnectedException ( ) ; } super . bind ( localAddr ) ; channelImpl.isBound = true ; }

Target:
public void connect ( java.net.SocketAddress peer ) throws java.net.SocketException { if ( isConnected ( ) ) { throw new java.lang.IllegalStateException ( "Socket is already connected." ) ; } super . connect ( peer ) ; channelImpl.onBind ( false ) ; java.net.InetSocketAddress inetSocketAddress = ( ( java.net.InetSocketAddress ) ( peer ) ) ; channelImpl.onConnect ( inetSocketAddress.getAddress ( ) , inetSocketAddress.getPort ( ) , false ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotationLiteral literal ) { for ( com.android.jack.ir.ast.JNameValuePair pair : literal.getNameValuePairs ( ) ) { com.android.jack.ir.ast.JMethodId id = getResolvedMethodId ( literal.getType ( ) , pair.getMethodId ( ) ) ; pair.resolveMethodId ( id ) ; } return super . visit ( literal ) ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAnnotation annotation ) { for ( com.android.jack.ir.ast.JNameValuePair pair : annotation.getNameValuePairs ( ) ) { com.android.jack.ir.ast.JMethodId id = getResolvedMethodId ( annotation.getType ( ) , pair.getMethodId ( ) ) ; pair.resolveMethodId ( id ) ; } return super . visit ( annotation ) ; }
Source:
protected boolean start ( ) { if ( com.android.bluetooth.pbapclient.PbapClientService.DBG ) { android.util.Log.d ( com.android.bluetooth.pbapclient.PbapClientService.TAG , "onStart" ) ; } android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( BluetoothDevice.ACTION_ACL_DISCONNECTED ) ; filter.addAction ( Intent.ACTION_USER_UNLOCKED ) ; try { registerReceiver ( mPbapBroadcastReceiver , filter ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.pbapclient.PbapClientService.TAG , "Unable to register pbapclient receiver" , e ) ; } removeUncleanAccounts ( ) ; com.android.bluetooth.pbapclient.PbapClientService.setPbapClientService ( this ) ; return true ; }

Target:
void cleanupDevice ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.pbapclient.PbapClientService.DBG ) android.util.Log.d ( com.android.bluetooth.pbapclient.PbapClientService.TAG , ( "Cleanup device: " + device ) ) ; synchronized ( mPbapClientStateMachineMap ) { com.android.bluetooth.pbapclient.PbapClientStateMachine pbapClientStateMachine = mPbapClientStateMachineMap.get ( device ) ; if ( pbapClientStateMachine != null ) { mPbapClientStateMachineMap.remove ( device ) ; } } }
Source:
public void testVrHighPerformanceVP9 ( ) throws java.lang.Exception { if ( ! ( supportsVrHighPerformance ( ) ) ) { android.cts.util.MediaUtils.skipTest ( android.media.cts.DecoderTest.TAG , "FEATURE_VR_MODE_HIGH_PERFORMANCE not present" ) ; return ; } boolean vp9IsReady = android.media.cts.DecoderTest.doesMimeTypeHaveVrReadyCodec ( MediaFormat.MIMETYPE_VIDEO_VP9 ) ; if ( ! vp9IsReady ) { android.cts.util.MediaUtils.skipTest ( android.media.cts.DecoderTest.TAG , "VP9 isn't required to be VR ready" ) ; return ; } decodeInParallel ( R.raw.bbb_s2_1920x1080_webm_vp9_0p41_10mbps_60fps_vorbis_6ch_384kbps_22050hz , 300 , 30 , 4 ) ; }

Target:
public void testVrHighPerformanceVP9 ( ) throws java.lang.Exception { if ( ! ( supportsVrHighPerformance ( ) ) ) { android.cts.util.MediaUtils.skipTest ( android.media.cts.DecoderTest.TAG , "FEATURE_VR_MODE_HIGH_PERFORMANCE not present" ) ; return ; } assertTrue ( android.media.cts.DecoderTest.doesMimeTypeHaveMinimumSpecVrReadyCodec ( MediaFormat.MIMETYPE_VIDEO_VP9 ) ) ; decodeInParallel ( R.raw.bbb_s2_1920x1080_webm_vp9_0p41_10mbps_60fps_vorbis_6ch_384kbps_22050hz , 300 , 30 , 1 ) ; boolean vp9IsReady = android.media.cts.DecoderTest.doesMimeTypeHaveVrReadyCodec ( MediaFormat.MIMETYPE_VIDEO_VP9 ) ; if ( ! vp9IsReady ) { android.cts.util.MediaUtils.skipTest ( android.media.cts.DecoderTest.TAG , "VP9 isn't required to be VR ready" ) ; return ; } decodeInParallel ( R.raw.bbb_s2_1920x1080_webm_vp9_0p41_10mbps_60fps_vorbis_6ch_384kbps_22050hz , 300 , 30 , 4 ) ; }
Source:
public void onServiceDisconnected ( android.content.ComponentName name ) { finish ( ) ; }

Target:
public boolean onChildClick ( android.widget.ExpandableListView parent , android.view.View v , int groupPosition , int childPosition , long id ) { java.util.Map < java.lang.String , android.media.browse.MediaBrowser.MediaItem > albumEntry = ( ( java.util.Map < java.lang.String , android.media.browse.MediaBrowser.MediaItem > ) ( mAdapter.getChild ( groupPosition , childPosition ) ) ) ; android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_PICK ) ; intent.setDataAndType ( Uri.EMPTY , "vnd.android.cursor.dir/track" ) ; intent.putExtra ( MusicUtils.TAG_PARENT_ITEM , albumEntry.get ( MediaIDHelper.MEDIA_ID_MUSICS_BY_ALBUM ) ) ; startActivity ( intent ) ; return true ; }
Source:
public void setEnabled ( com.google.gct.testing.dimension.CloudTestingType type , boolean isEnabled ) { checkIsEditable ( ) ; validateType ( type ) ; if ( isEnabled ) { enableType ( type ) ; } else { enabledTypes.remove ( type ) ; } }

Target:
public void setEnabled ( com.google.gct.testing.dimension.CloudTestingType type , boolean isEnabled ) { if ( ! ( getSupportedDomain ( ) . contains ( type ) ) ) { return ; } checkIsEditable ( ) ; if ( isEnabled ) { enableType ( type ) ; } else { enabledTypes.remove ( type ) ; } }
Source:
public void test_close ( ) throws java.io.IOException { oos.writeBytes ( "HelloWorld" ) ; oos.close ( ) ; ois = new java.io.ObjectInputStream ( new java.io.ByteArrayInputStream ( bao.toByteArray ( ) ) ) ; ois.close ( ) ; }

Target:
public void test_read_IOException ( ) throws java.io.IOException { oos.writeObject ( testString ) ; oos.close ( ) ; tests.support.Support_ASimpleInputStream sis = new tests.support.Support_ASimpleInputStream ( bao.toByteArray ( ) ) ; ois = new java.io.ObjectInputStream ( sis ) ; sis.throwExceptionOnNextUse = true ; try { ois.read ( ) ; fail ( "Test 1: IOException expected." ) ; } catch ( java.io.IOException e ) { } sis.throwExceptionOnNextUse = false ; ois.close ( ) ; }
Source:
private native java.lang.String getHostByAddr0 ( byte [ ] addr ) throws java.net.UnknownHostException ;

Target:
private java.lang.String getHostByAddr0 ( byte [ ] addr ) throws java.net.UnknownHostException { java.net.InetAddress hostaddr = java.net.InetAddress.getByAddress ( addr ) ; try { return Libcore.os.getnameinfo ( hostaddr , android.system.OsConstants.NI_NAMEREQD ) ; } catch ( android.system.GaiException e ) { java.net.UnknownHostException uhe = new java.net.UnknownHostException ( hostaddr.toString ( ) ) ; uhe.initCause ( e ) ; throw uhe ; } }
Source:
public boolean validates ( @ com.android.annotations.NonNull com.android.manifmerger.MergingReport.Builder mergingReport , @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull java.lang.String value ) { try { return ( java.lang.Integer.parseInt ( value ) ) > 0 ; } catch ( java.lang.NumberFormatException e ) { mergingReport.addError ( java.lang.String.format ( "Attribute %1$s at %2$s must be an integer, found %3$s" , attribute.getId ( ) , attribute.printPosition ( ) , value ) ) ; return false ; } }

Target:
public boolean validates ( @ com.android.annotations.NonNull com.android.manifmerger.MergingReport.Builder mergingReport , @ com.android.annotations.NonNull com.android.manifmerger.XmlAttribute attribute , @ com.android.annotations.NonNull java.lang.String value ) { try { return ( java.lang.Integer.parseInt ( value ) ) > 0 ; } catch ( java.lang.NumberFormatException e ) { attribute.addMessage ( mergingReport , MergingReport.Record.Severity.ERROR , java.lang.String.format ( "Attribute %1$s at %2$s must be an integer, found %3$s" , attribute.getId ( ) , attribute.printPosition ( ) , value ) ) ; return false ; } }
Source:
void collapseViewHolder ( ) { transcriptionTextView.setMaxLines ( 1 ) ; isViewHolderExpanded = false ; mediaPlayerView.setVisibility ( View.GONE ) ; }

Target:
void collapseViewHolder ( ) { com.android.dialer.common.LogUtil.i ( "NewVoicemailViewHolder.collapseViewHolder" , "viewHolderId:%d is being collapsed, its MPViewUri:%s, its Uri is :%s" , viewHolderId , java.lang.String.valueOf ( mediaPlayerView.getVoicemailUri ( ) ) , java.lang.String.valueOf ( viewHolderVoicemailUri ) ) ; transcriptionTextView.setMaxLines ( 1 ) ; isViewHolderExpanded = false ; mediaPlayerView.setVisibility ( android.view.View.GONE ) ; }
Source:
public static void computeNativePowr ( android.renderscript.cts.TestNativePowr.ArgumentsFloatFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 32000 , 32000 , true ) ; if ( ( java.lang.Math.abs ( args.inV ) ) < 1.0E-20 ) { args.out = android.renderscript.cts.CoreMathVerifier.any32 ( t ) ; } else { args.out = android.renderscript.cts.CoreMathVerifier.powr ( args.inV , args.inY , t ) ; } }

Target:
public static void computeNativePowr ( android.renderscript.cts.TestNativePowr.ArgumentsFloatFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 32000 , 32000 , true ) ; if ( ( java.lang.Math.abs ( args.inBase ) ) < 1.0E-20 ) { args.out = android.renderscript.cts.CoreMathVerifier.any32 ( t ) ; } else { args.out = android.renderscript.cts.CoreMathVerifier.powr ( args.inBase , args.inExponent , t ) ; } }
Source:
public final void dumpInstanceCounts ( ) { for ( com.android.tools.perflib.heap.ClassObj theClass : mClassesById.values ( ) ) { int count = theClass.mInstances.size ( ) ; if ( count > 0 ) { java.lang.System.out.println ( ( ( theClass + ": " ) + count ) ) ; } } }

Target:
public final void dumpInstanceCounts ( ) { for ( java.lang.Object value : mClassesById.getValues ( ) ) { com.android.tools.perflib.heap.ClassObj theClass = ( ( com.android.tools.perflib.heap.ClassObj ) ( value ) ) ; int count = theClass.mInstances.size ( ) ; if ( count > 0 ) { java.lang.System.out.println ( ( ( theClass + ": " ) + count ) ) ; } } }
Source:
static void acquireScreenCpuWakeLock ( android.content.Context context ) { if ( ( com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.sCpuWakeLock ) != null ) { return ; } android.os.PowerManager pm = ( ( android.os.PowerManager ) ( context.getSystemService ( Context.POWER_SERVICE ) ) ) ; com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.sCpuWakeLock = pm.newWakeLock ( ( ( ( android.os.PowerManager.PARTIAL_WAKE_LOCK ) | ( android.os.PowerManager.ACQUIRE_CAUSES_WAKEUP ) ) | ( android.os.PowerManager.ON_AFTER_RELEASE ) ) , com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.TAG ) ; com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.sCpuWakeLock.acquire ( ) ; android.util.Log.d ( com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.TAG , "acquired screen + CPU wake lock" ) ; }

Target:
static void releasePartialWakeLock ( ) { if ( ( ( com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.sPartialWakeLock ) != null ) && ( com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.sPartialWakeLock.isHeld ( ) ) ) { com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.sPartialWakeLock.release ( ) ; android.util.Log.d ( com.android.cellbroadcastreceiver.CellBroadcastAlertWakeLock.TAG , "released partial wakelock" ) ; } }
Source:
public boolean open ( ) { createShell ( ) ; createContents ( ) ; positionShell ( ) ; postCreate ( ) ; mShell.open ( ) ; mShell.layout ( ) ; org.eclipse.swt.widgets.Display display = getParent ( ) . getDisplay ( ) ; while ( ! ( mShell.isDisposed ( ) ) ) { if ( ! ( display.readAndDispatch ( ) ) ) { display.sleep ( ) ; } } return mReturnValue ; }

Target:
protected void eventLoop ( ) { org.eclipse.swt.widgets.Display display = getParent ( ) . getDisplay ( ) ; while ( ( ! ( mQuitRequested ) ) && ( ! ( mShell.isDisposed ( ) ) ) ) { if ( ! ( display.readAndDispatch ( ) ) ) { display.sleep ( ) ; } } }
Source:
public void reportLocation ( android.location.Location location , boolean passive ) { if ( ( mContext.checkCallingOrSelfPermission ( com.android.server.LocationManagerService.INSTALL_LOCATION_PROVIDER ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { throw new java.lang.SecurityException ( "Requires INSTALL_LOCATION_PROVIDER permission" ) ; } mLocationHandler.removeMessages ( com.android.server.LocationManagerService.MESSAGE_LOCATION_CHANGED , location ) ; android.os.Message m = android.os.Message.obtain ( mLocationHandler , com.android.server.LocationManagerService.MESSAGE_LOCATION_CHANGED , location ) ; m.arg1 = ( passive ) ? 1 : 0 ; mLocationHandler.sendMessageAtFrontOfQueue ( m ) ; }

Target:
public void reportLocation ( android.location.Location location , boolean passive ) { checkCallerIsProvider ( ) ; if ( ! ( location.isComplete ( ) ) ) { android.util.Log.w ( com.android.server.LocationManagerService.TAG , ( "Dropping incomplete location: " + location ) ) ; return ; } mLocationHandler.removeMessages ( com.android.server.LocationManagerService.MSG_LOCATION_CHANGED , location ) ; android.os.Message m = android.os.Message.obtain ( mLocationHandler , com.android.server.LocationManagerService.MSG_LOCATION_CHANGED , location ) ; m.arg1 = ( passive ) ? 1 : 0 ; mLocationHandler.sendMessageAtFrontOfQueue ( m ) ; }
Source:
protected synchronized void implCloseSelectableChannel ( ) throws java.io.IOException { onDisconnect ( true ) ; libcore.io.IoBridge.closeSocket ( fd ) ; if ( ( ( socket ) != null ) && ( ! ( socket.isClosed ( ) ) ) ) { socket.onClose ( ) ; } }

Target:
protected synchronized void implCloseSelectableChannel ( ) throws java.io.IOException { onDisconnect ( true ) ; libcore.io.IoBridge.closeSocket ( fd ) ; multicastMembershipHandler = null ; if ( ( ( socket ) != null ) && ( ! ( socket.isClosed ( ) ) ) ) { socket.onClose ( ) ; } }
Source:
public final int integer_literal ( ) throws org.jf.smali.RecognitionException { int value = 0 ; org.antlr.runtime.tree.CommonTree INTEGER_LITERAL191 = null ; try { { INTEGER_LITERAL191 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.INTEGER_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_INTEGER_LITERAL_in_integer_literal3247 ) ) ) ; value = org.jf.smali.LiteralTools.parseInt ( ( INTEGER_LITERAL191 != null ? INTEGER_LITERAL191.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }

Target:
public final int integer_literal ( ) throws org.jf.smali.RecognitionException { int value = 0 ; org.antlr.runtime.tree.CommonTree INTEGER_LITERAL191 = null ; try { { INTEGER_LITERAL191 = ( ( org.antlr.runtime.tree.CommonTree ) ( match ( input , org.jf.smali.smaliTreeWalker.INTEGER_LITERAL , org.jf.smali.smaliTreeWalker.FOLLOW_INTEGER_LITERAL_in_integer_literal3249 ) ) ) ; value = org.jf.smali.LiteralTools.parseInt ( ( INTEGER_LITERAL191 != null ? INTEGER_LITERAL191.getText ( ) : null ) ) ; } } catch ( org.jf.smali.RecognitionException re ) { reportError ( re ) ; recover ( input , re ) ; } finally { } return value ; }
Source:
boolean isAudioConnected ( android.bluetooth.BluetoothDevice device ) { synchronized ( this ) { if ( ( ( ( getCurrentState ( ) ) == ( mAudioOn ) ) && ( mCurrentDevice.equals ( device ) ) ) && ( ( mAudioState ) != ( android.bluetooth.BluetoothHeadset.STATE_AUDIO_DISCONNECTED ) ) ) { return true ; } } return false ; }

Target:
public void setAudioRouteAllowed ( boolean allowed ) { mAudioRouteAllowed = allowed ; setScoAllowedNative ( allowed ) ; }
Source:
private boolean differentLocalAddressTypes ( java.net.Inet6Address other ) { if ( ( isLinkLocalAddress ( ) ) && ( ! ( other.isLinkLocalAddress ( ) ) ) ) { return false ; } if ( ( isSiteLocalAddress ( ) ) && ( ! ( other.isSiteLocalAddress ( ) ) ) ) { return false ; } return true ; }

Target:
public boolean equals ( java.lang.Object o ) { if ( ! ( o instanceof java.net.Inet6Address.Inet6AddressHolder ) ) { return false ; } java.net.Inet6Address.Inet6AddressHolder that = ( ( java.net.Inet6Address.Inet6AddressHolder ) ( o ) ) ; return java.util.Arrays.equals ( this . ipaddress , that.ipaddress ) ; }
Source:
public boolean sendMessage ( byte [ ] bytes , int offset , int count ) throws android.system.ErrnoException , java.io.InterruptedIOException { return sendMessage ( bytes , offset , count , 0 ) ; }

Target:
public static int sendMessage ( java.io.FileDescriptor fd , byte [ ] bytes , int offset , int count , long timeoutMs ) throws android.system.ErrnoException , java.io.InterruptedIOException , java.lang.IllegalArgumentException { android.net.netlink.NetlinkSocket.checkTimeout ( timeoutMs ) ; android.system.Os.setsockoptTimeval ( fd , android.system.OsConstants.SOL_SOCKET , android.system.OsConstants.SO_SNDTIMEO , android.system.StructTimeval.fromMillis ( timeoutMs ) ) ; return android.system.Os.write ( fd , bytes , offset , count ) ; }
Source:
public final short getAByte ( ) { int a = getA ( ) ; if ( ( a & ( ~ 255 ) ) != 0 ) { throw new com.android.jack.dx.util.DexException ( ( "Register A out of range: " + ( com.android.jack.dx.util.Hex.u8 ( a ) ) ) ) ; } return ( ( short ) ( a ) ) ; }

Target:
public final com.android.jack.dx.io.IndexType getFirstIndexType ( ) { return firstIndexType ; }
Source:
public com.android.sched.vfs.OutputVFile createFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.sched.util.file.CannotCreateFileException { putProperty ( fileType.getPropertyName ( ) , java.lang.String.valueOf ( true ) ) ; return outputVDir.createOutputVFile ( new com.android.sched.vfs.VPath ( ( ( typePath.getPathAsString ( '/' ) ) + ( fileType.getFileExtension ( ) ) ) , '/' ) ) ; }

Target:
public com.android.sched.vfs.OutputVFile createFile ( @ javax.annotation.Nonnull com.android.jack.library.FileType fileType , @ javax.annotation.Nonnull com.android.sched.vfs.VPath typePath ) throws com.android.sched.util.file.CannotCreateFileException { putProperty ( fileType.getPropertyName ( ) , java.lang.String.valueOf ( true ) ) ; typePath.addSuffix ( fileType.getFileExtension ( ) ) ; return outputVDir.createOutputVFile ( typePath ) ; }
Source:
public void onCallerInfoQueryComplete ( android.net.Uri queryHandle , com.android.internal.telephony.CallerInfo info ) { if ( ! ( java.util.Objects.equals ( queryHandle , handle ) ) ) { com.android.server.telecom.Log.w ( this , ( "CallerInfo query returned with " + "different handle." ) ) ; return ; } if ( ( info.contactDisplayPhotoUri ) == null ) { com.android.server.telecom.ui.CallInfo callInfo = callInfoFactory.makeCallInfo ( info , null , handle , date ) ; showMissedCallNotification ( callInfo , userHandle ) ; } }

Target:
public void onCallerInfoQueryComplete ( android.net.Uri queryHandle , com.android.internal.telephony.CallerInfo info ) { if ( ! ( java.util.Objects.equals ( queryHandle , handle ) ) ) { android.telecom.Log.w ( this , ( "CallerInfo query returned with " + "different handle." ) ) ; return ; } if ( ( info.contactDisplayPhotoUri ) == null ) { com.android.server.telecom.ui.CallInfo callInfo = callInfoFactory.makeCallInfo ( info , null , handle , date ) ; showMissedCallNotification ( callInfo , userHandle ) ; } }
Source:
protected void sortAndNumberInternal ( @ javax.annotation.Nonnull java.util.ArrayList < com.android.jack.ir.ast.JDefinedClassOrInterface > defaultList , @ javax.annotation.Nonnull java.util.ArrayList < com.android.jack.ir.ast.JDefinedClassOrInterface > mainList ) { java.util.Collections.sort ( defaultList , nameComp ) ; int number = 0 ; for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : mainList ) { type.addMarker ( new com.android.jack.backend.dex.NumberMarker ( ( number ++ ) ) ) ; } for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : defaultList ) { type.addMarker ( new com.android.jack.backend.dex.NumberMarker ( ( number ++ ) ) ) ; } }

Target:
protected void sortAndPrepareInternal ( @ javax.annotation.Nonnull java.util.ArrayList < com.android.jack.ir.ast.JDefinedClassOrInterface > defaultList , @ javax.annotation.Nonnull java.util.ArrayList < com.android.jack.ir.ast.JDefinedClassOrInterface > mainList ) { java.util.Collections.sort ( defaultList , nameComp ) ; int number = com.android.jack.tools.merger.ConstantManager.FIRST_DETERMINISTIC_MODE_INDEX ; for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : mainList ) { type.addMarker ( new com.android.jack.backend.dex.NumberMarker ( ( number ++ ) ) ) ; } for ( com.android.jack.ir.ast.JDefinedClassOrInterface type : defaultList ) { type.addMarker ( new com.android.jack.backend.dex.NumberMarker ( ( number ++ ) ) ) ; } }
Source:
public void copyFrom ( com.android.systemui.statusbar.policy.State s ) { super . copyFrom ( s ) ; com.android.systemui.statusbar.policy.MobileSignalController.MobileState state = ( ( com.android.systemui.statusbar.policy.MobileSignalController.MobileState ) ( s ) ) ; dataSim = state.dataSim ; networkName = state.networkName ; networkNameData = state.networkNameData ; dataConnected = state.dataConnected ; isDefault = state.isDefault ; isEmergency = state.isEmergency ; airplaneMode = state.airplaneMode ; carrierNetworkChangeMode = state.carrierNetworkChangeMode ; }

Target:
public void copyFrom ( com.android.systemui.statusbar.policy.State s ) { super . copyFrom ( s ) ; com.android.systemui.statusbar.policy.MobileSignalController.MobileState state = ( ( com.android.systemui.statusbar.policy.MobileSignalController.MobileState ) ( s ) ) ; dataSim = state.dataSim ; networkName = state.networkName ; networkNameData = state.networkNameData ; dataConnected = state.dataConnected ; isDefault = state.isDefault ; isEmergency = state.isEmergency ; airplaneMode = state.airplaneMode ; carrierNetworkChangeMode = state.carrierNetworkChangeMode ; userSetup = state.userSetup ; roaming = state.roaming ; }
Source:
public void testManifestIExistingE ( ) { int iFlags = PackageManager.INSTALL_EXTERNAL ; int rFlags = PackageManager.INSTALL_REPLACE_EXISTING ; installFromRawResource ( "install.apk" , R.raw.install , iFlags , false , false , ( - 1 ) , ( - 1 ) ) ; installFromRawResource ( "install.apk" , R.raw.install_loc_internal , rFlags , true , false , ( - 1 ) , PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY ) ; }

Target:
public void testManifestIExistingI ( ) { int iFlags = android.content.pm.PackageManager.INSTALL_INTERNAL ; int rFlags = android.content.pm.PackageManager.INSTALL_REPLACE_EXISTING ; installFromRawResource ( "install.apk" , R.raw.install , iFlags , false , false , ( - 1 ) , ( - 1 ) ) ; installFromRawResource ( "install.apk" , R.raw.install_loc_internal , rFlags , true , false , ( - 1 ) , PackageInfo.INSTALL_LOCATION_INTERNAL_ONLY ) ; }
Source:
private com.android.internal.telephony.dataconnection.DataConnection.SetupResult setLinkProperties ( com.android.internal.telephony.dataconnection.DataCallResponse response , android.net.LinkProperties linkProperties ) throws java.lang.Exception { java.lang.Class [ ] cArgs = new java.lang.Class [ 2 ] ; cArgs [ 0 ] = com.android.internal.telephony.dataconnection.DataCallResponse.class ; cArgs [ 1 ] = android.net.LinkProperties.class ; java.lang.reflect.Method method = com.android.internal.telephony.dataconnection.DataConnection.class . getDeclaredMethod ( "setLinkProperties" , cArgs ) ; method.setAccessible ( true ) ; return ( ( com.android.internal.telephony.dataconnection.DataConnection.SetupResult ) ( method.invoke ( mDc , response , linkProperties ) ) ) ; }

Target:
private com.android.internal.telephony.dataconnection.DataConnection.SetupResult setLinkProperties ( android.telephony.data.DataCallResponse response , android.net.LinkProperties linkProperties ) throws java.lang.Exception { java.lang.Class [ ] cArgs = new java.lang.Class [ 2 ] ; cArgs [ 0 ] = android.telephony.data.DataCallResponse.class ; cArgs [ 1 ] = android.net.LinkProperties.class ; java.lang.reflect.Method method = com.android.internal.telephony.dataconnection.DataConnection.class . getDeclaredMethod ( "setLinkProperties" , cArgs ) ; method.setAccessible ( true ) ; return ( ( com.android.internal.telephony.dataconnection.DataConnection.SetupResult ) ( method.invoke ( mDc , response , linkProperties ) ) ) ; }
Source:
private void sendAddressedPlayerChanged ( int newAddrPlayerID ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "sendAddressedPlayerChanged: new PlayerID=" + newAddrPlayerID ) ) ; mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_ADDRESSED_PLAYER_CHANGED_RSP , newAddrPlayerID , 0 ) . sendToTarget ( ) ; }

Target:
private void setActiveMediaSession ( android.media.session.MediaSession.Token token ) { com.android.bluetooth.avrcp.MediaController activeController = new com.android.bluetooth.avrcp.MediaController ( mContext , token ) ; if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "Set active media session " + ( activeController.getPackageName ( ) ) ) ) ; addMediaPlayerController ( activeController ) ; setAddressedMediaSessionPackage ( activeController.getPackageName ( ) ) ; }
Source:
public void testProxyingPackagePrivateMethods_AreIntercepted ( ) throws java.lang.Throwable { assertEquals ( "fake result" , proxyFor ( com.google.dexmaker.stock.ProxyBuilderTest.HasPackagePrivateMethod.class ) . build ( ) . result ( ) ) ; }

Target:
public void testProxyingPrivateMethods_NotIntercepted ( ) throws java.lang.Throwable { com.google.dexmaker.stock.ProxyBuilderTest.HasPrivateMethod proxy = proxyFor ( com.google.dexmaker.stock.ProxyBuilderTest.HasPrivateMethod.class ) . build ( ) ; try { proxy.getClass ( ) . getDeclaredMethod ( "result" ) ; fail ( ) ; } catch ( java.lang.NoSuchMethodException expected ) { } assertEquals ( "expected" , proxy.result ( ) ) ; }
Source:
protected java.lang.String getRootId ( ) { org.w3c.dom.Element primary = getPrimaryElement ( ) ; if ( primary != null ) { java.lang.String oldId = primary.getAttributeNS ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ID ) ; if ( ( oldId != null ) && ( ( oldId.length ( ) ) > 0 ) ) { return oldId ; } } return null ; }

Target:
protected java.lang.String getRootId ( ) { org.w3c.dom.Element primary = getPrimaryElement ( ) ; if ( primary != null ) { java.lang.String oldId = primary.getAttributeNS ( com.android.util.XmlUtils.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ID ) ; if ( ( oldId != null ) && ( ( oldId.length ( ) ) > 0 ) ) { return oldId ; } } return null ; }
Source:
void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , int [ ] data ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , data , ( ( data.length ) * 4 ) , Element.DataType.SIGNED_32 ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , float [ ] data ) { validateIsFloat32 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.FLOAT_32 , data.length ) ; }
Source:
void delete ( @ javax.annotation.Nonnull com.android.sched.vfs.DirectFS.DirectVFile file ) throws com.android.sched.util.file.CannotDeleteFileException { assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ) != 0 ; java.io.File rawFile = file.getNativePath ( ) ; if ( ( ! ( rawFile.delete ( ) ) ) || ( rawFile.exists ( ) ) ) { throw new com.android.sched.util.file.CannotDeleteFileException ( file.getLocation ( ) ) ; } }

Target:
void delete ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVFile file ) throws com.android.sched.util.file.CannotDeleteFileException { assert ! ( isClosed ( ) ) ; assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ) != 0 ; java.io.File path = getNativeFile ( file.getPath ( ) ) ; if ( ( ! ( path.delete ( ) ) ) || ( path.exists ( ) ) ) { throw new com.android.sched.util.file.CannotDeleteFileException ( file.getLocation ( ) ) ; } }
Source:
public static byte getDirectionality ( int codePoint ) { if ( ( java.lang.Character.getType ( codePoint ) ) == ( java.lang.Character.UNASSIGNED ) ) { return java.lang.Character.DIRECTIONALITY_UNDEFINED ; } byte directionality = java.lang.Character.getDirectionalityImpl ( codePoint ) ; if ( directionality == ( - 1 ) ) { return - 1 ; } return java.lang.Character.DIRECTIONALITY [ directionality ] ; }

Target:
public static byte getDirectionality ( int codePoint ) { if ( ( java.lang.Character.getType ( codePoint ) ) == ( java.lang.Character.UNASSIGNED ) ) { return java.lang.Character.DIRECTIONALITY_UNDEFINED ; } byte directionality = java.lang.Character.getIcuDirectionality ( codePoint ) ; if ( ( directionality >= 0 ) && ( directionality < ( java.lang.Character.DIRECTIONALITY.length ) ) ) { return java.lang.Character.DIRECTIONALITY [ directionality ] ; } return java.lang.Character.DIRECTIONALITY_UNDEFINED ; }
Source:
public void testLegitPubkeyIsntBlacklisted ( ) throws java.lang.Exception { java.security.PublicKey pk = com.android.org.bouncycastle.jce.provider.CertBlacklistTest.createPublicKey ( com.android.org.bouncycastle.jce.provider.CertBlacklistTest.TEST_CERT ) ; writeBlacklist ( new java.util.HashSet < java.lang.String > ( ) ) ; com.android.org.bouncycastle.jce.provider.CertBlacklist bl = new com.android.org.bouncycastle.jce.provider.CertBlacklist ( tmpFile.getCanonicalPath ( ) , com.android.org.bouncycastle.jce.provider.CertBlacklist.DEFAULT_SERIAL_BLACKLIST_PATH ) ; assertEquals ( bl.isPublicKeyBlackListed ( pk ) , false ) ; }

Target:
public void testLegitPubkeyIsntBlacklisted ( ) throws java.lang.Exception { java.security.PublicKey pk = com.android.org.bouncycastle.jce.provider.CertBlacklistTest.createPublicKey ( com.android.org.bouncycastle.jce.provider.CertBlacklistTest.TEST_CERT ) ; writeBlacklist ( new java.util.HashSet < java.lang.String > ( ) ) ; com.android.org.bouncycastle.jce.provider.CertBlacklist bl = new com.android.org.bouncycastle.jce.provider.CertBlacklist ( tmpFile.getCanonicalPath ( ) , "" ) ; assertEquals ( bl.isPublicKeyBlackListed ( pk ) , false ) ; }
Source:
private void handlePassthroughCmdRequestFromNative ( byte [ ] address , int id , int keyState ) { switch ( id ) { case android.bluetooth.BluetoothAvrcp.PASSTHROUGH_ID_REWIND : rewind ( address , keyState ) ; return ; case android.bluetooth.BluetoothAvrcp.PASSTHROUGH_ID_FAST_FOR : fastForward ( address , keyState ) ; return ; } android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_PASS_THROUGH , id , keyState , address ) ; mHandler.sendMessage ( msg ) ; }

Target:
private void sendTrackChangedRsp ( ) { com.android.bluetooth.avrcp.MediaPlayerInfo info = getAddressedPlayerInfo ( ) ; if ( ( info != null ) && ( ! ( info.isBrowseSupported ( ) ) ) ) { trackChangeRspForBrowseUnsupported ( ) ; } else { mAddressedMediaPlayer.sendTrackChangeWithId ( mTrackChangedNT , mMediaController ) ; } }
Source:
public java.lang.String getText ( java.lang.Object element ) { if ( element instanceof com.android.ddmlib.IDevice ) { return ( ( com.android.ddmlib.IDevice ) ( element ) ) . toString ( ) ; } else if ( element instanceof com.android.hierarchyviewerlib.device.Window ) { return ( ( com.android.hierarchyviewerlib.device.Window ) ( element ) ) . getTitle ( ) ; } return null ; }

Target:
public java.lang.String getText ( java.lang.Object element ) { if ( element instanceof com.android.hierarchyviewerlib.device.IHvDevice ) { return ( ( com.android.hierarchyviewerlib.device.IHvDevice ) ( element ) ) . getDevice ( ) . getName ( ) ; } else if ( element instanceof com.android.hierarchyviewerlib.models.Window ) { return ( ( com.android.hierarchyviewerlib.models.Window ) ( element ) ) . getTitle ( ) ; } return null ; }
Source:
public void setVisualVoicemailEnabled ( android.telecom.PhoneAccountHandle phoneAccountHandle , boolean enabled ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { telephony.setVisualVoicemailEnabled ( mContext.getOpPackageName ( ) , phoneAccountHandle , enabled ) ; } } catch ( android.os.RemoteException ex ) { } catch ( java.lang.NullPointerException ex ) { } }

Target:
public android.telephony.ims.aidl.IImsRcsFeature getImsRcsFeatureAndListen ( int slotIndex , com.android.ims.internal.IImsServiceFeatureCallback callback ) { try { com.android.internal.telephony.ITelephony telephony = getITelephony ( ) ; if ( telephony != null ) { return telephony.getRcsFeatureAndListen ( slotIndex , callback ) ; } } catch ( android.os.RemoteException e ) { android.telephony.Rlog.e ( android.telephony.TelephonyManager.TAG , ( "getImsRcsFeatureAndListen, RemoteException: " + ( e.getMessage ( ) ) ) ) ; } return null ; }
Source:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; mManager = new com.android.server.wifi.hotspot2.PasspointManager ( mContext , mWifiInjector ) ; org.mockito.ArgumentCaptor < com.android.server.wifi.hotspot2.PasspointEventHandler.Callbacks > callbacks = org.mockito.ArgumentCaptor.forClass ( PasspointEventHandler.Callbacks.class ) ; org.mockito.Mockito.verify ( mWifiInjector ) . makePasspointEventHandler ( callbacks.capture ( ) ) ; mCallbacks = callbacks.getValue ( ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { org.mockito.MockitoAnnotations.initMocks ( this ) ; mManager = new com.android.server.wifi.hotspot2.PasspointManager ( mContext , mWifiInjector , mSimAccessor ) ; org.mockito.ArgumentCaptor < com.android.server.wifi.hotspot2.PasspointEventHandler.Callbacks > callbacks = org.mockito.ArgumentCaptor.forClass ( PasspointEventHandler.Callbacks.class ) ; org.mockito.Mockito.verify ( mWifiInjector ) . makePasspointEventHandler ( callbacks.capture ( ) ) ; mCallbacks = callbacks.getValue ( ) ; }
Source:
public void sendCallEvent ( java.lang.String callId , java.lang.String event , android.os.Bundle extras ) { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = callId ; args.arg2 = event ; args.arg3 = extras ; mHandler.obtainMessage ( android.telecom.ConnectionService.MSG_SEND_CALL_EVENT , args ) . sendToTarget ( ) ; }

Target:
public void sendCallEvent ( java.lang.String callId , java.lang.String event , android.os.Bundle extras , android.telecom.Logging.Session.Info sessionInfo ) { android.telecom.Log.startSession ( sessionInfo , android.telecom.ConnectionService.SESSION_SEND_CALL_EVENT ) ; try { com.android.internal.os.SomeArgs args = com.android.internal.os.SomeArgs.obtain ( ) ; args.arg1 = callId ; args.arg2 = event ; args.arg3 = extras ; args.arg4 = android.telecom.Log.createSubsession ( ) ; mHandler.obtainMessage ( android.telecom.ConnectionService.MSG_SEND_CALL_EVENT , args ) . sendToTarget ( ) ; } finally { android.telecom.Log.endSession ( ) ; } }
Source:
private static void onSubscribeTerminated ( int subscribeId , int status ) { if ( com.android.server.wifi.aware.WifiAwareNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNative.TAG , ( ( ( "onSubscribeTerminated: subscribeId=" + subscribeId ) + ", status=" ) + status ) ) ; } com.android.server.wifi.aware.WifiAwareStateManager.getInstance ( ) . onSessionTerminatedNotification ( subscribeId , ( status == ( com.android.server.wifi.aware.WifiAwareNative.AWARE_STATUS_SUCCESS ) ? android.net.wifi.aware.WifiAwareDiscoverySessionCallback.TERMINATE_REASON_DONE : android.net.wifi.aware.WifiAwareDiscoverySessionCallback.TERMINATE_REASON_FAIL ) , false ) ; }

Target:
private static void onSubscribeTerminated ( int subscribeId , int status ) { if ( com.android.server.wifi.aware.WifiAwareNative.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareNative.TAG , ( ( ( "onSubscribeTerminated: subscribeId=" + subscribeId ) + ", status=" ) + status ) ) ; } com.android.server.wifi.aware.WifiAwareNative.sWifiAwareStateManager.onSessionTerminatedNotification ( subscribeId , ( status == ( com.android.server.wifi.aware.WifiAwareNative.AWARE_STATUS_SUCCESS ) ? android.net.wifi.aware.WifiAwareDiscoverySessionCallback.TERMINATE_REASON_DONE : android.net.wifi.aware.WifiAwareDiscoverySessionCallback.TERMINATE_REASON_FAIL ) , false ) ; }
Source:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { assertEquals ( hostname , org.conscrypt.NativeCrypto.SSL_get_servername ( s ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }

Target:
public void afterHandshake ( long session , long s , long c , java.net.Socket sock , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { assertNull ( org.conscrypt.NativeCrypto.SSL_get_certificate ( s ) ) ; super . afterHandshake ( session , s , c , sock , fd , callback ) ; }