auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void clearLocalServices ( android.os.Messenger m ) { com.android.server.wifi.p2p.WifiP2pServiceImpl.ClientInfo clientInfo = getClientInfo ( m , false ) ; if ( clientInfo == null ) { return ; } for ( android.net.wifi.p2p.nsd.WifiP2pServiceInfo servInfo : clientInfo.mServList ) { mWifiNative.p2pServiceDel ( servInfo ) ; } clientInfo.mServList.clear ( ) ; if ( ( clientInfo.mReqList.size ( ) ) == 0 ) { if ( com.android.server.wifi.p2p.WifiP2pServiceImpl.DBG ) logd ( "remove client information from framework" ) ; mClientInfoList.remove ( clientInfo.mMessenger ) ; } }

Target:
private boolean addLocalService ( android.os.Messenger m , android.net.wifi.p2p.nsd.WifiP2pServiceInfo servInfo ) { clearClientDeadChannels ( ) ; com.android.server.wifi.p2p.WifiP2pServiceImpl.ClientInfo clientInfo = getClientInfo ( m , true ) ; if ( clientInfo == null ) { return false ; } if ( ! ( clientInfo.mServList.add ( servInfo ) ) ) { return false ; } if ( ! ( mWifiNative.p2pServiceAdd ( servInfo ) ) ) { clientInfo.mServList.remove ( servInfo ) ; return false ; } return true ; }
Source:
public com.android.apksigner.core.internal.util.ByteBufferDataSource slice ( long offset , long size ) { if ( ( offset == 0 ) && ( size == ( mSize ) ) ) { return this ; } checkChunkValid ( offset , size ) ; int chunkPosition = ( ( int ) ( offset ) ) ; int chunkLimit = ( ( int ) ( chunkPosition + size ) ) ; synchronized ( mBuffer ) { mBuffer.position ( 0 ) ; mBuffer.limit ( chunkLimit ) ; mBuffer.position ( chunkPosition ) ; return new com.android.apksigner.core.internal.util.ByteBufferDataSource ( mBuffer ) ; } }

Target:
public void feed ( long offset , long size , com.android.apksigner.core.util.DataSink sink ) throws java.io.IOException { if ( ( size < 0 ) || ( size > ( mSize ) ) ) { throw new java.lang.IllegalArgumentException ( ( ( ( "size: " + size ) + ", source size: " ) + ( mSize ) ) ) ; } sink.consume ( getByteBuffer ( offset , ( ( int ) ( size ) ) ) ) ; }
Source:
private boolean endDataPathLocal ( short transactionId , int ndpId ) { if ( com.android.server.wifi.nan.WifiNanStateManager.VDBG ) { android.util.Log.v ( com.android.server.wifi.nan.WifiNanStateManager.TAG , ( ( ( "endDataPathLocal: transactionId=" + transactionId ) + ", ndpId=" ) + ndpId ) ) ; } return com.android.server.wifi.nan.WifiNanNative.getInstance ( ) . endDataPath ( transactionId , ndpId ) ; }

Target:
private boolean endDataPathLocal ( short transactionId , int ndpId ) { if ( com.android.server.wifi.aware.WifiAwareStateManager.VDBG ) { android.util.Log.v ( com.android.server.wifi.aware.WifiAwareStateManager.TAG , ( ( ( "endDataPathLocal: transactionId=" + transactionId ) + ", ndpId=" ) + ndpId ) ) ; } return com.android.server.wifi.aware.WifiAwareNative.getInstance ( ) . endDataPath ( transactionId , ndpId ) ; }
Source:
private void testExplicitSize ( ) { doLayoutParamTest ( ( android.view.WindowManager.LayoutParams params ) -> { params.width = 200 ; params.height = 200 ; } ) ; }

Target:
private void testWithMargins ( ) { doLayoutParamTest ( ( android.view.WindowManager.LayoutParams params ) -> { params.gravity = ( android.view.Gravity.LEFT ) | ( android.view.Gravity.TOP ) ; params.horizontalMargin = 0.25F ; params.verticalMargin = 0.25F ; params.width = ( 200 - ( mOutsets.left ) ) - ( mOutsets.right ) ; params.height = ( 200 - ( mOutsets.bottom ) ) - ( mOutsets.top ) ; params.x = 0 ; params.y = 0 ; } ) ; }
Source:
synchronized void nScriptForEach ( long id , int slot , long ain , long aout , byte [ ] params ) { validate ( ) ; if ( params == null ) { rsnScriptForEach ( mContext , id , slot , ain , aout ) ; } else { rsnScriptForEach ( mContext , id , slot , ain , aout , params ) ; } }

Target:
synchronized long nScriptKernelIDCreate ( long sid , int slot , int sig , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } return rsnScriptKernelIDCreate ( curCon , sid , slot , sig , mUseInc ) ; }
Source:
private void addCodeUsage ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType usedType ) { if ( usedType instanceof com.android.jack.ir.ast.JArrayType ) { usedType = ( ( com.android.jack.ir.ast.JArrayType ) ( usedType ) ) . getLeafType ( ) ; } if ( ( usedType.getSourceInfo ( ) ) == ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { return ; } java.lang.String usedTypeFileName = usedType.getSourceInfo ( ) . getFileName ( ) ; compilerState.addCodeUsage ( currentFileName , usedTypeFileName ) ; }

Target:
protected void collect ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JType usedType ) { if ( usedType instanceof com.android.jack.ir.ast.JArrayType ) { usedType = ( ( com.android.jack.ir.ast.JArrayType ) ( usedType ) ) . getLeafType ( ) ; } if ( ( usedType.getSourceInfo ( ) ) == ( com.android.jack.ir.sourceinfo.SourceInfo.UNKNOWN ) ) { return ; } java.lang.String usedTypeFileName = usedType.getSourceInfo ( ) . getFileName ( ) ; if ( inBody ) { compilerState.addCodeUsage ( currentFileName , usedTypeFileName ) ; } else { compilerState.addStructUsage ( currentFileName , usedTypeFileName ) ; } }
Source:
public void onServiceDiscovered ( java.lang.Object peerHandle , byte [ ] serviceSpecificInfo , byte [ ] matchFilter ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "peerId" , ( ( android.net.wifi.nan.WifiNanManager.OpaquePeerHandle ) ( peerHandle ) ) . peerId ) ; mResults.putByteArray ( "serviceSpecificInfo" , serviceSpecificInfo ) ; mResults.putByteArray ( "matchFilter" , matchFilter ) ; mEventFacade.postEvent ( "WifiNanSessionOnServiceDiscovered" , mResults ) ; }

Target:
public void onServiceDiscovered ( java.lang.Object peerHandle , byte [ ] serviceSpecificInfo , byte [ ] matchFilter ) { android.os.Bundle mResults = new android.os.Bundle ( ) ; mResults.putInt ( "discoverySessionId" , mDiscoverySessionId ) ; mResults.putInt ( "peerId" , ( ( android.net.wifi.nan.WifiNanManager.OpaquePeerHandle ) ( peerHandle ) ) . peerId ) ; mResults.putByteArray ( "serviceSpecificInfo" , serviceSpecificInfo ) ; mResults.putByteArray ( "matchFilter" , matchFilter ) ; mResults.putLong ( "timestampMs" , java.lang.System.currentTimeMillis ( ) ) ; mEventFacade.postEvent ( "WifiNanSessionOnServiceDiscovered" , mResults ) ; }
Source:
public android.telephony.mbms.DownloadStatus getDownloadStatus ( android.telephony.mbms.DownloadRequest downloadRequest ) { return null ; }

Target:
public int getDownloadStatus ( android.telephony.mbms.DownloadRequest downloadRequest , android.telephony.mbms.FileInfo fileInfo ) throws android.telephony.mbms.MbmsException { android.telephony.mbms.vendor.IMbmsDownloadService downloadService = mService.get ( ) ; if ( downloadService == null ) { throw new android.telephony.mbms.MbmsException ( android.telephony.mbms.MbmsException.ERROR_MIDDLEWARE_NOT_BOUND ) ; } try { return downloadService.getDownloadStatus ( downloadRequest , fileInfo ) ; } catch ( android.os.RemoteException e ) { mService.set ( null ) ; throw new android.telephony.mbms.MbmsException ( android.telephony.mbms.MbmsException.ERROR_SERVICE_LOST ) ; } }
Source:
public void onSwipeFromRight ( ) { if ( ( ( mNavigationBar ) != null ) && ( ! ( mNavigationBarOnBottom ) ) ) { requestTransientBars ( mNavigationBar ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( Intent.ACTION_USER_SWITCHED.equals ( intent.getAction ( ) ) ) { mSettingsObserver.onChange ( false ) ; synchronized ( mWindowManagerFuncs.getWindowManagerLock ( ) ) { mLastSystemUiFlags = 0 ; updateSystemUiVisibilityLw ( ) ; } } }
Source:
private void setupGraphicsSupport ( android.app.LoadedApk info , java.io.File cacheDir ) { if ( java.lang.Process.isIsolated ( ) ) { return ; } try { int uid = java.lang.Process.myUid ( ) ; java.lang.String [ ] packages = android.app.ActivityThread.getPackageManager ( ) . getPackagesForUid ( uid ) ; if ( ( packages != null ) && ( ( packages.length ) == 1 ) ) { android.view.HardwareRenderer.setupDiskCache ( cacheDir ) ; android.renderscript.RenderScript.setupDiskCache ( cacheDir ) ; } } catch ( android.os.RemoteException e ) { } }

Target:
private void setupGraphicsSupport ( android.app.LoadedApk info , java.io.File cacheDir ) { if ( java.lang.Process.isIsolated ( ) ) { return ; } try { int uid = java.lang.Process.myUid ( ) ; java.lang.String [ ] packages = android.app.ActivityThread.getPackageManager ( ) . getPackagesForUid ( uid ) ; if ( ( packages != null ) && ( ( packages.length ) == 1 ) ) { android.view.HardwareRenderer.setupDiskCache ( cacheDir ) ; android.renderscript.RenderScriptCacheDir.setupDiskCache ( cacheDir ) ; } } catch ( android.os.RemoteException e ) { } }
Source:
public void moveAb ( java.lang.String apkPath , java.lang.String instructionSet , java.lang.String outputPath ) throws com.android.internal.os.InstallerConnection.InstallerException { mInstaller.execute ( "move_ab" , apkPath , instructionSet , outputPath ) ; }

Target:
public void moveAb ( java.lang.String apkPath , java.lang.String instructionSet , java.lang.String outputPath ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.moveAb ( apkPath , instructionSet , outputPath ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0003.io.JayceInternalReaderImpl in ) throws java.io.IOException { captureInstance = in.readBoolean ( ) ; capturedVariableIds = in.readIds ( ) ; method = in.readNode ( com.android.jack.jayce.v0003.nodes.NMethod.class ) ; typeSig = in.readId ( ) ; }

Target:
public void readContent ( @ javax.annotation.Nonnull com.android.jack.jayce.v0003.io.JayceInternalReaderImpl in ) throws java.io.IOException { captureInstance = in.readBoolean ( ) ; capturedVariableIds = in.readIds ( ) ; method = in.readNode ( com.android.jack.jayce.v0003.nodes.NMethod.class ) ; typeSig = in.readId ( ) ; boundsIds = in.readIds ( ) ; }
Source:
public static float FloatGtMatCond_FloatVarVar ( float a , float b , float x , float y ) { float result = ( a < b ) ? x : y ; return result + ( a < b ? 0 : 1 ) ; }

Target:
public static float FloatGtMatCond_FloatVarVar ( float a , float b , float x , float y ) { if ( Main.doThrow ) { throw new java.lang.Error ( ) ; } float result = ( a < b ) ? x : y ; return result + ( a < b ? 0 : 1 ) ; }
Source:
public void clearSslPreferences ( ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { clearSslPreferences ( ) ; } } ) ; return ; } mAwContents.clearSslPreferences ( ) ; }

Target:
public void findNext ( final boolean forwards ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { findNext ( forwards ) ; } } ) ; return ; } mAwContents.findNext ( forwards ) ; }
Source:
public void testNonResizeableActivityNotLaunchedToFreeform ( ) throws java.lang.Exception { launchActivityInStack ( android.server.cts.ActivityManagerFreeformStackTests.NON_RESIZEABLE_ACTIVITY , android.server.cts.FREEFORM_WORKSPACE_STACK_ID ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { android.server.cts.ActivityManagerFreeformStackTests.NON_RESIZEABLE_ACTIVITY } ) ; mAmWmState.assertFrontStack ( "Fullscreen stack must be the front stack." , android.server.cts.FULLSCREEN_WORKSPACE_STACK_ID ) ; mAmWmState.assertDoesNotContainStack ( "Must not contain freeform stack." , android.server.cts.FREEFORM_WORKSPACE_STACK_ID ) ; }

Target:
public void testNonResizeableActivityHasFullDisplayBounds ( ) throws java.lang.Exception { launchActivityInStack ( android.server.cts.ActivityManagerFreeformStackTests.NON_RESIZEABLE_ACTIVITY , android.server.cts.FREEFORM_WORKSPACE_STACK_ID ) ; mAmWmState.computeState ( mDevice , new java.lang.String [ ] { android.server.cts.ActivityManagerFreeformStackTests.NON_RESIZEABLE_ACTIVITY } ) ; final android.server.cts.ActivityManagerState.ActivityTask task = mAmWmState.getAmState ( ) . getTaskByActivityName ( android.server.cts.ActivityManagerFreeformStackTests.NON_RESIZEABLE_ACTIVITY ) ; final android.server.cts.ActivityManagerState.ActivityStack stack = mAmWmState.getAmState ( ) . getStackById ( task.mStackId ) ; assertEquals ( mAmWmState.getWmState ( ) . getDisplay ( stack.mDisplayId ) . getDisplayRect ( ) , task.getBounds ( ) ) ; }
Source:
private void daemonTests ( ) { final java.lang.ThreadGroup originalCurrent = getInitialThreadGroup ( ) ; final java.lang.ThreadGroup testRoot = new java.lang.ThreadGroup ( originalCurrent , "Test group" ) ; testRoot.setDaemon ( true ) ; assertTrue ( "Setting daemon&getting does not work" , testRoot.isDaemon ( ) ) ; testRoot.setDaemon ( false ) ; assertTrue ( "Setting daemon&getting does not work" , ( ! ( testRoot.isDaemon ( ) ) ) ) ; testRoot.destroy ( ) ; }

Target:
public void test_setDaemon_isDaemon ( ) { final java.lang.ThreadGroup originalCurrent = initialThreadGroup ; final java.lang.ThreadGroup testRoot = new java.lang.ThreadGroup ( originalCurrent , "Test group" ) ; testRoot.setDaemon ( true ) ; assertTrue ( "Setting daemon&getting does not work" , testRoot.isDaemon ( ) ) ; testRoot.setDaemon ( false ) ; assertTrue ( "Setting daemon&getting does not work" , ( ! ( testRoot.isDaemon ( ) ) ) ) ; testRoot.destroy ( ) ; }
Source:
public void setImageResId ( int imageResId ) { mIcon.setImageResource ( imageResId ) ; mIcon.getDrawable ( ) . setTint ( ( hasFocus ( ) ? mIconFocusedColor : mIconColor ) ) ; }

Target:
public void setImageResId ( int imageResId ) { int newTintColor = ( hasFocus ( ) ) ? mIconFocusedColor : mIconColor ; if ( ( mImageResourceId ) != imageResId ) { mImageResourceId = imageResId ; mIcon.setImageResource ( imageResId ) ; updateTint ( newTintColor ) ; } else if ( newTintColor != ( mTintColor ) ) { updateTint ( newTintColor ) ; } }
Source:
public boolean onScale ( android.view.ScaleGestureDetector detector ) { if ( mTransformsEnabled ) { mIsDoubleTouch = false ; float currentScale = getScale ( ) ; float newScale = currentScale * ( detector.getScaleFactor ( ) ) ; scale ( newScale , detector.getFocusX ( ) , detector.getFocusY ( ) ) ; } return true ; }

Target:
public boolean onScale ( android.view.ScaleGestureDetector detector ) { if ( ( mTransformsEnabled ) && ( ! ( mScaleRunnable.mRunning ) ) ) { mIsDoubleTouch = false ; float currentScale = getScale ( ) ; float newScale = currentScale * ( detector.getScaleFactor ( ) ) ; scale ( newScale , detector.getFocusX ( ) , detector.getFocusY ( ) ) ; } return true ; }
Source:
public void registerBuildTypeSourceProvider ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull com.android.build.gradle.internal.dsl.BuildType buildType , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider ) { if ( ( extraArtifactMap.get ( name ) ) == null ) { throw new java.lang.IllegalArgumentException ( java.lang.String.format ( "Artifact with name %1$s is not yet registered. Use registerArtifactType()" , name ) ) ; } extraBuildTypeSourceProviders.put ( buildType.getName ( ) , new com.android.build.gradle.internal.variant.DefaultSourceProviderContainer ( name , sourceProvider ) ) ; }

Target:
public void registerBuildTypeSourceProvider ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull com.android.build.gradle.internal.dsl.CoreBuildType buildType , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider ) { if ( ( extraArtifactMap.get ( name ) ) == null ) { throw new java.lang.IllegalArgumentException ( java.lang.String.format ( "Artifact with name %1$s is not yet registered. Use registerArtifactType()" , name ) ) ; } extraBuildTypeSourceProviders.put ( buildType.getName ( ) , new com.android.build.gradle.internal.variant.DefaultSourceProviderContainer ( name , sourceProvider ) ) ; }
Source:
public void configure ( java.lang.String [ ] argv ) { super . configure ( argv ) ; checkedClasspaths = new org.eclipse.jdt.internal.compiler.batch.FileSystem.Classpath [ ] { new com.android.jack.ecj.loader.jast.JAstClasspath ( "<jack-logical-entry>" , session.getLookup ( ) , null ) } ; }

Target:
public void configure ( java.lang.String [ ] argv ) { super . configure ( argv ) ; checkedClasspaths = new org.eclipse.jdt.internal.compiler.batch.FileSystem.Classpath [ ] { new com.android.jack.ecj.loader.jast.JAstClasspath ( "<jack-logical-entry>" , session.getLookup ( ) , null ) } ; java.util.List < java.lang.String > fileNamesToCompile = session.getInputFilter ( ) . getFileNamesToCompile ( ) ; filenames = fileNamesToCompile.toArray ( new java.lang.String [ fileNamesToCompile.size ( ) ] ) ; }
Source:
public void test_minus_TemporalAmount_negativeMinutes ( ) { java.time.temporal.TemporalAmount period = tck.java.time.MockSimplePeriod.of ( ( - 25 ) , java.time.temporal.ChronoUnit.MINUTES ) ; java.time.LocalTime t = TEST_12_30_40_987654321.minus ( period ) ; org.testng.Assert.assertEquals ( t , java.time.LocalTime.of ( 12 , 55 , 40 , 987654321 ) ) ; }

Target:
public void test_minus_TemporalAmount_negativeMinutes ( ) { java.time.temporal.TemporalAmount period = tck.java.time.MockSimplePeriod.of ( ( - 25 ) , java.time.temporal.ChronoUnit.MINUTES ) ; java.time.LocalTime t = tck.java.time.TCKLocalTime.TEST_12_30_40_987654321.minus ( period ) ; org.testng.Assert.assertEquals ( t , java.time.LocalTime.of ( 12 , 55 , 40 , 987654321 ) ) ; }
Source:
public void getBytes ( byte [ ] val ) throws java.io.IOException { if ( ( ( val.length ) != 0 ) && ( ( buffer.read ( val ) ) != ( val.length ) ) ) { throw new java.io.IOException ( "short read of DER octet string" ) ; } }

Target:
public void getBytes ( byte [ ] val ) throws java.io.IOException { if ( ( ( val.length ) != 0 ) && ( ( buffer.read ( val ) ) != ( val.length ) ) ) { throw new java.io.IOException ( "Short read of DER octet string" ) ; } }
Source:
public synchronized void onAcceptFailed ( ) { cleanUpSdpRecord ( ) ; if ( ( mServerSockets ) != null ) { mServerSockets.shutdown ( false ) ; mServerSockets = null ; } if ( ( ( ! ( mInterrupted ) ) && ( ( mAdapter ) != null ) ) && ( mAdapter.isEnabled ( ) ) ) { startSocketListeners ( ) ; } }

Target:
public synchronized void onAcceptFailed ( ) { android.util.Log.w ( com.android.bluetooth.pbap.BluetoothPbapService.TAG , "PBAP server socket accept thread failed. Restarting the server socket" ) ; if ( ( mWakeLock ) != null ) { mWakeLock.release ( ) ; mWakeLock = null ; } cleanUpServerSocket ( ) ; if ( ( mSessionStatusHandler ) != null ) { mSessionStatusHandler.removeCallbacksAndMessages ( null ) ; } if ( ! ( mInterrupted ) ) { startSocketListeners ( ) ; } }
Source:
public void testTimeoutFailure ( ) throws java.lang.Exception { mServer.clearServerReply ( ) ; assertFalse ( mClient.requestTime ( mServer.getAddress ( ) , mServer.getPort ( ) , 500 ) ) ; assertEquals ( 1 , mServer.numRequestsReceived ( ) ) ; assertEquals ( 0 , mServer.numRepliesSent ( ) ) ; }

Target:
public void testIgnoreLeapNoSync ( ) throws java.lang.Exception { final byte [ ] reply = libcore.util.HexEncoding.decode ( android.net.SntpClientTest.WORKING_VERSION4.toCharArray ( ) , false ) ; reply [ 0 ] |= ( ( byte ) ( 192 ) ) ; mServer.setServerReply ( reply ) ; assertFalse ( mClient.requestTime ( mServer.getAddress ( ) , mServer.getPort ( ) , 500 , mNetwork ) ) ; assertEquals ( 1 , mServer.numRequestsReceived ( ) ) ; assertEquals ( 1 , mServer.numRepliesSent ( ) ) ; }
Source:
public static android.telephony.SmsCbMessage createSmsCbMessage ( android.telephony.SmsCbLocation location , byte [ ] [ ] pdus ) throws java.lang.IllegalArgumentException { com.android.internal.telephony.gsm.SmsCbHeader header = new com.android.internal.telephony.gsm.SmsCbHeader ( pdus [ 0 ] ) ; return com.android.internal.telephony.gsm.GsmSmsCbMessage.createSmsCbMessage ( header , location , pdus ) ; }

Target:
private static java.lang.String getEtwsPrimaryMessage ( android.content.Context context , int category ) { final android.content.res.Resources r = context.getResources ( ) ; switch ( category ) { case android.telephony.SmsCbEtwsInfo.ETWS_WARNING_TYPE_EARTHQUAKE : return r.getString ( R.string.etws_primary_default_message_earthquake ) ; case android.telephony.SmsCbEtwsInfo.ETWS_WARNING_TYPE_TSUNAMI : return r.getString ( R.string.etws_primary_default_message_tsunami ) ; case android.telephony.SmsCbEtwsInfo.ETWS_WARNING_TYPE_EARTHQUAKE_AND_TSUNAMI : return r.getString ( R.string.etws_primary_default_message_earthquake_and_tsunami ) ; case android.telephony.SmsCbEtwsInfo.ETWS_WARNING_TYPE_TEST_MESSAGE : return r.getString ( R.string.etws_primary_default_message_test ) ; case android.telephony.SmsCbEtwsInfo.ETWS_WARNING_TYPE_OTHER_EMERGENCY : return r.getString ( R.string.etws_primary_default_message_others ) ; default : return "" ; } }
Source:
public void createControl ( org.eclipse.swt.widgets.Composite parent ) { org.eclipse.swt.widgets.Tree tree = new org.eclipse.swt.widgets.Tree ( parent , org.eclipse.swt.SWT.MULTI ) ; mTreeViewer = new org.eclipse.jface.viewers.TreeViewer ( tree ) ; mTreeViewer.setContentProvider ( new com.android.ide.eclipse.adt.internal.editors.layout.gle2.OutlinePage2.ContentProvider ( ) ) ; mTreeViewer.setLabelProvider ( new com.android.ide.eclipse.adt.internal.editors.layout.gle2.OutlinePage2.LabelProvider ( ) ) ; }

Target:
public boolean equals ( java.lang.Object a , java.lang.Object b ) { if ( ( a instanceof com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ) && ( b instanceof com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ) ) { com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode keyA = ( ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ) ( a ) ) . getUiViewKey ( ) ; com.android.ide.eclipse.adt.internal.editors.layout.uimodel.UiViewElementNode keyB = ( ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.CanvasViewInfo ) ( b ) ) . getUiViewKey ( ) ; if ( keyA != null ) { return keyA.equals ( keyB ) ; } } if ( a != null ) { return a.equals ( b ) ; } return false ; }
Source:
private java.io.File createJackArchiveWithResources ( ) throws java.lang.Exception { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; java.io.File jackAr = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "resourcetestjack" , toolchain.getLibraryExtension ( ) ) ; toolchain.addResource ( new java.io.File ( com.android.jack.resource.ResourceTests.FILE , "rsc" ) ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToLib ( jackAr , true , com.android.jack.resource.ResourceTests.FILE ) ; return jackAr ; }

Target:
private java.io.File createJackArchiveWithResources ( ) throws java.lang.Exception { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; java.io.File jackAr = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "resourcetestjack" , toolchain.getLibraryExtension ( ) ) ; toolchain.addResourceDir ( new java.io.File ( com.android.jack.resource.ResourceTests.FILE , "rsc" ) ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToLib ( jackAr , true , com.android.jack.resource.ResourceTests.FILE ) ; return jackAr ; }
Source:
public void fillRect ( com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r ) { checkGC ( ) ; int x = mHScale.translate ( r.x ) ; int y = mVScale.translate ( r.y ) ; int w = mHScale.scale ( r.w ) ; int h = mVScale.scale ( r.h ) ; getGc ( ) . fillRectangle ( x , y , w , h ) ; }

Target:
public void fillOval ( com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r ) { checkGC ( ) ; useFillAlpha ( ) ; int x = mHScale.translate ( r.x ) ; int y = mVScale.translate ( r.y ) ; int w = mHScale.scale ( r.w ) ; int h = mVScale.scale ( r.h ) ; getGc ( ) . fillOval ( x , y , w , h ) ; }
Source:
final void incrementActiveCount ( ) { long c ; do { } while ( ! ( java.util.concurrent.ForkJoinPool.U.compareAndSwapLong ( this , java.util.concurrent.ForkJoinPool.CTL , ( c = ctl ) , ( c + ( java.util.concurrent.ForkJoinPool.AC_UNIT ) ) ) ) ) ; }

Target:
final void incrementActiveCount ( ) { long c ; do { } while ( ! ( java.util.concurrent.ForkJoinPool.U.compareAndSwapLong ( this , java.util.concurrent.ForkJoinPool.CTL , ( c = ctl ) , ( ( c & ( ~ ( java.util.concurrent.ForkJoinPool.AC_MASK ) ) ) | ( ( c & ( java.util.concurrent.ForkJoinPool.AC_MASK ) ) + ( java.util.concurrent.ForkJoinPool.AC_UNIT ) ) ) ) ) ) ; }
Source:
boolean tryBindTransport ( android.content.pm.ServiceInfo info ) { try { android.content.pm.PackageInfo packInfo = mPackageManager.getPackageInfo ( info.packageName , 0 ) ; if ( ( ( packInfo.applicationInfo.flags ) & ( android.content.pm.ApplicationInfo.FLAG_PRIVILEGED ) ) != 0 ) { return bindTransport ( info ) ; } else { android.util.Slog.w ( com.android.server.backup.BackupManagerService.TAG , ( ( "Transport package " + ( info.packageName ) ) + " not privileged" ) ) ; } } catch ( android.content.pm.PackageManager.NameNotFoundException e ) { android.util.Slog.w ( com.android.server.backup.BackupManagerService.TAG , ( "Problem resolving transport package " + ( info.packageName ) ) ) ; } return false ; }

Target:
boolean tryBindTransport ( android.content.pm.ServiceInfo info ) { try { android.content.pm.PackageInfo packInfo = mPackageManager.getPackageInfo ( info.packageName , 0 ) ; if ( ( ( packInfo.applicationInfo.privateFlags ) & ( android.content.pm.ApplicationInfo.PRIVATE_FLAG_PRIVILEGED ) ) != 0 ) { return bindTransport ( info ) ; } else { android.util.Slog.w ( com.android.server.backup.BackupManagerService.TAG , ( ( "Transport package " + ( info.packageName ) ) + " not privileged" ) ) ; } } catch ( android.content.pm.PackageManager.NameNotFoundException e ) { android.util.Slog.w ( com.android.server.backup.BackupManagerService.TAG , ( "Problem resolving transport package " + ( info.packageName ) ) ) ; } return false ; }
Source:
public boolean getBooleanProperty ( java.lang.String key , boolean defVal ) { java.lang.String s = getProperty ( key ) ; if ( s != null ) { if ( ( s.equalsIgnoreCase ( "yes" ) ) || ( s.equals ( "true" ) ) ) { return true ; } if ( ( s.equalsIgnoreCase ( "no" ) ) || ( s.equalsIgnoreCase ( "false" ) ) ) { return false ; } } return defVal ; }

Target:
public boolean getBooleanProperty ( java.lang.String key , boolean defVal ) { java.lang.String s = getProperty ( key ) ; if ( s == null ) { return defVal ; } if ( ( ( s.equalsIgnoreCase ( "yes" ) ) || ( s.equalsIgnoreCase ( "true" ) ) ) || ( s.equals ( "1" ) ) ) { return true ; } return false ; }
Source:
private void loadUserUrlsList ( ) { com.android.sdklib.internal.repository.SdkSource [ ] knownSources = mSources.getSources ( SdkSourceCategory.USER_ADDONS ) ; java.util.Arrays.sort ( knownSources ) ; org.eclipse.jface.viewers.ISelection oldSelection = mUserTableViewer.getSelection ( ) ; mUserTableViewer.setInput ( knownSources ) ; mUserTableViewer.refresh ( ) ; on_UserTableViewer_selectionChanged ( null ) ; if ( ( oldSelection != null ) && ( ! ( oldSelection.isEmpty ( ) ) ) ) { mUserTableViewer.setSelection ( oldSelection , true ) ; } }

Target:
private void loadUserUrlsList ( ) { com.android.sdklib.internal.repository.sources.SdkSource [ ] knownSources = mSources.getSources ( SdkSourceCategory.USER_ADDONS ) ; java.util.Arrays.sort ( knownSources ) ; org.eclipse.jface.viewers.ISelection oldSelection = mUserTableViewer.getSelection ( ) ; mUserTableViewer.setInput ( knownSources ) ; mUserTableViewer.refresh ( ) ; on_UserTableViewer_selectionChanged ( null ) ; if ( ( oldSelection != null ) && ( ! ( oldSelection.isEmpty ( ) ) ) ) { mUserTableViewer.setSelection ( oldSelection , true ) ; } }
Source:
public void run ( ) { mSelectionManager.selectAll ( ) ; }

Target:
public void run ( ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.GraphicalEditorPart graphicalEditor = getLayoutEditor ( ) . getGraphicalEditor ( ) ; org.eclipse.swt.custom.StyledText errorLabel = graphicalEditor.getErrorLabel ( ) ; if ( errorLabel.isFocusControl ( ) ) { errorLabel.selectAll ( ) ; return ; } mSelectionManager.selectAll ( ) ; }
Source:
public static void wtf ( java.lang.Object objectPrefix , java.lang.Throwable tr , java.lang.String format , java.lang.Object ... args ) { android.util.Log.wtf ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( android.telecom.Log.getPrefixFromObject ( objectPrefix ) , format , args ) , tr ) ; }

Target:
public static void e ( java.lang.Object objectPrefix , java.lang.Throwable tr , java.lang.String format , java.lang.Object ... args ) { if ( android.telecom.Log.ERROR ) { android.util.Slog.e ( android.telecom.Log.TAG , android.telecom.Log.buildMessage ( android.telecom.Log.getPrefixFromObject ( objectPrefix ) , format , args ) , tr ) ; } }
Source:
protected void engineInit ( int opmode , java.security.Key key , java.security.spec.AlgorithmParameterSpec params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { if ( ( params != null ) && ( ( padding ) != ( NativeConstants.RSA_PKCS1_OAEP_PADDING ) ) ) { throw new java.security.InvalidAlgorithmParameterException ( ( "unknown param type: " + ( params.getClass ( ) . getName ( ) ) ) ) ; } engineInitInternal ( opmode , key ) ; }

Target:
protected void engineInit ( int opmode , java.security.Key key , java.security.AlgorithmParameters params , java.security.SecureRandom random ) throws java.security.InvalidAlgorithmParameterException , java.security.InvalidKeyException { if ( params != null ) { throw new java.security.InvalidAlgorithmParameterException ( ( "unknown param type: " + ( params.getClass ( ) . getName ( ) ) ) ) ; } engineInitInternal ( opmode , key , null ) ; }
Source:
protected java.lang.String checkLint ( java.util.List < java.io.File > files ) throws java.lang.Exception { mOutput = new java.lang.StringBuilder ( ) ; com.android.tools.lint.checks.AbstractCheckTest.TestLintClient lintClient = new com.android.tools.lint.checks.AbstractCheckTest.TestLintClient ( ) ; java.lang.String result = lintClient.analyze ( files ) ; if ( ( java.io.File.separatorChar ) != '/' ) { result = result.replace ( java.io.File.separatorChar , '/' ) ; } return result ; }

Target:
protected java.lang.String checkLint ( java.util.List < java.io.File > files ) throws java.lang.Exception { mOutput = new java.lang.StringBuilder ( ) ; com.android.tools.lint.checks.AbstractCheckTest.TestLintClient lintClient = createClient ( ) ; java.lang.String result = lintClient.analyze ( files ) ; if ( ( java.io.File.separatorChar ) != '/' ) { result = result.replace ( java.io.File.separatorChar , '/' ) ; } return result ; }
Source:
public boolean terminateCall ( android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothHeadsetClientCall call ) { com.android.bluetooth.hfpclient.HeadsetClientService service = getService ( ) ; if ( service == null ) { return false ; } return service.terminateCall ( device , call.getUUID ( ) ) ; }

Target:
public boolean terminateCall ( android.bluetooth.BluetoothDevice device , android.bluetooth.BluetoothHeadsetClientCall call ) { com.android.bluetooth.hfpclient.HeadsetClientService service = getService ( ) ; if ( service == null ) { android.util.Log.w ( com.android.bluetooth.hfpclient.HeadsetClientService.TAG , "service is null" ) ; return false ; } return service.terminateCall ( device , call.getUUID ( ) ) ; }
Source:
public boolean hasConstantInitializer ( ) { com.android.jack.ir.ast.JType eltType = getType ( ) . getElementType ( ) ; if ( eltType instanceof com.android.jack.ir.ast.JPrimitiveType ) { if ( initializers.isEmpty ( ) ) { return false ; } for ( com.android.jack.ir.ast.JExpression initExpression : initializers ) { if ( ( ! ( initExpression instanceof com.android.jack.ir.ast.JValueLiteral ) ) || ( ! ( initExpression.getType ( ) . equals ( eltType ) ) ) ) { return false ; } } return true ; } return false ; }

Target:
public boolean hasConstantInitializer ( ) { com.android.jack.ir.ast.JType eltType = getType ( ) . getElementType ( ) ; if ( eltType instanceof com.android.jack.ir.ast.JPrimitiveType ) { if ( initializers.isEmpty ( ) ) { return false ; } for ( com.android.jack.ir.ast.JExpression initExpression : initializers ) { if ( ( ! ( initExpression instanceof com.android.jack.ir.ast.JValueLiteral ) ) || ( ! ( initExpression.getType ( ) . isSameType ( eltType ) ) ) ) { return false ; } } return true ; } return false ; }
Source:
public void testCompile021 ( ) throws java.lang.Exception { java.lang.String packageName = "com.android.jack.switchstatement.test021.jack" ; java.lang.String classPrefix = ( packageName.replace ( '.' , '_' ) ) + "_" ; java.util.Map < java.lang.String , com.android.jack.switchstatement.SwitchstatementTests.VerifierInfo > input = com.google.common.collect.Maps.newHashMap ( ) ; input.put ( "Switch1" , new com.android.jack.switchstatement.SwitchstatementTests.VerifierInfo ( true ) . specifyInfo ( "java_lang_Thread$State" , true ) ) ; checkCompiledCode ( packageName , input ) ; }

Target:
public void testCompile021 ( ) throws java.lang.Exception { java.lang.String packageName = "com.android.jack.switchstatement.test021.jack" ; java.util.Map < java.lang.String , com.android.jack.switchstatement.SwitchstatementTests.VerifierInfo > input = com.google.common.collect.Maps.newHashMap ( ) ; { input.put ( "Switch1" , new com.android.jack.switchstatement.SwitchstatementTests.VerifierInfo ( true ) . specifyInfo ( "java-lang-Thread$State" , true ) ) ; } checkCompiledCode ( packageName , input ) ; }
Source:
public void addChild ( org.junit.runner.Description description ) { getChildren ( ) . add ( description ) ; }

Target:
public java.lang.Class < ? > getTestClass ( ) { if ( ( fTestClass ) != null ) { return fTestClass ; } java.lang.String name = getClassName ( ) ; if ( name == null ) { return null ; } try { fTestClass = java.lang.Class.forName ( name , false , getClass ( ) . getClassLoader ( ) ) ; return fTestClass ; } catch ( java.lang.ClassNotFoundException e ) { return null ; } }
Source:
private com.android.jill.backend.jayce.JayceWriter createWriter ( @ javax.annotation.Nonnull java.io.OutputStream os ) throws java.io.IOException { com.android.jill.backend.jayce.JayceWriter writer = new com.android.jill.backend.jayce.JayceWriter ( os ) ; writer.writeHeader ( ( ( "jayce(2.14 \"jill " + ( version ) ) + "\")" ) ) ; return writer ; }

Target:
private com.android.jill.backend.jayce.JayceWriter createWriter ( @ javax.annotation.Nonnull java.io.OutputStream os ) throws java.io.IOException { com.android.jill.backend.jayce.JayceWriter writer = new com.android.jill.backend.jayce.JayceWriter ( os ) ; writer.writeHeader ( ( ( ( ( ( ( "jayce(" + ( com.android.jill.frontend.java.JavaTransformer.JAYCE_MAJOR_VERSION ) ) + "." ) + ( com.android.jill.frontend.java.JavaTransformer.JAYCE_MINOR_VERSION ) ) + " \"jill " ) + ( version ) ) + "\")" ) ) ; return writer ; }
Source:
public void binderDied ( ) { synchronized ( mLock ) { tryRemoveServiceLocked ( this ) ; if ( mIsAutomation ) { mUiAutomationService = null ; populateEnabledAccessibilityServicesLocked ( ) ; populateTouchExplorationGrantedAccessibilityServicesLocked ( ) ; handleAccessibilityEnabledSettingChangedLocked ( ) ; sendStateToClientsLocked ( ) ; handleTouchExplorationEnabledSettingChangedLocked ( ) ; updateInputFilterLocked ( ) ; populateAccessibilityServiceListLocked ( ) ; manageServicesLocked ( ) ; } } }

Target:
public void binderDied ( ) { synchronized ( mLock ) { tryRemoveServiceLocked ( this ) ; if ( mIsAutomation ) { mUiAutomationService = null ; recreateInternalStateLocked ( getUserStateLocked ( mUserId ) ) ; } } }
Source:
private void test_dropAnySource_twice ( java.net.InetAddress group , java.net.NetworkInterface networkInterface ) throws java.lang.Exception { if ( ! ( supportsMulticast ) ) { return ; } java.nio.channels.DatagramChannel dc = createReceiverChannel ( ) ; java.nio.channels.MembershipKey membershipKey = dc.join ( group , networkInterface ) ; assertTrue ( membershipKey.isValid ( ) ) ; membershipKey.drop ( ) ; assertFalse ( membershipKey.isValid ( ) ) ; membershipKey.drop ( ) ; dc.close ( ) ; }

Target:
private void check_dropAnySource_twice ( java.net.InetAddress group , java.net.NetworkInterface networkInterface ) throws java.lang.Exception { if ( ! ( supportsMulticast ) ) { return ; } java.nio.channels.DatagramChannel dc = createReceiverChannel ( ) ; java.nio.channels.MembershipKey membershipKey = dc.join ( group , networkInterface ) ; assertTrue ( membershipKey.isValid ( ) ) ; membershipKey.drop ( ) ; assertFalse ( membershipKey.isValid ( ) ) ; membershipKey.drop ( ) ; dc.close ( ) ; }
Source:
public void keepScreenOnStoppedLw ( ) { if ( ( ( mKeyguardDelegate ) != null ) && ( ! ( mKeyguardDelegate.isShowingAndNotHidden ( ) ) ) ) { long curTime = android.os.SystemClock.uptimeMillis ( ) ; mPowerManager.userActivity ( android.os.SystemClock.uptimeMillis ( ) , false ) ; } }

Target:
private void finishKeyguardDrawn ( ) { synchronized ( mLock ) { if ( ( ! ( mAwake ) ) || ( mKeyguardDrawComplete ) ) { return ; } mKeyguardDrawComplete = true ; if ( ( mKeyguardDelegate ) != null ) { mHandler.removeMessages ( com.android.internal.policy.impl.PhoneWindowManager.MSG_KEYGUARD_DRAWN_TIMEOUT ) ; } } finishScreenTurningOn ( ) ; }
Source:
private com.android.dialer.voicemail.listui.NewVoicemailViewHolder getCurrentlyExpandedViewHolder ( ) { if ( newVoicemailViewHolderArrayMap.containsKey ( currentlyExpandedViewHolderId ) ) { com.android.dialer.common.Assert.checkArgument ( ( ( newVoicemailViewHolderArrayMap.get ( currentlyExpandedViewHolderId ) . getViewHolderId ( ) ) == ( currentlyExpandedViewHolderId ) ) ) ; return newVoicemailViewHolderArrayMap.get ( currentlyExpandedViewHolderId ) ; } else { com.android.dialer.common.LogUtil.i ( "NewVoicemailAdapter.getCurrentlyExpandedViewHolder" , "no view holder found in newVoicemailViewHolderArrayMap size:%d for %d" , newVoicemailViewHolderArrayMap.size ( ) , currentlyExpandedViewHolderId ) ; printHashSet ( ) ; printHashMap ( ) ; return null ; } }

Target:
private com.android.dialer.voicemail.listui.NewVoicemailViewHolder getCurrentlyExpandedViewHolder ( ) { if ( newVoicemailViewHolderArrayMap.containsKey ( currentlyExpandedViewHolderId ) ) { com.android.dialer.common.Assert.checkArgument ( ( ( newVoicemailViewHolderArrayMap.get ( currentlyExpandedViewHolderId ) . getViewHolderId ( ) ) == ( currentlyExpandedViewHolderId ) ) ) ; return newVoicemailViewHolderArrayMap.get ( currentlyExpandedViewHolderId ) ; } else { com.android.dialer.common.LogUtil.i ( "NewVoicemailAdapter.getCurrentlyExpandedViewHolder" , "no view holder found in hashmap size:%d for %d" , newVoicemailViewHolderArrayMap.size ( ) , currentlyExpandedViewHolderId ) ; printHashSet ( ) ; printHashMap ( ) ; return null ; } }
Source:
public void testBasicCallStack ( ) { com.android.tools.perflib.vmtrace.CallStackReconstructor reconstructor = new com.android.tools.perflib.vmtrace.CallStackReconstructor ( ) ; reconstructor.addTraceAction ( 1 , TraceAction.METHOD_ENTER , 10 , 10 ) ; reconstructor.addTraceAction ( 1 , TraceAction.METHOD_EXIT , 15 , 15 ) ; java.util.List < com.android.tools.perflib.vmtrace.Call > callees = reconstructor.getTopLevelCallees ( ) ; assertEquals ( 1 , callees.size ( ) ) ; assertEquals ( 1 , callees.get ( 0 ) . getMethodId ( ) ) ; }

Target:
public void testBasicCallStack ( ) { com.android.tools.perflib.vmtrace.CallStackReconstructor reconstructor = new com.android.tools.perflib.vmtrace.CallStackReconstructor ( 255 ) ; reconstructor.addTraceAction ( 1 , TraceAction.METHOD_ENTER , 10 , 10 ) ; reconstructor.addTraceAction ( 1 , TraceAction.METHOD_EXIT , 15 , 15 ) ; com.android.tools.perflib.vmtrace.Call topLevel = reconstructor.getTopLevel ( ) ; assertEquals ( 1 , topLevel.getCallees ( ) . size ( ) ) ; assertEquals ( 1 , topLevel.getCallees ( ) . get ( 0 ) . getMethodId ( ) ) ; }
Source:
public synchronized void close ( ) throws com.android.jack.library.LibraryIOException { try { for ( com.android.sched.vfs.InputVFS currentSectionVFS : sectionVFS.values ( ) ) { currentSectionVFS.close ( ) ; } baseVFS.close ( ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.LibraryIOException ( getLocation ( ) , e ) ; } }

Target:
public synchronized void close ( ) throws com.android.jack.library.LibraryIOException { try { for ( com.android.sched.vfs.InputVFS currentSectionVFS : sectionVFS.values ( ) ) { currentSectionVFS.close ( ) ; } vfs.close ( ) ; } catch ( java.io.IOException e ) { throw new com.android.jack.library.LibraryIOException ( getLocation ( ) , e ) ; } }
Source:
protected byte [ ] getIllegalByteArray ( ) { return new byte [ ] { 0 } ; }

Target:
protected byte [ ] getIllegalByteArray ( ) { return new byte [ ] { ( ( byte ) ( 0 ) ) , ( ( byte ) ( 216 ) ) , ( ( byte ) ( 0 ) ) , ( ( byte ) ( 219 ) ) } ; }
Source:
public void doUpdateVisitedHistory ( java.lang.String url , boolean isReload ) { org.chromium.base.TraceEvent.begin ( ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( ( ( "doUpdateVisitedHistory=" + url ) + " reload=" ) + isReload ) ) ; mWebViewClient.doUpdateVisitedHistory ( mWebView , url , isReload ) ; org.chromium.base.TraceEvent.end ( ) ; }

Target:
public void doUpdateVisitedHistory ( java.lang.String url , boolean isReload ) { try { org.chromium.base.TraceEvent.begin ( "WebViewContentsClientAdapter.doUpdateVisitedHistory" ) ; if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , ( ( ( "doUpdateVisitedHistory=" + url ) + " reload=" ) + isReload ) ) ; mWebViewClient.doUpdateVisitedHistory ( mWebView , url , isReload ) ; } finally { org.chromium.base.TraceEvent.end ( "WebViewContentsClientAdapter.doUpdateVisitedHistory" ) ; } }
Source:
public static void runJillToZip ( @ javax.annotation.Nonnull java.io.File inputFile , @ javax.annotation.Nonnull java.io.File outputFile ) throws java.lang.Exception { java.lang.String [ ] args = new java.lang.String [ ] { "-o" , outputFile.getAbsolutePath ( ) , inputFile.getAbsolutePath ( ) , "-v" , "-c" , "zip" } ; com.android.jill.Options options = com.android.jill.Main.getOptions ( args ) ; new com.android.jill.Jill ( options , "" ) . process ( options.getBinaryFile ( ) ) ; }

Target:
public static void runJillToZip ( @ javax.annotation.Nonnull java.io.File inputFile , @ javax.annotation.Nonnull java.io.File outputFile ) throws java.lang.Exception { java.lang.String [ ] args = new java.lang.String [ ] { "--output" , outputFile.getAbsolutePath ( ) , inputFile.getAbsolutePath ( ) , "-v" } ; com.android.jill.Options options = com.android.jill.Main.getOptions ( args ) ; new com.android.jill.Jill ( options , "" ) . process ( options.getBinaryFile ( ) ) ; }
Source:
java.io.InputStream openRead ( @ javax.annotation.Nonnull com.android.sched.vfs.DirectFS.DirectVFile file ) throws com.android.sched.util.file.WrongPermissionException { assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) ) != 0 ; java.io.File path = file.getNativePath ( ) ; try { return new java.io.FileInputStream ( path ) ; } catch ( java.io.FileNotFoundException e ) { com.android.sched.util.file.FileOrDirectory.checkPermissions ( path , file.getLocation ( ) , Permission.READ ) ; throw new com.android.sched.util.ConcurrentIOException ( e ) ; } }

Target:
java.io.InputStream openRead ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVFile file ) throws com.android.sched.util.file.WrongPermissionException { assert ! ( isClosed ( ) ) ; assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) ) != 0 ; java.io.File path = getNativeFile ( file.getPath ( ) ) ; try { return new java.io.FileInputStream ( path ) ; } catch ( java.io.FileNotFoundException e ) { com.android.sched.util.file.FileOrDirectory.checkPermissions ( path , file.getLocation ( ) , Permission.READ ) ; throw new com.android.sched.util.ConcurrentIOException ( e ) ; } }
Source:
public boolean apply ( java.util.Map.Entry < K , java.util.Collection < V > > entry ) { return ! ( c.contains ( entry.getValue ( ) ) ) ; }

Target:
private static < K , V > com.google.common.collect.Multimap < K , V > filterFiltered ( com.google.common.collect.FilteredMultimap < K , V > multimap , com.google.common.base.Predicate < ? super java.util.Map.Entry < K , V > > entryPredicate ) { com.google.common.base.Predicate < java.util.Map.Entry < K , V > > predicate = com.google.common.base.Predicates.and ( multimap.entryPredicate ( ) , entryPredicate ) ; return new com.google.common.collect.FilteredEntryMultimap < K , V > ( multimap.unfiltered ( ) , predicate ) ; }
Source:
private void postCheckForLongClick ( int delayOffset ) { mHasPerformedLongPress = false ; if ( ( mPendingCheckForLongPress ) == null ) { mPendingCheckForLongPress = new android.view.View.CheckForLongPress ( ) ; } mPendingCheckForLongPress.rememberWindowAttachCount ( ) ; postDelayed ( mPendingCheckForLongPress , ( ( android.view.ViewConfiguration.getLongPressTimeout ( ) ) - delayOffset ) ) ; }

Target:
private void checkForLongClick ( int delayOffset ) { if ( ( ( mViewFlags ) & ( android.view.View.LONG_CLICKABLE ) ) == ( android.view.View.LONG_CLICKABLE ) ) { mHasPerformedLongPress = false ; if ( ( mPendingCheckForLongPress ) == null ) { mPendingCheckForLongPress = new android.view.View.CheckForLongPress ( ) ; } mPendingCheckForLongPress.rememberWindowAttachCount ( ) ; postDelayed ( mPendingCheckForLongPress , ( ( android.view.ViewConfiguration.getLongPressTimeout ( ) ) - delayOffset ) ) ; } }
Source:
public void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mTestProc = new java.io.File ( getContext ( ) . getFilesDir ( ) , "proc" ) ; if ( mTestProc.exists ( ) ) { libcore.io.IoUtils.deleteContents ( mTestProc ) ; } mFactory = new com.android.internal.net.NetworkStatsFactory ( mTestProc ) ; }

Target:
public void setUp ( ) throws java.lang.Exception { mTestProc = new java.io.File ( android.support.test.InstrumentationRegistry.getContext ( ) . getFilesDir ( ) , "proc" ) ; if ( mTestProc.exists ( ) ) { libcore.io.IoUtils.deleteContents ( mTestProc ) ; } mFactory = new com.android.internal.net.NetworkStatsFactory ( mTestProc ) ; }
Source:
public java.lang.String copyResourceToContainer ( final android.net.Uri packageURI , final java.lang.String cid , final java.lang.String key , final java.lang.String resFileName , final java.lang.String publicResFileName , boolean isExternal , boolean isForwardLocked ) { if ( ( packageURI == null ) || ( cid == null ) ) { return null ; } return copyResourceInner ( packageURI , cid , key , resFileName , publicResFileName , isExternal , isForwardLocked ) ; }

Target:
public java.lang.String copyResourceToContainer ( final android.net.Uri packageURI , final java.lang.String cid , final java.lang.String key , final java.lang.String resFileName , final java.lang.String publicResFileName , boolean isExternal , boolean isForwardLocked , java.lang.String abiOverride ) { if ( ( packageURI == null ) || ( cid == null ) ) { return null ; } return copyResourceInner ( packageURI , cid , key , resFileName , publicResFileName , isExternal , isForwardLocked , abiOverride ) ; }
Source:
public android.util.Pair < byte [ ] , byte [ ] > readOutOfBandData ( ) { if ( ( getState ( ) ) != ( android.bluetooth.BluetoothAdapter.STATE_ON ) ) return null ; return null ; }

Target:
public android.bluetooth.BluetoothServerSocket listenUsingInsecureL2capOn ( int port ) throws java.io.IOException { android.bluetooth.BluetoothServerSocket socket = new android.bluetooth.BluetoothServerSocket ( BluetoothSocket.TYPE_L2CAP , false , false , port , false , false ) ; int errno = socket.mSocket.bindListen ( ) ; if ( port == ( android.bluetooth.BluetoothAdapter.SOCKET_CHANNEL_AUTO_STATIC_NO_SDP ) ) { socket.setChannel ( socket.mSocket.getPort ( ) ) ; } if ( errno != 0 ) { throw new java.io.IOException ( ( "Error: " + errno ) ) ; } return socket ; }