auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void write ( @ javax.annotation.Nonnull com.android.sched.vfs.OutputVFS outputVDir ) throws com.android.jack.backend.dex.DexWritingException { com.android.jack.tools.merger.JackMerger merger = new com.android.jack.tools.merger.JackMerger ( createDexFile ( ) ) ; com.android.sched.vfs.OutputVFile outputDex = getOutputDex ( outputVDir ) ; java.util.Iterator < com.android.sched.vfs.InputVFile > inputVFileIt = com.android.jack.Jack.getSession ( ) . getJackInternalOutputLibrary ( ) . iterator ( FileType.DEX ) ; while ( inputVFileIt.hasNext ( ) ) { try { mergeDex ( merger , inputVFileIt.next ( ) ) ; } catch ( com.android.jack.tools.merger.MergingOverflowException e ) { throw new com.android.jack.backend.dex.DexWritingException ( new com.android.jack.backend.dex.SingleDexOverflowException ( e ) ) ; } } finishMerge ( merger , outputDex ) ; }

Target:
public void write ( @ javax.annotation.Nonnull com.android.sched.vfs.OutputVFS outputVDir ) throws com.android.jack.backend.dex.DexWritingException { com.android.jack.tools.merger.JackMerger merger = new com.android.jack.tools.merger.JackMerger ( createDexFile ( ) ) ; com.android.sched.vfs.OutputVFile outputDex = getOutputDex ( outputVDir ) ; java.util.Iterator < com.android.sched.vfs.InputVFile > inputVFileIt = com.android.jack.Jack.getSession ( ) . getJackOutputLibrary ( ) . iterator ( FileType.DEX ) ; while ( inputVFileIt.hasNext ( ) ) { try { mergeDex ( merger , inputVFileIt.next ( ) ) ; } catch ( com.android.jack.tools.merger.MergingOverflowException e ) { throw new com.android.jack.backend.dex.DexWritingException ( new com.android.jack.backend.dex.SingleDexOverflowException ( e ) ) ; } } finishMerge ( merger , outputDex ) ; }
Source:
public void testGetValues009_ThisObject ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value thisValue = getStaticFieldValue ( classID , "THIS_OBJECT" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( "breakpointObject" , StackTrace002Debuggee.OBJECT_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointObject" ) ; methodInfo.addVariable ( "this" , thisValue ) ; runStackFrameTest ( tester ) ; }

Target:
public void testGetValues009_ThisObject ( ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; org.apache.harmony.jpda.tests.framework.jdwp.Value thisValue = getStaticFieldValue ( classID , "THIS_OBJECT" ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester tester = new org.apache.harmony.jpda.tests.jdwp.StackFrame.StackFrameTester ( StackTrace002Debuggee.OBJECT_SIGNAL ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo suspensionMethodInfo = tester.addTestMethod ( "breakpointObject" ) ; suspensionMethodInfo.addVariable ( "this" , thisValue ) ; org.apache.harmony.jpda.tests.jdwp.StackFrame.MethodInfo methodInfo = tester.addTestMethod ( "runBreakpointObject" ) ; methodInfo.addVariable ( "this" , thisValue ) ; runStackFrameTest ( tester , suspensionMethodInfo ) ; }
Source:
public static < K , V > java.util.SortedMap < K , V > filterEntries ( java.util.SortedMap < K , V > unfiltered , com.google.common.base.Predicate < ? super java.util.Map.Entry < K , V > > entryPredicate ) { com.google.common.base.Preconditions.checkNotNull ( entryPredicate ) ; return unfiltered instanceof com.google.common.collect.Maps.FilteredEntrySortedMap ? com.google.common.collect.Maps.filterFiltered ( ( ( com.google.common.collect.Maps.FilteredEntrySortedMap < K , V > ) ( unfiltered ) ) , entryPredicate ) : new com.google.common.collect.Maps.FilteredEntrySortedMap < K , V > ( com.google.common.base.Preconditions.checkNotNull ( unfiltered ) , entryPredicate ) ; }

Target:
static < K , V > java.util.SortedMap < K , V > filterSortedIgnoreNavigable ( java.util.SortedMap < K , V > unfiltered , com.google.common.base.Predicate < ? super java.util.Map.Entry < K , V > > entryPredicate ) { com.google.common.base.Preconditions.checkNotNull ( entryPredicate ) ; return unfiltered instanceof com.google.common.collect.Maps.FilteredEntrySortedMap ? com.google.common.collect.Maps.filterFiltered ( ( ( com.google.common.collect.Maps.FilteredEntrySortedMap < K , V > ) ( unfiltered ) ) , entryPredicate ) : new com.google.common.collect.Maps.FilteredEntrySortedMap < K , V > ( com.google.common.base.Preconditions.checkNotNull ( unfiltered ) , entryPredicate ) ; }
Source:
private void startForegroundCompat ( android.app.Notification notification ) { if ( ( mStartForeground ) != null ) { mStartForegroundArgs [ 0 ] = java.lang.Integer.valueOf ( mNotificationId ) ; mStartForegroundArgs [ 1 ] = notification ; try { mStartForeground.invoke ( this , mStartForegroundArgs ) ; } catch ( java.lang.Exception e ) { com.googlecode.android_scripting.Log.e ( e ) ; } return ; } setForeground ( true ) ; if ( notification != null ) { mNotificationManager.notify ( mNotificationId , notification ) ; } }

Target:
private void startForegroundCompat ( android.app.Notification notification ) { if ( ( mStartForeground ) != null ) { mStartForegroundArgs [ 0 ] = java.lang.Integer.valueOf ( mNotificationId ) ; mStartForegroundArgs [ 1 ] = notification ; try { mStartForeground.invoke ( this , mStartForegroundArgs ) ; } catch ( java.lang.Exception e ) { com.googlecode.android_scripting.Log.e ( e ) ; } return ; } setForeground ( true ) ; if ( notification != null ) { getNotificationManager ( ) . notify ( mNotificationId , notification ) ; } }
Source:
public static java.lang.String createPathComment ( java.io.File file ) throws java.net.MalformedURLException { java.lang.String url = com.android.utils.SdkUtils.fileToUrlString ( file ) ; int dashes = url.indexOf ( "--" ) ; if ( dashes != ( - 1 ) ) { url = url.replace ( "--" , "%2D%2D" ) ; } return ( com.android.ide.common.res2.MergedResourceWriter.FILENAME_PREFIX ) + url ; }

Target:
public boolean isInsertSourceMarkers ( ) { return mInsertSourceMarkers ; }
Source:
private void prepareDialog ( ) { final boolean silentModeOn = ( mAudioManager.getRingerMode ( ) ) != ( android.media.AudioManager.RINGER_MODE_NORMAL ) ; mSilentModeToggle.updateState ( ( silentModeOn ? com.android.internal.policy.impl.GlobalActions.ToggleAction.State.On : com.android.internal.policy.impl.GlobalActions.ToggleAction.State.Off ) ) ; mAirplaneModeOn.updateState ( mAirplaneState ) ; mAdapter.notifyDataSetChanged ( ) ; if ( mKeyguardShowing ) { mDialog.getWindow ( ) . setType ( WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG ) ; } else { mDialog.getWindow ( ) . setType ( WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG ) ; } }

Target:
private void prepareDialog ( ) { final boolean silentModeOn = ( mAudioManager.getRingerMode ( ) ) != ( android.media.AudioManager.RINGER_MODE_NORMAL ) ; mSilentModeToggle.updateState ( ( silentModeOn ? com.android.internal.policy.impl.GlobalActions.ToggleAction.State.On : com.android.internal.policy.impl.GlobalActions.ToggleAction.State.Off ) ) ; mAirplaneModeOn.updateState ( mAirplaneState ) ; mAdapter.notifyDataSetChanged ( ) ; if ( mKeyguardShowing ) { mDialog.getWindow ( ) . setType ( WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG ) ; } else { mDialog.getWindow ( ) . setType ( WindowManager.LayoutParams.TYPE_SYSTEM_DIALOG ) ; } mDialog.setTitle ( R.string.global_actions ) ; }
Source:
public boolean onClick ( ) { if ( ! isBlocked ) { com.android.dialer.blockreportspam.ShowBlockReportSpamDialogNotifier.notifyShowDialogToBlockNumber ( context , blockReportSpamDialogInfo ) ; } else { android.widget.Toast.makeText ( context , java.lang.String.format ( java.util.Locale.ENGLISH , "TODO: Unblock number %s." , blockReportSpamDialogInfo.getNormalizedNumber ( ) ) , Toast.LENGTH_SHORT ) . show ( ) ; } return true ; }

Target:
public boolean onClick ( ) { if ( isBlocked ) { com.android.dialer.blockreportspam.ShowBlockReportSpamDialogNotifier.notifyShowDialogToUnblockNumber ( context , blockReportSpamDialogInfo ) ; } else { com.android.dialer.blockreportspam.ShowBlockReportSpamDialogNotifier.notifyShowDialogToBlockNumber ( context , blockReportSpamDialogInfo ) ; } return true ; }
Source:
public void testInstallWithBadlyFormedBundleVersion ( ) throws java.lang.Exception { java.lang.String invalidBundleVersion = "A01.001" ; byte [ ] versionBytes = libcore.tzdata.update2.BundleVersion.getBytes ( invalidBundleVersion , libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , "001" ) ; libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createTimeZoneBundleWithVersionBytes ( versionBytes ) ; assertFalse ( installer.install ( bundle.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }

Target:
public void testInstall_withBadlyFormedBundleVersion ( ) throws java.lang.Exception { java.lang.String invalidBundleVersion = "A01.001" ; byte [ ] versionBytes = libcore.tzdata.update2.BundleVersion.getBytes ( invalidBundleVersion , libcore.tzdata.update2.TimeZoneBundleInstallerTest.NEW_RULES_VERSION , "001" ) ; libcore.tzdata.update2.TimeZoneBundle bundle = libcore.tzdata.update2.TimeZoneBundleInstallerTest.createTimeZoneBundleWithVersionBytes ( versionBytes ) ; assertFalse ( installer.install ( bundle.getBytes ( ) ) ) ; assertNoContentInstalled ( ) ; }
Source:
protected void runStackFrameTest ( org.apache.harmony.jpda.tests.jdwp.StackFrame.JDWPStackFrameAccessTest.StackFrameTester tester ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; int breakpointRequestID = debuggeeWrapper.vmMirror.setBreakpointAtMethodBegin ( classID , tester.getBreakpointMethodName ( ) ) ; synchronizer.sendMessage ( tester.getSignalValue ( ) ) ; long eventThreadID = debuggeeWrapper.vmMirror.waitForBreakpoint ( breakpointRequestID ) ; checkStackFrame ( classID , eventThreadID , tester , true ) ; debuggeeWrapper.vmMirror.resume ( ) ; eventThreadID = debuggeeWrapper.vmMirror.waitForBreakpoint ( breakpointRequestID ) ; debuggeeWrapper.vmMirror.clearBreakpoint ( breakpointRequestID ) ; checkStackFrame ( classID , eventThreadID , tester , false ) ; }

Target:
protected void runStackFrameTest ( org.apache.harmony.jpda.tests.jdwp.StackFrame.JDWPStackFrameAccessTest.StackFrameTester tester , org.apache.harmony.jpda.tests.jdwp.StackFrame.JDWPStackFrameAccessTest.MethodInfo suspensionMethodInfo ) { long classID = getClassIDBySignature ( getDebuggeeClassSignature ( ) ) ; synchronizer.sendMessage ( tester.getSignalValue ( ) ) ; long eventThreadID = suspendDebuggee ( ) ; checkStackFrame ( classID , eventThreadID , tester , suspensionMethodInfo , true ) ; resumeTest ( eventThreadID ) ; eventThreadID = suspendDebuggee ( ) ; checkStackFrame ( classID , eventThreadID , tester , suspensionMethodInfo , false ) ; resumeTest ( eventThreadID ) ; }
Source:
public boolean pingSupplicant ( ) { enforceAccessPermission ( ) ; mLog.trace ( "pingSupplicant uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ( mWifiStateMachineChannel ) != null ) { return mWifiStateMachine.syncPingSupplicant ( mWifiStateMachineChannel ) ; } else { android.util.Slog.e ( com.android.server.wifi.WifiServiceImpl.TAG , "mWifiStateMachineChannel is not initialized" ) ; return false ; } }

Target:
public android.net.wifi.WifiConfiguration getMatchingWifiConfig ( android.net.wifi.ScanResult scanResult ) { enforceAccessPermission ( ) ; mLog.trace ( "getMatchingWifiConfig uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; if ( ! ( mContext.getResources ( ) . getBoolean ( com.android.internal.R.bool.config_wifi_hotspot2_enabled ) ) ) { throw new java.lang.UnsupportedOperationException ( "Passpoint not enabled" ) ; } return mWifiStateMachine.syncGetMatchingWifiConfig ( scanResult , mWifiStateMachineChannel ) ; }
Source:
private java.lang.StringBuffer subformat ( double number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr ) { if ( ( currencySignCount ) == ( com.ibm.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { return subformat ( currencyPluralInfo.select ( getFixedDecimal ( number ) ) , result , fieldPosition , isNegative , isInteger , parseAttr ) ; } else { return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr ) ; } }

Target:
private java.lang.StringBuffer subformat ( double number , java.lang.StringBuffer result , java.text.FieldPosition fieldPosition , boolean isNegative , boolean isInteger , boolean parseAttr , int maxIntDig ) { if ( ( currencySignCount ) == ( com.ibm.icu.text.DecimalFormat.CURRENCY_SIGN_COUNT_IN_PLURAL_FORMAT ) ) { return subformat ( currencyPluralInfo.select ( getFixedDecimal ( number ) ) , result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; } else { return subformat ( result , fieldPosition , isNegative , isInteger , parseAttr , maxIntDig ) ; } }
Source:
public void testSslFallback_allSupportedProtocols ( ) throws java.lang.Exception { java.lang.String [ ] allSupportedProtocols = new java.lang.String [ ] { "TLSv1.2" , "TLSv1.1" , "TLSv1" } ; libcore.javax.net.ssl.TestSSLContext testSSLContext = createDefaultTestSSLContext ( ) ; javax.net.ssl.SSLSocketFactory serverSocketFactory = new libcore.java.net.URLConnectionTest.LimitedProtocolsSocketFactory ( testSSLContext.serverContext.getSocketFactory ( ) , allSupportedProtocols ) ; javax.net.ssl.SSLSocketFactory clientSocketFactoryDelegate = new libcore.java.net.URLConnectionTest.LimitedProtocolsSocketFactory ( testSSLContext.clientContext.getSocketFactory ( ) , allSupportedProtocols ) ; checkSslFallback ( serverSocketFactory , clientSocketFactoryDelegate ) ; }

Target:
public void testNoSslFallback_specifiedProtocols ( ) throws java.lang.Exception { java.lang.String [ ] enabledProtocols = new java.lang.String [ ] { "TLSv1.2" , "TLSv1.1" } ; libcore.javax.net.ssl.TestSSLContext testSSLContext = createDefaultTestSSLContext ( ) ; javax.net.ssl.SSLSocketFactory serverSocketFactory = new libcore.java.net.URLConnectionTest.LimitedProtocolsSocketFactory ( testSSLContext.serverContext.getSocketFactory ( ) , enabledProtocols ) ; javax.net.ssl.SSLSocketFactory clientSocketFactory = new libcore.java.net.URLConnectionTest.LimitedProtocolsSocketFactory ( testSSLContext.clientContext.getSocketFactory ( ) , enabledProtocols ) ; checkNoFallbackOnFailedHandshake ( clientSocketFactory , serverSocketFactory , enabledProtocols ) ; }
Source:
protected void drawableStateChanged ( ) { super . drawableStateChanged ( ) ; android.graphics.drawable.Drawable progressDrawable = getProgressDrawable ( ) ; if ( progressDrawable != null ) { progressDrawable.setAlpha ( ( isEnabled ( ) ? android.widget.AbsSeekBar.NO_ALPHA : ( ( int ) ( ( android.widget.AbsSeekBar.NO_ALPHA ) * ( mDisabledAlpha ) ) ) ) ) ; } if ( ( ( mThumb ) != null ) && ( mThumb.isStateful ( ) ) ) { int [ ] state = getDrawableState ( ) ; mThumb.setState ( state ) ; } }

Target:
private void applyThumbTint ( ) { if ( ( ( mThumb ) != null ) && ( ( mHasThumbTint ) || ( mHasThumbTintMode ) ) ) { mThumb = mThumb.mutate ( ) ; if ( mHasThumbTint ) { mThumb.setTintList ( mThumbTintList ) ; } if ( mHasThumbTintMode ) { mThumb.setTintMode ( mThumbTintMode ) ; } } }
Source:
private void configureStageInstallExpectation ( com.android.timezone.distro.TimeZoneDistro expected , int resultCode ) throws java.lang.Exception { org.mockito.Mockito.when ( mMockTimeZoneDistroInstaller.stageInstallWithErrorCode ( org.mockito.Matchers.eq ( expected ) ) ) . thenReturn ( resultCode ) ; }

Target:
private static android.os.ParcelFileDescriptor createParcelFileDescriptor ( byte [ ] bytes ) throws java.io.IOException { java.io.File file = java.io.File.createTempFile ( "pfd" , null ) ; try ( java.io.FileOutputStream fos = new java.io.FileOutputStream ( file ) ) { fos.write ( bytes ) ; } android.os.ParcelFileDescriptor pfd = android.os.ParcelFileDescriptor.open ( file , ParcelFileDescriptor.MODE_READ_ONLY ) ; file.delete ( ) ; return pfd ; }
Source:
public java.util.List < com.android.jack.ir.ast.cfg.JBasicBlock > getBlocksDepthFirst ( boolean forward ) { final java.util.List < com.android.jack.ir.ast.cfg.JBasicBlock > blocks = new java.util.ArrayList < > ( ) ; new com.android.jack.ir.ast.cfg.BasicBlockIterator ( this ) { @ java.lang.Override public boolean process ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JBasicBlock block ) { blocks.add ( block ) ; return true ; } } . iterateDepthFirst ( forward ) ; return blocks ; }

Target:
public java.util.List < com.android.jack.ir.ast.cfg.JBasicBlock > getReachableBlocksDepthFirst ( ) { final java.util.List < com.android.jack.ir.ast.cfg.JBasicBlock > blocks = new java.util.ArrayList < > ( ) ; new com.android.jack.ir.ast.cfg.BasicBlockIterator ( this ) { @ java.lang.Override public boolean process ( @ javax.annotation.Nonnull com.android.jack.ir.ast.cfg.JBasicBlock block ) { blocks.add ( block ) ; return true ; } } . iterateDepthFirst ( ) ; return blocks ; }
Source:
private static void assumeThatMd5AcceptedInPkcs7Signature ( ) throws java.lang.Exception { java.lang.String algs = java.security.Security.getProperty ( "jdk.jar.disabledAlgorithms" ) ; if ( ( algs != null ) && ( algs.toLowerCase ( java.util.Locale.US ) . contains ( "md5" ) ) ) { org.junit.Assume.assumeNoException ( new java.lang.RuntimeException ( ( ( ( "MD5 not accepted in PKCS #7 signatures" + " . jdk.jar.disabledAlgorithms: \"" ) + algs ) + "\"" ) ) ) ; } }

Target:
static void assertVerified ( com.android.apksig.ApkVerifier.Result result ) { com.android.apksig.ApkVerifierTest.assertVerified ( result , "APK" ) ; }
Source:
public java.lang.String startWpsPinDisplay ( java.lang.String iface , java.lang.String bssid ) { if ( ( com.android.server.wifi.WifiNative.HIDL_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.startWpsPinDisplay ( iface , bssid ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doStringCommandNative ( ( ( "IFNAME=" + iface ) + " WPS_PIN any" ) ) ; } else { return doStringCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PIN " ) + bssid ) ) ; } } } }

Target:
public boolean startWpsPbc ( java.lang.String iface , java.lang.String bssid ) { if ( ( com.android.server.wifi.WifiNative.HIDL_P2P_ENABLE ) && ( ( mSupplicantP2pIfaceHal ) != null ) ) { return mSupplicantP2pIfaceHal.startWpsPbc ( iface , bssid ) ; } else { synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( android.text.TextUtils.isEmpty ( bssid ) ) { return doBooleanCommandNative ( ( ( "IFNAME=" + iface ) + " WPS_PBC" ) ) ; } else { return doBooleanCommandNative ( ( ( ( "IFNAME=" + iface ) + " WPS_PBC " ) + bssid ) ) ; } } } }
Source:
void addRemoteMessage ( java.lang.String message ) { if ( android.text.TextUtils.isEmpty ( message ) ) { return ; } updateCurrentRemoteMessage ( message ) ; if ( ( messageListener ) != null ) { messageListener.onUpdateRemoteMessage ( toItemPosition ( com.android.incallui.rtt.impl.RttChatMessage.getLastIndexRemoteMessage ( rttMessages ) ) ) ; } }

Target:
void addRemoteMessage ( java.lang.String message ) { if ( android.text.TextUtils.isEmpty ( message ) ) { return ; } updateCurrentRemoteMessage ( message ) ; if ( ( messageListener ) != null ) { messageListener.onUpdateRemoteMessage ( toItemPosition ( com.android.incallui.rtt.protocol.RttChatMessage.getLastIndexRemoteMessage ( rttMessages ) ) ) ; } }
Source:
public com.android.ide.eclipse.gltrace.state.GLSparseArrayProperty clone ( ) { com.android.sdklib.util.SparseArray < com.android.ide.eclipse.gltrace.state.IGLProperty > copy = new com.android.sdklib.util.SparseArray < com.android.ide.eclipse.gltrace.state.IGLProperty > ( mSparseArray.size ( ) ) ; for ( int i = 0 ; i < ( mSparseArray.size ( ) ) ; i ++ ) { int key = mSparseArray.keyAt ( i ) ; com.android.ide.eclipse.gltrace.state.IGLProperty value = mSparseArray.get ( key ) ; copy.put ( key , value ) ; } return new com.android.ide.eclipse.gltrace.state.GLSparseArrayProperty ( mType , mDefaultValue , mCreateOnAccess , copy ) ; }

Target:
public com.android.ide.eclipse.gltrace.state.GLSparseArrayProperty clone ( ) { com.android.utils.SparseArray < com.android.ide.eclipse.gltrace.state.IGLProperty > copy = new com.android.utils.SparseArray < com.android.ide.eclipse.gltrace.state.IGLProperty > ( mSparseArray.size ( ) ) ; for ( int i = 0 ; i < ( mSparseArray.size ( ) ) ; i ++ ) { int key = mSparseArray.keyAt ( i ) ; com.android.ide.eclipse.gltrace.state.IGLProperty value = mSparseArray.get ( key ) ; copy.put ( key , value ) ; } return new com.android.ide.eclipse.gltrace.state.GLSparseArrayProperty ( mType , mDefaultValue , mCreateOnAccess , copy ) ; }
Source:
private static java.io.File getDexDir ( android.content.Context context , android.content.pm.ApplicationInfo applicationInfo ) throws java.io.IOException { java.io.File cache = new java.io.File ( applicationInfo.dataDir , android.support.multidex.MultiDex.CODE_CACHE_NAME ) ; try { android.support.multidex.MultiDex.mkdirChecked ( cache ) ; } catch ( java.io.IOException e ) { cache = new java.io.File ( context.getFilesDir ( ) , android.support.multidex.MultiDex.CODE_CACHE_NAME ) ; android.support.multidex.MultiDex.mkdirChecked ( cache ) ; } java.io.File dexDir = new java.io.File ( cache , android.support.multidex.MultiDex.CODE_CACHE_SECONDARY_FOLDER_NAME ) ; android.support.multidex.MultiDex.mkdirChecked ( dexDir ) ; return dexDir ; }

Target:
private static java.io.File getDexDir ( android.content.Context context , java.io.File dataDir , java.lang.String secondaryFolderName ) throws java.io.IOException { java.io.File cache = new java.io.File ( dataDir , android.support.multidex.MultiDex.CODE_CACHE_NAME ) ; try { android.support.multidex.MultiDex.mkdirChecked ( cache ) ; } catch ( java.io.IOException e ) { cache = new java.io.File ( context.getFilesDir ( ) , android.support.multidex.MultiDex.CODE_CACHE_NAME ) ; android.support.multidex.MultiDex.mkdirChecked ( cache ) ; } java.io.File dexDir = new java.io.File ( cache , secondaryFolderName ) ; android.support.multidex.MultiDex.mkdirChecked ( dexDir ) ; return dexDir ; }
Source:
protected com.android.jack.api01.ChainedException putAsLastExceptionOf ( @ javax.annotation.CheckForNull com.android.jack.api01.ChainedException head ) { if ( head == null ) { this . tail = this ; this . next = null ; this . count = 1 ; return this ; } else { head.tail.next = this ; head.tail = this ; ( head.count ) ++ ; return head ; } }

Target:
protected com.android.jack.api.v01.ChainedException putAsLastExceptionOf ( @ javax.annotation.CheckForNull com.android.jack.api.v01.ChainedException head ) { if ( head == null ) { this . tail = this ; this . next = null ; this . count = 1 ; return this ; } else { head.tail.next = this ; head.tail = this ; ( head.count ) ++ ; return head ; } }
Source:
public org.bouncycastle.math.ec.ECPoint importPoint ( org.bouncycastle.math.ec.ECPoint p ) { if ( ( this ) == ( p.getCurve ( ) ) ) { return p ; } if ( p.isInfinity ( ) ) { return getInfinity ( ) ; } p = p.normalize ( ) ; return createPoint ( p.getXCoord ( ) . toBigInteger ( ) , p.getYCoord ( ) . toBigInteger ( ) , p.withCompression ) ; }

Target:
public org.bouncycastle.math.ec.ECPoint importPoint ( org.bouncycastle.math.ec.ECPoint p ) { if ( ( this ) == ( p.getCurve ( ) ) ) { return p ; } if ( p.isInfinity ( ) ) { return getInfinity ( ) ; } p = p.normalize ( ) ; return validatePoint ( p.getXCoord ( ) . toBigInteger ( ) , p.getYCoord ( ) . toBigInteger ( ) , p.withCompression ) ; }
Source:
public static void createjar ( @ javax.annotation.Nonnull java.io.File jarfile , @ javax.annotation.Nonnull java.io.File inputFiles ) { java.lang.String [ ] args = new java.lang.String [ ] { "jar" , "cf" , jarfile.getAbsolutePath ( ) , "-C" , inputFiles.getAbsolutePath ( ) , "." } ; com.android.jack.test.util.ExecuteFile execFile = new com.android.jack.test.util.ExecuteFile ( args ) ; try { if ( ( execFile.run ( ) ) != 0 ) { throw new java.lang.RuntimeException ( "Jar exited with an error" ) ; } } catch ( com.android.jack.test.util.ExecFileException e ) { throw new java.lang.RuntimeException ( "An error occurred while running jar command" , e ) ; } }

Target:
public static void createjar ( @ javax.annotation.Nonnull java.io.File jarfile , @ javax.annotation.Nonnull java.io.File inputFiles ) { java.lang.String [ ] commandLine = new java.lang.String [ ] { "jar" , "cf" , jarfile.getAbsolutePath ( ) , "-C" , inputFiles.getAbsolutePath ( ) , "." } ; com.android.jack.test.util.ExecuteFile execFile = new com.android.jack.test.util.ExecuteFile ( commandLine ) ; try { if ( ( execFile.run ( ) ) != 0 ) { throw new java.lang.RuntimeException ( "Jar exited with an error" ) ; } } catch ( com.android.jack.test.util.ExecFileException e ) { throw new java.lang.RuntimeException ( "An error occurred while running jar command" , e ) ; } }
Source:
protected void collectExistingIds ( com.android.ide.common.api.INode root , java.util.Set < java.lang.String > existingIdSet ) { if ( root == null ) { return ; } java.lang.String id = root.getStringAttr ( com.android.ide.common.layout.ANDROID_URI , com.android.ide.common.layout.ATTR_ID ) ; if ( id != null ) { id = normalizeId ( id ) ; if ( ! ( existingIdSet.contains ( id ) ) ) { existingIdSet.add ( id ) ; } } for ( com.android.ide.common.api.INode child : root.getChildren ( ) ) { collectExistingIds ( child , existingIdSet ) ; } }

Target:
protected void collectExistingIds ( com.android.ide.common.api.INode root , java.util.Set < java.lang.String > existingIdSet ) { if ( root == null ) { return ; } java.lang.String id = root.getStringAttr ( com.android.ide.common.layout.LayoutConstants.ANDROID_URI , com.android.ide.common.layout.LayoutConstants.ATTR_ID ) ; if ( id != null ) { id = normalizeId ( id ) ; if ( ! ( existingIdSet.contains ( id ) ) ) { existingIdSet.add ( id ) ; } } for ( com.android.ide.common.api.INode child : root.getChildren ( ) ) { collectExistingIds ( child , existingIdSet ) ; } }
Source:
public boolean cleanup ( ) { mService = null ; return true ; }

Target:
boolean disconnect ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.hfp.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH ADMIN permission" ) ; android.util.Log.d ( com.android.bluetooth.hfp.HeadsetService.TAG , ( "disconnect: device=" + device ) ) ; int connectionState = mStateMachine.getConnectionState ( device ) ; if ( ( connectionState != ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) && ( connectionState != ( android.bluetooth.BluetoothProfile.STATE_CONNECTING ) ) ) { android.util.Log.w ( com.android.bluetooth.hfp.HeadsetService.TAG , ( ( ( "disconnect: not connected/connecting, connectionState=" + connectionState ) + ", device=" ) + device ) ) ; return false ; } mStateMachine.sendMessage ( HeadsetStateMachine.DISCONNECT , device ) ; return true ; }
Source:
private void checkPackageName ( int uid , java.lang.String packageName ) { if ( packageName == null ) { throw new java.lang.SecurityException ( "packageName cannot be null" ) ; } java.lang.String [ ] packages = mPackageManager.getPackagesForUid ( uid ) ; if ( packages == null ) { throw new java.lang.SecurityException ( ( "invalid UID " + uid ) ) ; } for ( java.lang.String pkg : packages ) { if ( packageName.equals ( pkg ) ) return ; } throw new java.lang.SecurityException ( "invalid package name" ) ; }

Target:
private void checkPackageName ( java.lang.String packageName ) { if ( packageName == null ) { throw new java.lang.SecurityException ( ( "invalid package name: " + packageName ) ) ; } int uid = android.os.Binder.getCallingUid ( ) ; java.lang.String [ ] packages = mPackageManager.getPackagesForUid ( uid ) ; if ( packages == null ) { throw new java.lang.SecurityException ( ( "invalid UID " + uid ) ) ; } for ( java.lang.String pkg : packages ) { if ( packageName.equals ( pkg ) ) return ; } throw new java.lang.SecurityException ( ( "invalid package name: " + packageName ) ) ; }
Source:
protected com.android.jack.library.OutputJackLibrary getOutputJackLibraryFromVfs ( ) { com.android.sched.vfs.VFS vfs ; com.android.sched.vfs.Container containerType = com.android.sched.util.config.ThreadConfig.get ( Options.LIBRARY_OUTPUT_CONTAINER_TYPE ) ; if ( containerType == ( com.android.sched.vfs.Container.DIR ) ) { vfs = com.android.sched.util.config.ThreadConfig.get ( Options.LIBRARY_OUTPUT_DIR ) ; } else { vfs = com.android.sched.util.config.ThreadConfig.get ( Options.LIBRARY_OUTPUT_ZIP ) ; } return com.android.jack.library.JackLibraryFactory.getOutputLibrary ( vfs , com.android.jack.Jack.getEmitterId ( ) , com.android.jack.Jack.getVersion ( ) . getVerboseVersion ( ) ) ; }

Target:
public com.android.jack.library.OutputJackLibrary getOutputJackLibrary ( ) { return outputJackLibrary ; }
Source:
void dismissCallScreen ( ) { if ( ( mInCallScreen ) != null ) { if ( ( ( mInCallScreen.isOtaCallInActiveState ( ) ) || ( mInCallScreen.isOtaCallInEndState ( ) ) ) || ( ( ( cdmaOtaScreenState ) != null ) && ( ( cdmaOtaScreenState.otaScreenState ) != ( CdmaOtaScreenState.OtaScreenState.OTA_STATUS_UNDEFINED ) ) ) ) { wakeUpScreen ( ) ; displayCallScreen ( ) ; mInCallScreen.handleOtaCallEnd ( ) ; return ; } else { mInCallScreen.finish ( ) ; } } }

Target:
void dismissCallScreen ( ) { if ( ( mInCallScreen ) != null ) { if ( ( ( phone.getPhoneType ( ) ) == ( com.android.internal.telephony.Phone.PHONE_TYPE_CDMA ) ) && ( ( ( mInCallScreen.isOtaCallInActiveState ( ) ) || ( mInCallScreen.isOtaCallInEndState ( ) ) ) || ( ( ( cdmaOtaScreenState ) != null ) && ( ( cdmaOtaScreenState.otaScreenState ) != ( CdmaOtaScreenState.OtaScreenState.OTA_STATUS_UNDEFINED ) ) ) ) ) { wakeUpScreen ( ) ; displayCallScreen ( ) ; mInCallScreen.handleOtaCallEnd ( ) ; return ; } else { mInCallScreen.finish ( ) ; } } }
Source:
private void teardown ( ) { android.content.pm.LauncherApps launcherApps = ( ( android.content.pm.LauncherApps ) ( getSystemService ( Context.LAUNCHER_APPS_SERVICE ) ) ) ; synchronized ( com.android.cts.launchertests.support.LauncherCallbackTestsService.mPackagesLock ) { if ( ( mCallback ) != null ) { launcherApps.unregisterCallback ( mCallback ) ; mCallback = null ; } com.android.cts.launchertests.support.LauncherCallbackTestsService.mPackagesAdded.clear ( ) ; com.android.cts.launchertests.support.LauncherCallbackTestsService.mPackagesRemoved.clear ( ) ; com.android.cts.launchertests.support.LauncherCallbackTestsService.mPackagesChanged.clear ( ) ; } }

Target:
private void teardown ( ) { android.content.pm.LauncherApps launcherApps = ( ( android.content.pm.LauncherApps ) ( getSystemService ( Context.LAUNCHER_APPS_SERVICE ) ) ) ; synchronized ( mCallbackLock ) { if ( ( mCallback ) != null ) { launcherApps.unregisterCallback ( mCallback ) ; android.util.Log.i ( com.android.cts.launchertests.support.LauncherCallbackTestsService.TAG , "stopped listening for events" ) ; mCallback = null ; } com.android.cts.launchertests.support.LauncherCallbackTestsService.mPackagesAdded.clear ( ) ; com.android.cts.launchertests.support.LauncherCallbackTestsService.mPackagesRemoved.clear ( ) ; com.android.cts.launchertests.support.LauncherCallbackTestsService.mPackagesChanged.clear ( ) ; } }
Source:
public void queryAvailableBandMode ( android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_QUERY_AVAILABLE_BAND_MODE , response ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; send ( rr ) ; }

Target:
public void getMute ( android.os.Message result ) { android.hardware.radio.V1_0.IRadio radioProxy = getRadioProxy ( result ) ; if ( radioProxy != null ) { com.android.internal.telephony.RILRequest rr = obtainRequest ( com.android.internal.telephony.RIL_REQUEST_GET_MUTE , result , mRILDefaultWorkSource ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; try { radioProxy.getMute ( rr.mSerial ) ; } catch ( android.os.RemoteException | java.lang.RuntimeException e ) { handleRadioProxyExceptionForRR ( rr , "getMute" , e ) ; } } }
Source:
private static synchronized void clearA2dpService ( ) { com.android.bluetooth.a2dp.A2dpService.sA2dpService = null ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { if ( ! ( BluetoothDevice.ACTION_BOND_STATE_CHANGED.equals ( intent.getAction ( ) ) ) ) { return ; } int state = intent.getIntExtra ( BluetoothDevice.EXTRA_BOND_STATE , BluetoothDevice.ERROR ) ; android.bluetooth.BluetoothDevice device = intent.getParcelableExtra ( BluetoothDevice.EXTRA_DEVICE ) ; java.util.Objects.requireNonNull ( device , "ACTION_BOND_STATE_CHANGED with no EXTRA_DEVICE" ) ; bondStateChanged ( device , state ) ; }
Source:
private static boolean isBooleanField ( java.lang.reflect.Field field , com.google.devtools.common.options.Converter < ? > converter ) { return ( ( field.getType ( ) . equals ( boolean . class ) ) || ( field.getType ( ) . equals ( com.google.devtools.common.options.TriState.class ) ) ) || ( converter instanceof com.google.devtools.common.options.BoolOrEnumConverter ) ; }

Target:
private static boolean isBooleanField ( com.google.devtools.common.options.OptionDefinition optionDefinition , com.google.devtools.common.options.Converter < ? > converter ) { return ( ( optionDefinition.getType ( ) . equals ( boolean . class ) ) || ( optionDefinition.getType ( ) . equals ( com.google.devtools.common.options.TriState.class ) ) ) || ( converter instanceof com.google.devtools.common.options.BoolOrEnumConverter ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JThisRef x ) { com.android.jack.ir.ast.JParameterRef replacement = new com.android.jack.ir.ast.JParameterRef ( x.getSourceInfo ( ) , thisParam ) ; replacement.addAllMarker ( x.getAllMarkers ( ) ) ; tr.append ( new com.android.jack.transformations.request.Replace ( x , replacement ) ) ; return super . visit ( x ) ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JThisRef x ) { com.android.jack.ir.ast.JParameterRef replacement = thisParam.makeRef ( x.getSourceInfo ( ) ) ; replacement.addAllMarker ( x.getAllMarkers ( ) ) ; tr.append ( new com.android.jack.transformations.request.Replace ( x , replacement ) ) ; return super . visit ( x ) ; }
Source:
public void test_signum ( ) throws java.lang.Exception { assertEquals ( 0 , java.lang.Long.signum ( 0 ) ) ; assertEquals ( 1 , java.lang.Long.signum ( 1 ) ) ; assertEquals ( ( - 1 ) , java.lang.Long.signum ( ( - 1 ) ) ) ; assertEquals ( 1 , java.lang.Long.signum ( java.lang.Long.MAX_VALUE ) ) ; assertEquals ( ( - 1 ) , java.lang.Long.signum ( java.lang.Long.MIN_VALUE ) ) ; }

Target:
public void testSignum ( ) throws java.lang.Exception { assertEquals ( 0 , java.lang.Long.signum ( 0 ) ) ; assertEquals ( 1 , java.lang.Long.signum ( 1 ) ) ; assertEquals ( ( - 1 ) , java.lang.Long.signum ( ( - 1 ) ) ) ; assertEquals ( 1 , java.lang.Long.signum ( java.lang.Long.MAX_VALUE ) ) ; assertEquals ( ( - 1 ) , java.lang.Long.signum ( java.lang.Long.MIN_VALUE ) ) ; }
Source:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int literal = in.readInt ( ) ; return new com.android.jack.dx.io.instructions.OneRegisterDecodedInstruction ( this , opcode , 0 , null , 0 , literal , a ) ; }

Target:
public com.android.jack.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.jack.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int opcode = com.android.jack.dx.io.instructions.InstructionCodec.byte0 ( opcodeUnit ) ; int a = com.android.jack.dx.io.instructions.InstructionCodec.byte1 ( opcodeUnit ) ; int literal = in.readInt ( ) ; return new com.android.jack.dx.io.instructions.OneRegisterDecodedInstruction ( this , opcode , 0 , com.android.jack.dx.io.IndexType.NONE , 0 , literal , a ) ; }
Source:
private boolean needFontFallback ( java.awt.Font font , java.lang.String text ) { return ( mySupportFontFallback ) && ( ( font.canDisplayUpTo ( text ) ) != ( - 1 ) ) ; }

Target:
private boolean needFontFallback ( java.awt.Font font , java.lang.String text ) { return ( ( mySupportFontFallback ) && ( ( font.canDisplayUpTo ( text ) ) != ( - 1 ) ) ) && ( ( text.indexOf ( java.text.CharacterIterator.DONE ) ) == ( - 1 ) ) ; }
Source:
private int getHash ( ) { return ( ( name ) + ( com.google.common.collect.FluentIterable.from ( getDimensions ( ) ) . transform ( new com.google.common.base.Function < com.google.gct.testing.GoogleCloudTestingDimension , java.lang.String > ( ) { @ java.lang.Override public java.lang.String apply ( com.google.gct.testing.GoogleCloudTestingDimension dimension ) { return getStringRepresentation ( dimension ) ; } } ) . toString ( ) ) ) . hashCode ( ) ; }

Target:
private int getHash ( ) { return ( ( name ) + ( com.google.common.collect.FluentIterable.from ( getDimensions ( ) ) . transform ( new com.google.common.base.Function < com.google.gct.testing.CloudConfigurationDimension , java.lang.String > ( ) { @ java.lang.Override public java.lang.String apply ( com.google.gct.testing.CloudConfigurationDimension dimension ) { return getStringRepresentation ( dimension ) ; } } ) . toString ( ) ) ) . hashCode ( ) ; }
Source:
private Sampler.Builder getDefaultBuilder ( com.android.rs.test.RenderScript RS ) { android.renderscript.Sampler.Builder b = new android.renderscript.Sampler.Builder ( RS ) ; b.setMinification ( Value.NEAREST ) ; b.setMagnification ( Value.NEAREST ) ; b.setWrapS ( Value.CLAMP ) ; b.setWrapT ( Value.CLAMP ) ; b.setAnisotropy ( 1.0F ) ; return b ; }

Target:
private Sampler.Builder getDefaultBuilder ( com.android.rs.test.RenderScript RS ) { com.android.rs.test.Sampler.Builder b = new com.android.rs.test.Sampler.Builder ( RS ) ; b.setMinification ( Sampler.Value.NEAREST ) ; b.setMagnification ( Sampler.Value.NEAREST ) ; b.setWrapS ( Sampler.Value.CLAMP ) ; b.setWrapT ( Sampler.Value.CLAMP ) ; b.setAnisotropy ( 1.0F ) ; return b ; }
Source:
public int compare ( com.android.traceview.MethodData md1 , com.android.traceview.MethodData md2 ) { if ( ( md2.getElapsedInclusive ( ) ) > ( md1.getElapsedInclusive ( ) ) ) return 1 ; if ( ( md2.getElapsedInclusive ( ) ) < ( md1.getElapsedInclusive ( ) ) ) return - 1 ; return md1.getName ( ) . compareTo ( md2.getName ( ) ) ; }

Target:
public int compare ( com.android.traceview.MethodData md1 , com.android.traceview.MethodData md2 ) { if ( ( timeBase.getElapsedInclusiveTime ( md2 ) ) > ( timeBase.getElapsedInclusiveTime ( md1 ) ) ) return 1 ; if ( ( timeBase.getElapsedInclusiveTime ( md2 ) ) < ( timeBase.getElapsedInclusiveTime ( md1 ) ) ) return - 1 ; return md1.getName ( ) . compareTo ( md2.getName ( ) ) ; }
Source:
public void onResume ( ) { super . onResume ( ) ; startService ( new android.content.Intent ( this , android.perfetto.producer.ProducerService.class ) ) ; startService ( new android.content.Intent ( this , android.perfetto.producer.ProducerIsolatedService.class ) ) ; java.lang.System.loadLibrary ( "perfettocts_jni" ) ; new java.lang.Thread ( new java.lang.Runnable ( ) { public void run ( ) { try { android.perfetto.producer.ProducerActivity.setupProducer ( ) ; } catch ( java.lang.Exception ex ) { ex.printStackTrace ( ) ; } } } ) . start ( ) ; }

Target:
public void run ( ) { if ( paused ) { return ; } startService ( new android.content.Intent ( this , android.perfetto.producer.ProducerService.class ) ) ; startService ( new android.content.Intent ( this , android.perfetto.producer.ProducerIsolatedService.class ) ) ; java.lang.System.loadLibrary ( "perfettocts_jni" ) ; new java.lang.Thread ( new java.lang.Runnable ( ) { public void run ( ) { try { android.perfetto.producer.ProducerActivity.setupProducer ( ) ; } catch ( java.lang.Exception ex ) { ex.printStackTrace ( ) ; } } } ) . start ( ) ; }
Source:
public void run ( ) { mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; mNM.notify ( 1 , notificationWithNumbers ( 1 ) ) ; }

Target:
public void run ( ) { android.app.Notification n = new android.app.Notification ( R.drawable.icon2 , "tock tock tock" , java.lang.System.currentTimeMillis ( ) ) ; n.setLatestEventInfo ( this , "Persistent #2" , "Notify me!!!" , makeIntent ( ) ) ; n.defaults = android.app.Notification.DEFAULT_VIBRATE ; mNM.notify ( 2 , n ) ; }
Source:
public void testAnonymousWithStaticSuper ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { com.android.jack.java8.parameter.test001.Tests.StaticAnonymous a = new com.android.jack.java8.parameter.test001.Tests.StaticAnonymous ( ) { } ; java.lang.reflect.Constructor < ? > constructor = a.getClass ( ) . getDeclaredConstructor ( com.android.jack.java8.parameter.test001.Tests.class ) ; junit.framework.Assert.assertEquals ( 1 , constructor.getParameters ( ) . length ) ; check ( constructor.getParameters ( ) [ 0 ] , "this$0" , true , true , false , ( ( com.android.jack.java8.parameter.test001.Tests.MODIFIER_FINAL ) | ( com.android.jack.java8.parameter.test001.Tests.MODIFIER_IMPLICIT ) ) ) ; }

Target:
public void testAnonymousWithStaticSuper ( ) throws java.lang.NoSuchMethodException , java.lang.SecurityException { com.android.jack.java8.parameter.test001.Tests.StaticAnonymous a = new com.android.jack.java8.parameter.test001.Tests.StaticAnonymous ( ) { } ; java.lang.reflect.Constructor < ? > constructor = a.getClass ( ) . getDeclaredConstructor ( com.android.jack.java8.parameter.test001.Tests.class ) ; junit.framework.Assert.assertEquals ( 1 , constructor.getParameters ( ) . length ) ; check ( constructor.getParameters ( ) [ 0 ] , "this$0" , true , true , false , ( ( com.android.jack.java8.parameter.common.ParameterTestModifier.MODIFIER_FINAL ) | ( com.android.jack.java8.parameter.common.ParameterTestModifier.MODIFIER_IMPLICIT ) ) ) ; }
Source:
public void registerJavaGeneratingTask ( @ com.android.annotations.NonNull org.gradle.api.Task task , @ com.android.annotations.NonNull java.util.Collection < java.io.File > generatedSourceFolders ) { if ( ( extraGeneratedSourceFolders ) == null ) { extraGeneratedSourceFolders = com.google.common.collect.Lists.newArrayList ( ) ; } javaCompileTask.dependsOn ( task ) ; for ( java.io.File f : generatedSourceFolders ) { javaCompileTask.source ( f ) ; } addJavaSourceFoldersToModel ( generatedSourceFolders ) ; }

Target:
public void registerJavaGeneratingTask ( @ com.android.annotations.NonNull org.gradle.api.Task task , @ com.android.annotations.NonNull java.util.Collection < java.io.File > generatedSourceFolders ) { sourceGenTask.dependsOn ( task ) ; for ( java.io.File f : generatedSourceFolders ) { javaCompileTask.source ( f ) ; } addJavaSourceFoldersToModel ( generatedSourceFolders ) ; }
Source:
public void testGetProperty_badResponse ( ) throws java.lang.Exception { com.android.ddmlib.IDevice mockDevice = org.easymock.EasyMock.createMock ( com.android.ddmlib.IDevice.class ) ; injectShellResponse ( mockDevice , "blargh" ) ; org.easymock.EasyMock.replay ( mockDevice ) ; com.android.ddmlib.PropertyFetcher fetcher = new com.android.ddmlib.PropertyFetcher ( mockDevice ) ; assertNull ( fetcher.getProperty ( "dev.bootcomplete" ) . get ( ) ) ; }

Target:
public void testGetProperty_badResponse ( ) throws java.lang.Exception { com.android.ddmlib.IDevice mockDevice = org.easymock.EasyMock.createMock ( com.android.ddmlib.IDevice.class ) ; com.android.ddmlib.DeviceTest.injectShellResponse ( mockDevice , "blargh" ) ; org.easymock.EasyMock.replay ( mockDevice ) ; com.android.ddmlib.PropertyFetcher fetcher = new com.android.ddmlib.PropertyFetcher ( mockDevice ) ; assertNull ( fetcher.getProperty ( "dev.bootcomplete" ) . get ( ) ) ; }
Source:
synchronized void nScriptSetVarD ( long id , int slot , double val ) { validate ( ) ; rsnScriptSetVarD ( mContext , id , slot , val ) ; }

Target:
synchronized void nScriptSetVarVE ( long id , int slot , byte [ ] val , long e , int [ ] dims , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarVE ( curCon , id , slot , val , e , dims , mUseInc ) ; }
Source:
private void writeMethodBody ( ) throws java.io.IOException { currentCatchList.clear ( ) ; writer.clearCatchBlockIds ( ) ; if ( com.android.jill.frontend.java.AsmHelper.isNative ( currentMethod ) ) { writeNativeMethodBody ( ) ; } else if ( com.android.jill.frontend.java.AsmHelper.isAbstract ( currentMethod ) ) { writer.writeNull ( ) ; } else { createCatchedVariables ( ) ; currentLine = startLine ; writeJavaMethodBody ( ) ; } assert writer.isCurrentCatchBlockListEmpty ( ) ; }

Target:
private void writeMethodBody ( ) throws java.io.IOException { currentCatchList.clear ( ) ; writer.clearCatchBlockIds ( ) ; if ( com.android.jill.frontend.java.AsmHelper.isNative ( currentMethod ) ) { writeNativeMethodBody ( ) ; } else if ( com.android.jill.frontend.java.AsmHelper.isAbstract ( currentMethod ) ) { writer.writeNull ( ) ; } else { createCaughtVariables ( ) ; currentLine = startLine ; writeJavaMethodBody ( ) ; } assert writer.isCurrentCatchBlockListEmpty ( ) ; }
Source:
public final android.app.LoadedApk peekPackageInfo ( java.lang.String packageName , boolean includeCode ) { synchronized ( mPackages ) { java.lang.ref.WeakReference < android.app.LoadedApk > ref ; if ( includeCode ) { ref = mPackages.get ( packageName ) ; } else { ref = mResourcePackages.get ( packageName ) ; } return ref != null ? ref.get ( ) : null ; } }

Target:
public final android.app.LoadedApk peekPackageInfo ( java.lang.String packageName , boolean includeCode ) { synchronized ( mResourcesManager ) { java.lang.ref.WeakReference < android.app.LoadedApk > ref ; if ( includeCode ) { ref = mPackages.get ( packageName ) ; } else { ref = mResourcePackages.get ( packageName ) ; } return ref != null ? ref.get ( ) : null ; } }
Source:
public void setVoiceMailNumber ( java.lang.String alphaTag , java.lang.String voiceMailNumber , android.os.Message onComplete ) { android.os.Message resp ; mVmNumber = voiceMailNumber ; resp = obtainMessage ( com.android.internal.telephony.cdma.EVENT_SET_VM_NUMBER_DONE , 0 , 0 , onComplete ) ; com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; if ( r != null ) { r.setVoiceMailNumber ( alphaTag , mVmNumber , resp ) ; } }

Target:
public void setVoiceMailNumber ( java.lang.String alphaTag , java.lang.String voiceMailNumber , android.os.Message onComplete ) { android.os.Message resp ; mVmNumber = voiceMailNumber ; resp = obtainMessage ( com.android.internal.telephony.cdma.EVENT_SET_VM_NUMBER_DONE , 0 , 0 , onComplete ) ; com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; if ( r != null ) { r.setVoiceMailNumber ( alphaTag , mVmNumber , resp ) ; } }
Source:
public void testCannotAccessScanResults_NoCoarseLocationPermission ( ) throws java.lang.Exception { boolean output = true ; mThrowSecurityException = false ; mLocationModeSetting = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY ; setupTestCase ( ) ; com.android.server.wifi.util.WifiPermissionsUtil codeUnderTest = new com.android.server.wifi.util.WifiPermissionsUtil ( mMockPermissionsWrapper , mMockContext , mMockWifiSettingsStore , mMockUserManager ) ; try { output = codeUnderTest.canAccessScanResults ( com.android.server.wifi.util.WifiPermissionsUtilTest.TEST_PACKAGE_NAME , mUid , mTargetVersion ) ; } catch ( java.lang.SecurityException e ) { throw e ; } org.junit.Assert.assertEquals ( output , false ) ; }

Target:
public void testInvalidPackage ( ) throws java.lang.Exception { boolean output = false ; setupTestCase ( ) ; com.android.server.wifi.util.WifiPermissionsUtil codeUnderTest = new com.android.server.wifi.util.WifiPermissionsUtil ( mMockPermissionsWrapper , mMockContext , mMockWifiSettingsStore , mMockUserManager , mNetworkScorerAppManager ) ; try { output = codeUnderTest.canAccessScanResults ( com.android.server.wifi.util.WifiPermissionsUtilTest.TEST_PACKAGE_NAME , mUid , mTargetVersion ) ; } catch ( java.lang.SecurityException e ) { throw e ; } }