auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void startBluetoothSco ( ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { service.startBluetoothSco ( mICallBack , mApplicationContext.getApplicationInfo ( ) . targetSdkVersion ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in startBluetoothSco" , e ) ; } }

Target:
public void startBluetoothSco ( ) { android.media.IAudioService service = android.media.AudioManager.getService ( ) ; try { service.startBluetoothSco ( mICallBack , getContext ( ) . getApplicationInfo ( ) . targetSdkVersion ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.media.AudioManager.TAG , "Dead object in startBluetoothSco" , e ) ; } }
Source:
public void setRecommendationRequestTimeoutMs ( long recommendationRequestTimeoutMs ) { mRecommendationRequestTimeoutMs = recommendationRequestTimeoutMs ; }

Target:
public void refreshRecommendationRequestTimeoutMs ( ) { final android.content.ContentResolver cr = mContext.getContentResolver ( ) ; long timeoutMs = Settings.Global.getLong ( cr , Global.NETWORK_RECOMMENDATION_REQUEST_TIMEOUT_MS , ( - 1L ) ) ; if ( timeoutMs < 0 ) { timeoutMs = android.util.TimedRemoteCaller.DEFAULT_CALL_TIMEOUT_MILLIS ; } if ( com.android.server.NetworkScoreService.DBG ) android.util.Log.d ( com.android.server.NetworkScoreService.TAG , ( ( "Updating the recommendation request timeout to " + timeoutMs ) + " ms" ) ) ; mRecommendationRequestTimeoutMs = timeoutMs ; }
Source:
synchronized void nScriptForEach ( long id , int slot , long ain , long aout , byte [ ] params ) { validate ( ) ; if ( params == null ) { rsnScriptForEach ( mContext , id , slot , ain , aout ) ; } else { rsnScriptForEach ( mContext , id , slot , ain , aout , params ) ; } }

Target:
synchronized void nScriptForEach ( long id , int slot , long [ ] ains , long aout , byte [ ] params , int [ ] limits ) { validate ( ) ; rsnScriptForEach ( mContext , id , slot , ains , aout , params , limits ) ; }
Source:
private void addListValue ( java.lang.reflect.Field field , java.lang.Object value , com.google.devtools.common.options.OptionPriority priority , java.lang.String source , java.lang.String implicitDependant , java.lang.String expandedFrom ) { com.google.devtools.common.options.OptionsParserImpl.ParsedOptionEntry entry = parsedValues.get ( field ) ; if ( entry == null ) { entry = new com.google.devtools.common.options.OptionsParserImpl.ParsedOptionEntry ( com.google.common.collect.ArrayListMultimap.create ( ) , priority , source , implicitDependant , expandedFrom , true ) ; parsedValues.put ( field , entry ) ; maybeAddDeprecationWarning ( field ) ; } entry.addValue ( priority , value ) ; }

Target:
com.google.devtools.common.options.OptionsParser.OptionValueDescription getOptionValueDescription ( java.lang.String name ) { java.lang.reflect.Field field = optionsData.getFieldFromName ( name ) ; if ( field == null ) { throw new java.lang.IllegalArgumentException ( ( ( "No such option '" + name ) + "'" ) ) ; } return parsedValues.get ( field ) ; }
Source:
public void onRttCallScreenUiReady ( ) { com.android.dialer.common.LogUtil.enterBlock ( "RttCallPresenter.onRttCallScreenUiReady" ) ; com.android.incallui.InCallPresenter.getInstance ( ) . addListener ( this ) ; startListenOnRemoteMessage ( ) ; }

Target:
public void onRttCallScreenUiReady ( ) { com.android.dialer.common.LogUtil.enterBlock ( "RttCallPresenter.onRttCallScreenUiReady" ) ; com.android.incallui.InCallPresenter.getInstance ( ) . addListener ( this ) ; startListenOnRemoteMessage ( ) ; com.android.incallui.call.DialerCall call = com.android.incallui.call.CallList.getInstance ( ) . getActiveCall ( ) ; if ( call != null ) { rttCallScreen.onRestoreRttChat ( call.getRttTranscript ( ) ) ; } }
Source:
private static com.android.internal.telephony.cdma.SmsMessage createMessageFromParcel ( android.os.Parcel p , byte [ ] bearerData ) { p.writeInt ( bearerData.length ) ; for ( byte b : bearerData ) { p.writeByte ( b ) ; } p.setDataPosition ( 0 ) ; com.android.internal.telephony.cdma.SmsMessage message = com.android.internal.telephony.cdma.SmsMessage.newFromParcel ( p ) ; p.recycle ( ) ; return message ; }

Target:
private static com.android.internal.telephony.cdma.SmsMessage createMessageFromParcel ( android.hardware.radio.V1_0.CdmaSmsMessage msg , byte [ ] bearerData ) { for ( byte b : bearerData ) { msg.bearerData.add ( b ) ; } com.android.internal.telephony.cdma.SmsMessage message = com.android.internal.telephony.cdma.SmsMessage.newFromRil ( msg ) ; return message ; }
Source:
public void getObfuscatedMethod ( ) throws java.lang.NoSuchMethodException { try { java.lang.Class < ? > theClass = java.lang.Class.forName ( "com.android.tests.basic.StringGetter" ) ; java.lang.reflect.Method method = theClass.getDeclaredMethod ( "getStringInternal" , int . class ) ; } catch ( java.lang.ClassNotFoundException e ) { throw new java.lang.RuntimeException ( e ) ; } }

Target:
public void setUpTextView2 ( ) { java.lang.String value = com.android.tests.basic.StringGetter.getString2 ( foo ) ; }
Source:
protected com.intellij.execution.RunnerAndConfigurationSettings cloneTemplateConfiguration ( @ org.jetbrains.annotations.NotNull final com.intellij.execution.actions.ConfigurationContext context ) { final com.intellij.execution.configurations.RunConfiguration original = context.getOriginalConfiguration ( myConfigurationFactory.getType ( ) ) ; if ( original != null ) { return com.intellij.execution.RunManager.getInstance ( context.getProject ( ) ) . createConfiguration ( original.clone ( ) , myConfigurationFactory ) ; } return com.intellij.execution.RunManager.getInstance ( context.getProject ( ) ) . createRunConfiguration ( "" , myConfigurationFactory ) ; }

Target:
public com.intellij.execution.actions.RunnerAndConfigurationSettings findExistingConfiguration ( com.intellij.execution.actions.ConfigurationContext context ) { final com.intellij.execution.actions.RunManager runManager = com.intellij.execution.actions.RunManager.getInstance ( context.getProject ( ) ) ; final java.util.List < com.intellij.execution.actions.RunnerAndConfigurationSettings > configurations = runManager.getConfigurationSettingsList ( myConfigurationFactory.getType ( ) ) ; for ( com.intellij.execution.actions.RunnerAndConfigurationSettings configurationSettings : configurations ) { if ( isConfigurationFromContext ( ( ( T ) ( configurationSettings.getConfiguration ( ) ) ) , context ) ) { return configurationSettings ; } } return null ; }
Source:
private void createContents ( ) { mAvdPage = new com.android.sdkuilib.internal.repository.ui.AvdManagerPage ( mShell , org.eclipse.swt.SWT.NONE , mUpdaterData , mDeviceManager ) ; mAvdPage.setLayoutData ( new org.eclipse.swt.layout.GridData ( org.eclipse.swt.SWT.FILL , org.eclipse.swt.SWT.FILL , true , true , 2 , 1 ) ) ; }

Target:
private void createAvdTab ( org.eclipse.swt.widgets.TabFolder tabFolder , org.eclipse.swt.widgets.TabItem avdTabItem ) { org.eclipse.swt.widgets.Composite root = new org.eclipse.swt.widgets.Composite ( tabFolder , org.eclipse.swt.SWT.NONE ) ; avdTabItem.setControl ( root ) ; com.android.sdkuilib.ui.GridLayoutBuilder.create ( root ) . columns ( 1 ) ; mAvdPage = new com.android.sdkuilib.internal.repository.ui.AvdManagerPage ( root , org.eclipse.swt.SWT.NONE , mUpdaterData , mDeviceManager ) ; com.android.sdkuilib.ui.GridDataBuilder.create ( mAvdPage ) . fill ( ) . grab ( ) ; }
Source:
final void get ( char [ ] dst , int dstOffset , int charCount ) { int byteCount = checkGetBounds ( SizeOf.CHAR , dst.length , dstOffset , charCount ) ; this . block.peekCharArray ( ( ( offset ) + ( position ) ) , dst , dstOffset , charCount , order.needsSwap ) ; position += byteCount ; }

Target:
public final short getShort ( ) { int newPosition = ( position ) + ( libcore.io.SizeOf.SHORT ) ; if ( newPosition > ( limit ) ) { throw new java.nio.BufferUnderflowException ( ) ; } short result = this . block.peekShort ( ( ( offset ) + ( position ) ) , order ) ; position = newPosition ; return result ; }
Source:
public void onClick ( android.content.DialogInterface dialog , int which ) { if ( which == ( android.content.DialogInterface.BUTTON_POSITIVE ) ) { android.util.Log.d ( com.android.internal.telephony.SMSDispatcher.TAG , "CONFIRM sending SMS" ) ; sendMessage ( obtainMessage ( com.android.internal.telephony.SMSDispatcher.EVENT_SEND_CONFIRMED_SMS , mTracker ) ) ; } else if ( which == ( android.content.DialogInterface.BUTTON_NEGATIVE ) ) { android.util.Log.d ( com.android.internal.telephony.SMSDispatcher.TAG , "DENY sending SMS" ) ; sendMessage ( obtainMessage ( com.android.internal.telephony.SMSDispatcher.EVENT_STOP_SENDING , mTracker ) ) ; } }

Target:
private boolean denyIfQueueLimitReached ( com.android.internal.telephony.SMSDispatcher.SmsTracker tracker ) { if ( ( mPendingTrackerCount ) >= ( com.android.internal.telephony.SMSDispatcher.MO_MSG_QUEUE_LIMIT ) ) { try { if ( ( tracker.mSentIntent ) != null ) { tracker.mSentIntent.send ( android.telephony.SmsManager.RESULT_ERROR_LIMIT_EXCEEDED ) ; } } catch ( android.app.PendingIntent.CanceledException ex ) { android.telephony.Rlog.e ( com.android.internal.telephony.SMSDispatcher.TAG , "failed to send back RESULT_ERROR_LIMIT_EXCEEDED" ) ; } return true ; } ( mPendingTrackerCount ) ++ ; return false ; }
Source:
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 ; }

Target:
public static synchronized com.android.bluetooth.a2dp.A2dpService getA2dpService ( ) { if ( ( com.android.bluetooth.a2dp.A2dpService.sA2dpService ) == null ) { android.util.Log.w ( com.android.bluetooth.a2dp.A2dpService.TAG , "getA2dpService(): service is null" ) ; return null ; } if ( ! ( com.android.bluetooth.a2dp.A2dpService.sA2dpService.isAvailable ( ) ) ) { android.util.Log.w ( com.android.bluetooth.a2dp.A2dpService.TAG , "getA2dpService(): service is not available" ) ; return null ; } return com.android.bluetooth.a2dp.A2dpService.sA2dpService ; }
Source:
private int getUnderbars ( java.lang.String source2 ) { int pos = source2.indexOf ( '_' ) ; if ( pos < 0 ) { return 0 ; } pos = source2.indexOf ( '_' , ( pos + 1 ) ) ; return pos < 0 ? 1 : 2 ; }

Target:
private void addFiltered ( java.lang.String desired , android.icu.impl.Row.R3 < android.icu.util.ULocale , android.icu.util.ULocale , java.lang.Double > localeToMaxAndWeight ) { java.util.Set < android.icu.impl.Row.R3 < android.icu.util.ULocale , android.icu.util.ULocale , java.lang.Double > > map = desiredLanguageToPossibleLocalesToMaxLocaleToData.get ( desired ) ; if ( map == null ) { desiredLanguageToPossibleLocalesToMaxLocaleToData.put ( desired , ( map = new java.util.LinkedHashSet < android.icu.impl.Row.R3 < android.icu.util.ULocale , android.icu.util.ULocale , java.lang.Double > > ( ) ) ) ; } map.add ( localeToMaxAndWeight ) ; if ( android.icu.util.LocaleMatcher.DEBUG ) { java.lang.System.out.println ( ( ( desired + ", " ) + localeToMaxAndWeight ) ) ; } }
Source:
public void processResources ( @ com.android.annotations.NonNull java.lang.String manifestFile , @ com.android.annotations.Nullable java.lang.String preprocessResDir , @ com.android.annotations.Nullable java.lang.String sourceOutputDir , @ com.android.annotations.Nullable java.lang.String resPackageOutput , @ com.android.annotations.Nullable java.lang.String proguardOutput , @ com.android.annotations.NonNull com.android.builder.AaptOptions options ) throws java.io.IOException , java.lang.InterruptedException { java.util.List < java.io.File > inputs = mVariant.getResourceInputs ( ) ; processResources ( manifestFile , preprocessResDir , inputs , sourceOutputDir , resPackageOutput , proguardOutput , options ) ; }

Target:
public void processResources ( @ com.android.annotations.NonNull java.lang.String manifestFile , @ com.android.annotations.Nullable java.lang.String preprocessResDir , @ com.android.annotations.Nullable java.lang.String sourceOutputDir , @ com.android.annotations.Nullable java.lang.String symbolOutputDir , @ com.android.annotations.Nullable java.lang.String resPackageOutput , @ com.android.annotations.Nullable java.lang.String proguardOutput , @ com.android.annotations.NonNull com.android.builder.AaptOptions options ) throws java.io.IOException , java.lang.InterruptedException { java.util.List < java.io.File > inputs = mVariant.getResourceInputs ( ) ; processResources ( manifestFile , preprocessResDir , inputs , sourceOutputDir , symbolOutputDir , resPackageOutput , proguardOutput , options ) ; }
Source:
synchronized void nAllocationData2D ( int id , int xoff , int yoff , int mip , int face , android.graphics.Bitmap b ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , b ) ; }

Target:
synchronized void nAllocationData2D ( long id , int xoff , int yoff , int mip , int face , int w , int h , int [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData2D ( mContext , id , xoff , yoff , mip , face , w , h , d , sizeBytes ) ; }
Source:
public boolean requestDrawGL ( android.view.HardwareCanvas canvas , android.view.ViewRootImpl viewRootImpl ) { if ( ( mDestroyRunnable.mNativeDrawGLFunctor ) == 0 ) { throw new java.lang.RuntimeException ( "requested DrawGL on already destroyed DrawGLFunctor" ) ; } mDestroyRunnable.mViewRootImpl = viewRootImpl ; if ( canvas != null ) { int ret = canvas.callDrawGLFunction ( mDestroyRunnable.mNativeDrawGLFunctor ) ; if ( ret != ( android.view.DisplayList.STATUS_DONE ) ) { android.util.Log.e ( com.android.webview.chromium.DrawGLFunctor.TAG , ( "callDrawGLFunction error: " + ret ) ) ; return false ; } } else { viewRootImpl.attachFunctor ( mDestroyRunnable.mNativeDrawGLFunctor ) ; } return true ; }

Target:
public boolean requestDrawGL ( android.view.HardwareCanvas canvas , android.view.ViewRootImpl viewRootImpl , boolean waitForCompletion ) { if ( ( mDestroyRunnable.mNativeDrawGLFunctor ) == 0 ) { throw new java.lang.RuntimeException ( "requested DrawGL on already destroyed DrawGLFunctor" ) ; } if ( viewRootImpl == null ) { return false ; } mDestroyRunnable.mViewRootImpl = viewRootImpl ; if ( canvas == null ) { viewRootImpl.invokeFunctor ( mDestroyRunnable.mNativeDrawGLFunctor , waitForCompletion ) ; return true ; } canvas.callDrawGLFunction ( mDestroyRunnable.mNativeDrawGLFunctor ) ; if ( waitForCompletion ) { viewRootImpl.invokeFunctor ( mDestroyRunnable.mNativeDrawGLFunctor , waitForCompletion ) ; } return true ; }
Source:
synchronized java.util.logging.Logger findLogger ( java.lang.String name ) { ensureInitialized ( ) ; java.util.logging.LogManager.LoggerWeakRef ref = namedLoggers.get ( name ) ; if ( ref == null ) { return null ; } java.util.logging.Logger logger = ref.get ( ) ; if ( logger == null ) { removeLogger ( name ) ; } return logger ; }

Target:
private void ensureAllDefaultLoggers ( java.util.logging.Logger logger ) { if ( requiresDefaultLoggers ( ) ) { final java.lang.String name = logger.getName ( ) ; if ( ! ( name.isEmpty ( ) ) ) { ensureDefaultLogger ( getRootLogger ( ) ) ; if ( ! ( java.util.logging.Logger.GLOBAL_LOGGER_NAME.equals ( name ) ) ) { ensureDefaultLogger ( getGlobalLogger ( ) ) ; } } } }
Source:
public java.lang.String pktcntPoll ( ) { return doStringCommand ( "PKTCNT_POLL" ) ; }

Target:
public boolean equals ( java.lang.Object otherObj ) { if ( ( this ) == otherObj ) { return true ; } else if ( ( otherObj == null ) || ( ( getClass ( ) ) != ( otherObj.getClass ( ) ) ) ) { return false ; } com.android.server.wifi.WifiNative.HiddenNetwork other = ( ( com.android.server.wifi.WifiNative.HiddenNetwork ) ( otherObj ) ) ; return java.util.Objects.equals ( ssid , other.ssid ) ; }
Source:
public static com.android.sdklib.xml.ManifestData parse ( com.android.sdklib.io.IAbstractFile manifestFile , boolean gatherData , com.android.sdklib.xml.AndroidManifestParser.ManifestErrorHandler errorHandler ) throws com.android.sdklib.io.StreamException , java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { if ( manifestFile != null ) { javax.xml.parsers.SAXParser parser = com.android.sdklib.xml.AndroidManifestParser.sParserFactory.newSAXParser ( ) ; com.android.sdklib.xml.ManifestData data = null ; if ( gatherData ) { data = new com.android.sdklib.xml.ManifestData ( ) ; } com.android.sdklib.xml.AndroidManifestParser.ManifestHandler manifestHandler = new com.android.sdklib.xml.AndroidManifestParser.ManifestHandler ( manifestFile , data , errorHandler ) ; parser.parse ( new org.xml.sax.InputSource ( manifestFile.getContents ( ) ) , manifestHandler ) ; return data ; } return null ; }

Target:
public static com.android.sdklib.xml.ManifestData parse ( com.android.io.IAbstractFile manifestFile , boolean gatherData , com.android.sdklib.xml.AndroidManifestParser.ManifestErrorHandler errorHandler ) throws com.android.io.StreamException , java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { if ( manifestFile != null ) { javax.xml.parsers.SAXParser parser = com.android.sdklib.xml.AndroidManifestParser.sParserFactory.newSAXParser ( ) ; com.android.sdklib.xml.ManifestData data = null ; if ( gatherData ) { data = new com.android.sdklib.xml.ManifestData ( ) ; } com.android.sdklib.xml.AndroidManifestParser.ManifestHandler manifestHandler = new com.android.sdklib.xml.AndroidManifestParser.ManifestHandler ( manifestFile , data , errorHandler ) ; parser.parse ( new org.xml.sax.InputSource ( manifestFile.getContents ( ) ) , manifestHandler ) ; return data ; } return null ; }
Source:
public java.lang.String regionDisplayName ( java.lang.String region ) { if ( ( nameLength ) == ( com.ibm.icu.text.DisplayContext.LENGTH_SHORT ) ) { java.lang.String regionName = regionData.get ( "CountriesShort" , region ) ; if ( ! ( regionName.equals ( region ) ) ) { return adjustForUsageAndContext ( com.ibm.icu.impl.LocaleDisplayNamesImpl.CapitalizationContextUsage.TERRITORY , regionName ) ; } } return adjustForUsageAndContext ( com.ibm.icu.impl.LocaleDisplayNamesImpl.CapitalizationContextUsage.TERRITORY , regionData.get ( "Countries" , region ) ) ; }

Target:
public java.lang.String regionDisplayName ( java.lang.String region ) { if ( ( nameLength ) == ( com.ibm.icu.text.DisplayContext.LENGTH_SHORT ) ) { java.lang.String regionName = regionData.get ( "Countries%short" , region ) ; if ( ! ( regionName.equals ( region ) ) ) { return adjustForUsageAndContext ( com.ibm.icu.impl.LocaleDisplayNamesImpl.CapitalizationContextUsage.TERRITORY , regionName ) ; } } return adjustForUsageAndContext ( com.ibm.icu.impl.LocaleDisplayNamesImpl.CapitalizationContextUsage.TERRITORY , regionData.get ( "Countries" , region ) ) ; }
Source:
private boolean isProjectDir ( @ com.android.annotations.NonNull java.io.File dir ) { return new java.io.File ( dir , com.android.tools.lint.detector.api.LintConstants.ANDROID_MANIFEST_XML ) . exists ( ) ; }

Target:
private boolean isProjectDir ( @ com.android.annotations.NonNull java.io.File dir ) { boolean hasManifest = new java.io.File ( dir , com.android.tools.lint.detector.api.LintConstants.ANDROID_MANIFEST_XML ) . exists ( ) ; if ( hasManifest ) { if ( dir.getName ( ) . equals ( com.android.tools.lint.detector.api.LintConstants.BIN_FOLDER ) ) { dir = dir.getParentFile ( ) ; if ( ( dir != null ) && ( isProjectDir ( dir ) ) ) { return false ; } } } return hasManifest ; }
Source:
public void run ( ) { while ( isRunning ( ) ) { if ( ! ( sleepUntilNeeded ( ) ) ) { continue ; } final java.lang.Object finalizing = waitForFinalization ( ) ; if ( ( finalizing != null ) && ( ! ( dalvik.system.VMRuntime.getRuntime ( ) . isDebuggerActive ( ) ) ) ) { java.lang.Daemons.FinalizerWatchdogDaemon.finalizerTimedOut ( finalizing ) ; break ; } } }

Target:
public void runInternal ( ) { while ( isRunning ( ) ) { if ( ! ( sleepUntilNeeded ( ) ) ) { continue ; } final java.lang.Object finalizing = waitForFinalization ( ) ; if ( ( finalizing != null ) && ( ! ( dalvik.system.VMRuntime.getRuntime ( ) . isDebuggerActive ( ) ) ) ) { java.lang.Daemons.FinalizerWatchdogDaemon.finalizerTimedOut ( finalizing ) ; break ; } } }
Source:
public void testHasPackageMatches ( ) { android.content.Intent intent = new android.content.Intent ( ) . setPackage ( "com.foo.bar" ) ; assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( "com.foo.bar" ) . matches ( intent ) ) ; assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( org.hamcrest.Matchers.equalTo ( "com.foo.bar" ) ) . matches ( intent ) ) ; }

Target:
public void hasPackageMatches ( ) { android.content.Intent intent = new android.content.Intent ( ) . setPackage ( "com.foo.bar" ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( "com.foo.bar" ) . matches ( intent ) ) ; org.junit.Assert.assertTrue ( android.support.test.espresso.intent.matcher.IntentMatchers.hasPackage ( org.hamcrest.Matchers.equalTo ( "com.foo.bar" ) ) . matches ( intent ) ) ; }
Source:
public java.lang.String getEid ( ) { return null ; }

Target:
private com.android.internal.telephony.uicc.euicc.EuiccCard getEuiccCard ( java.lang.String cardId ) { com.android.internal.telephony.uicc.UiccController controller = com.android.internal.telephony.uicc.UiccController.getInstance ( ) ; int slotId = controller.getUiccSlotForCardId ( cardId ) ; if ( slotId != ( com.android.internal.telephony.uicc.UiccController.INVALID_SLOT_ID ) ) { com.android.internal.telephony.uicc.UiccSlot slot = controller.getUiccSlot ( slotId ) ; if ( slot.isEuicc ( ) ) { return ( ( com.android.internal.telephony.uicc.euicc.EuiccCard ) ( controller.getUiccCardForSlot ( slotId ) ) ) ; } } return null ; }
Source:
public void run ( ) { org.eclipse.ui.IWorkingSet [ ] workingSets = mValues.workingSets ; if ( ( ( ( workingSets.length ) > 0 ) && ( javaProject != null ) ) && ( javaProject.exists ( ) ) ) { org.eclipse.ui.PlatformUI.getWorkbench ( ) . getWorkingSetManager ( ) . addToWorkingSets ( javaProject , workingSets ) ; } }

Target:
public void run ( ) { if ( ( ( ( mWorkingSets.length ) > 0 ) && ( ( mProject ) != null ) ) && ( mProject.exists ( ) ) ) { org.eclipse.ui.PlatformUI.getWorkbench ( ) . getWorkingSetManager ( ) . addToWorkingSets ( mProject , mWorkingSets ) ; } }
Source:
protected boolean isFilterStopped ( android.content.pm.PackageParser.ActivityIntentInfo filter , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return true ; android.content.pm.PackageParser.Package p = filter.activity.owner ; if ( p != null ) { com.android.server.pm.PackageSetting ps = ( ( com.android.server.pm.PackageSetting ) ( p.mExtras ) ) ; if ( ps != null ) { return ( ps.getStopped ( userId ) ) && ( ( ( ps.pkgFlags ) & ( android.content.pm.ApplicationInfo.FLAG_SYSTEM ) ) == 0 ) ; } } return false ; }

Target:
protected boolean isFilterStopped ( android.content.pm.PackageParser.ServiceIntentInfo filter , int userId ) { if ( ! ( com.android.server.pm.PackageManagerService.sUserManager.exists ( userId ) ) ) return true ; android.content.pm.PackageParser.Package p = filter.service.owner ; if ( p != null ) { com.android.server.pm.PackageSetting ps = ( ( com.android.server.pm.PackageSetting ) ( p.mExtras ) ) ; if ( ps != null ) { return ( ( ( ps.pkgFlags ) & ( android.content.pm.ApplicationInfo.FLAG_SYSTEM ) ) == 0 ) && ( ps.getStopped ( userId ) ) ; } } return false ; }
Source:
public void testKeyPairGenerator_GenerateKeyPair_Unencrypted_Success ( ) throws java.lang.Exception { mGenerator.initialize ( new android.security.KeyPairGeneratorSpec.Builder ( getContext ( ) ) . setAlias ( android.security.AndroidKeyPairGeneratorTest.TEST_ALIAS_1 ) . setSubject ( android.security.AndroidKeyPairGeneratorTest.TEST_DN_1 ) . setSerialNumber ( android.security.AndroidKeyPairGeneratorTest.TEST_SERIAL_1 ) . setStartDate ( android.security.AndroidKeyPairGeneratorTest.NOW ) . setEndDate ( android.security.AndroidKeyPairGeneratorTest.NOW_PLUS_10_YEARS ) . build ( ) ) ; final java.security.KeyPair pair = mGenerator.generateKeyPair ( ) ; assertNotNull ( "The KeyPair returned should not be null" , pair ) ; assertKeyPairCorrect ( pair , android.security.AndroidKeyPairGeneratorTest.TEST_ALIAS_1 , android.security.AndroidKeyPairGeneratorTest.TEST_DN_1 , android.security.AndroidKeyPairGeneratorTest.TEST_SERIAL_1 , android.security.AndroidKeyPairGeneratorTest.NOW , android.security.AndroidKeyPairGeneratorTest.NOW_PLUS_10_YEARS ) ; }

Target:
public void testKeyPairGenerator_GenerateKeyPair_DSA_Unencrypted_Success ( ) throws java.lang.Exception { mGenerator.initialize ( new android.security.KeyPairGeneratorSpec.Builder ( getContext ( ) ) . setAlias ( android.security.AndroidKeyPairGeneratorTest.TEST_ALIAS_1 ) . setKeyType ( "DSA" ) . setSubject ( android.security.AndroidKeyPairGeneratorTest.TEST_DN_1 ) . setSerialNumber ( android.security.AndroidKeyPairGeneratorTest.TEST_SERIAL_1 ) . setStartDate ( android.security.AndroidKeyPairGeneratorTest.NOW ) . setEndDate ( android.security.AndroidKeyPairGeneratorTest.NOW_PLUS_10_YEARS ) . build ( ) ) ; final java.security.KeyPair pair = mGenerator.generateKeyPair ( ) ; assertNotNull ( "The KeyPair returned should not be null" , pair ) ; assertKeyPairCorrect ( pair , android.security.AndroidKeyPairGeneratorTest.TEST_ALIAS_1 , "DSA" , 1024 , null , android.security.AndroidKeyPairGeneratorTest.TEST_DN_1 , android.security.AndroidKeyPairGeneratorTest.TEST_SERIAL_1 , android.security.AndroidKeyPairGeneratorTest.NOW , android.security.AndroidKeyPairGeneratorTest.NOW_PLUS_10_YEARS ) ; }
Source:
public void remove ( int index ) { if ( index >= ( mSize ) ) { throw new java.lang.ArrayIndexOutOfBoundsException ( mSize , index ) ; } java.lang.System.arraycopy ( mValues , ( index + 1 ) , mValues , index , ( ( ( mSize ) - index ) - 1 ) ) ; ( mSize ) -- ; }

Target:
public long [ ] toArray ( ) { return java.util.Arrays.copyOf ( mValues , mSize ) ; }
Source:
public void onDraw ( final android.graphics.Canvas canvas ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { runVoidTaskOnUiThreadBlocking ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { onDraw ( canvas ) ; } } ) ; return ; } mAwContents.onDraw ( canvas ) ; }

Target:
public boolean performAccessibilityAction ( final int action , final android.os.Bundle arguments ) { 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 performAccessibilityAction ( action , arguments ) ; } } ) ; return ret ; } if ( mAwContents.supportsAccessibilityAction ( action ) ) { return mAwContents.performAccessibilityAction ( action , arguments ) ; } return mWebViewPrivate.super_performAccessibilityAction ( action , arguments ) ; }
Source:
private void initializeGlobals ( com.android.rs.test.RenderScript RS , com.android.rs.test.ScriptC_element s ) { simpleElem = android.renderscript.Element.F32_3 ( RS ) ; complexElem = com.android.rs.test.ScriptField_ComplexStruct.createElement ( RS ) ; s.set_simpleElem ( simpleElem ) ; s.set_complexElem ( complexElem ) ; com.android.rs.test.ScriptField_ComplexStruct data = new com.android.rs.test.ScriptField_ComplexStruct ( RS , 1 ) ; s.bind_complexStruct ( data ) ; }

Target:
private void initializeGlobals ( com.android.rs.test.RenderScript RS , com.android.rs.test.ScriptC_element s ) { simpleElem = com.android.rs.test.Element.F32_3 ( RS ) ; complexElem = com.android.rs.test.ScriptField_ComplexStruct.createElement ( RS ) ; s.set_simpleElem ( simpleElem ) ; s.set_complexElem ( complexElem ) ; com.android.rs.test.ScriptField_ComplexStruct data = new com.android.rs.test.ScriptField_ComplexStruct ( RS , 1 ) ; s.bind_complexStruct ( data ) ; }
Source:
void createBusyThread ( ) { new java.lang.Thread ( new java.lang.Runnable ( ) { volatile int i = 0 ; @ java.lang.Override public void run ( ) { while ( true ) { i = callFunction ( i ) ; } } private int callFunction ( int a ) { return a + 1 ; } } ) . start ( ) ; }

Target:
void createBusyThread ( ) { new java.lang.Thread ( new java.lang.Runnable ( ) { volatile int i = 0 ; @ java.lang.Override public void run ( ) { while ( true ) { i = callFunction ( i ) ; } } private int callFunction ( int a ) { return a + 1 ; } } , "BusyThread" ) . start ( ) ; }
Source:
void cleanUpResourcesLI ( ) { java.lang.String sourceDir = getCodePath ( ) ; if ( cleanUp ( ) ) { int retCode = mInstaller.rmdex ( sourceDir ) ; if ( retCode < 0 ) { android.util.Slog.w ( com.android.server.pm.PackageManagerService.TAG , ( ( ( ( "Couldn't remove dex file for package: " + " at location " ) + sourceDir ) + ", retcode=" ) + retCode ) ) ; } } }

Target:
private int moveDexFilesLI ( android.content.pm.PackageParser.Package newPackage ) { if ( ( ( newPackage.applicationInfo.flags ) & ( android.content.pm.ApplicationInfo.FLAG_HAS_CODE ) ) != 0 ) { final java.lang.String instructionSet = getAppInstructionSet ( newPackage.applicationInfo ) ; int retCode = mInstaller.movedex ( newPackage.mScanPath , newPackage.mPath , instructionSet ) ; if ( retCode != 0 ) { newPackage.mDexOptNeeded = true ; mInstaller.rmdex ( newPackage.mScanPath , instructionSet ) ; mInstaller.rmdex ( newPackage.mPath , instructionSet ) ; } } return android.content.pm.PackageManager.INSTALL_SUCCEEDED ; }
Source:
private void createOutputFinisher ( ) { if ( ( output_finisher ) == null ) output_finisher = new com.android.dx.dex.code.OutputFinisher ( dexOptions , 5 , regs_count ) ; }

Target:
private void createOutputFinisher ( ) { if ( ( output_finisher ) == null ) { dexOptions.ALIGN_64BIT_REGS_IN_OUTPUT_FINISHER = false ; int paramSize = com.android.dx.rop.type.Prototype.intern ( method_nat.getDescriptor ( ) . getString ( ) ) . getParameterTypes ( ) . getWordCount ( ) ; output_finisher = new com.android.dx.dex.code.OutputFinisher ( dexOptions , 5 , regs_count , paramSize ) ; } }
Source:
public java.nio.DoubleBuffer put ( java.nio.DoubleBuffer src ) { if ( src == ( this ) ) { throw new java.lang.IllegalArgumentException ( "src == this" ) ; } if ( ( src.remaining ( ) ) > ( remaining ( ) ) ) { throw new java.nio.BufferOverflowException ( ) ; } double [ ] doubles = new double [ src.remaining ( ) ] ; src.get ( doubles ) ; put ( doubles ) ; return this ; }

Target:
public java.nio.DoubleBuffer put ( java.nio.DoubleBuffer src ) { if ( isReadOnly ( ) ) { throw new java.nio.ReadOnlyBufferException ( ) ; } if ( src == ( this ) ) { throw new java.lang.IllegalArgumentException ( "src == this" ) ; } if ( ( src.remaining ( ) ) > ( remaining ( ) ) ) { throw new java.nio.BufferOverflowException ( ) ; } double [ ] doubles = new double [ src.remaining ( ) ] ; src.get ( doubles ) ; put ( doubles ) ; return this ; }
Source:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { if ( ( owner.indexOf ( ';' ) ) > 0 ) { owner = renameTypeDesc ( owner ) ; } else { owner = renameInternalType ( owner ) ; } desc = renameMethodDesc ( desc ) ; super . visitMethodInsn ( opcode , owner , name , desc ) ; }

Target:
public void visitMethodInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc , boolean itf ) { if ( ( owner.indexOf ( ';' ) ) > 0 ) { owner = renameTypeDesc ( owner ) ; } else { owner = renameInternalType ( owner ) ; } desc = renameMethodDesc ( desc ) ; super . visitMethodInsn ( opcode , owner , name , desc , itf ) ; }
Source:
private static java.lang.String decodeUtf8 ( byte [ ] data , int offset , int numFields ) throws com.android.internal.telephony.cdma.sms.BearerData.CodingException { if ( ( numFields < 0 ) || ( ( numFields + offset ) > ( data.length ) ) ) { throw new com.android.internal.telephony.cdma.sms.BearerData.CodingException ( "UTF-8 decode failed: offset or length out of range" ) ; } try { return new java.lang.String ( data , offset , numFields , "UTF-8" ) ; } catch ( java.io.UnsupportedEncodingException ex ) { throw new com.android.internal.telephony.cdma.sms.BearerData.CodingException ( ( "UTF-8 decode failed: " + ex ) ) ; } }

Target:
private static java.lang.String decodeUtf16 ( byte [ ] data , int offset , int numFields ) throws com.android.internal.telephony.cdma.sms.BearerData.CodingException { int padding = offset % 2 ; numFields -= ( offset + padding ) / 2 ; return com.android.internal.telephony.cdma.sms.BearerData.decodeCharset ( data , offset , numFields , 2 , "utf-16be" ) ; }
Source:
private final void doPendingActivityLaunchesLocked ( boolean doResume ) { final int N = mPendingActivityLaunches.size ( ) ; if ( N <= 0 ) { return ; } for ( int i = 0 ; i < N ; i ++ ) { com.android.server.am.ActivityManagerService.PendingActivityLaunch pal = mPendingActivityLaunches.get ( i ) ; startActivityUncheckedLocked ( pal.r , pal.sourceRecord , pal.grantedUriPermissions , pal.grantedMode , pal.onlyIfNeeded , ( doResume && ( i == ( N - 1 ) ) ) ) ; } mPendingActivityLaunches.clear ( ) ; }

Target:
final void doPendingActivityLaunchesLocked ( boolean doResume ) { final int N = mPendingActivityLaunches.size ( ) ; if ( N <= 0 ) { return ; } for ( int i = 0 ; i < N ; i ++ ) { com.android.server.am.ActivityManagerService.PendingActivityLaunch pal = mPendingActivityLaunches.get ( i ) ; mMainStack.startActivityUncheckedLocked ( pal.r , pal.sourceRecord , pal.grantedUriPermissions , pal.grantedMode , pal.onlyIfNeeded , ( doResume && ( i == ( N - 1 ) ) ) ) ; } mPendingActivityLaunches.clear ( ) ; }
Source:
public void copy1DRangeFrom ( int off , int count , float [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFrom" ) ; validateIsFloat32 ( ) ; copy1DRangeFromUnchecked ( off , count , d ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , java.lang.Object array ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy2DRangeFrom" ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , array , validateObjectIsPrimitiveArray ( array , true ) , java.lang.reflect.Array.getLength ( array ) ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }
Source:
protected void accept ( android.net.LocalSocketImpl s ) throws java.io.IOException { if ( ( fd ) == null ) { throw new java.io.IOException ( "socket not created" ) ; } s.fd = accept ( fd , s ) ; s.mFdCreatedInternally = true ; }

Target:
protected void accept ( android.net.LocalSocketImpl s ) throws java.io.IOException { if ( ( fd ) == null ) { throw new java.io.IOException ( "socket not created" ) ; } try { s.fd = android.system.Os.accept ( fd , null ) ; s.mFdCreatedInternally = true ; } catch ( android.system.ErrnoException e ) { throw e.rethrowAsIOException ( ) ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mMultiUserSupported = ( ( getMaxNumberOfUsersSupported ( ) ) > 1 ) && ( ( getDevice ( ) . getApiLevel ( ) ) >= 21 ) ; if ( mMultiUserSupported ) { removeTestUsers ( ) ; installTestApps ( ) ; mSecondaryUserId = createUser ( ) ; mSecondaryUserSerialNumber = getUserSerialNumber ( mSecondaryUserId ) ; startUser ( mSecondaryUserId ) ; } }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; mMultiUserSupported = ( ( getMaxNumberOfUsersSupported ( ) ) > 1 ) && ( ( getDevice ( ) . getApiLevel ( ) ) >= 21 ) ; mHasLiveTvFeature = hasDeviceFeature ( com.android.cts.devicepolicy.LauncherAppsMultiUserTest.FEATURE_LIVE_TV ) ; if ( mMultiUserSupported ) { removeTestUsers ( ) ; installTestApps ( ) ; mSecondaryUserId = createUser ( ) ; mSecondaryUserSerialNumber = getUserSerialNumber ( mSecondaryUserId ) ; startUser ( mSecondaryUserId ) ; } }
Source:
public void setUp ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { for ( java.util.Map.Entry < java.lang.String , java.lang.String > entry : com.android.compatibility.common.tradefed.targetprep.DeviceInfoCollector.BUILD_KEYS.entrySet ( ) ) { buildInfo.addBuildAttribute ( entry.getKey ( ) , com.android.tradefed.util.ArrayUtil.join ( "," , device.getProperty ( entry.getValue ( ) ) ) ) ; } if ( mSkipDeviceInfo ) { return ; } run ( device , buildInfo ) ; getDeviceInfoFiles ( device , buildInfo ) ; }

Target:
public void setUp ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo ) throws com.android.tradefed.device.DeviceNotAvailableException , com.android.tradefed.targetprep.BuildError , com.android.tradefed.targetprep.TargetSetupError { for ( java.util.Map.Entry < java.lang.String , java.lang.String > entry : com.android.compatibility.common.tradefed.targetprep.DeviceInfoCollector.BUILD_KEYS.entrySet ( ) ) { buildInfo.addBuildAttribute ( entry.getKey ( ) , com.android.tradefed.util.ArrayUtil.join ( "," , device.getProperty ( entry.getValue ( ) ) ) ) ; } if ( mSkipDeviceInfo ) { return ; } createTempHostDir ( ) ; createResultDir ( buildInfo ) ; run ( device , buildInfo ) ; getDeviceInfoFiles ( device ) ; }
Source:
public void widgetSelected ( org.eclipse.swt.events.SelectionEvent e ) { if ( ( e.getSource ( ) ) == ( mCollapseAllToolItem ) ) { setTreeItemsExpanded ( false ) ; } else if ( ( e.getSource ( ) ) == ( mExpandAllToolItem ) ) { setTreeItemsExpanded ( true ) ; } else if ( ( e.getSource ( ) ) == ( mSaveAsToolItem ) ) { exportTrace ( ) ; } }

Target:
public void modifyText ( org.eclipse.swt.events.ModifyEvent e ) { updateAppliedFilters ( ) ; }
Source:
private void setAddressedPlayerRequestFromNative ( byte [ ] address , int playerId ) { android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_NATIVE_REQ_SET_ADDR_PLAYER , playerId , 0 ) ; msg.obj = address ; mHandler.sendMessage ( msg ) ; }

Target:
public void setAbsoluteVolume ( int volume ) { if ( volume == ( mLocalVolume ) ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) { android.util.Log.v ( com.android.bluetooth.avrcp.Avrcp.TAG , ( "setAbsoluteVolume is setting same index, ignore " + volume ) ) ; } return ; } final com.android.bluetooth.avrcp.Avrcp.AvrcpMessageHandler handler = mHandler ; if ( handler == null ) { if ( com.android.bluetooth.avrcp.Avrcp.DEBUG ) android.util.Log.d ( com.android.bluetooth.avrcp.Avrcp.TAG , "setAbsoluteVolume: mHandler is already null" ) ; return ; } handler.removeMessages ( com.android.bluetooth.avrcp.Avrcp.MSG_ADJUST_VOLUME ) ; android.os.Message msg = handler.obtainMessage ( com.android.bluetooth.avrcp.Avrcp.MSG_SET_ABSOLUTE_VOLUME , volume , 0 ) ; handler.sendMessage ( msg ) ; }
Source:
public void visitElement ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Element element ) { if ( element.hasAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_TITLE ) ) { return ; } if ( ( context.getMainProject ( ) . getTargetSdk ( ) ) < 11 ) { return ; } if ( com.android.SdkConstants.VALUE_FALSE.equals ( element.getAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_VISIBLE ) ) ) { return ; } java.lang.String message = "Menu items should specify a title" ; context.report ( com.android.tools.lint.checks.TitleDetector.ISSUE , element , context.getLocation ( element ) , message , null ) ; }

Target:
public void visitElement ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Element element ) { if ( element.hasAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_TITLE ) ) { return ; } if ( ( context.getMainProject ( ) . getTargetSdk ( ) ) < 11 ) { return ; } if ( com.android.SdkConstants.VALUE_FALSE.equals ( element.getAttributeNS ( com.android.SdkConstants.ANDROID_URI , com.android.SdkConstants.ATTR_VISIBLE ) ) ) { return ; } java.lang.String message = "Menu items should specify a `title`" ; context.report ( com.android.tools.lint.checks.TitleDetector.ISSUE , element , context.getLocation ( element ) , message , null ) ; }
Source:
private void confirmParentForPrimitive ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { confirmParent ( expr , com.android.jack.ir.ast.JMethodCall.class , com.android.jack.ir.ast.JPolymorphicMethodCall.class , com.android.jack.ir.ast.JUnaryOperation.class , com.android.jack.ir.ast.JBinaryOperation.class , com.android.jack.ir.ast.cfg.JCaseBlockElement.class , com.android.jack.ir.ast.cfg.JSwitchBlockElement.class , com.android.jack.ir.ast.cfg.JConditionalBlockElement.class , com.android.jack.ir.ast.cfg.JReturnBlockElement.class , com.android.jack.ir.ast.cfg.JLockBlockElement.class , com.android.jack.ir.ast.cfg.JUnlockBlockElement.class , com.android.jack.ir.ast.JFieldRef.class , com.android.jack.ir.ast.JArrayRef.class , com.android.jack.ir.ast.JArrayLength.class , com.android.jack.ir.ast.JNewArray.class , com.android.jack.ir.ast.JDynamicCastOperation.class , com.android.jack.ir.ast.JReinterpretCastOperation.class , com.android.jack.ir.ast.cfg.JThrowBlockElement.class , com.android.jack.ir.ast.JInstanceOf.class ) ; }

Target:
private void confirmParentForPrimitive ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JExpression expr ) { confirmParent ( expr , com.android.jack.ir.ast.JMethodCall.class , com.android.jack.ir.ast.JPolymorphicMethodCall.class , com.android.jack.ir.ast.JUnaryOperation.class , com.android.jack.ir.ast.JBinaryOperation.class , com.android.jack.ir.ast.cfg.JCaseBlockElement.class , com.android.jack.ir.ast.cfg.JSwitchBlockElement.class , com.android.jack.ir.ast.cfg.JConditionalBlockElement.class , com.android.jack.ir.ast.cfg.JReturnBlockElement.class , com.android.jack.ir.ast.cfg.JLockBlockElement.class , com.android.jack.ir.ast.cfg.JUnlockBlockElement.class , com.android.jack.ir.ast.cfg.JPhiBlockElement.class , com.android.jack.ir.ast.JFieldRef.class , com.android.jack.ir.ast.JArrayRef.class , com.android.jack.ir.ast.JArrayLength.class , com.android.jack.ir.ast.JNewArray.class , com.android.jack.ir.ast.JDynamicCastOperation.class , com.android.jack.ir.ast.JReinterpretCastOperation.class , com.android.jack.ir.ast.cfg.JThrowBlockElement.class , com.android.jack.ir.ast.JInstanceOf.class ) ; }
Source:
public static void runJill ( @ javax.annotation.Nonnull java.io.File inputFile , @ javax.annotation.Nonnull java.io.File outputFile ) throws java.lang.Exception { java.lang.String [ ] args = new java.lang.String [ ] { "java" , "-jar" , com.android.jill.JillTestTools.JILL.getAbsolutePath ( ) , "-o" , outputFile.getAbsolutePath ( ) , inputFile.getAbsolutePath ( ) } ; com.android.jack.util.ExecuteFile execFile = new com.android.jack.util.ExecuteFile ( args ) ; if ( ! ( execFile.run ( ) ) ) { throw new java.lang.RuntimeException ( "Call to jill exited with an error" ) ; } }

Target:
public static void runJill ( @ javax.annotation.Nonnull java.io.File inputFile , @ javax.annotation.Nonnull java.io.File outputFile ) throws java.lang.Exception { java.lang.String [ ] args = new java.lang.String [ ] { "-o" , outputFile.getAbsolutePath ( ) , inputFile.getAbsolutePath ( ) } ; com.android.jill.Options options = com.android.jill.Main.getOptions ( args ) ; new com.android.jill.Jill ( options , "" ) . process ( options.getBinaryFile ( ) ) ; }
Source:
void getFolderItemsNowPlaying ( byte [ ] bdaddr , com.android.bluetooth.avrcp.AvrcpCmd.FolderItemsCmd reqObj , @ android.annotation.Nullable com.android.bluetooth.avrcp.MediaController mediaController ) { if ( mediaController == null ) { android.util.Log.e ( com.android.bluetooth.avrcp.AddressedMediaPlayer.TAG , "mediaController = null, sending no available players response" ) ; mMediaInterface.folderItemsRsp ( bdaddr , AvrcpConstants.RSP_NO_AVBL_PLAY , null ) ; return ; } java.util.List < android.media.session.MediaSession.QueueItem > items = getNowPlayingList ( mediaController ) ; getFolderItemsFilterAttr ( bdaddr , reqObj , items , AvrcpConstants.BTRC_SCOPE_NOW_PLAYING , reqObj.mStartItem , reqObj.mEndItem , mediaController ) ; }

Target:
void getFolderItemsNowPlaying ( byte [ ] bdaddr , com.android.bluetooth.avrcp.AvrcpCmd.FolderItemsCmd reqObj , @ android.annotation.Nullable com.android.bluetooth.avrcp.MediaController mediaController ) { if ( mediaController == null ) { android.util.Log.e ( com.android.bluetooth.avrcp.AddressedMediaPlayer.TAG , "mediaController = null, sending no available players response" ) ; mMediaInterface.folderItemsRsp ( bdaddr , AvrcpConstants.RSP_NO_AVBL_PLAY , null ) ; return ; } java.util.List < android.media.session.MediaSession.QueueItem > items = updateNowPlayingList ( mediaController ) ; getFolderItemsFilterAttr ( bdaddr , reqObj , items , AvrcpConstants.BTRC_SCOPE_NOW_PLAYING , reqObj.mStartItem , reqObj.mEndItem , mediaController ) ; }
Source:
public void encode ( com.android.jack.dx.io.instructions.DecodedInstruction insn , com.android.jack.dx.io.instructions.CodeOutput out ) { out.write ( com.android.jack.dx.io.instructions.InstructionCodec.codeUnit ( insn.getOpcode ( ) , com.android.jack.dx.io.instructions.InstructionCodec.makeByte ( insn.getA ( ) , insn.getB ( ) ) ) , insn.getIndexUnit ( ) ) ; }

Target:
public void encode ( com.android.jack.dx.io.instructions.DecodedInstruction insn , com.android.jack.dx.io.instructions.CodeOutput out ) { out.write ( com.android.jack.dx.io.instructions.InstructionCodec.codeUnit ( insn.getOpcode ( ) , com.android.jack.dx.io.instructions.InstructionCodec.makeByte ( insn.getA ( ) , insn.getB ( ) ) ) , insn.getFirstIndexUnit ( ) ) ; }
Source:
public void removeRemotePackage ( java.lang.String remoteFilePath ) throws com.android.ddmlib.AdbCommandRejectedException , com.android.ddmlib.ShellCommandUnresponsiveException , com.android.ddmlib.TimeoutException , java.io.IOException { try { executeShellCommand ( ( "rm " + remoteFilePath ) , new com.android.ddmlib.NullOutputReceiver ( ) , com.android.ddmlib.Device.INSTALL_TIMEOUT ) ; } catch ( java.io.IOException e ) { com.android.ddmlib.Log.e ( com.android.ddmlib.Device.LOG_TAG , java.lang.String.format ( "Failed to delete temporary package: %1$s" , e.getMessage ( ) ) ) ; throw e ; } }

Target:
public void removeRemotePackage ( java.lang.String remoteFilePath ) throws com.android.ddmlib.InstallException { try { executeShellCommand ( ( "rm " + remoteFilePath ) , new com.android.ddmlib.NullOutputReceiver ( ) , com.android.ddmlib.Device.INSTALL_TIMEOUT ) ; } catch ( java.io.IOException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.TimeoutException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.AdbCommandRejectedException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } catch ( com.android.ddmlib.ShellCommandUnresponsiveException e ) { throw new com.android.ddmlib.InstallException ( e ) ; } }
Source:
java.io.OutputStream openWrite ( @ javax.annotation.Nonnull com.android.sched.vfs.DirectFS.DirectVFile file ) throws com.android.sched.util.file.WrongPermissionException { assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.WRITE ) ) != 0 ; java.io.File path = file.getNativePath ( ) ; try { return new java.io.FileOutputStream ( path ) ; } catch ( java.io.FileNotFoundException e ) { com.android.sched.util.file.FileOrDirectory.checkPermissions ( path , file.getLocation ( ) , Permission.WRITE ) ; throw new com.android.sched.util.ConcurrentIOException ( e ) ; } }

Target:
java.io.InputStream openRead ( @ javax.annotation.Nonnull com.android.sched.vfs.ParentVFile file ) throws com.android.sched.util.file.WrongPermissionException { assert ! ( isClosed ( ) ) ; assert ( ( permissions ) & ( com.android.sched.util.file.FileOrDirectory.Permission.READ ) ) != 0 ; java.io.File path = getNativeFile ( file.getPath ( ) ) ; try { return new java.io.FileInputStream ( path ) ; } catch ( java.io.FileNotFoundException e ) { com.android.sched.util.file.FileOrDirectory.checkPermissions ( path , file.getLocation ( ) , Permission.READ ) ; throw new com.android.sched.util.ConcurrentIOException ( e ) ; } }