auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void printDominatedObjects ( com.android.ahat.Doc doc , com.android.ahat.Query query , com.android.tools.perflib.heap.Instance inst ) { doc.section ( "Immediately Dominated Objects" ) ; java.util.List < com.android.tools.perflib.heap.Instance > instances = mSnapshot.getDominated ( inst ) ; if ( instances != null ) { com.android.ahat.DominatedList.render ( mSnapshot , doc , instances , query ) ; } else { doc.println ( com.android.ahat.DocString.text ( "(none)" ) ) ; } }

Target:
public void printDominatedObjects ( com.android.ahat.Doc doc , com.android.ahat.Query query , com.android.tools.perflib.heap.Instance inst ) { doc.section ( "Immediately Dominated Objects" ) ; java.util.List < com.android.tools.perflib.heap.Instance > instances = mSnapshot.getDominated ( inst ) ; if ( instances != null ) { com.android.ahat.DominatedList.render ( mSnapshot , doc , query , com.android.ahat.ObjectHandler.DOMINATED_OBJECTS_ID , instances ) ; } else { doc.println ( com.android.ahat.DocString.text ( "(none)" ) ) ; } }
Source:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.eclipse.jface.preference.PreferenceStore store = new org.eclipse.jface.preference.PreferenceStore ( ) ; com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.init ( store ) ; com.android.ide.eclipse.adt.internal.preferences.AdtPrefs prefs = com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) ; prefs.initializeStoreWithDefaults ( store ) ; prefs.loadValues ( null ) ; com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences formatPrefs = com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences.create ( ) ; assertTrue ( formatPrefs.oneAttributeOnFirstLine ) ; }

Target:
protected void setUp ( ) throws java.lang.Exception { super . setUp ( ) ; org.eclipse.jface.preference.PreferenceStore store = new org.eclipse.jface.preference.PreferenceStore ( ) ; com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.init ( store ) ; com.android.ide.eclipse.adt.internal.preferences.AdtPrefs prefs = com.android.ide.eclipse.adt.internal.preferences.AdtPrefs.getPrefs ( ) ; prefs.initializeStoreWithDefaults ( store ) ; prefs.loadValues ( null ) ; com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences formatPrefs = com.android.ide.eclipse.adt.internal.editors.formatting.EclipseXmlFormatPreferences.create ( ) ; assertTrue ( formatPrefs.oneAttributeOnFirstLine ) ; }
Source:
public int getVersionCode ( ) { int versionCode = ( ( mMergedFlavor.getVersionCode ( ) ) != null ) ? mMergedFlavor.getVersionCode ( ) : - 1 ; if ( ( versionCode == ( - 1 ) ) && ( ( mType ) != ( com.android.builder.core.VariantConfiguration.Type.TEST ) ) ) { versionCode = getVersionCodeFromManifest ( ) ; } return versionCode ; }

Target:
public java.lang.Boolean getFunctionalTest ( ) { com.android.builder.core.VariantConfiguration config = this ; if ( mType.isForTesting ( ) ) { config = getTestedConfig ( ) ; com.google.common.base.Preconditions.checkState ( ( config != null ) ) ; } java.lang.Boolean functionalTest = config.mMergedFlavor.getTestFunctionalTest ( ) ; return functionalTest != null ? functionalTest : com.android.builder.core.VariantConfiguration.DEFAULT_FUNCTIONAL_TEST ; }
Source:
private boolean isImportantMessage ( com.android.ddmuilib.logcat.LogCatMessage m ) { if ( ( m.getLogLevel ( ) . getPriority ( ) ) < ( mMinMessagePriority ) ) { return false ; } java.lang.String app = m.getAppName ( ) ; for ( com.android.ide.eclipse.ddms.IDebuggerConnector c : mConnectors ) { if ( c.isWorkspaceApp ( app ) ) { return true ; } } return false ; }

Target:
private boolean isImportantMessage ( com.android.ddmlib.logcat.LogCatMessage m ) { if ( ( m.getLogLevel ( ) . getPriority ( ) ) < ( mMinMessagePriority ) ) { return false ; } java.lang.String app = m.getAppName ( ) ; for ( com.android.ide.eclipse.ddms.IDebuggerConnector c : mConnectors ) { if ( c.isWorkspaceApp ( app ) ) { return true ; } } return false ; }
Source:
public void align ( int v ) { if ( ( v <= 0 ) || ( ( v & ( v - 1 ) ) != 0 ) ) { throw new android.support.v8.renderscript.RSIllegalArgumentException ( ( "argument must be a non-negative non-zero power of 2: " + v ) ) ; } while ( ( ( mPos ) & ( v - 1 ) ) != 0 ) { mData [ ( ( mPos ) ++ ) ] = 0 ; } }

Target:
public void align ( int v ) { if ( ( v <= 0 ) || ( ( v & ( v - 1 ) ) != 0 ) ) { throw new android.support.v8.renderscript.RSIllegalArgumentException ( ( "argument must be a non-negative non-zero power of 2: " + v ) ) ; } while ( ( ( mPos ) & ( v - 1 ) ) != 0 ) { mAlignment.flip ( mPos ) ; mData [ ( ( mPos ) ++ ) ] = 0 ; } }
Source:
private void handleWifiStateChanged ( android.content.Intent intent ) { mWifiState = intent.getIntExtra ( WifiManager.EXTRA_WIFI_STATE , ( - 1 ) ) ; switch ( mWifiState ) { case android.net.wifi.WifiManager.WIFI_STATE_ENABLED : mSavedSsidsOnDisable.clear ( ) ; break ; case android.net.wifi.WifiManager.WIFI_STATE_DISABLED : mSavedSsidsOnDisable.addAll ( mSavedSsidsInLastScan ) ; break ; } }

Target:
private void handleWifiStateChanged ( ) { mWifiState = mWifiManager.getWifiState ( ) ; if ( com.android.networkrecommendation.WifiWakeupController.VERBOSE ) { android.util.Log.v ( com.android.networkrecommendation.WifiWakeupController.TAG , ( "handleWifiStateChanged: " + ( mWifiState ) ) ) ; } switch ( mWifiState ) { case android.net.wifi.WifiManager.WIFI_STATE_ENABLED : mSavedSsidsOnDisable.clear ( ) ; break ; case android.net.wifi.WifiManager.WIFI_STATE_DISABLED : for ( java.lang.String ssid : mSavedSsidsInLastScan ) { mSavedSsidsOnDisable.put ( ssid , com.android.networkrecommendation.WifiWakeupController.NUM_SCANS_TO_CONFIRM_AP_LOSS ) ; } break ; } }
Source:
public void test_bind_failure ( ) throws java.lang.Exception { java.nio.channels.ServerSocketChannel portHog = java.nio.channels.ServerSocketChannel.open ( ) ; portHog.bind ( null ) ; java.nio.channels.ServerSocketChannel ssc = java.nio.channels.ServerSocketChannel.open ( ) ; try { ssc.bind ( portHog.getLocalAddress ( ) ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } finally { ssc.close ( ) ; portHog.close ( ) ; } }

Target:
public void test_bind_failure ( ) throws java.lang.Exception { java.nio.channels.ServerSocketChannel portHog = java.nio.channels.ServerSocketChannel.open ( ) ; portHog.socket ( ) . bind ( null ) ; java.nio.channels.ServerSocketChannel ssc = java.nio.channels.ServerSocketChannel.open ( ) ; try { ssc.socket ( ) . bind ( portHog.socket ( ) . getLocalSocketAddress ( ) ) ; fail ( ) ; } catch ( java.io.IOException expected ) { } finally { ssc.close ( ) ; portHog.close ( ) ; } }
Source:
static com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata getShortNumberMetadataForRegion ( java.lang.String regionCode ) { if ( ! ( com.google.i18n.phonenumbers.MetadataManager.regionCodeSet.contains ( regionCode ) ) ) { return null ; } synchronized ( com.google.i18n.phonenumbers.MetadataManager.regionCodeToShortNumberMetadataMap ) { if ( ! ( com.google.i18n.phonenumbers.MetadataManager.regionCodeToShortNumberMetadataMap.containsKey ( regionCode ) ) ) { com.google.i18n.phonenumbers.MetadataManager.loadShortNumberMetadataFromFile ( regionCode ) ; } } return com.google.i18n.phonenumbers.MetadataManager.regionCodeToShortNumberMetadataMap.get ( regionCode ) ; }

Target:
static com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata getAlternateFormatsForCountry ( int countryCallingCode ) { if ( ! ( com.google.i18n.phonenumbers.MetadataManager.alternateFormatsCountryCodes.contains ( countryCallingCode ) ) ) { return null ; } return com.google.i18n.phonenumbers.MetadataManager.getMetadataFromMultiFilePrefix ( countryCallingCode , com.google.i18n.phonenumbers.MetadataManager.alternateFormatsMap , com.google.i18n.phonenumbers.MetadataManager.ALTERNATE_FORMATS_FILE_PREFIX , com.google.i18n.phonenumbers.MetadataManager.DEFAULT_METADATA_LOADER ) ; }
Source:
public void adjustCategory ( com.android.sdkuilib.internal.repository.sdkman2.PkgCategory cat , java.lang.Object catKey ) { assert cat instanceof com.android.sdkuilib.internal.repository.sdkman2.PkgCategorySource ; assert catKey instanceof com.android.sdklib.internal.repository.SdkSource ; if ( cat instanceof com.android.sdkuilib.internal.repository.sdkman2.PkgCategorySource ) { ( ( com.android.sdkuilib.internal.repository.sdkman2.PkgCategorySource ) ( cat ) ) . adjustLabel ( ( ( com.android.sdklib.internal.repository.SdkSource ) ( catKey ) ) ) ; } }

Target:
public void adjustCategory ( com.android.sdkuilib.internal.repository.sdkman2.PkgCategory cat , java.lang.Object catKey ) { assert cat instanceof com.android.sdkuilib.internal.repository.sdkman2.PkgCategorySource ; assert catKey instanceof com.android.sdklib.internal.repository.sources.SdkSource ; if ( cat instanceof com.android.sdkuilib.internal.repository.sdkman2.PkgCategorySource ) { ( ( com.android.sdkuilib.internal.repository.sdkman2.PkgCategorySource ) ( cat ) ) . adjustLabel ( ( ( com.android.sdklib.internal.repository.sources.SdkSource ) ( catKey ) ) ) ; } }
Source:
public void testPinEntryPinSuccess ( ) throws java.lang.Exception { java.lang.String shortEntry = "*.google.com=true|" + ( shortPin ) ; org.conscrypt.PinListEntry e = new org.conscrypt.PinListEntry ( shortEntry , new org.conscrypt.TrustedCertificateStore ( ) ) ; assertTrue ( "Not enforcing!" , e.getEnforcing ( ) ) ; boolean retval = e.chainIsNotPinned ( shortChain ) ; assertTrue ( "Failed on a correct pinning, this is very bad" , ( ! retval ) ) ; }

Target:
public void testPinEntryPinSuccess ( ) throws java.lang.Exception { java.lang.String shortEntry = "*.google.com=true|" + ( shortPin ) ; org.conscrypt.PinListEntry e = new org.conscrypt.PinListEntry ( shortEntry , new org.conscrypt.TrustedCertificateStore ( ) ) ; assertTrue ( "Not enforcing!" , e.getEnforcing ( ) ) ; boolean retval = e.isChainValid ( shortChain ) ; assertTrue ( "Failed on a correct pinning, this is very bad" , retval ) ; }
Source:
public void enablingVerboseLoggingIncreasesLogRecSize ( ) { org.junit.Assert.assertTrue ( ( ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE ) > ( WifiStateMachine.NUM_LOG_RECS_NORMAL ) ) ) ; mWsm.enableVerboseLogging ( 1 ) ; for ( int i = 0 ; i < ( ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE ) * 2 ) ; i ++ ) { mWsm.sendMessage ( WifiStateMachine.CMD_DISCONNECT ) ; } mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( com.android.server.wifi.WifiStateMachineTest.LOG_REC_LIMIT_IN_VERBOSE_MODE , mWsm.getLogRecSize ( ) ) ; }

Target:
public void normalLogRecSizeIsUsedByDefault ( ) { org.junit.Assert.assertEquals ( WifiStateMachine.NUM_LOG_RECS_NORMAL , mWsm.getLogRecMaxSize ( ) ) ; }
Source:
public void openLibraryOrSdkSettings ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.roots.OrderEntry orderEntry ) { final com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable config = com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.getInstance ( myProject ) ; com.intellij.openapi.options.ShowSettingsUtil.getInstance ( ) . editConfigurable ( myProject , config , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { if ( orderEntry instanceof com.intellij.openapi.roots.JdkOrderEntry ) { config.select ( ( ( com.intellij.openapi.roots.JdkOrderEntry ) ( orderEntry ) ) . getJdk ( ) , true ) ; } else { config.select ( ( ( com.intellij.openapi.roots.LibraryOrderEntry ) ( orderEntry ) ) , true ) ; } } } ) ; }

Target:
public void openLibraryOrSdkSettings ( @ org.jetbrains.annotations.NotNull final com.intellij.openapi.roots.OrderEntry orderEntry ) { warnIfGradleProject ( ) ; final com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable config = com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable.getInstance ( myProject ) ; com.intellij.openapi.options.ShowSettingsUtil.getInstance ( ) . editConfigurable ( myProject , config , new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { if ( orderEntry instanceof com.intellij.openapi.roots.JdkOrderEntry ) { config.select ( ( ( com.intellij.openapi.roots.JdkOrderEntry ) ( orderEntry ) ) . getJdk ( ) , true ) ; } else { config.select ( ( ( com.intellij.openapi.roots.LibraryOrderEntry ) ( orderEntry ) ) , true ) ; } } } ) ; }
Source:
private static void testUnloadClassAndLoader ( java.lang.reflect.Constructor constructor ) throws java.lang.Exception { java.lang.ref.WeakReference < java.lang.ClassLoader > loader = Main.setUpUnloadLoader ( constructor ) ; java.lang.ref.WeakReference < java.lang.Class > klass = Main.setUpUnloadClass ( constructor ) ; java.lang.Runtime.getRuntime ( ) . gc ( ) ; java.lang.ref.WeakReference < java.lang.Class > klass2 = Main.setUpUnloadClass ( constructor ) ; java.lang.Runtime.getRuntime ( ) . gc ( ) ; java.lang.System.out.println ( klass.get ( ) ) ; java.lang.System.out.println ( klass2.get ( ) ) ; java.lang.System.out.println ( loader.get ( ) ) ; }

Target:
private static void testUnloadClass ( java.lang.reflect.Constructor constructor ) throws java.lang.Exception { java.lang.ref.WeakReference < java.lang.Class > klass = Main.setUpUnloadClass ( constructor ) ; java.lang.Runtime.getRuntime ( ) . gc ( ) ; java.lang.ref.WeakReference < java.lang.Class > klass2 = Main.setUpUnloadClass ( constructor ) ; java.lang.Runtime.getRuntime ( ) . gc ( ) ; java.lang.System.out.println ( klass.get ( ) ) ; java.lang.System.out.println ( klass2.get ( ) ) ; }
Source:
protected java.io.File downloadFile ( com.android.sdklib.internal.repository.archives.Archive archive , java.lang.String osSdkRoot , com.android.sdklib.internal.repository.DownloadCache cache , com.android.sdklib.internal.repository.ITaskMonitor monitor , boolean forceHttp ) { java.io.File file = mDownloadMap.get ( archive ) ; this . mFile.recordExistingFile ( file ) ; return file ; }

Target:
protected com.android.utils.Pair < java.io.File , java.io.File > downloadFile ( com.android.sdklib.internal.repository.archives.Archive archive , java.lang.String osSdkRoot , com.android.sdklib.internal.repository.DownloadCache cache , com.android.sdklib.internal.repository.ITaskMonitor monitor , boolean forceHttp ) { java.io.File file = mDownloadMap.get ( archive ) ; this . mFile.recordExistingFile ( file ) ; return com.android.utils.Pair.of ( file , null ) ; }
Source:
public android.bluetooth.BluetoothDevice getClient ( ) { if ( com.android.bluetooth.map.BluetoothMapService.VERBOSE ) { android.util.Log.v ( com.android.bluetooth.map.BluetoothMapService.TAG , "getClient()" ) ; } com.android.bluetooth.map.BluetoothMapService service = getService ( ) ; if ( service == null ) { return null ; } if ( com.android.bluetooth.map.BluetoothMapService.VERBOSE ) { android.util.Log.v ( com.android.bluetooth.map.BluetoothMapService.TAG , ( "getClient() - returning " + ( service.getRemoteDevice ( ) ) ) ) ; } return service.getRemoteDevice ( ) ; }

Target:
public android.bluetooth.BluetoothDevice getClient ( ) { if ( com.android.bluetooth.map.BluetoothMapService.VERBOSE ) { android.util.Log.v ( com.android.bluetooth.map.BluetoothMapService.TAG , "getClient()" ) ; } com.android.bluetooth.map.BluetoothMapService service = getService ( ) ; if ( service == null ) { return null ; } android.bluetooth.BluetoothDevice client = com.android.bluetooth.map.BluetoothMapService.getRemoteDevice ( ) ; if ( com.android.bluetooth.map.BluetoothMapService.VERBOSE ) { android.util.Log.v ( com.android.bluetooth.map.BluetoothMapService.TAG , ( "getClient() - returning " + client ) ) ; } return client ; }
Source:
public int [ ] getAdnRecordsSize ( int efid ) { if ( DBG ) logd ( ( "getAdnRecordsSize: efid=" + efid ) ) ; synchronized ( mLock ) { checkThread ( ) ; recordSize = new int [ 3 ] ; android.os.Message response = mBaseHandler.obtainMessage ( com.android.internal.telephony.cdma.EVENT_GET_SIZE_DONE ) ; phone.getIccFileHandler ( ) . getEFLinearRecordSize ( efid , response ) ; try { mLock.wait ( ) ; } catch ( java.lang.InterruptedException e ) { logd ( "interrupted while trying to load from the RUIM" ) ; } } return recordSize ; }

Target:
public int [ ] getAdnRecordsSize ( int efid ) { if ( DBG ) logd ( ( "getAdnRecordsSize: efid=" + efid ) ) ; synchronized ( mLock ) { checkThread ( ) ; recordSize = new int [ 3 ] ; java.util.concurrent.atomic.AtomicBoolean status = new java.util.concurrent.atomic.AtomicBoolean ( false ) ; android.os.Message response = mBaseHandler.obtainMessage ( com.android.internal.telephony.cdma.EVENT_GET_SIZE_DONE , status ) ; phone.getIccFileHandler ( ) . getEFLinearRecordSize ( efid , response ) ; waitForResult ( status ) ; } return recordSize ; }
Source:
public boolean remove ( java.lang.Object element ) { try { @ java.lang.SuppressWarnings ( value = "unchecked" ) E e = ( ( E ) ( element ) ) ; return ( predicate.apply ( e ) ) && ( unfiltered.remove ( element ) ) ; } catch ( java.lang.NullPointerException e ) { return false ; } catch ( java.lang.ClassCastException e ) { return false ; } }

Target:
static boolean safeContains ( java.util.Collection < ? > collection , @ javax.annotation.Nullable java.lang.Object object ) { com.google.common.base.Preconditions.checkNotNull ( collection ) ; try { return collection.contains ( object ) ; } catch ( java.lang.ClassCastException e ) { return false ; } catch ( java.lang.NullPointerException e ) { return false ; } }
Source:
private static boolean isClassElement ( com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.XmlContext context ) { java.lang.String tag = context.getElement ( ) . getTagName ( ) ; return ( ( tag.indexOf ( '.' ) ) != ( - 1 ) ) && ( com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.CLASS_PATTERN.matcher ( tag ) . matches ( ) ) ; }

Target:
private static boolean isClassElement ( com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.XmlContext context ) { if ( ( context.getAttribute ( ) ) != null ) { return false ; } java.lang.String tag = context.getElement ( ) . getTagName ( ) ; return ( ( tag.indexOf ( '.' ) ) != ( - 1 ) ) && ( com.android.ide.eclipse.adt.internal.editors.xml.Hyperlinks.CLASS_PATTERN.matcher ( tag ) . matches ( ) ) ; }
Source:
private void displayClassZeroMessage ( android.content.Context context , android.telephony.gsm.SmsMessage sms ) { android.content.Intent smsDialogIntent = new android.content.Intent ( context , com.android.mms.ui.ClassZeroActivity.class ) . putExtra ( com.android.mms.transaction.SmsReceiverService.CLASS_ZERO_BODY_KEY , sms.getMessageBody ( ) ) . setFlags ( ( ( android.content.Intent.FLAG_ACTIVITY_NEW_TASK ) | ( android.content.Intent.FLAG_ACTIVITY_MULTIPLE_TASK ) ) ) ; context.startActivity ( smsDialogIntent ) ; }

Target:
private void displayClassZeroMessage ( android.content.Context context , android.telephony.SmsMessage sms ) { android.content.Intent smsDialogIntent = new android.content.Intent ( context , com.android.mms.ui.ClassZeroActivity.class ) . putExtra ( com.android.mms.transaction.SmsReceiverService.CLASS_ZERO_BODY_KEY , sms.getMessageBody ( ) ) . setFlags ( ( ( android.content.Intent.FLAG_ACTIVITY_NEW_TASK ) | ( android.content.Intent.FLAG_ACTIVITY_MULTIPLE_TASK ) ) ) ; context.startActivity ( smsDialogIntent ) ; }
Source:
public void visitFieldInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { if ( "$jacocoData" . equals ( name ) ) { com.google.common.base.Preconditions.checkState ( ( ! ( owner.endsWith ( com.google.devtools.build.android.desugar.InterfaceDesugaring.COMPANION_SUFFIX ) ) ) , "Expected interface: %s" , owner ) ; owner = com.google.devtools.build.android.desugar.InterfaceDesugaring.getCompanionClassName ( owner ) ; } super . visitFieldInsn ( opcode , owner , name , desc ) ; }

Target:
public void visitFieldInsn ( int opcode , java.lang.String owner , java.lang.String name , java.lang.String desc ) { if ( "$jacocoData" . equals ( name ) ) { com.google.common.base.Preconditions.checkState ( ( ! ( owner.endsWith ( DependencyCollector.INTERFACE_COMPANION_SUFFIX ) ) ) , "Expected interface: %s" , owner ) ; owner = com.google.devtools.build.android.desugar.InterfaceDesugaring.getCompanionClassName ( owner ) ; } super . visitFieldInsn ( opcode , owner , name , desc ) ; }
Source:
private boolean deleteInstalledPackageLI ( com.android.server.pm.PackageSetting ps , boolean deleteCodeAndResources , int flags , int [ ] allUserHandles , boolean [ ] perUserInstalled , com.android.server.pm.PackageManagerService.PackageRemovedInfo outInfo , boolean writeSettings ) { if ( outInfo != null ) { outInfo.uid = ps.appId ; } removePackageDataLI ( ps , allUserHandles , perUserInstalled , outInfo , flags , writeSettings ) ; if ( deleteCodeAndResources && ( outInfo != null ) ) { outInfo.args = createInstallArgs ( packageFlagsToInstallFlags ( ps ) , ps.codePathString , ps.resourcePathString , ps.nativeLibraryPathString ) ; } return true ; }

Target:
private boolean deleteInstalledPackageLI ( com.android.server.pm.PackageSetting ps , boolean deleteCodeAndResources , int flags , int [ ] allUserHandles , boolean [ ] perUserInstalled , com.android.server.pm.PackageManagerService.PackageRemovedInfo outInfo , boolean writeSettings ) { if ( outInfo != null ) { outInfo.uid = ps.appId ; } removePackageDataLI ( ps , allUserHandles , perUserInstalled , outInfo , flags , writeSettings ) ; if ( deleteCodeAndResources && ( outInfo != null ) ) { outInfo.args = createInstallArgs ( packageFlagsToInstallFlags ( ps ) , ps.codePathString , ps.resourcePathString , ps.nativeLibraryPathString , getAppInstructionSetFromSettings ( ps ) ) ; } return true ; }
Source:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { java.lang.String protectionLevel = attribute.getValue ( ) ; if ( ( protectionLevel != null ) && ( protectionLevel.equals ( com.android.tools.lint.checks.SignatureOrSystemDetector.SIGNATURE_OR_SYSTEM ) ) ) { java.lang.String message = "protectionLevel should probably not be set to signatureOrSystem" ; context.report ( com.android.tools.lint.checks.SignatureOrSystemDetector.ISSUE , attribute , context.getLocation ( attribute ) , message , null ) ; } }

Target:
public void visitAttribute ( @ com.android.annotations.NonNull com.android.tools.lint.detector.api.XmlContext context , @ com.android.annotations.NonNull org.w3c.dom.Attr attribute ) { java.lang.String protectionLevel = attribute.getValue ( ) ; if ( ( protectionLevel != null ) && ( protectionLevel.equals ( com.android.tools.lint.checks.SignatureOrSystemDetector.SIGNATURE_OR_SYSTEM ) ) ) { java.lang.String message = "`protectionLevel` should probably not be set to `signatureOrSystem`" ; context.report ( com.android.tools.lint.checks.SignatureOrSystemDetector.ISSUE , attribute , context.getLocation ( attribute ) , message , null ) ; } }
Source:
public void clearLocalPkg ( @ com.android.annotations.NonNull java.util.EnumSet < com.android.sdklib.repository.descriptors.PkgType > filters ) { mLegacyBuildTools = null ; synchronized ( mLocalPackages ) { for ( com.android.sdklib.repository.descriptors.PkgType filter : filters ) { mVisitedDirs.removeAll ( filter ) ; mLocalPackages.removeAll ( filter ) ; } } if ( ( filters.contains ( PkgType.PKG_PLATFORMS ) ) || ( filters.contains ( PkgType.PKG_ADDONS ) ) ) { mReloadTargets = true ; } }

Target:
public void clearLocalPkg ( @ com.android.annotations.NonNull java.util.EnumSet < com.android.sdklib.repository.descriptors.PkgType > filters ) { mLegacyBuildTools = null ; synchronized ( mLocalPackages ) { for ( com.android.sdklib.repository.descriptors.PkgType filter : filters ) { mVisitedDirs.removeAll ( filter ) ; mLocalPackages.removeAll ( filter ) ; } } if ( ( filters.contains ( PkgType.PKG_PLATFORM ) ) || ( filters.contains ( PkgType.PKG_ADDON ) ) ) { mReloadTargets = true ; } }
Source:
private static java.util.List < java.lang.String > mergeAnnotations ( java.util.List < java.lang.String > annotations , java.lang.String annotation ) { if ( annotations == null ) { annotations = new java.util.ArrayList < > ( ) ; } annotations.add ( ( "@" + annotation ) ) ; return annotations ; }

Target:
private static java.util.List < java.lang.String > mergeAnnotations ( java.util.List < java.lang.String > annotations , java.lang.String annotation ) { if ( annotations == null ) { annotations = new java.util.ArrayList < > ( ) ; } java.lang.String qualifiedName = ( ( annotation.indexOf ( '.' ) ) == ( - 1 ) ) ? "@android.support.annotation" + annotation : "@" + annotation ; annotations.add ( qualifiedName ) ; return annotations ; }
Source:
public long connectivityGetRxBytesForDevice ( java.lang.String subscriberId , java.lang.Long startTime , java.lang.Long endTime ) throws android.os.RemoteException , java.lang.SecurityException { android.app.usage.NetworkStats.Bucket bucket = mNetStatsManager.querySummaryForDevice ( ConnectivityManager.TYPE_MOBILE , subscriberId , startTime , endTime ) ; return bucket.getRxBytes ( ) ; }

Target:
public long connectivityGetRxBytesForDevice ( @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "subscriberId" ) java.lang.String subscriberId , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "startTime" ) java.lang.Long startTime , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "endTime" ) java.lang.Long endTime , @ com.googlecode.android_scripting.rpc.RpcParameter ( name = "connType" ) java.lang.Integer connType ) throws android.os.RemoteException , java.lang.SecurityException { if ( connType == null ) connType = android.net.ConnectivityManager.TYPE_MOBILE ; android.app.usage.NetworkStats.Bucket bucket = mNetStatsManager.querySummaryForDevice ( connType , subscriberId , startTime , endTime ) ; return bucket.getRxBytes ( ) ; }
Source:
private void updatedZoom ( ) { if ( hasPreviews ( ) ) { for ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreview preview : mPreviews ) { preview.setScale ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreviewManager.sScale ) ; } com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreview preview = mCanvas.getPreview ( ) ; if ( preview != null ) { preview.setScale ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreviewManager.sScale ) ; } } renderPreviews ( ) ; layout ( true ) ; mCanvas.redraw ( ) ; }

Target:
static double getScale ( ) { return com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderPreviewManager.sScale ; }
Source:
private static void edgeSplitSuccessors ( com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { for ( com.android.jack.ir.ast.cfg.JBasicBlock block : cfg.getInternalBlocksUnordered ( ) ) { for ( com.android.jack.ir.ast.cfg.JBasicBlock succ : block.getSuccessors ( ) ) { if ( com.android.jack.transformations.ssa.SsaBasicBlockSplitter.needsNewSuccessor ( block , succ ) ) { if ( ( succ instanceof com.android.jack.ir.ast.cfg.JCatchBasicBlock ) || ( succ instanceof com.android.jack.ir.ast.cfg.JCaseBasicBlock ) ) { block.split ( ( - 1 ) ) ; } else { succ.split ( 0 ) ; } } } } }

Target:
private static void edgeSplitSuccessors ( com.android.jack.ir.ast.cfg.JControlFlowGraph cfg ) { for ( com.android.jack.ir.ast.cfg.JBasicBlock block : cfg.getInternalBlocksUnordered ( ) ) { for ( com.android.jack.ir.ast.cfg.JBasicBlock succ : block.getSuccessors ( ) ) { if ( com.android.jack.transformations.ssa.SsaBasicBlockSplitter.needsNewSuccessor ( block , succ ) ) { if ( ( succ instanceof com.android.jack.ir.ast.cfg.JCatchBasicBlock ) || ( succ instanceof com.android.jack.ir.ast.cfg.JCaseBasicBlock ) ) { block.split ( ( - 1 ) ) ; } else { com.android.jack.transformations.ssa.SsaBasicBlockSplitter.insertNewSimpleSuccessor ( block , succ ) ; } } } } }
Source:
public < K , V > java.util.Map < K , V > getAllModels ( @ com.android.annotations.NonNull org.gradle.tooling.BuildAction < java.util.Map < K , V > > action ) { return getAllModels ( action , false ) ; }

Target:
public < K , V > java.util.Map < K , V > getAllModels ( @ com.android.annotations.NonNull org.gradle.tooling.BuildAction < java.util.Map < K , V > > action , boolean emulateStudio_1_0 , @ com.android.annotations.Nullable java.lang.String benchmarkName , @ com.android.annotations.Nullable com.android.build.gradle.integration.common.fixture.GradleTestProject.BenchmarkMode benchmarkMode ) { org.gradle.tooling.ProjectConnection connection = getProjectConnection ( ) ; try { return buildModel ( connection , action , emulateStudio_1_0 , benchmarkName , benchmarkMode ) ; } finally { connection.close ( ) ; } }
Source:
public static com.android.manifmerger.XmlDocument load ( com.android.utils.Pair < java.lang.String , java.io.File > xmlFile ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { java.io.InputStream inputStream = new java.io.BufferedInputStream ( new java.io.FileInputStream ( xmlFile.getSecond ( ) ) ) ; com.android.utils.PositionXmlParser positionXmlParser = new com.android.utils.PositionXmlParser ( ) ; org.w3c.dom.Document domDocument = positionXmlParser.parse ( inputStream ) ; return domDocument != null ? new com.android.manifmerger.XmlDocument ( positionXmlParser , new com.android.manifmerger.XmlLoader.FileSourceLocation ( xmlFile.getFirst ( ) , xmlFile.getSecond ( ) ) , domDocument.getDocumentElement ( ) ) : null ; }

Target:
public static com.android.manifmerger.XmlDocument load ( java.io.File xmlFile ) throws java.io.IOException , javax.xml.parsers.ParserConfigurationException , org.xml.sax.SAXException { return com.android.manifmerger.XmlLoader.load ( null , xmlFile ) ; }
Source:
private java.util.List < com.android.ddmuilib.logcat.LogCatFilter > getFiltersToApply ( ) { java.util.List < com.android.ddmuilib.logcat.LogCatFilter > filters = new java.util.ArrayList < com.android.ddmuilib.logcat.LogCatFilter > ( ) ; if ( ( mCurrentSelectedFilterIndex ) != ( com.android.ddmuilib.logcat.LogCatPanel.DEFAULT_FILTER_INDEX ) ) { filters.add ( getSelectedSavedFilter ( ) ) ; } filters.addAll ( getCurrentLiveFilters ( ) ) ; return filters ; }

Target:
private java.util.List < com.android.ddmlib.logcat.LogCatFilter > getFiltersToApply ( ) { java.util.List < com.android.ddmlib.logcat.LogCatFilter > filters = new java.util.ArrayList < com.android.ddmlib.logcat.LogCatFilter > ( ) ; if ( ( mCurrentSelectedFilterIndex ) != ( com.android.ddmuilib.logcat.LogCatPanel.DEFAULT_FILTER_INDEX ) ) { filters.add ( getSelectedSavedFilter ( ) ) ; } filters.addAll ( getCurrentLiveFilters ( ) ) ; return filters ; }
Source:
public void createUserData ( java.lang.String uuid , int userId , int userSerial , int flags ) throws com.android.internal.os.InstallerConnection.InstallerException { checkLock ( ) ; try { mInstalld.createUserData ( uuid , userId , userSerial , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void createUserData ( java.lang.String uuid , int userId , int userSerial , int flags ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.createUserData ( uuid , userId , userSerial , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }
Source:
static java.net.URL getResource ( java.lang.String name ) { for ( libcore.io.ClassPathURLStreamHandler urlHandler : java.lang.VMClassLoader.bootClassPathUrlHandlers ) { java.net.URL url = urlHandler.getEntryUrlOrNull ( name ) ; if ( url != null ) { return url ; } } return null ; }

Target:
static java.net.URL getResource ( java.lang.String name ) { int numEntries = java.lang.VMClassLoader.getBootClassPathSize ( ) ; for ( int i = 0 ; i < numEntries ; i ++ ) { java.lang.String urlStr = java.lang.VMClassLoader.getBootClassPathResource ( name , i ) ; if ( urlStr != null ) { try { return new java.net.URL ( urlStr ) ; } catch ( java.net.MalformedURLException mue ) { mue.printStackTrace ( ) ; } } } return null ; }
Source:
private java.util.TimeZone getNitzTimeZone ( int offset , boolean dst , long when ) { java.util.TimeZone guess = findTimeZone ( offset , dst , when ) ; if ( guess == null ) { guess = findTimeZone ( offset , ( ! dst ) , when ) ; } if ( com.android.internal.telephony.ServiceStateTracker.DBG ) log ( ( "getNitzTimeZone returning " + ( guess == null ? guess : guess.getID ( ) ) ) ) ; return guess ; }

Target:
private void cancelAllNotifications ( ) { if ( com.android.internal.telephony.ServiceStateTracker.DBG ) log ( "setNotification: cancelAllNotifications" ) ; android.app.NotificationManager notificationManager = ( ( android.app.NotificationManager ) ( mPhone.getContext ( ) . getSystemService ( Context.NOTIFICATION_SERVICE ) ) ) ; notificationManager.cancel ( com.android.internal.telephony.ServiceStateTracker.PS_NOTIFICATION ) ; notificationManager.cancel ( com.android.internal.telephony.ServiceStateTracker.CS_NOTIFICATION ) ; notificationManager.cancel ( com.android.internal.telephony.ServiceStateTracker.CS_REJECT_CAUSE_NOTIFICATION ) ; }
Source:
public static com.android.resources.ResourceFolderType getTypeByName ( java.lang.String name ) { for ( com.android.resources.ResourceFolderType rType : com.android.resources.ResourceFolderType.values ( ) ) { if ( rType.mName.equals ( name ) ) { return rType ; } } return null ; }

Target:
public static com.android.resources.ResourceFolderType getTypeByName ( java.lang.String name ) { assert ( name.indexOf ( '-' ) ) == ( - 1 ) : name ; for ( com.android.resources.ResourceFolderType rType : com.android.resources.ResourceFolderType.values ( ) ) { if ( rType.mName.equals ( name ) ) { return rType ; } } return null ; }
Source:
protected void xmlModelChanged ( org.w3c.dom.Document xml_doc ) { initUiRootNode ( false ) ; mUiRootNode.loadFromXmlNode ( xml_doc ) ; super . xmlModelChanged ( xml_doc ) ; if ( ( mGraphicalEditor ) != null ) { mGraphicalEditor.onXmlModelChanged ( ) ; } }

Target:
protected void xmlModelChanged ( org.w3c.dom.Document xml_doc ) { if ( mIgnoreXmlUpdate ) { return ; } initUiRootNode ( false ) ; mUiRootNode.loadFromXmlNode ( xml_doc ) ; super . xmlModelChanged ( xml_doc ) ; if ( ( mGraphicalEditor ) != null ) { mGraphicalEditor.onXmlModelChanged ( ) ; } }
Source:
public int purge ( ) { lock.lock ( ) ; java.util.List < java.util.Timer.ScheduledTask > tasksToRemove ; try { if ( isCancelled.get ( ) ) { return 0 ; } tasksToRemove = new java.util.LinkedList < java.util.Timer.ScheduledTask > ( ) ; for ( java.util.Timer.ScheduledTask scheduledTask : scheduledTasksPriorityQueue ) { if ( scheduledTask.timerTask.isCancelled ( ) ) { tasksToRemove.add ( scheduledTask ) ; } } scheduledTasksPriorityQueue.removeAll ( tasksToRemove ) ; } finally { lock.unlock ( ) ; } return tasksToRemove.size ( ) ; }

Target:
public int purge ( ) { lock.lock ( ) ; try { return doPurge ( ) ; } finally { lock.unlock ( ) ; } }
Source:
native void socketBind ( java.net.InetAddress address , int port ) throws java.io.IOException ;

Target:
void socketBind ( java.net.InetAddress address , int port ) throws java.io.IOException { if ( ( ( fd ) == null ) || ( ! ( fd.valid ( ) ) ) ) { throw new java.net.SocketException ( "Socket closed" ) ; } libcore.io.IoBridge.bind ( fd , address , port ) ; this . address = address ; if ( port == 0 ) { localport = libcore.io.IoBridge.getLocalInetSocketAddress ( fd ) . getPort ( ) ; } else { localport = port ; } }
Source:
private java.lang.StringBuilder appendWithSep ( java.lang.String s , java.lang.StringBuilder b ) { if ( ( b.length ( ) ) == 0 ) { b.append ( s ) ; } else { java.lang.String combined = separatorFormat.format ( new java.lang.String [ ] { b.toString ( ) , s } ) ; b.replace ( 0 , b.length ( ) , combined ) ; } return b ; }

Target:
private java.lang.StringBuilder appendWithSep ( java.lang.String s , java.lang.StringBuilder b ) { if ( ( b.length ( ) ) == 0 ) { b.append ( s ) ; } else { android.icu.impl.SimpleFormatterImpl.formatAndReplace ( separatorFormat , b , null , b , s ) ; } return b ; }
Source:
public static void main ( java.lang.String [ ] args ) { if ( Main.triggerArrayOOM ( ) ) { java.lang.System.out.println ( "NEW_ARRAY correctly threw OOME" ) ; } if ( Main.triggerInstanceOOM ( ) ) { java.lang.System.out.println ( "NEW_INSTANCE correctly threw OOME" ) ; } }

Target:
public static void main ( java.lang.String [ ] args ) { Main.holder = new char [ 128 * 1024 ] [ ] ; if ( Main.triggerArrayOOM ( Main.holder ) ) { java.lang.System.out.println ( "NEW_ARRAY correctly threw OOME" ) ; } if ( ! ( Main.triggerInstanceFinalizerOOM ( ) ) ) { java.lang.System.out.println ( "NEW_INSTANCE (finalize) did not threw OOME" ) ; } if ( Main.triggerInstanceOOM ( ) ) { java.lang.System.out.println ( "NEW_INSTANCE correctly threw OOME" ) ; } }
Source:
public com.android.volley.toolbox.Entry toCacheEntry ( byte [ ] data ) { com.android.volley.toolbox.Entry e = new com.android.volley.toolbox.Entry ( ) ; e.data = data ; e.etag = etag ; e.serverDate = serverDate ; e.ttl = ttl ; e.softTtl = softTtl ; e.responseHeaders = responseHeaders ; return e ; }

Target:
public com.android.volley.toolbox.Entry toCacheEntry ( byte [ ] data ) { com.android.volley.toolbox.Entry e = new com.android.volley.toolbox.Entry ( ) ; e.data = data ; e.etag = etag ; e.serverDate = serverDate ; e.lastModified = lastModified ; e.ttl = ttl ; e.softTtl = softTtl ; e.responseHeaders = responseHeaders ; return e ; }
Source:
public java.lang.String toGenericString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 80 ) ; int modifier = getModifiers ( ) ; if ( modifier != 0 ) { sb.append ( java.lang.reflect.Modifier.toString ( modifier ) ) . append ( ' ' ) ; } libcore.reflect.Types.appendGenericType ( sb , getGenericType ( ) ) ; sb.append ( ' ' ) ; sb.append ( getDeclaringClass ( ) . getName ( ) ) . append ( '.' ) . append ( getName ( ) ) ; return sb.toString ( ) ; }

Target:
public java.lang.String toGenericString ( ) { java.lang.StringBuilder sb = new java.lang.StringBuilder ( 80 ) ; java.lang.String modifiers = java.lang.reflect.Modifier.getDeclarationFieldModifiers ( getModifiers ( ) ) ; if ( ! ( modifiers.isEmpty ( ) ) ) { sb.append ( modifiers ) . append ( ' ' ) ; } libcore.reflect.Types.appendGenericType ( sb , getGenericType ( ) ) ; sb.append ( ' ' ) ; sb.append ( getDeclaringClass ( ) . getName ( ) ) . append ( '.' ) . append ( getName ( ) ) ; return sb.toString ( ) ; }
Source:
public void callOnChildSelected ( com.android.ide.common.api.IGraphics gc , com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy parentNode , com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy childNode ) { com.android.ide.common.api.IViewRule rule = loadRule ( parentNode.getNode ( ) ) ; if ( rule != null ) { try { rule.onChildSelected ( gc , parentNode , childNode ) ; } catch ( java.lang.Exception e ) { logError ( "%s.onChildSelected() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } }

Target:
public java.util.List < java.lang.String > callGetSelectionHint ( com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy parentNode , com.android.ide.eclipse.adt.internal.editors.layout.gre.NodeProxy childNode ) { com.android.ide.common.api.IViewRule rule = loadRule ( parentNode.getNode ( ) ) ; if ( rule != null ) { try { return rule.getSelectionHint ( parentNode , childNode ) ; } catch ( java.lang.Exception e ) { logError ( "%getSelectionHint() failed: %s" , rule.getClass ( ) . getSimpleName ( ) , e.toString ( ) ) ; } } return null ; }
Source:
android.net.NetworkCapabilities expectCapabilitiesWith ( int capability , com.android.server.ConnectivityServiceTest.MockNetworkAgent agent ) { com.android.server.ConnectivityServiceTest.CallbackInfo cbi = expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.NETWORK_CAPABILITIES , agent ) ; android.net.NetworkCapabilities nc = ( ( android.net.NetworkCapabilities ) ( cbi.arg ) ) ; org.junit.Assert.assertTrue ( nc.hasCapability ( capability ) ) ; return nc ; }

Target:
android.net.NetworkCapabilities expectCapabilitiesWithout ( int capability , com.android.server.ConnectivityServiceTest.MockNetworkAgent agent , int timeoutMs ) { com.android.server.ConnectivityServiceTest.CallbackInfo cbi = expectCallback ( com.android.server.ConnectivityServiceTest.CallbackState.NETWORK_CAPABILITIES , agent , timeoutMs ) ; android.net.NetworkCapabilities nc = ( ( android.net.NetworkCapabilities ) ( cbi.arg ) ) ; org.junit.Assert.assertFalse ( nc.hasCapability ( capability ) ) ; return nc ; }
Source:
public static android.content.Intent checkIntentAction ( final java.lang.String action ) { final org.hamcrest.Matcher < android.content.Intent > m = new org.hamcrest.BaseMatcher < android.content.Intent > ( ) { @ java.lang.Override public boolean matches ( java.lang.Object item ) { if ( item == null ) return false ; return com.google.common.base.Objects.equal ( ( ( android.content.Intent ) ( item ) ) . getAction ( ) , action ) ; } @ java.lang.Override public void describeTo ( org.hamcrest.Description description ) { description.appendText ( ( ( "Intent: action=\"" + action ) + "\"" ) ) ; } } ; return org.mockito.Mockito.argThat ( m ) ; }

Target:
public static android.content.Intent checkIntentAction ( final java.lang.String action ) { final org.hamcrest.Matcher < android.content.Intent > m = new org.hamcrest.BaseMatcher < android.content.Intent > ( ) { @ java.lang.Override public boolean matches ( java.lang.Object item ) { if ( item == null ) return false ; return com.google.common.base.Objects.equal ( ( ( android.content.Intent ) ( item ) ) . getAction ( ) , action ) ; } @ java.lang.Override public void describeTo ( org.hamcrest.Description description ) { description.appendText ( ( ( "Intent: action=\"" + action ) + "\"" ) ) ; } } ; return org.mockito.hamcrest.MockitoHamcrest.argThat ( m ) ; }
Source:
protected dalvik.system.EmulatedStackFrame.StackFrameAccessor asReturnValueAccessor ( ) { java.lang.Class < ? > rtype = frame.type.rtype ( ) ; argumentIdx = - 2 ; if ( rtype.isPrimitive ( ) ) { frameBuf.position ( ( ( frameBuf.capacity ( ) ) - ( dalvik.system.EmulatedStackFrame.getSize ( rtype ) ) ) ) ; } else { referencesOffset = ( frame.references.length ) - 1 ; } return this ; }

Target:
public dalvik.system.EmulatedStackFrame.StackFrameAccessor attach ( dalvik.system.EmulatedStackFrame stackFrame ) { frame = stackFrame ; frameBuf = java.nio.ByteBuffer.wrap ( frame.stackFrame ) . order ( java.nio.ByteOrder.LITTLE_ENDIAN ) ; numArgs = frame.type.ptypes ( ) . length ; referencesOffset = 0 ; argumentIdx = 0 ; return this ; }
Source:
private static WifiAwareNative.Capabilities getCapabilities ( ) { com.android.server.wifi.aware.WifiAwareNative.Capabilities cap = new com.android.server.wifi.aware.WifiAwareNative.Capabilities ( ) ; cap.maxConcurrentAwareClusters = 1 ; cap.maxPublishes = 2 ; cap.maxSubscribes = 2 ; cap.maxServiceNameLen = 255 ; cap.maxMatchFilterLen = 255 ; cap.maxTotalMatchFilterLen = 255 ; cap.maxServiceSpecificInfoLen = 255 ; cap.maxVsaDataLen = 255 ; cap.maxMeshDataLen = 255 ; cap.maxNdiInterfaces = 1 ; cap.maxNdpSessions = 1 ; cap.maxAppInfoLen = 255 ; cap.maxQueuedTransmitMessages = 6 ; return cap ; }

Target:
private static com.android.server.wifi.aware.Capabilities getCapabilities ( ) { com.android.server.wifi.aware.Capabilities cap = new com.android.server.wifi.aware.Capabilities ( ) ; cap.maxConcurrentAwareClusters = 1 ; cap.maxPublishes = 2 ; cap.maxSubscribes = 2 ; cap.maxServiceNameLen = 255 ; cap.maxMatchFilterLen = 255 ; cap.maxTotalMatchFilterLen = 255 ; cap.maxServiceSpecificInfoLen = 255 ; cap.maxVsaDataLen = 255 ; cap.maxNdiInterfaces = 1 ; cap.maxNdpSessions = 1 ; cap.maxAppInfoLen = 255 ; cap.maxQueuedTransmitMessages = 6 ; return cap ; }
Source:
public void setTargetPhoneAccount ( android.telecom.PhoneAccountHandle accountHandle ) { if ( ! ( java.util.Objects.equals ( mTargetPhoneAccountHandle , accountHandle ) ) ) { mTargetPhoneAccountHandle = accountHandle ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onTargetPhoneAccountChanged ( this ) ; } configureIsWorkCall ( ) ; } checkIfVideoCapable ( ) ; }

Target:
public void setTargetPhoneAccount ( android.telecom.PhoneAccountHandle accountHandle ) { if ( ! ( java.util.Objects.equals ( mTargetPhoneAccountHandle , accountHandle ) ) ) { mTargetPhoneAccountHandle = accountHandle ; for ( com.android.server.telecom.Call.Listener l : mListeners ) { l.onTargetPhoneAccountChanged ( this ) ; } configureCallAttributes ( ) ; } checkIfVideoCapable ( ) ; checkIfRttCapable ( ) ; }
Source:
private void unregisterForSimRecordEvents ( ) { mIccRecords.unregisterForNetworkSelectionModeAutomatic ( this ) ; mIccRecords.unregisterForNewSms ( this ) ; mIccRecords.unregisterForRecordsEvents ( this ) ; mIccRecords.unregisterForRecordsLoaded ( this ) ; }

Target:
private void registerForSimRecordEvents ( ) { com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; if ( r == null ) { return ; } r.registerForNetworkSelectionModeAutomatic ( this , com.android.internal.telephony.gsm.EVENT_SET_NETWORK_AUTOMATIC , null ) ; r.registerForNewSms ( this , com.android.internal.telephony.gsm.EVENT_NEW_ICC_SMS , null ) ; r.registerForRecordsEvents ( this , com.android.internal.telephony.gsm.EVENT_ICC_RECORD_EVENTS , null ) ; r.registerForRecordsLoaded ( this , com.android.internal.telephony.gsm.EVENT_SIM_RECORDS_LOADED , null ) ; }
Source:
static com.android.jack.shrob.spec.ClassSpecification classSpec ( java.lang.String name , boolean hasNameNegator , @ javax.annotation.Nonnull com.android.jack.shrob.spec.ClassTypeSpecification classType , com.android.jack.shrob.spec.AnnotationSpecification annotation , @ javax.annotation.Nonnull com.android.jack.shrob.spec.ModifierSpecification modifier ) { com.android.jack.shrob.spec.NameSpecification nameSpec ; if ( name.equals ( "*" ) ) { nameSpec = com.android.jack.shrob.proguard.GrammarActions.name ( "**" , com.android.jack.shrob.proguard.GrammarActions.FilterSeparator.CLASS ) ; } else { nameSpec = com.android.jack.shrob.proguard.GrammarActions.name ( name , com.android.jack.shrob.proguard.GrammarActions.FilterSeparator.CLASS ) ; } nameSpec.setNegator ( hasNameNegator ) ; com.android.jack.shrob.spec.ClassSpecification classSpec = new com.android.jack.shrob.spec.ClassSpecification ( nameSpec , classType , annotation ) ; classSpec.setModifier ( modifier ) ; return classSpec ; }

Target:
static com.android.jack.shrob.spec.NameSpecification className ( java.lang.String name , boolean hasNameNegator ) { com.android.jack.shrob.spec.NameSpecification nameSpec ; if ( name.equals ( "*" ) ) { nameSpec = com.android.jack.shrob.proguard.GrammarActions.name ( "**" , com.android.jack.shrob.proguard.GrammarActions.FilterSeparator.CLASS ) ; } else { nameSpec = com.android.jack.shrob.proguard.GrammarActions.name ( name , com.android.jack.shrob.proguard.GrammarActions.FilterSeparator.CLASS ) ; } nameSpec.setNegator ( hasNameNegator ) ; return nameSpec ; }
Source:
public boolean canGoBackOrForward ( final int steps ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return canGoBackOrForward ( steps ) ; } } ) ; return ret ; } return mAwContents.canGoBackOrForward ( steps ) ; }

Target:
public boolean pageUp ( final boolean top ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.Boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return pageUp ( top ) ; } } ) ; return ret ; } return mAwContents.pageUp ( top ) ; }
Source:
public android.net.wifi.WifiConfiguration getWifiApConfiguration ( ) { enforceAccessPermission ( ) ; mLog.trace ( "getWifiApConfiguration uid=%" ) . c ( android.os.Binder.getCallingUid ( ) ) . flush ( ) ; return mWifiStateMachine.syncGetWifiApConfiguration ( ) ; }

Target:
public android.net.wifi.WifiConfiguration getWifiApConfiguration ( ) { enforceAccessPermission ( ) ; int uid = android.os.Binder.getCallingUid ( ) ; if ( ! ( mWifiPermissionsUtil.checkConfigOverridePermission ( uid ) ) ) { throw new java.lang.SecurityException ( ( ( ( "App not allowed to read or update stored WiFi Ap config " + "(uid = " ) + uid ) + ")" ) ) ; } mLog.trace ( "getWifiApConfiguration uid=%" ) . c ( uid ) . flush ( ) ; return mWifiStateMachine.syncGetWifiApConfiguration ( ) ; }