auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
void onUserInitialized ( com.android.server.am.UserState uss , boolean foreground , int oldUserId , int newUserId ) { synchronized ( this ) { if ( foreground ) { moveUserToForeground ( uss , oldUserId , newUserId ) ; } } completeSwitchAndInitialize ( uss , newUserId , true , false ) ; }

Target:
public void resizePinnedStack ( android.graphics.Rect pinnedBounds , android.graphics.Rect tempPinnedTaskBounds ) { enforceCallingPermission ( android.Manifest.permission.MANAGE_ACTIVITY_STACKS , "resizePinnedStack()" ) ; final long ident = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( this ) { mStackSupervisor.resizePinnedStackLocked ( pinnedBounds , tempPinnedTaskBounds ) ; } } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } }
Source:
private void setupListener ( javax.swing.JTextField field ) { field.getDocument ( ) . addDocumentListener ( new com.intellij.ui.DocumentAdapter ( ) { @ java.lang.Override protected void textChanged ( javax.swing.event.DocumentEvent e ) { if ( myUpdating ) { return ; } myUpdating = true ; try { updateDataModel ( ) ; myUpdateListener.update ( ) ; } finally { myUpdating = false ; } } } ) ; }

Target:
private void setupListener ( javax.swing.JTextField field , final boolean updatePackageName ) { field.getDocument ( ) . addDocumentListener ( new com.google.gct.idea.appengine.wizard.DocumentAdapter ( ) { @ java.lang.Override protected void textChanged ( javax.swing.event.DocumentEvent e ) { if ( myUpdating ) { return ; } myUpdating = true ; try { synchronizePackageName ( updatePackageName ) ; updateDataModel ( ) ; myUpdateListener.update ( ) ; } finally { myUpdating = false ; } } } ) ; }
Source:
public void handleMessage ( android.os.Message msg ) { com.android.bluetooth.gatt.ScanClient client = ( ( com.android.bluetooth.gatt.ScanClient ) ( msg.obj ) ) ; switch ( msg.what ) { case com.android.bluetooth.gatt.ScanManager.MSG_START_BLE_SCAN : handleStartScan ( client ) ; break ; case com.android.bluetooth.gatt.ScanManager.MSG_STOP_BLE_SCAN : handleStopScan ( client ) ; break ; case com.android.bluetooth.gatt.ScanManager.MSG_FLUSH_BATCH_RESULTS : handleFlushBatchResults ( client ) ; break ; case com.android.bluetooth.gatt.ScanManager.MSG_SCAN_TIMEOUT : mScanNative.regularScanTimeout ( client ) ; break ; default : android.util.Log.e ( com.android.bluetooth.gatt.ScanManager.TAG , ( "received an unkown message : " + ( msg.what ) ) ) ; } }

Target:
void handleResumeScans ( ) { for ( com.android.bluetooth.gatt.ScanClient client : mSuspendedScanClients ) { if ( ( client.stats ) != null ) { client.stats.recordScanResume ( client.scannerId ) ; } handleStartScan ( client ) ; } mSuspendedScanClients.clear ( ) ; }
Source:
public void visitProgramMethod ( proguard.optimize.peephole.ProgramClass programClass , proguard.optimize.peephole.ProgramMethod programMethod ) { if ( proguard.optimize.info.NonPrivateMemberMarker.canBeMadePrivate ( programMethod ) ) { programMethod.u2accessFlags = proguard.optimize.peephole.AccessUtil.replaceAccessFlags ( programMethod.u2accessFlags , ClassConstants.INTERNAL_ACC_PRIVATE ) ; if ( ( extraMemberVisitor ) != null ) { extraMemberVisitor.visitProgramMethod ( programClass , programMethod ) ; } } }

Target:
public void visitProgramMethod ( proguard.optimize.peephole.ProgramClass programClass , proguard.optimize.peephole.ProgramMethod programMethod ) { if ( proguard.optimize.info.NonPrivateMemberMarker.canBeMadePrivate ( programMethod ) ) { programMethod.u2accessFlags = proguard.optimize.peephole.AccessUtil.replaceAccessFlags ( programMethod.u2accessFlags , ClassConstants.ACC_PRIVATE ) ; if ( ( extraMemberVisitor ) != null ) { extraMemberVisitor.visitProgramMethod ( programClass , programMethod ) ; } } }
Source:
public boolean connect ( android.bluetooth.BluetoothDevice device ) { com.android.bluetooth.pbap.BluetoothPbapService service = getService ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_ADMIN_PERM ) ; return false ; }

Target:
void disconnect ( android.bluetooth.BluetoothDevice device ) { enforceCallingOrSelfPermission ( com.android.bluetooth.pbap.BluetoothPbapService.BLUETOOTH_ADMIN_PERM , "Need BLUETOOTH_ADMIN permission" ) ; synchronized ( this ) { if ( ( mState ) == ( android.bluetooth.BluetoothProfile.STATE_CONNECTED ) ) { if ( ( mServerSession ) != null ) { mServerSession.close ( ) ; mServerSession = null ; } closeConnectionSocket ( ) ; setState ( BluetoothProfile.STATE_DISCONNECTED , BluetoothPbap.RESULT_CANCELED ) ; } } }
Source:
private java.util.Map < java.lang.String , java.lang.String > getFileListByExtension ( org.apache.tools.ant.Project taskProject , java.util.List < java.lang.String > sourceFolders , java.lang.String filter ) { java.util.HashMap < java.lang.String , java.lang.String > sourceFiles = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; for ( java.lang.String sourceFolder : sourceFolders ) { sourceFiles.putAll ( getFileListByExtension ( taskProject , sourceFolder , filter ) ) ; } return sourceFiles ; }

Target:
private java.util.Map < java.lang.String , java.lang.String > getFilesByNameEntryFilter ( java.util.List < java.lang.String > folders , java.lang.String filter ) { java.util.Map < java.lang.String , java.lang.String > sourceFiles = new java.util.HashMap < java.lang.String , java.lang.String > ( ) ; for ( java.lang.String folder : folders ) { java.util.Iterator < ? > iterator = getFilesByNameEntryFilter ( folder , filter ) ; while ( iterator.hasNext ( ) ) { sourceFiles.put ( iterator.next ( ) . toString ( ) , folder ) ; } } return sourceFiles ; }
Source:
java.security.MessageDigest createDigest ( org.bouncycastle.asn1.x509.AlgorithmIdentifier digAlgId ) throws java.security.GeneralSecurityException { java.security.MessageDigest dig ; try { dig = helper.createDigest ( org.bouncycastle.operator.jcajce.OperatorHelper.getDigestAlgName ( digAlgId.getAlgorithm ( ) ) ) ; } catch ( java.security.NoSuchAlgorithmException e ) { if ( ( org.bouncycastle.operator.jcajce.OperatorHelper.oids.get ( digAlgId.getAlgorithm ( ) ) ) != null ) { java.lang.String digestAlgorithm = ( ( java.lang.String ) ( org.bouncycastle.operator.jcajce.OperatorHelper.oids.get ( digAlgId.getAlgorithm ( ) ) ) ) ; dig = helper.createDigest ( digestAlgorithm ) ; } else { throw e ; } } return dig ; }

Target:
java.security.MessageDigest createDigest ( org.bouncycastle.asn1.x509.AlgorithmIdentifier digAlgId ) throws java.security.GeneralSecurityException { java.security.MessageDigest dig ; try { dig = helper.createDigest ( org.bouncycastle.jcajce.util.JcaJceUtils.getDigestAlgName ( digAlgId.getAlgorithm ( ) ) ) ; } catch ( java.security.NoSuchAlgorithmException e ) { if ( ( org.bouncycastle.operator.jcajce.OperatorHelper.oids.get ( digAlgId.getAlgorithm ( ) ) ) != null ) { java.lang.String digestAlgorithm = ( ( java.lang.String ) ( org.bouncycastle.operator.jcajce.OperatorHelper.oids.get ( digAlgId.getAlgorithm ( ) ) ) ) ; dig = helper.createDigest ( digestAlgorithm ) ; } else { throw e ; } } return dig ; }
Source:
public void testV1SignedAttrsWrongSignature ( ) throws java.lang.Exception { com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verify ( "v1-only-with-signed-attrs-wrong-signature.apk" ) , Issue.JAR_SIG_DID_NOT_VERIFY ) ; }

Target:
public void testV1SignedAttrsMissingContentType ( ) throws java.lang.Exception { java.lang.String apk = "v1-only-with-signed-attrs-missing-content-type.apk" ; com.android.apksig.ApkVerifierTest.assertVerified ( verifyForMaxSdkVersion ( apk , ( ( com.android.apksig.internal.util.AndroidSdkVersion.N ) - 1 ) ) ) ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verify ( apk ) , Issue.JAR_SIG_VERIFY_EXCEPTION ) ; apk = "v1-only-with-signed-attrs-signerInfo1-missing-content-type-signerInfo2-good.apk" ; com.android.apksig.ApkVerifierTest.assertVerified ( verifyForMaxSdkVersion ( apk , ( ( com.android.apksig.internal.util.AndroidSdkVersion.N ) - 1 ) ) ) ; com.android.apksig.ApkVerifierTest.assertVerificationFailure ( verify ( apk ) , Issue.JAR_SIG_VERIFY_EXCEPTION ) ; }
Source:
public void drawRect ( 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 ( ) . drawRectangle ( x , y , w , h ) ; }

Target:
public void drawRect ( com.android.ide.eclipse.adt.editors.layout.gscripts.Rect r ) { checkGC ( ) ; useStrokeAlpha ( ) ; 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 ( ) . drawRectangle ( x , y , w , h ) ; }
Source:
public com.android.build.gradle.tasks.ZipAlign getZipAlign ( ) { if ( ( outputs.size ( ) ) > 1 ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "More than one output on variant '%s', cannot call getZipAlign() on it. Call it on one of its outputs instead." , getName ( ) ) ) ; } plugin.displayDeprecationWarning ( "variant.getZipAlign() is deprecated. Call it on one of variant.getOutputs() instead." ) ; return ( ( com.android.build.gradle.internal.api.ApkVariantOutputImpl ) ( outputs.get ( 0 ) ) ) . getZipAlign ( ) ; }

Target:
public com.android.build.gradle.tasks.ZipAlign getZipAlign ( ) { if ( ( outputs.size ( ) ) > 1 ) { throw new java.lang.RuntimeException ( java.lang.String.format ( "More than one output on variant '%s', cannot call getZipAlignEnabled() on it. Call it on one of its outputs instead." , getName ( ) ) ) ; } plugin.displayDeprecationWarning ( "variant.getZipAlignEnabled() is deprecated. Call it on one of variant.getOutputs() instead." ) ; return ( ( com.android.build.gradle.internal.api.ApkVariantOutputImpl ) ( outputs.get ( 0 ) ) ) . getZipAlign ( ) ; }
Source:
public void testDependency008 ( ) throws java.lang.Exception { com.android.jack.test.helper.IncrementalTestHelper ite = new com.android.jack.test.helper.IncrementalTestHelper ( com.android.jack.TestTools.createTempDir ( "DependenciesTest_" , "_008" ) ) ; ite.addJavaFile ( "jack.incremental" , "A.java" , ( "package jack.incremental; \n" + "public class A { public void test() {new B().m();}} \n" ) ) ; ite.addJavaFile ( "jack.incremental" , "B.java" , ( "package jack.incremental; \n" + "public class B { public void m(){} } \n" ) ) ; ite.incrementalBuildFromFolder ( ) ; ite.addJavaFile ( "jack.incremental" , "B.java" , ( "package jack.incremental; \n" + "public class B { public void m(int i){} } \n" ) ) ; try { ite.incrementalBuildFromFolder ( ) ; junit.framework.Assert.fail ( ) ; } catch ( com.android.jack.frontend.FrontendCompilationException e ) { } }

Target:
public void testDependency008 ( ) throws java.lang.Exception { com.android.jack.test.helper.IncrementalTestHelper ite = new com.android.jack.test.helper.IncrementalTestHelper ( com.android.jack.test.toolchain.AbstractTestTools.createTempDir ( ) ) ; ite.addJavaFile ( "jack.incremental" , "A.java" , ( "package jack.incremental; \n" + "public class A { public void test() {new B().m();}} \n" ) ) ; ite.addJavaFile ( "jack.incremental" , "B.java" , ( "package jack.incremental; \n" + "public class B { public void m(){} } \n" ) ) ; ite.incrementalBuildFromFolder ( ) ; ite.addJavaFile ( "jack.incremental" , "B.java" , ( "package jack.incremental; \n" + "public class B { public void m(int i){} } \n" ) ) ; try { ite.incrementalBuildFromFolder ( ) ; junit.framework.Assert.fail ( ) ; } catch ( com.android.jack.frontend.FrontendCompilationException e ) { } }
Source:
public java.lang.String getValue ( @ com.android.annotations.NonNull java.lang.String key ) { return null ; }

Target:
public com.android.manifmerger.MergingReport merge ( ) throws com.android.manifmerger.ManifestMerger2.MergeFailureException { com.android.manifmerger.ManifestMerger2 manifestMerger = new com.android.manifmerger.ManifestMerger2 ( mLogger , mMainManifestFile , mLibraryFilesBuilder.build ( ) , mFlavorsAndBuildTypeFiles.build ( ) , mFeaturesBuilder.build ( ) , new com.android.manifmerger.ManifestMerger2.MapBasedKeyBasedValueResolver < java.lang.String > ( mPlaceHolders.build ( ) ) , new com.android.manifmerger.ManifestMerger2.MapBasedKeyBasedValueResolver < com.android.manifmerger.ManifestMerger2.SystemProperty > ( mSystemProperties.build ( ) ) ) ; return manifestMerger.merge ( ) ; }
Source:
public static void startMethodTracing ( java.lang.String traceName , int bufferSize , int flags ) { java.lang.String pathName = traceName ; if ( ( pathName.charAt ( 0 ) ) != '/' ) pathName = ( android.os.Debug.DEFAULT_TRACE_PATH_PREFIX ) + pathName ; if ( ! ( pathName.endsWith ( android.os.Debug.DEFAULT_TRACE_EXTENSION ) ) ) pathName = pathName + ( android.os.Debug.DEFAULT_TRACE_EXTENSION ) ; dalvik.system.VMDebug.startMethodTracing ( pathName , bufferSize , flags ) ; }

Target:
public static void startMethodTracing ( java.lang.String traceName , int bufferSize , int flags ) { dalvik.system.VMDebug.startMethodTracing ( android.os.Debug.fixTraceName ( traceName ) , bufferSize , flags , false , 0 ) ; }
Source:
protected boolean handleReportAudioStatus ( com.android.server.hdmi.HdmiCecMessage message ) { assertRunOnServiceThread ( ) ; byte [ ] params = message.getParams ( ) ; int mute = ( params [ 0 ] ) & 128 ; int volume = ( params [ 0 ] ) & 127 ; setAudioStatus ( ( mute == 128 ) , volume ) ; return true ; }

Target:
protected boolean handleReportAudioStatus ( com.android.server.hdmi.HdmiCecMessage message ) { assertRunOnServiceThread ( ) ; boolean mute = com.android.server.hdmi.HdmiUtils.isAudioStatusMute ( message ) ; int volume = com.android.server.hdmi.HdmiUtils.getAudioStatusVolume ( message ) ; setAudioStatus ( mute , volume ) ; return true ; }
Source:
public int setForwardLockPerm ( java.lang.String packagePathSuffix , int gid ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( "protect" ) ; builder.append ( ' ' ) ; builder.append ( packagePathSuffix ) ; builder.append ( ' ' ) ; builder.append ( gid ) ; return execute ( builder.toString ( ) ) ; }

Target:
public int deleteCacheFiles ( java.lang.String name , int userId ) { java.lang.StringBuilder builder = new java.lang.StringBuilder ( "rmcache" ) ; builder.append ( ' ' ) ; builder.append ( name ) ; builder.append ( ' ' ) ; builder.append ( userId ) ; return execute ( builder.toString ( ) ) ; }
Source:
void putUnchecked ( int pos , char [ ] src , int srcOffset , int length ) { libcore.io.Memory.pokeCharArray ( ix ( pos ) , src , srcOffset , length , ( ! ( nativeByteOrder ) ) ) ; }

Target:
void putUnchecked ( int pos , char [ ] src , int srcOffset , int length ) { if ( ! ( memoryRef.isAccessible ) ) { throw new java.lang.IllegalStateException ( "buffer is inaccessible" ) ; } libcore.io.Memory.pokeCharArray ( ix ( pos ) , src , srcOffset , length , ( ! ( nativeByteOrder ) ) ) ; }
Source:
private void showAlert ( final java.lang.String message ) { if ( mHomeButtonClicked ) { if ( com.android.services.telephony.sip.SipEditor.VERBOSE ) com.android.services.telephony.sip.SipEditor.log ( ( "Home button clicked, don't show dialog: " + message ) ) ; return ; } runOnUiThread ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { new android.app.AlertDialog.Builder ( com.android.services.telephony.sip.SipEditor.this ) . setTitle ( android.R.string.dialog_alert_title ) . setIconAttribute ( android.R.attr.alertDialogIcon ) . setMessage ( message ) . setPositiveButton ( R.string.alert_dialog_ok , null ) . show ( ) ; } } ) ; }

Target:
private void showAlert ( final java.lang.String message ) { if ( mHomeButtonClicked ) { if ( com.android.services.telephony.sip.SipEditor.VERBOSE ) com.android.services.telephony.sip.SipEditor.log ( ( "Home button clicked, don't show dialog: " + message ) ) ; return ; } com.android.services.telephony.sip.SipEditor.AlertDialogFragment newFragment = com.android.services.telephony.sip.SipEditor.AlertDialogFragment.newInstance ( message ) ; newFragment.show ( getFragmentManager ( ) , null ) ; }
Source:
protected boolean dependsOnLibrary ( @ com.android.annotations.NonNull java.lang.String pkg ) { if ( pkg.equals ( mProject.getPackage ( ) ) ) { return true ; } for ( com.android.tools.gradle.eclipse.EclipseProject project : mProject.getAllLibraries ( ) ) { if ( pkg.equals ( project.getPackage ( ) ) ) { return true ; } } return false ; }

Target:
protected boolean dependsOnLibrary ( @ com.android.annotations.NonNull java.lang.String pkg ) { if ( ! ( isAndroidProject ( ) ) ) { return false ; } if ( pkg.equals ( mProject.getPackage ( ) ) ) { return true ; } for ( com.android.tools.gradle.eclipse.EclipseProject project : mProject.getAllLibraries ( ) ) { if ( pkg.equals ( project.getPackage ( ) ) ) { return true ; } } return false ; }
Source:
public boolean dispatchKeyEvent ( final android.view.KeyEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return dispatchKeyEvent ( event ) ; } } ) ; return ret ; } return mAwContents.dispatchKeyEvent ( event ) ; }

Target:
public int computeVerticalScrollExtent ( ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { int ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Integer > ( ) { @ java.lang.Override public java.lang.Integer call ( ) { return computeVerticalScrollExtent ( ) ; } } ) ; return ret ; } return mAwContents.computeVerticalScrollExtent ( ) ; }
Source:
public void beginPostLayoutPolicyLw ( int displayWidth , int displayHeight ) { mTopFullscreenOpaqueWindowState = null ; mForceStatusBar = false ; mForceStatusBarFromKeyguard = false ; mForcingShowNavBar = false ; mForcingShowNavBarLayer = - 1 ; mHideLockScreen = false ; mAllowLockscreenWhenOn = false ; mDismissKeyguard = com.android.internal.policy.impl.PhoneWindowManager.DISMISS_KEYGUARD_NONE ; mShowingLockscreen = false ; mShowingDream = false ; }

Target:
public void beginPostLayoutPolicyLw ( int displayWidth , int displayHeight ) { mTopFullscreenOpaqueWindowState = null ; mAppsToBeHidden.clear ( ) ; mAppsThatDismissKeyguard.clear ( ) ; mForceStatusBar = false ; mForceStatusBarFromKeyguard = false ; mForcingShowNavBar = false ; mForcingShowNavBarLayer = - 1 ; mHideLockScreen = false ; mAllowLockscreenWhenOn = false ; mDismissKeyguard = com.android.internal.policy.impl.PhoneWindowManager.DISMISS_KEYGUARD_NONE ; mShowingLockscreen = false ; mShowingDream = false ; mWinShowWhenLocked = null ; }
Source:
public void testNativeUdpSocketPair ( ) throws java.lang.Exception { for ( java.lang.String addr : android.net.cts.IpSecBaseTest.LOOPBACK_ADDRS ) { java.net.InetAddress local = java.net.InetAddress.getByName ( addr ) ; try ( android.net.IpSecTransform transform = getTransform ( local ) ) { android.net.cts.IpSecBaseTest.SocketPair < android.net.cts.IpSecBaseTest.NativeUdpSocket > sockets = android.net.cts.IpSecBaseTest.getNativeUdpSocketPair ( local , mISM , transform , true ) ; checkSocketPair ( sockets.mLeftSock , sockets.mRightSock ) ; } } }

Target:
public void testNativeUdpSocketPair ( ) throws java.lang.Exception { for ( java.lang.String addr : android.net.cts.IpSecBaseTest.LOOPBACK_ADDRS ) { java.net.InetAddress local = java.net.InetAddress.getByName ( addr ) ; try ( android.net.IpSecTransform transform = buildDefaultTransform ( local ) ) { android.net.cts.IpSecBaseTest.SocketPair < android.net.cts.IpSecBaseTest.NativeUdpSocket > sockets = android.net.cts.IpSecBaseTest.getNativeUdpSocketPair ( local , mISM , transform , true ) ; checkSocketPair ( sockets.mLeftSock , sockets.mRightSock ) ; } } }
Source:
public void testCheckReadPhoneNumber_hasReadSms ( ) { org.mockito.Mockito.doNothing ( ) . when ( mMockContext ) . enforcePermission ( android.Manifest.permission.READ_SMS , com.android.internal.telephony.TelephonyPermissionsTest.PID , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.MSG ) ; org.mockito.Mockito.when ( mMockAppOps.noteOp ( AppOpsManager.OP_READ_SMS , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.PACKAGE ) ) . thenReturn ( AppOpsManager.MODE_ALLOWED ) ; org.junit.Assert.assertTrue ( com.android.internal.telephony.TelephonyPermissions.checkReadPhoneNumber ( mMockContext , com.android.internal.telephony.TelephonyPermissionsTest.PID , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.PACKAGE , com.android.internal.telephony.TelephonyPermissionsTest.MSG ) ) ; }

Target:
public void testCheckReadPhoneNumber_defaultSmsApp ( ) { org.mockito.Mockito.when ( mMockAppOps.noteOp ( AppOpsManager.OP_WRITE_SMS , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.PACKAGE ) ) . thenReturn ( AppOpsManager.MODE_ALLOWED ) ; org.junit.Assert.assertTrue ( com.android.internal.telephony.TelephonyPermissions.checkReadPhoneNumber ( mMockContext , ( ) -> mMockTelephony , com.android.internal.telephony.TelephonyPermissionsTest.SUB_ID , com.android.internal.telephony.TelephonyPermissionsTest.PID , com.android.internal.telephony.TelephonyPermissionsTest.UID , com.android.internal.telephony.TelephonyPermissionsTest.PACKAGE , com.android.internal.telephony.TelephonyPermissionsTest.MSG ) ) ; }
Source:
public com.android.sdklib.devices.Device getDevice ( @ com.android.annotations.NonNull java.lang.String id , @ com.android.annotations.NonNull java.lang.String manufacturer ) { initDevicesLists ( ) ; com.android.sdklib.devices.Device d = getDeviceImpl ( mUserDevices , id , manufacturer ) ; if ( d != null ) { return d ; } d = getDeviceImpl ( mDefaultDevices , id , manufacturer ) ; if ( d != null ) { return d ; } d = getDeviceImpl ( mVendorDevices , id , manufacturer ) ; return d ; }

Target:
public com.android.sdklib.devices.Device getDevice ( @ com.android.annotations.NonNull java.lang.String id , @ com.android.annotations.NonNull java.lang.String manufacturer ) { initDevicesLists ( ) ; com.android.sdklib.devices.Device d = getDeviceImpl ( mUserDevices , id , manufacturer ) ; if ( d != null ) { return d ; } d = getDeviceImpl ( mSysImgDevices , id , manufacturer ) ; if ( d != null ) { return d ; } d = getDeviceImpl ( mDefaultDevices , id , manufacturer ) ; if ( d != null ) { return d ; } d = getDeviceImpl ( mVendorDevices , id , manufacturer ) ; return d ; }
Source:
public android.net.wifi.WifiWakeReasonAndCounts getWlanWakeReasonCount ( ) { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , ( "getWlanWakeReasonCount " + ( com.android.server.wifi.WifiNative.sWlan0Index ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getWlanWakeReasonCountNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } }

Target:
public android.net.wifi.WifiWakeReasonAndCounts getWlanWakeReasonCount ( ) { if ( com.android.server.wifi.WifiNative.HIDL_VENDOR_ENABLE ) { return mWifiVendorHal.getWlanWakeReasonCount ( ) ; } else { android.util.Log.d ( com.android.server.wifi.WifiNative.TAG , ( "getWlanWakeReasonCount " + ( com.android.server.wifi.WifiNative.sWlan0Index ) ) ) ; synchronized ( com.android.server.wifi.WifiNative.sLock ) { if ( isHalStarted ( ) ) { return com.android.server.wifi.WifiNative.getWlanWakeReasonCountNative ( com.android.server.wifi.WifiNative.sWlan0Index ) ; } else { return null ; } } } }
Source:
void keyguardWaitingForActivityDrawn ( ) { mWindowManager.keyguardWaitingForActivityDrawn ( ) ; }

Target:
private boolean checkFinishBootingLocked ( ) { final boolean booting = mService.mBooting ; boolean enableScreen = false ; mService.mBooting = false ; if ( ! ( mService.mBooted ) ) { mService.mBooted = true ; enableScreen = true ; } if ( booting || enableScreen ) { mService.postFinishBooting ( booting , enableScreen ) ; } return booting ; }
Source:
public void testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall ( ) { if ( ! ( mShouldTestTelecom ) ) { return ; } android.media.AudioManager am = ( ( android.media.AudioManager ) ( mContext.getSystemService ( Context.AUDIO_SERVICE ) ) ) ; int expectedRoute = ( am.isWiredHeadsetOn ( ) ) ? android.telecom.CallAudioState.ROUTE_WIRED_HEADSET : android.telecom.CallAudioState.ROUTE_EARPIECE ; final android.os.Bundle extras = new android.os.Bundle ( ) ; extras.putBoolean ( TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE , false ) ; placeAndVerifyCall ( extras ) ; verifyConnectionForOutgoingCall ( ) ; assertAudioRoute ( mInCallCallbacks.getService ( ) , expectedRoute ) ; }

Target:
public void testStartCallWithSpeakerphoneNotProvided_SpeakerphoneOffByDefault ( ) { if ( ! ( mShouldTestTelecom ) ) { return ; } android.media.AudioManager am = ( ( android.media.AudioManager ) ( mContext.getSystemService ( Context.AUDIO_SERVICE ) ) ) ; placeAndVerifyCall ( ) ; verifyConnectionForOutgoingCall ( ) ; assertNotAudioRoute ( mInCallCallbacks.getService ( ) , CallAudioState.ROUTE_SPEAKER ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { com.android.server.telecom.Log.startSession ( "SSP.oR" ) ; try { java.lang.String action = intent.getAction ( ) ; if ( UiModeManager.ACTION_ENTER_CAR_MODE.equals ( action ) ) { onEnterCarMode ( ) ; } else if ( UiModeManager.ACTION_EXIT_CAR_MODE.equals ( action ) ) { onExitCarMode ( ) ; } else { com.android.server.telecom.Log.w ( this , "Unexpected intent received: %s" , intent.getAction ( ) ) ; } } finally { com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { android.telecom.Log.startSession ( "SSP.oR" ) ; try { java.lang.String action = intent.getAction ( ) ; if ( UiModeManager.ACTION_ENTER_CAR_MODE.equals ( action ) ) { onEnterCarMode ( ) ; } else if ( UiModeManager.ACTION_EXIT_CAR_MODE.equals ( action ) ) { onExitCarMode ( ) ; } else { android.telecom.Log.w ( this , "Unexpected intent received: %s" , intent.getAction ( ) ) ; } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
private void setBluetoothOn ( ) { if ( mBluetoothRouteManager.isBluetoothAvailable ( ) ) { if ( ! ( mBluetoothRouteManager.isBluetoothAudioConnectedOrPending ( ) ) ) { android.telecom.Log.i ( this , "connecting bluetooth audio" ) ; mBluetoothRouteManager.connectBluetoothAudio ( null ) ; } } }

Target:
private void setBluetoothOn ( java.lang.String address ) { if ( mBluetoothRouteManager.isBluetoothAvailable ( ) ) { android.bluetooth.BluetoothDevice connectedDevice = mBluetoothRouteManager.getBluetoothAudioConnectedDevice ( ) ; if ( ( address == null ) && ( connectedDevice != null ) ) { return ; } if ( ( connectedDevice == null ) || ( ! ( java.util.Objects.equals ( address , connectedDevice.getAddress ( ) ) ) ) ) { android.telecom.Log.i ( this , "connecting bluetooth audio: %s" , address ) ; mBluetoothRouteManager.connectBluetoothAudio ( address ) ; } } }
Source:
private static com.android.sdklib.internal.repository.packages.MockExtraPackage createRemoteExtraPackage ( com.android.sdklib.internal.repository.sources.SdkSource source , java.lang.String vendor , java.lang.String newPath , java.lang.String oldPaths , int revision , int min_platform_tools_rev ) { java.util.Properties props = new java.util.Properties ( ) ; props.setProperty ( PkgProps.EXTRA_OLD_PATHS , oldPaths ) ; props.setProperty ( ToolPackage.PROP_MIN_PLATFORM_TOOLS_REV , java.lang.Integer.toString ( min_platform_tools_rev ) ) ; return new com.android.sdklib.internal.repository.packages.MockExtraPackage ( source , props , vendor , newPath , revision ) { @ java.lang.Override protected com.android.sdklib.internal.repository.archives.Archive [ ] initializeArchives ( java.util.Properties props2 , com.android.sdklib.internal.repository.archives.Archive.Os archiveOs , com.android.sdklib.internal.repository.archives.Archive.Arch archiveArch , java.lang.String archiveOsPath ) { return new com.android.sdklib.internal.repository.archives.Archive [ ] { new com.android.sdklib.internal.repository.archives.Archive ( this , com.android.sdklib.internal.repository.archives.Archive.Os.ANY , com.android.sdklib.internal.repository.archives.Archive.Arch.ANY , "http://some.source/some_url" , 1234 , "abcdef" ) } ; } } ; }

Target:
private static com.android.sdklib.internal.repository.packages.MockExtraPackage createRemoteExtraPackage ( com.android.sdklib.internal.repository.sources.SdkSource source , java.lang.String vendor , java.lang.String newPath , java.lang.String oldPaths , int revision , int min_platform_tools_rev ) { java.util.Properties props = new java.util.Properties ( ) ; props.setProperty ( PkgProps.EXTRA_OLD_PATHS , oldPaths ) ; props.setProperty ( PkgProps.MIN_PLATFORM_TOOLS_REV , java.lang.Integer.toString ( min_platform_tools_rev ) ) ; return new com.android.sdklib.internal.repository.packages.MockExtraPackage ( source , props , vendor , newPath , revision ) { @ java.lang.Override protected com.android.sdklib.internal.repository.archives.Archive [ ] initializeArchives ( java.util.Properties props2 , com.android.sdklib.internal.repository.archives.Archive.Os archiveOs , com.android.sdklib.internal.repository.archives.Archive.Arch archiveArch , java.lang.String archiveOsPath ) { return new com.android.sdklib.internal.repository.archives.Archive [ ] { new com.android.sdklib.internal.repository.archives.Archive ( this , com.android.sdklib.internal.repository.archives.Archive.Os.ANY , com.android.sdklib.internal.repository.archives.Archive.Arch.ANY , "http://some.source/some_url" , 1234 , "abcdef" ) } ; } } ; }
Source:
public void visitSignatureAttribute ( proguard.classfile.editor.Clazz clazz , proguard.classfile.editor.SignatureAttribute signatureAttribute ) { java.lang.String signature = clazz.getString ( signatureAttribute.u2signatureIndex ) ; java.lang.String newSignature = proguard.classfile.editor.ClassReferenceFixer.newDescriptor ( signature , signatureAttribute.referencedClasses ) ; if ( ! ( signature.equals ( newSignature ) ) ) { signatureAttribute.u2signatureIndex = new proguard.classfile.editor.ConstantPoolEditor ( ( ( proguard.classfile.editor.ProgramClass ) ( clazz ) ) ) . addUtf8Constant ( newSignature ) ; } }

Target:
public void visitSignatureAttribute ( proguard.classfile.editor.Clazz clazz , proguard.classfile.editor.SignatureAttribute signatureAttribute ) { java.lang.String signature = signatureAttribute.getSignature ( clazz ) ; java.lang.String newSignature = proguard.classfile.editor.ClassReferenceFixer.newDescriptor ( signature , signatureAttribute.referencedClasses ) ; if ( ! ( signature.equals ( newSignature ) ) ) { signatureAttribute.u2signatureIndex = new proguard.classfile.editor.ConstantPoolEditor ( ( ( proguard.classfile.editor.ProgramClass ) ( clazz ) ) ) . addUtf8Constant ( newSignature ) ; } }
Source:
private boolean hasCaCertInstalled ( byte [ ] caCert ) throws java.security.cert.CertificateException { boolean result = mDevicePolicyManager.hasCaCertInstalled ( getWho ( ) , caCert ) ; assertEquals ( result , com.android.cts.deviceowner.CaCertManagementTest.containsCertificate ( mDevicePolicyManager.getInstalledCaCerts ( getWho ( ) ) , caCert ) ) ; return result ; }

Target:
private void assertUninstalled ( byte [ ] caBytes ) throws java.security.GeneralSecurityException , java.security.cert.CertificateException { java.security.cert.Certificate caCert = com.android.cts.deviceowner.CaCertManagementTest.readCertificate ( caBytes ) ; assertFalse ( isCaCertInstalledAndTrusted ( caCert ) ) ; }
Source:
public void testVerify ( ) { assertTrue ( verifyWithServerCertificate ( "imap.g.com" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "cn=imap.g.com" ) ) ) ; assertFalse ( verifyWithServerCertificate ( "imap.g.com" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "cn=imap2.g.com" ) ) ) ; assertFalse ( verifyWithServerCertificate ( "imap.g.com" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "cn=sub.imap.g.com" ) ) ) ; }

Target:
public void testSubjectAltNameAndCn ( ) { assertFalse ( verifyWithServerCertificate ( "imap.g.com" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_DNS_NAME , "a.y.com" ) ) ) ; assertFalse ( verifyWithServerCertificate ( "imap.g.com" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( "imap.g.com" ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_DNS_NAME , "a.y.com" ) ) ) ; assertTrue ( verifyWithServerCertificate ( "imap.g.com" , new libcore.javax.net.ssl.DefaultHostnameVerifierTest.StubX509Certificate ( ) . addSubjectAlternativeName ( libcore.javax.net.ssl.DefaultHostnameVerifierTest.ALT_DNS_NAME , "imap.g.com" ) ) ) ; }
Source:
private void recordVideoUsingCamera ( boolean timelapse ) throws java.lang.Exception { int nCamera = android.hardware.Camera.getNumberOfCameras ( ) ; int durMs = ( timelapse ) ? android.media.cts.MediaRecorderTest.RECORD_TIME_LAPSE_MS : android.media.cts.MediaRecorderTest.RECORD_TIME_MS ; for ( int cameraId = 0 ; cameraId < nCamera ; cameraId ++ ) { mCamera = android.hardware.Camera.open ( cameraId ) ; recordVideoUsingCamera ( mCamera , OUTPUT_PATH , durMs , timelapse ) ; mCamera.release ( ) ; mCamera = null ; assertTrue ( checkLocationInFile ( OUTPUT_PATH ) ) ; } }

Target:
private void recordVideoUsingCamera ( boolean timelapse ) throws java.lang.Exception { int nCamera = android.hardware.Camera.getNumberOfCameras ( ) ; int durMs = ( timelapse ) ? android.media.cts.MediaRecorderTest.RECORD_TIME_LAPSE_MS : android.media.cts.MediaRecorderTest.RECORD_TIME_MS ; for ( int cameraId = 0 ; cameraId < nCamera ; cameraId ++ ) { mCamera = android.hardware.Camera.open ( cameraId ) ; setSupportedResolution ( mCamera ) ; recordVideoUsingCamera ( mCamera , OUTPUT_PATH , durMs , timelapse ) ; mCamera.release ( ) ; mCamera = null ; assertTrue ( checkLocationInFile ( OUTPUT_PATH ) ) ; } }
Source:
protected void runTest ( ) throws java.lang.Throwable { java.io.File projectFolder = buildProject ( projectName , BasePlugin.GRADLE_MIN_VERSION ) ; java.io.File apkFolder = new java.io.File ( projectFolder , "build/apk" ) ; java.io.File apk = new java.io.File ( apkFolder , ( ( projectName ) + "-debug-unaligned.apk" ) ) ; int found = com.android.build.gradle.PackagingBuildTest.findFilesInZip ( apk , java.util.Arrays.asList ( packagedFiles ) ) ; assertEquals ( packagedFiles.length , found ) ; }

Target:
protected void runTest ( ) throws java.lang.Throwable { java.io.File projectFolder = buildProject ( projectName , BasePlugin.GRADLE_MIN_VERSION ) ; java.io.File apkFolder = new java.io.File ( projectFolder , ( ( "build/" + ( com.android.build.gradle.BasePlugin.FD_OUTPUTS ) ) + "/apk" ) ) ; java.io.File apk = new java.io.File ( apkFolder , ( ( projectName ) + "-debug-unaligned.apk" ) ) ; int found = com.android.build.gradle.PackagingBuildTest.findFilesInZip ( apk , java.util.Arrays.asList ( packagedFiles ) ) ; assertEquals ( packagedFiles.length , found ) ; }
Source:
public void addFrom ( java.lang.String name , java.lang.String address ) { if ( ( this . from ) == null ) this . from = new java.util.ArrayList < android.text.util.Rfc822Token > ( 1 ) ; this . from.add ( new android.text.util.Rfc822Token ( name , address , null ) ) ; }

Target:
public void addFrom ( java.lang.String name , java.lang.String address ) { if ( ( this . mFrom ) == null ) this . mFrom = new java.util.ArrayList < android.text.util.Rfc822Token > ( 1 ) ; this . mFrom.add ( new android.text.util.Rfc822Token ( name , address , null ) ) ; }
Source:
public void failedGetAuthToken ( ) throws java.lang.Exception { when ( mAccountManager.getAuthToken ( mAccount , "cooltype" , false , null , null ) ) . thenReturn ( mFuture ) ; when ( mFuture.getResult ( ) ) . thenThrow ( new android.accounts.AuthenticatorException ( "sadness!" ) ) ; mAuthenticator.getAuthToken ( ) ; }

Target:
public void failedGetAuthToken ( ) throws java.lang.Exception { org.mockito.Mockito.when ( mAccountManager.getAuthToken ( mAccount , "cooltype" , false , null , null ) ) . thenReturn ( mFuture ) ; org.mockito.Mockito.when ( mFuture.getResult ( ) ) . thenThrow ( new android.accounts.AuthenticatorException ( "sadness!" ) ) ; mAuthenticator.getAuthToken ( ) ; }
Source:
void bindApplication ( java.lang.String packageName , android.content.pm.ApplicationInfo info , java.util.List < android.content.pm.ProviderInfo > providers , android.content.ComponentName testName , android.app.ProfilerInfo profilerInfo , android.os.Bundle testArguments , android.app.IInstrumentationWatcher testWatcher , android.app.IUiAutomationConnection uiAutomationConnection , int debugMode , boolean openGlTrace , boolean restrictedBackupMode , boolean persistent , android.content.res.Configuration config , android.content.res.CompatibilityInfo compatInfo , java.util.Map < java.lang.String , android.os.IBinder > services , android.os.Bundle coreSettings ) throws android.os.RemoteException ;

Target:
void bindApplication ( java.lang.String packageName , android.content.pm.ApplicationInfo info , java.util.List < android.content.pm.ProviderInfo > providers , android.content.ComponentName testName , android.app.ProfilerInfo profilerInfo , android.os.Bundle testArguments , android.app.IInstrumentationWatcher testWatcher , android.app.IUiAutomationConnection uiAutomationConnection , int debugMode , boolean openGlTrace , boolean trackAllocation , boolean restrictedBackupMode , boolean persistent , android.content.res.Configuration config , android.content.res.CompatibilityInfo compatInfo , java.util.Map < java.lang.String , android.os.IBinder > services , android.os.Bundle coreSettings ) throws android.os.RemoteException ;
Source:
public void test_getJarFileURL ( ) throws java.lang.Exception { java.net.URL fileURL = new java.net.URL ( tests.api.java.net.JarURLConnectionTest.BASE ) ; java.net.URL u = new java.net.URL ( ( ( "jar:" + ( tests.api.java.net.JarURLConnectionTest.BASE ) ) + "!/plus.bmp" ) ) ; juc = ( ( java.net.JarURLConnection ) ( u.openConnection ( ) ) ) ; assertEquals ( "Returned incorrect file URL" , fileURL , juc.getJarFileURL ( ) ) ; java.net.URL url = new java.net.URL ( "jar:file:///bar.jar!/foo.jar!/Bugs/HelloWorld.class" ) ; assertEquals ( "file:/bar.jar" , ( ( java.net.JarURLConnection ) ( url.openConnection ( ) ) ) . getJarFileURL ( ) . toString ( ) ) ; }

Target:
private java.net.URL copyAndOpenResourceStream ( java.lang.String jarFile , java.lang.String inFile ) throws java.net.MalformedURLException { java.io.File resources = tests.support.resource.Support_Resources.createTempFolder ( ) ; tests.support.resource.Support_Resources.copyFile ( resources , "net" , jarFile ) ; java.io.File file = new java.io.File ( ( ( ( resources.toString ( ) ) + "/net/" ) + jarFile ) ) ; return new java.net.URL ( ( ( ( "jar:file:" + ( file.getPath ( ) ) ) + "!/" ) + inFile ) ) ; }
Source:
com.android.bluetooth.a2dp.A2dpService getServiceForTesting ( ) { if ( ( ( mService ) != null ) && ( mService.isAvailable ( ) ) ) { return mService ; } return null ; }

Target:
public static synchronized com.android.bluetooth.a2dp.A2dpService getA2dpService ( ) { if ( ( com.android.bluetooth.a2dp.A2dpService.sA2dpService ) == null ) { if ( com.android.bluetooth.a2dp.A2dpService.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dp.A2dpService.TAG , "getA2dpService(): service is NULL" ) ; } return null ; } if ( ! ( com.android.bluetooth.a2dp.A2dpService.sA2dpService.isAvailable ( ) ) ) { if ( com.android.bluetooth.a2dp.A2dpService.DBG ) { android.util.Log.d ( com.android.bluetooth.a2dp.A2dpService.TAG , "getA2dpService(): service is not available" ) ; } return null ; } return com.android.bluetooth.a2dp.A2dpService.sA2dpService ; }
Source:
private void createContextMenu ( ) { mMenuManager = new org.eclipse.jface.action.MenuManager ( ) ; createMenuAction ( mMenuManager ) ; setMenu ( mMenuManager.createContextMenu ( this ) ) ; }

Target:
public void run ( ) { for ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction a2 : actionsMap.get ( action.getId ( ) ) ) { if ( a2 instanceof com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) { mRulesEngine.callClosure ( ( ( com.android.ide.eclipse.adt.editors.layout.gscripts.MenuAction.Action ) ( a2 ) ) . getAction ( ) , action , key , ( ! isChecked ) ) ; } } }
Source:
public boolean processMessage ( android.os.Message message ) { switch ( message.what ) { case com.android.bluetooth.mapclient.MceStateMachine.MSG_CONNECT : synchronized ( this ) { mDevice = ( ( android.bluetooth.BluetoothDevice ) ( message.obj ) ) ; } transitionTo ( mConnecting ) ; break ; default : android.util.Log.w ( com.android.bluetooth.mapclient.MceStateMachine.TAG , ( ( ( "Unexpected message: " + ( message.what ) ) + " from state:" ) + ( this . getName ( ) ) ) ) ; return NOT_HANDLED ; } return HANDLED ; }

Target:
public void dump ( java.lang.StringBuilder sb ) { com.android.bluetooth.btservice.ProfileService.println ( sb , ( ( ( ( ( "mCurrentDevice: " + ( mDevice.getAddress ( ) ) ) + " (name = " ) + ( mDevice.getName ( ) ) ) + "), StateMachine: " ) + ( this . toString ( ) ) ) ) ; }
Source:
public void actionPerformed ( java.awt.event.ActionEvent e ) { int index = list.getSelectedIndex ( ) ; boolean signedOut = com.google.gct.login.GoogleLogin.getInstance ( ) . logOut ( ) ; if ( signedOut ) { listModel.remove ( index ) ; if ( ( listModel.getSize ( ) ) == 0 ) { signOutButton.setEnabled ( false ) ; } } }

Target:
public void actionPerformed ( java.awt.event.ActionEvent e ) { int index = list.getSelectedIndex ( ) ; boolean signedOut = com.google.gct.login.GoogleLogin.getInstance ( ) . logOut ( ) ; if ( signedOut ) { listModel.remove ( index ) ; if ( ( listModel.getSize ( ) ) == 0 ) { signOutButton.setEnabled ( false ) ; listModel.addElement ( NoUsersListItem.INSTANCE ) ; } } }
Source:
private static com.android.jack.ir.ast.JMethodIdWide getStaticMethodOrReportFailure ( com.android.jack.ir.ast.JClass cls , java.lang.String name , com.android.sched.util.config.id.PropertyId < java.lang.String > prop ) { try { return cls.getMethodIdWide ( name , java.util.Collections.< com.android.jack.ir.ast.JType > emptyList ( ) , MethodKind.STATIC ) ; } catch ( java.lang.Throwable e ) { com.android.jack.Jack.getSession ( ) . getReporter ( ) . report ( Severity.FATAL , new com.android.jack.transformations.ast.BoostLockedRegionPriority.BadBoostLockedRegionPriorityConfigurationException ( prop , e ) ) ; com.android.jack.Jack.getSession ( ) . abortEventually ( ) ; return null ; } }

Target:
private static com.android.jack.ir.ast.JMethodIdWide getStaticMethodOrReportFailure ( com.android.jack.ir.ast.JClass cls , java.lang.String name , com.android.sched.util.config.id.PropertyId < java.lang.String > prop ) { try { return cls.getMethodIdWide ( name , java.util.Collections.< com.android.jack.ir.ast.JType > emptyList ( ) , MethodKind.STATIC ) ; } catch ( java.lang.Throwable e ) { com.android.jack.Jack.getSession ( ) . getReporter ( ) . report ( Severity.FATAL , new com.android.jack.transformations.ast.BoostLockedRegionPriority.BadBoostLockedRegionPriorityConfigurationException ( prop , e ) ) ; com.android.jack.Jack.getSession ( ) . setAbortEventually ( true ) ; return null ; } }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { mConfigChooser.selectTarget ( mTarget ) ; mConfigChooser.onRenderingTargetChange ( ) ; }

Target:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { com.android.sdklib.IAndroidTarget target = mTarget ; com.android.ide.eclipse.adt.internal.preferences.AdtPrefs prefs = com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) ; if ( mPickBest ) { boolean autoPick = prefs.isAutoPickRenderTarget ( ) ; autoPick = ! autoPick ; prefs.setAutoPickRenderTarget ( autoPick ) ; if ( autoPick ) { target = com.android.ide.eclipse.adt.internal.editors.layout.configuration.ConfigurationMatcher.findDefaultRenderTarget ( mConfigChooser ) ; } else { return ; } } else { prefs.setAutoPickRenderTarget ( false ) ; } mConfigChooser.selectTarget ( target ) ; mConfigChooser.onRenderingTargetChange ( ) ; }
Source:
public static java.lang.String internalArrayTypeFromClassName ( java.lang.String internalClassName , int dimensionCount ) { java.lang.StringBuffer buffer = new java.lang.StringBuffer ( ( ( ( internalClassName.length ( ) ) + dimensionCount ) + 2 ) ) ; for ( int dimension = 0 ; dimension < dimensionCount ; dimension ++ ) { buffer.append ( ClassConstants.INTERNAL_TYPE_ARRAY ) ; } return buffer.append ( ClassConstants.INTERNAL_TYPE_CLASS_START ) . append ( internalClassName ) . append ( ClassConstants.INTERNAL_TYPE_CLASS_END ) . toString ( ) ; }

Target:
public static java.lang.String internalArrayTypeFromClassName ( java.lang.String internalClassName , int dimensionCount ) { java.lang.StringBuffer buffer = new java.lang.StringBuffer ( ( ( ( internalClassName.length ( ) ) + dimensionCount ) + 2 ) ) ; for ( int dimension = 0 ; dimension < dimensionCount ; dimension ++ ) { buffer.append ( ClassConstants.TYPE_ARRAY ) ; } return buffer.append ( ClassConstants.TYPE_CLASS_START ) . append ( internalClassName ) . append ( ClassConstants.TYPE_CLASS_END ) . toString ( ) ; }
Source:
public boolean isAffiliatedUser ( ) { throwIfParentInstance ( "isAffiliatedUser" ) ; try { return ( ( mService ) != null ) && ( mService.isAffiliatedUser ( ) ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } }

Target:
public void notifyPendingSystemUpdate ( long updateReceivedTime , boolean isSecurityPatch ) { throwIfParentInstance ( "notifyPendingSystemUpdate" ) ; if ( ( mService ) != null ) { try { mService.notifyPendingSystemUpdate ( android.app.admin.SystemUpdateInfo.of ( updateReceivedTime , isSecurityPatch ) ) ; } catch ( android.os.RemoteException re ) { throw re.rethrowFromSystemServer ( ) ; } } }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.ThisReference x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { assert getTypeMap ( ) . get ( x.resolvedType ) . isSameType ( curClass.type ) ; push ( makeThisRef ( makeSourceInfo ( x ) ) ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.ThisReference x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { assert getTypeMap ( ) . get ( x.resolvedType ) . isSameType ( curClass.type ) ; push ( makeThisRef ( makeSourceInfo ( x ) ) ) ; } catch ( com.android.jack.ir.ast.JTypeLookupException e ) { throw translateException ( x , e ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
public void visitNameAndTypeConstant ( proguard.classfile.editor.Clazz clazz , proguard.classfile.editor.NameAndTypeConstant nameAndTypeConstant ) { proguard.classfile.editor.NameAndTypeConstant otherNameAndTypeConstant = ( ( proguard.classfile.editor.NameAndTypeConstant ) ( otherConstant ) ) ; result = ( ( ( nameAndTypeConstant.getName ( clazz ) ) + ' ' ) + ( nameAndTypeConstant.getType ( clazz ) ) ) . compareTo ( ( ( ( otherNameAndTypeConstant.getName ( clazz ) ) + ' ' ) + ( otherNameAndTypeConstant.getType ( clazz ) ) ) ) ; }

Target:
public void visitNameAndTypeConstant ( proguard.classfile.editor.Clazz clazz , proguard.classfile.editor.NameAndTypeConstant nameAndTypeConstant ) { proguard.classfile.editor.NameAndTypeConstant otherNameAndTypeConstant = ( ( proguard.classfile.editor.NameAndTypeConstant ) ( otherConstant ) ) ; result = compare ( nameAndTypeConstant.getName ( clazz ) , nameAndTypeConstant.getType ( clazz ) , otherNameAndTypeConstant.getName ( clazz ) , otherNameAndTypeConstant.getType ( clazz ) ) ; }