auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public java.lang.String getFocusedWindowName ( ) { int id = com.android.hierarchyviewerlib.device.DeviceBridge.getFocusedWindow ( mDevice ) ; com.android.hierarchyviewerlib.device.Window [ ] windows = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindows ( mDevice ) ; for ( com.android.hierarchyviewerlib.device.Window w : windows ) { if ( ( w.getHashCode ( ) ) == id ) return w.getTitle ( ) ; } return null ; }

Target:
public java.lang.String getFocusedWindowName ( ) { int id = com.android.hierarchyviewerlib.device.DeviceBridge.getFocusedWindow ( mDevice ) ; com.android.hierarchyviewerlib.models.Window [ ] windows = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindows ( new com.android.hierarchyviewerlib.device.ViewServerDevice ( mDevice ) , mDevice ) ; for ( com.android.hierarchyviewerlib.models.Window w : windows ) { if ( ( w.getHashCode ( ) ) == id ) return w.getTitle ( ) ; } return null ; }
Source:
private static void handleSystemServerProcess ( com.android.internal.os.ZygoteConnection.Arguments parsedArgs ) throws com.android.internal.os.ZygoteInit.MethodAndArgsCaller { com.android.internal.os.ZygoteInit.closeServerSocket ( ) ; android.os.FileUtils.setUMask ( ( ( android.os.FileUtils.S_IRWXG ) | ( android.os.FileUtils.S_IRWXO ) ) ) ; if ( ( parsedArgs.niceName ) != null ) { java.lang.Process.setArgV0 ( parsedArgs.niceName ) ; } if ( ( parsedArgs.invokeWith ) != null ) { com.android.internal.os.WrapperInit.execApplication ( parsedArgs.invokeWith , parsedArgs.niceName , parsedArgs.targetSdkVersion , null , parsedArgs.remainingArgs ) ; } else { com.android.internal.os.RuntimeInit.zygoteInit ( parsedArgs.targetSdkVersion , parsedArgs.remainingArgs ) ; } }

Target:
private static void handleSystemServerProcess ( com.android.internal.os.ZygoteConnection.Arguments parsedArgs ) throws com.android.internal.os.ZygoteInit.MethodAndArgsCaller { com.android.internal.os.ZygoteInit.closeServerSocket ( ) ; Libcore.os.umask ( ( ( libcore.io.OsConstants.S_IRWXG ) | ( libcore.io.OsConstants.S_IRWXO ) ) ) ; if ( ( parsedArgs.niceName ) != null ) { java.lang.Process.setArgV0 ( parsedArgs.niceName ) ; } if ( ( parsedArgs.invokeWith ) != null ) { com.android.internal.os.WrapperInit.execApplication ( parsedArgs.invokeWith , parsedArgs.niceName , parsedArgs.targetSdkVersion , null , parsedArgs.remainingArgs ) ; } else { com.android.internal.os.RuntimeInit.zygoteInit ( parsedArgs.targetSdkVersion , parsedArgs.remainingArgs ) ; } }
Source:
public void process ( org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit , int unitNumber ) { lookupEnvironment.unitBeingCompleted = unit ; parser.getMethodBodies ( unit ) ; if ( ( unit.scope ) != null ) { unit.scope.faultInTypes ( ) ; unit.scope.verifyMethods ( lookupEnvironment.methodVerifier ( ) ) ; } unit.resolve ( ) ; unit.analyseCode ( ) ; if ( ( options.produceReferenceInfo ) && ( ( unit.scope ) != null ) ) { unit.scope.storeDependencyInfo ( ) ; } unit.finalizeProblems ( ) ; unit.compilationResult.totalUnitsKnown = totalUnits ; lookupEnvironment.unitBeingCompleted = null ; }

Target:
public void process ( org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit , int unitNumber ) { mCurrentUnit = lookupEnvironment.unitBeingCompleted = unit ; parser.getMethodBodies ( unit ) ; if ( ( unit.scope ) != null ) { unit.scope.faultInTypes ( ) ; unit.scope.verifyMethods ( lookupEnvironment.methodVerifier ( ) ) ; } unit.resolve ( ) ; unit.analyseCode ( ) ; if ( ( options.produceReferenceInfo ) && ( ( unit.scope ) != null ) ) { unit.scope.storeDependencyInfo ( ) ; } unit.finalizeProblems ( ) ; unit.compilationResult.totalUnitsKnown = totalUnits ; lookupEnvironment.unitBeingCompleted = null ; }
Source:
public void swap ( ) { super . swap ( ) ; producerPop ( ) ; producerPop ( ) ; producerPush ( ) ; producerPush ( ) ; }

Target:
public void dup2_x2 ( ) { super . dup2_x2 ( ) ; producerStack.pop ( ) ; producerStack.pop ( ) ; producerStack.pop ( ) ; producerStack.pop ( ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; producerStack.push ( producerValue ) ; actualProducerStack.dup2_x2 ( ) ; }
Source:
public void logp ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String msg , java.lang.Object [ ] params ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setParameters ( params ) ; doLog ( lr ) ; }

Target:
public void log ( java.util.logging.Level level , java.lang.String msg , java.lang.Throwable thrown ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setThrown ( thrown ) ; doLog ( lr ) ; }
Source:
public java.lang.String getDeviceId ( java.lang.String callingPackage ) { if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getDeviceId" ) ) ) { return null ; } final com.android.internal.telephony.Phone phone = com.android.internal.telephony.PhoneFactory.getPhone ( 0 ) ; if ( phone != null ) { return phone.getDeviceId ( ) ; } else { return null ; } }

Target:
public void setRadioIndicationUpdateMode ( int subId , int filters , int mode ) { enforceModifyPermission ( ) ; final com.android.internal.telephony.Phone phone = getPhone ( subId ) ; if ( phone == null ) { com.android.phone.PhoneInterfaceManager.loge ( ( "setRadioIndicationUpdateMode fails with invalid subId: " + subId ) ) ; return ; } phone.setRadioIndicationUpdateMode ( filters , mode ) ; }
Source:
private static com.android.sdklib.repository.FullRevision getNewerRevision ( @ com.android.annotations.NonNull com.android.ide.common.repository.GradleCoordinate dependency , com.android.sdklib.repository.FullRevision revision ) { assert ( dependency.getGroupId ( ) ) != null ; assert ( dependency.getArtifactId ( ) ) != null ; if ( ( com.android.ide.common.repository.GradleCoordinate.COMPARE_PLUS_HIGHER.compare ( dependency , new com.android.ide.common.repository.GradleCoordinate ( dependency.getGroupId ( ) , dependency.getArtifactId ( ) , revision.getMajor ( ) , revision.getMinor ( ) , revision.getMicro ( ) ) ) ) < 0 ) { return revision ; } else { return null ; } }

Target:
private static com.android.sdklib.repository.FullRevision getNewerRevision ( @ com.android.annotations.NonNull com.android.ide.common.repository.GradleCoordinate dependency , int major , int minor , int micro ) { assert ( dependency.getGroupId ( ) ) != null ; assert ( dependency.getArtifactId ( ) ) != null ; if ( ( com.android.ide.common.repository.GradleCoordinate.COMPARE_PLUS_HIGHER.compare ( dependency , new com.android.ide.common.repository.GradleCoordinate ( dependency.getGroupId ( ) , dependency.getArtifactId ( ) , major , minor , micro ) ) ) < 0 ) { return new com.android.sdklib.repository.FullRevision ( major , minor , micro ) ; } else { return null ; } }
Source:
public void sendBackgroundScanChannelsRequest ( ) throws java.lang.Exception { android.net.wifi.WifiScanner.ScanSettings requestSettings = createRequest ( channelsToSpec ( 5150 ) , 30000 , 0 , 20 , WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN ) ; com.android.server.wifi.WifiNative.ScanSettings nativeSettings = new com.android.server.wifi.scanner.NativeScanSettingsBuilder ( ) . withBasePeriod ( 30000 ) . withMaxApPerScan ( com.android.server.wifi.scanner.WifiScanningServiceTest.MAX_AP_PER_SCAN ) . withMaxScansToCache ( BackgroundScanScheduler.DEFAULT_MAX_SCANS_TO_BATCH ) . addBucketWithChannels ( 30000 , WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN , 5150 ) . build ( ) ; doSuccessfulBackgroundScan ( requestSettings , nativeSettings ) ; }

Target:
public void sendBackgroundScanChannelsRequest ( ) throws java.lang.Exception { android.net.wifi.WifiScanner.ScanSettings requestSettings = com.android.server.wifi.ScanTestUtil.createRequest ( com.android.server.wifi.ScanTestUtil.channelsToSpec ( 5150 ) , 30000 , 0 , 20 , WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN ) ; com.android.server.wifi.WifiNative.ScanSettings nativeSettings = new com.android.server.wifi.ScanTestUtil.NativeScanSettingsBuilder ( ) . withBasePeriod ( 30000 ) . withMaxApPerScan ( com.android.server.wifi.scanner.WifiScanningServiceTest.MAX_AP_PER_SCAN ) . withMaxScansToCache ( BackgroundScanScheduler.DEFAULT_MAX_SCANS_TO_BATCH ) . addBucketWithChannels ( 30000 , WifiScanner.REPORT_EVENT_AFTER_EACH_SCAN , 5150 ) . build ( ) ; doSuccessfulBackgroundScan ( requestSettings , nativeSettings ) ; }
Source:
public java.util.Set < ? extends javax.lang.model.element.Element > process ( com.google.common.collect.SetMultimap < java.lang.Class < ? extends java.lang.annotation.Annotation > , javax.lang.model.element.Element > elementsByAnnotation ) { for ( javax.lang.model.element.TypeElement type : javax.lang.model.util.ElementFilter.typesIn ( elementsByAnnotation.get ( com.android.dialer.rootcomponentgenerator.annotation.IncludeInDialerRoot.class ) ) ) { generateComponent ( type ) ; } return java.util.Collections.emptySet ( ) ; }

Target:
public java.util.Set < ? extends javax.lang.model.element.Element > process ( com.google.common.collect.SetMultimap < java.lang.Class < ? extends java.lang.annotation.Annotation > , javax.lang.model.element.Element > elementsByAnnotation ) { for ( javax.lang.model.element.TypeElement type : javax.lang.model.util.ElementFilter.typesIn ( elementsByAnnotation.get ( com.android.dialer.inject.IncludeInDialerRoot.class ) ) ) { generateComponent ( type ) ; } return java.util.Collections.emptySet ( ) ; }
Source:
public boolean onPreferenceChange ( android.preference.Preference preference , java.lang.Object newValue ) { if ( preference == ( mAutoSelect ) ) { boolean autoSelect = ( ( java.lang.Boolean ) ( newValue ) ) ; logd ( ( "onPreferenceChange autoSelect: " + ( java.lang.String.valueOf ( autoSelect ) ) ) ) ; selectNetworkAutomatic ( autoSelect ) ; com.android.internal.logging.MetricsLogger.action ( getContext ( ) , MetricsEvent.ACTION_MOBILE_NETWORK_AUTO_SELECT_NETWORK_TOGGLE , autoSelect ) ; return true ; } return false ; }

Target:
public boolean onPreferenceChange ( android.preference.Preference preference , java.lang.Object newValue ) { if ( preference == ( mAutoSelect ) ) { boolean autoSelect = ( ( java.lang.Boolean ) ( newValue ) ) ; if ( com.android.phone.NetworkOperators.DBG ) logd ( ( "onPreferenceChange autoSelect: " + ( java.lang.String.valueOf ( autoSelect ) ) ) ) ; selectNetworkAutomatic ( autoSelect ) ; com.android.internal.logging.MetricsLogger.action ( getContext ( ) , MetricsEvent.ACTION_MOBILE_NETWORK_AUTO_SELECT_NETWORK_TOGGLE , autoSelect ) ; return true ; } return false ; }
Source:
public static void stopDeoptomization ( ) { try { DeoptimizationController.VMDebug.stopMethodTracing ( ) ; if ( ( DeoptimizationController.VMDebug.getMethodTracingMode ( ) ) != 0 ) { throw new java.lang.IllegalStateException ( "Still tracing." ) ; } } catch ( java.lang.Exception exc ) { exc.printStackTrace ( java.lang.System.err ) ; } }

Target:
public static void stopDeoptimization ( ) { try { DeoptimizationController.VMDebug.stopMethodTracing ( ) ; if ( ( DeoptimizationController.VMDebug.getMethodTracingMode ( ) ) != 0 ) { throw new java.lang.IllegalStateException ( "Still tracing." ) ; } } catch ( java.lang.Exception exc ) { exc.printStackTrace ( java.lang.System.err ) ; } }
Source:
private void addAllNamesIntoTrie ( ) { for ( java.util.Map.Entry < java.lang.String , android.icu.impl.TimeZoneNamesImpl.ZNames > entry : _tzNamesMap.entrySet ( ) ) { entry.getValue ( ) . addNamesIntoTrie ( null , entry.getKey ( ) , _namesTrie ) ; } for ( java.util.Map.Entry < java.lang.String , android.icu.impl.TimeZoneNamesImpl.ZNames > entry : _mzNamesMap.entrySet ( ) ) { entry.getValue ( ) . addNamesIntoTrie ( entry.getKey ( ) , null , _namesTrie ) ; } }

Target:
private void addAllNamesIntoTrie ( ) { for ( java.util.Map.Entry < java.lang.String , android.icu.impl.TimeZoneNamesImpl.ZNames > entry : _tzNamesMap.entrySet ( ) ) { entry.getValue ( ) . addAsTimeZoneIntoTrie ( entry.getKey ( ) , _namesTrie ) ; } for ( java.util.Map.Entry < java.lang.String , android.icu.impl.TimeZoneNamesImpl.ZNames > entry : _mzNamesMap.entrySet ( ) ) { entry.getValue ( ) . addAsMetaZoneIntoTrie ( entry.getKey ( ) , _namesTrie ) ; } }
Source:
public void testValidateMultiplePackagesFail ( ) { try { intento.internalIntended ( android.support.test.espresso.intent.matcher.IntentMatchers.toPackage ( "com.google.some.fail" ) , android.support.test.espresso.intent.Intents.times ( 1 ) , com.google.common.collect.Lists.newArrayList ( android.support.test.espresso.intent.IntentsTest.buildVerifiableIntent ( Intent.ACTION_VIEW , "com.google.some.package" , "com.google.android.other" ) ) ) ; throw new java.lang.IllegalStateException ( "Expected to fail on previous line." ) ; } catch ( junit.framework.AssertionFailedError e ) { } }

Target:
public void validateMultiplePackagesFail ( ) { expectedException.expect ( junit.framework.AssertionFailedError.class ) ; intento.internalIntended ( android.support.test.espresso.intent.matcher.IntentMatchers.toPackage ( "com.google.some.fail" ) , android.support.test.espresso.intent.Intents.times ( 1 ) , com.google.common.collect.Lists.newArrayList ( android.support.test.espresso.intent.IntentsTest.buildVerifiableIntent ( Intent.ACTION_VIEW , "com.google.some.package" , "com.google.android.other" ) ) ) ; }
Source:
private java.lang.String parseLicense ( org.w3c.dom.Node packageNode , java.util.Map < java.lang.String , java.lang.String > licenses ) { org.w3c.dom.Node usesLicense = com.android.sdklib.internal.repository.XmlParserUtils.getFirstChild ( packageNode , SdkRepoConstants.NODE_USES_LICENSE ) ; if ( usesLicense != null ) { org.w3c.dom.Node ref = usesLicense.getAttributes ( ) . getNamedItem ( SdkRepoConstants.ATTR_REF ) ; if ( ref != null ) { java.lang.String licenseRef = ref.getNodeValue ( ) ; return licenses.get ( licenseRef ) ; } } return null ; }

Target:
private java.lang.String parseLicense ( org.w3c.dom.Node packageNode , java.util.Map < java.lang.String , java.lang.String > licenses ) { org.w3c.dom.Node usesLicense = com.android.sdklib.internal.repository.packages.PackageParserUtils.findChildElement ( packageNode , SdkRepoConstants.NODE_USES_LICENSE ) ; if ( usesLicense != null ) { org.w3c.dom.Node ref = usesLicense.getAttributes ( ) . getNamedItem ( SdkRepoConstants.ATTR_REF ) ; if ( ref != null ) { java.lang.String licenseRef = ref.getNodeValue ( ) ; return licenses.get ( licenseRef ) ; } } return null ; }
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.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 ) ) ) ; } }

Target:
public void adjustCategory ( com.android.sdkuilib.internal.repository.core.PkgCategory cat , java.lang.Object catKey ) { assert cat instanceof com.android.sdkuilib.internal.repository.core.PkgCategorySource ; assert catKey instanceof com.android.sdklib.internal.repository.sources.SdkSource ; if ( cat instanceof com.android.sdkuilib.internal.repository.core.PkgCategorySource ) { ( ( com.android.sdkuilib.internal.repository.core.PkgCategorySource ) ( cat ) ) . adjustLabel ( ( ( com.android.sdklib.internal.repository.sources.SdkSource ) ( catKey ) ) ) ; } }
Source:
void enableVerboseLogging ( int verbose ) { if ( verbose > 0 ) { com.android.server.wifi.WifiNative.DBG = true ; } else { com.android.server.wifi.WifiNative.DBG = false ; } if ( ( mWificondControl ) != null ) { mWificondControl.enableVerboseLogging ( ( verbose > 0 ? true : false ) ) ; } }

Target:
void enableVerboseLogging ( int verbose ) { if ( verbose > 0 ) { com.android.server.wifi.WifiNative.DBG = true ; } else { com.android.server.wifi.WifiNative.DBG = false ; } if ( ( mWificondControl ) != null ) { mWificondControl.enableVerboseLogging ( ( verbose > 0 ? true : false ) ) ; } if ( ( mSupplicantStaIfaceHal ) != null ) { mSupplicantStaIfaceHal.enableVerboseLogging ( ( verbose > 0 ) ) ; } }
Source:
public void run ( com.android.jack.ir.ast.cfg.JControlFlowGraph t ) { for ( com.android.jack.ir.ast.cfg.JBasicBlock bb : t.getAllBlocksUnordered ( ) ) { for ( com.android.jack.ir.ast.cfg.JBasicBlockElement e : bb.getElements ( true ) ) { if ( e instanceof com.android.jack.ir.ast.cfg.JPhiBlockElement ) { com.android.jack.ir.ast.cfg.JPhiBlockElement phi = ( ( com.android.jack.ir.ast.cfg.JPhiBlockElement ) ( e ) ) ; if ( phi.getLhs ( ) . getUses ( ) . isEmpty ( ) ) { ( ( com.android.jack.ir.ast.cfg.JRegularBasicBlock ) ( bb ) ) . removeElement ( e ) ; } } } } }

Target:
public void run ( com.android.jack.ir.ast.cfg.JControlFlowGraph t ) { for ( com.android.jack.ir.ast.cfg.JBasicBlock bb : t.getAllBlocksUnordered ( ) ) { for ( com.android.jack.ir.ast.cfg.JBasicBlockElement e : bb.getElements ( true ) ) { if ( e instanceof com.android.jack.ir.ast.cfg.JPhiBlockElement ) { com.android.jack.ir.ast.cfg.JPhiBlockElement phi = ( ( com.android.jack.ir.ast.cfg.JPhiBlockElement ) ( e ) ) ; if ( phi.getLhs ( ) . getUses ( ) . isEmpty ( ) ) { ( ( com.android.jack.ir.ast.cfg.JRegularBasicBlock ) ( bb ) ) . removeElement ( e ) ; continue ; } pruneUnreachableDef ( phi ) ; } } } }
Source:
public void requestNetwork ( android.net.NetworkRequest request , int timeoutMs , android.net.ConnectivityManager.NetworkCallback networkCallback , android.os.Handler handler ) { if ( timeoutMs <= 0 ) { throw new java.lang.IllegalArgumentException ( "Non-positive timeoutMs" ) ; } int legacyType = inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ; android.net.ConnectivityManager.CallbackHandler cbHandler = new android.net.ConnectivityManager.CallbackHandler ( handler ) ; requestNetwork ( request , networkCallback , timeoutMs , legacyType , cbHandler ) ; }

Target:
public void requestNetwork ( android.net.NetworkRequest request , android.net.ConnectivityManager.NetworkCallback networkCallback , android.os.Handler handler , int timeoutMs ) { android.net.ConnectivityManager.checkTimeout ( timeoutMs ) ; int legacyType = inferLegacyTypeForNetworkCapabilities ( request.networkCapabilities ) ; android.net.ConnectivityManager.CallbackHandler cbHandler = new android.net.ConnectivityManager.CallbackHandler ( handler ) ; requestNetwork ( request , networkCallback , timeoutMs , legacyType , cbHandler ) ; }
Source:
public final java.nio.MappedByteBuffer force ( ) { if ( ( mapMode ) == ( java.nio.channels.FileChannel.MapMode.READ_WRITE ) ) { try { Libcore.os.msync ( block.toInt ( ) , block.getSize ( ) , java.nio.MS_SYNC ) ; } catch ( libcore.io.ErrnoException errnoException ) { throw new java.lang.AssertionError ( errnoException ) ; } } return this ; }

Target:
public final java.nio.MappedByteBuffer load ( ) { checkIsMapped ( ) ; try { Libcore.os.mlock ( block.toLong ( ) , block.getSize ( ) ) ; Libcore.os.munlock ( block.toLong ( ) , block.getSize ( ) ) ; } catch ( libcore.io.ErrnoException ignored ) { } return this ; }
Source:
private com.android.sdklib.repository.local.LocalPlatformToolPkgInfo scanPlatformTools ( java.io.File ptFolder ) { java.util.Properties props = parseProperties ( new java.io.File ( ptFolder , com.android.SdkConstants.FN_SOURCE_PROP ) ) ; com.android.sdklib.repository.FullRevision rev = com.android.sdklib.internal.repository.packages.PackageParserUtils.getPropertyFullRevision ( props ) ; if ( rev == null ) { return null ; } com.android.sdklib.repository.local.LocalPlatformToolPkgInfo info = new com.android.sdklib.repository.local.LocalPlatformToolPkgInfo ( this , ptFolder , props , rev ) ; return info ; }

Target:
private com.android.sdklib.repository.local.LocalPlatformToolPkgInfo scanPlatformTools ( java.io.File ptFolder ) { java.util.Properties props = parseProperties ( new java.io.File ( ptFolder , com.android.SdkConstants.FN_SOURCE_PROP ) ) ; com.android.sdklib.repository.FullRevision rev = com.android.sdklib.internal.repository.packages.PackageParserUtils.getPropertyFull ( props , PkgProps.PKG_REVISION ) ; if ( rev == null ) { return null ; } com.android.sdklib.repository.local.LocalPlatformToolPkgInfo info = new com.android.sdklib.repository.local.LocalPlatformToolPkgInfo ( this , ptFolder , props , rev ) ; return info ; }
Source:
public void testPackageSubstitution_withDot ( ) { org.mockito.Mockito.when ( mAttr.getValue ( ) ) . thenReturn ( ".ActivityOne" ) ; assertNotNull ( new com.android.manifmerger.XmlAttribute ( mXmlElement , mAttr ) ) ; org.mockito.Mockito.verify ( mAttr ) . setValue ( "com.foo.bar.ActivityOne" ) ; }

Target:
public void testPackageSubstitution_withDot ( ) { org.mockito.Mockito.when ( mAttr.getValue ( ) ) . thenReturn ( ".ActivityOne" ) ; assertNotNull ( new com.android.manifmerger.XmlAttribute ( mXmlElement , mAttr , new com.android.manifmerger.AttributeModel ( "ActivityOne" , true , null , null ) ) ) ; org.mockito.Mockito.verify ( mAttr ) . setValue ( "com.foo.bar.ActivityOne" ) ; }
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 ) ; } configureCallAttributes ( ) ; } 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 updateProjectionMatrices ( int w , int h ) { mWidth = w ; mHeight = h ; android.renderscript.Matrix4f proj = new android.renderscript.Matrix4f ( ) ; proj.loadOrthoWindow ( mWidth , mHeight ) ; android.renderscript.Matrix4f projNorm = getProjectionNormalized ( mWidth , mHeight ) ; com.android.galaxy4.ScriptField_VpConsts.Item i = new com.android.galaxy4.ScriptField_VpConsts.Item ( ) ; i.MVP = projNorm ; i.scaleSize = ( mDensityDPI ) / 240.0F ; mPvConsts.set ( i , 0 , true ) ; mScript.invoke_positionParticles ( ) ; }

Target:
private void updateProjectionMatrices ( int w , int h ) { mWidth = w ; mHeight = h ; android.renderscript.Matrix4f proj = new android.renderscript.Matrix4f ( ) ; proj.loadOrthoWindow ( mWidth , mHeight ) ; android.renderscript.Matrix4f projNorm = getProjectionNormalized ( mWidth , mHeight ) ; com.android.galaxy4.ScriptField_VpConsts.Item i = new com.android.galaxy4.ScriptField_VpConsts.Item ( ) ; i.MVP = projNorm ; i.scaleSize = ( mDensityDPI ) / 120.0F ; mPvConsts.set ( i , 0 , true ) ; mScript.invoke_positionParticles ( ) ; }
Source:
public void maybeMarkCapabilitiesRestricted ( ) { final boolean hasUnrestrictedCapabilities = ( ( mNetworkCapabilities ) & ( android.net.NetworkCapabilities.UNRESTRICTED_CAPABILITIES ) ) != 0 ; final boolean hasRestrictedCapabilities = ( ( mNetworkCapabilities ) & ( android.net.NetworkCapabilities.RESTRICTED_CAPABILITIES ) ) != 0 ; if ( hasRestrictedCapabilities && ( ! hasUnrestrictedCapabilities ) ) { removeCapability ( android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED ) ; } }

Target:
public void maybeMarkCapabilitiesRestricted ( ) { final boolean forceRestrictedCapability = ( ( mNetworkCapabilities ) & ( android.net.NetworkCapabilities.FORCE_RESTRICTED_CAPABILITIES ) ) != 0 ; final boolean hasUnrestrictedCapabilities = ( ( mNetworkCapabilities ) & ( android.net.NetworkCapabilities.UNRESTRICTED_CAPABILITIES ) ) != 0 ; final boolean hasRestrictedCapabilities = ( ( mNetworkCapabilities ) & ( android.net.NetworkCapabilities.RESTRICTED_CAPABILITIES ) ) != 0 ; if ( forceRestrictedCapability || ( hasRestrictedCapabilities && ( ! hasUnrestrictedCapabilities ) ) ) { removeCapability ( android.net.NetworkCapabilities.NET_CAPABILITY_NOT_RESTRICTED ) ; } }
Source:
com.android.internal.telephony.CallerInfo markAsVoiceMail ( ) { mIsVoiceMail = true ; try { java.lang.String voiceMailLabel = android.telephony.TelephonyManager.getDefault ( ) . getVoiceMailAlphaTag ( ) ; phoneNumber = voiceMailLabel ; } catch ( java.lang.SecurityException se ) { android.util.Log.e ( com.android.internal.telephony.CallerInfo.TAG , "Cannot access VoiceMail." , se ) ; } return this ; }

Target:
com.android.internal.telephony.CallerInfo markAsVoiceMail ( ) { mIsVoiceMail = true ; try { java.lang.String voiceMailLabel = android.telephony.TelephonyManager.getDefault ( ) . getVoiceMailAlphaTag ( ) ; phoneNumber = voiceMailLabel ; } catch ( java.lang.SecurityException se ) { android.telephony.Rlog.e ( com.android.internal.telephony.CallerInfo.TAG , "Cannot access VoiceMail." , se ) ; } return this ; }
Source:
public void selectionChanged ( org.eclipse.ui.IWorkbenchPart part , org.eclipse.jface.viewers.ISelection selection ) { if ( ! ( part instanceof com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor ) ) { mCanvasViewer.setSelection ( selection ) ; } }

Target:
public void selectionChanged ( org.eclipse.ui.IWorkbenchPart part , org.eclipse.jface.viewers.ISelection selection ) { if ( ! ( part instanceof com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor ) ) { if ( part instanceof org.eclipse.ui.part.PageBookView ) { org.eclipse.ui.part.PageBookView pbv = ( ( org.eclipse.ui.part.PageBookView ) ( part ) ) ; org.eclipse.ui.part.IPage currentPage = pbv.getCurrentPage ( ) ; if ( currentPage instanceof com.android.ide.eclipse.adt.internal.editors.layout.gle2.OutlinePage ) { com.android.ide.eclipse.adt.internal.editors.layout.gle2.LayoutCanvas canvas = getCanvasControl ( ) ; if ( ( canvas != null ) && ( ( canvas.getOutlinePage ( ) ) != currentPage ) ) { return ; } } } mCanvasViewer.setSelection ( selection ) ; } }
Source:
protected final java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > doGetConfiguredResources ( com.android.ide.eclipse.adt.internal.resources.configurations.FolderConfiguration referenceConfig ) { java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > map = new java.util.EnumMap < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > ( com.android.resources.ResourceType.class ) ; for ( com.android.resources.ResourceType key : com.android.resources.ResourceType.values ( ) ) { map.put ( key , getConfiguredResource ( key , referenceConfig ) ) ; } return map ; }

Target:
protected final java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > doGetConfiguredResources ( com.android.ide.common.resources.configuration.FolderConfiguration referenceConfig ) { java.util.Map < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > map = new java.util.EnumMap < com.android.resources.ResourceType , java.util.Map < java.lang.String , com.android.ide.common.rendering.api.ResourceValue > > ( com.android.resources.ResourceType.class ) ; for ( com.android.resources.ResourceType key : com.android.resources.ResourceType.values ( ) ) { map.put ( key , getConfiguredResource ( key , referenceConfig ) ) ; } return map ; }
Source:
private java.lang.String formatNsn ( java.lang.String number , com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat numberFormat , java.lang.String carrierCode ) { java.util.List < com.google.i18n.phonenumbers.Phonemetadata.NumberFormat > intlNumberFormats = metadata.intlNumberFormats ( ) ; java.util.List < com.google.i18n.phonenumbers.Phonemetadata.NumberFormat > availableFormats = ( ( ( intlNumberFormats.size ( ) ) == 0 ) || ( numberFormat == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat.NATIONAL ) ) ) ? metadata.numberFormats ( ) : metadata.intlNumberFormats ( ) ; com.google.i18n.phonenumbers.Phonemetadata.NumberFormat formattingPattern = chooseFormattingPatternForNumber ( availableFormats , number ) ; return formattingPattern == null ? number : formatNsnUsingPattern ( number , formattingPattern , numberFormat , carrierCode ) ; }

Target:
private java.lang.String formatNsn ( java.lang.String number , com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata , com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat numberFormat , java.lang.CharSequence carrierCode ) { java.util.List < com.google.i18n.phonenumbers.Phonemetadata.NumberFormat > intlNumberFormats = metadata.intlNumberFormats ( ) ; java.util.List < com.google.i18n.phonenumbers.Phonemetadata.NumberFormat > availableFormats = ( ( ( intlNumberFormats.size ( ) ) == 0 ) || ( numberFormat == ( com.google.i18n.phonenumbers.PhoneNumberUtil.PhoneNumberFormat.NATIONAL ) ) ) ? metadata.numberFormats ( ) : metadata.intlNumberFormats ( ) ; com.google.i18n.phonenumbers.Phonemetadata.NumberFormat formattingPattern = chooseFormattingPatternForNumber ( availableFormats , number ) ; return formattingPattern == null ? number : formatNsnUsingPattern ( number , formattingPattern , numberFormat , carrierCode ) ; }
Source:
public void rootsChanged ( com.intellij.openapi.roots.ModuleRootEvent event ) { java.util.Map < com.intellij.openapi.fileEditor.impl.VirtualFile , com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessProvider.AccessStatus > files = com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessProvider.getRegisteredFiles ( project ) ; for ( com.intellij.openapi.fileEditor.impl.VirtualFile each : new java.util.ArrayList < com.intellij.openapi.fileEditor.impl.VirtualFile > ( files.keySet ( ) ) ) { if ( isProjectFile ( each ) ) { files.remove ( each ) ; com.intellij.ui.EditorNotifications.getInstance ( myProject ) . updateNotifications ( each ) ; } } }

Target:
private com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessProvider.UnlockOption askToUnlock ( @ org.jetbrains.annotations.NotNull java.util.List < com.intellij.openapi.fileEditor.impl.VirtualFile > files ) { com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessDialog dialog = new com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessDialog ( myProject , files ) ; if ( ! ( dialog.showAndGet ( ) ) ) return null ; return dialog.getUnlockOption ( ) ; }
Source:
public void selectTransientAppFilter ( java.lang.String appName ) { assert ( mTable.getDisplay ( ) . getThread ( ) ) == ( java.lang.Thread.currentThread ( ) ) ; com.android.ddmuilib.logcat.LogCatFilter f = findTransientAppFilter ( appName ) ; if ( f == null ) { f = createTransientAppFilter ( appName ) ; mLogCatFilters.add ( f ) ; } selectFilterAt ( mLogCatFilters.indexOf ( f ) ) ; }

Target:
public void selectTransientAppFilter ( java.lang.String appName ) { assert ( mTable.getDisplay ( ) . getThread ( ) ) == ( java.lang.Thread.currentThread ( ) ) ; com.android.ddmlib.logcat.LogCatFilter f = findTransientAppFilter ( appName ) ; if ( f == null ) { f = createTransientAppFilter ( appName ) ; mLogCatFilters.add ( f ) ; com.android.ddmuilib.logcat.LogCatFilterData fd = new com.android.ddmuilib.logcat.LogCatFilterData ( f ) ; fd.setTransient ( ) ; mLogCatFilterData.put ( f , fd ) ; } selectFilterAt ( mLogCatFilters.indexOf ( f ) ) ; }
Source:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , short [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
synchronized void nScriptSetTimeZone ( long script , byte [ ] timeZone , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetTimeZone ( curCon , script , timeZone , mUseInc ) ; }
Source:
public static java.security.KeyPairGenerator getInstance ( java.lang.String algorithm , java.lang.String provider ) throws java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException { sun.security.jca.GetInstance.Instance instance = sun.security.jca.GetInstance.getInstance ( "KeyPairGenerator" , java.security.KeyPairGeneratorSpi.class , algorithm , provider ) ; return java.security.KeyPairGenerator.getInstance ( instance , algorithm ) ; }

Target:
public static java.security.KeyPairGenerator getInstance ( java.lang.String algorithm , java.lang.String provider ) throws java.security.NoSuchAlgorithmException , java.security.NoSuchProviderException { sun.security.jca.Providers.checkBouncyCastleDeprecation ( provider , "KeyPairGenerator" , algorithm ) ; sun.security.jca.GetInstance.Instance instance = sun.security.jca.GetInstance.getInstance ( "KeyPairGenerator" , java.security.KeyPairGeneratorSpi.class , algorithm , provider ) ; return java.security.KeyPairGenerator.getInstance ( instance , algorithm ) ; }
Source:
public final int startActivitiesInPackage ( int uid , android.content.Intent [ ] intents , java.lang.String [ ] resolvedTypes , android.os.IBinder resultTo , android.os.Bundle options ) { final int callingUid = android.os.Binder.getCallingUid ( ) ; if ( ( callingUid != 0 ) && ( callingUid != ( java.lang.Process.myUid ( ) ) ) ) { throw new java.lang.SecurityException ( "startActivityInPackage only available to the system" ) ; } int ret = mMainStack.startActivities ( null , uid , intents , resolvedTypes , resultTo , options , android.os.UserId.getUserId ( uid ) ) ; return ret ; }

Target:
final int startActivitiesInPackage ( int uid , android.content.Intent [ ] intents , java.lang.String [ ] resolvedTypes , android.os.IBinder resultTo , android.os.Bundle options , int userId ) { userId = handleIncomingUser ( android.os.Binder.getCallingPid ( ) , android.os.Binder.getCallingUid ( ) , userId , false , true , "startActivityInPackage" , null ) ; int ret = mMainStack.startActivities ( null , uid , intents , resolvedTypes , resultTo , options , userId ) ; return ret ; }
Source:
public synchronized void setMaximumFractionDigits ( int value ) { properties.setMaximumFractionDigits ( value ) ; refreshFormatter ( ) ; }

Target:
public synchronized void setMaximumFractionDigits ( int value ) { int min = properties.getMinimumFractionDigits ( ) ; if ( ( min >= 0 ) && ( min > value ) ) { properties.setMinimumFractionDigits ( value ) ; } properties.setMaximumFractionDigits ( value ) ; refreshFormatter ( ) ; }
Source:
private static void addApiCoverage ( com.android.cts.apicoverage.ApiCoverage apiCoverage , java.io.File testApk ) throws java.io.IOException , org.xml.sax.SAXException { org.xml.sax.XMLReader xmlReader = org.xml.sax.helpers.XMLReaderFactory.createXMLReader ( ) ; com.android.cts.apicoverage.DexDepsXmlHandler dexDepsXmlHandler = new com.android.cts.apicoverage.DexDepsXmlHandler ( apiCoverage ) ; xmlReader.setContentHandler ( dexDepsXmlHandler ) ; java.lang.Process process = new java.lang.ProcessBuilder ( "dexdeps" , "--format=xml" , testApk.getPath ( ) ) . start ( ) ; xmlReader.parse ( new org.xml.sax.InputSource ( process.getInputStream ( ) ) ) ; }

Target:
private static void addApiCoverage ( com.android.cts.apicoverage.ApiCoverage apiCoverage , java.io.File testApk ) throws java.io.IOException , org.xml.sax.SAXException { org.xml.sax.XMLReader xmlReader = org.xml.sax.helpers.XMLReaderFactory.createXMLReader ( ) ; com.android.cts.apicoverage.DexDepsXmlHandler dexDepsXmlHandler = new com.android.cts.apicoverage.DexDepsXmlHandler ( apiCoverage ) ; xmlReader.setContentHandler ( dexDepsXmlHandler ) ; java.lang.Process process = new java.lang.ProcessBuilder ( "out/host/linux-x86/bin/dexdeps" , "--format=xml" , testApk.getPath ( ) ) . start ( ) ; xmlReader.parse ( new org.xml.sax.InputSource ( process.getInputStream ( ) ) ) ; }
Source:
public android.security.KeyPairGeneratorSpec build ( ) { return new android.security.KeyPairGeneratorSpec ( mContext , mKeystoreAlias , mKeyType , mKeySize , mSpec , mSubjectDN , mSerialNumber , mStartDate , mEndDate , mFlags ) ; }

Target:
public android.security.KeyPairGeneratorSpec build ( ) { return new android.security.KeyPairGeneratorSpec ( mContext , mKeystoreAlias , mKeyType , mKeySize , mSpec , mSubjectDN , mSerialNumber , mStartDate , mEndDate , mFlags , mKeyValidityStart , mKeyValidityForOriginationEnd , mKeyValidityForConsumptionEnd , mPurposes , mDigest , mPadding , mBlockMode , mMinSecondsBetweenOperations , mMaxUsesPerBoot , mUserAuthenticators , mUserAuthenticationValidityDurationSeconds ) ; }
Source:
protected void createPages ( ) { mAvdManagerPage = new com.android.sdkuilib.internal.repository.AvdManagerPage ( mPagesRootComposite , mUpdaterData ) ; mLocalPackagePage = new com.android.sdkuilib.internal.repository.LocalPackagesPage ( mPagesRootComposite , mUpdaterData ) ; mRemotePackagesPage = new com.android.sdkuilib.internal.repository.RemotePackagesPage ( mPagesRootComposite , mUpdaterData ) ; addPage ( mAvdManagerPage , "Virtual devices" ) ; addPage ( mLocalPackagePage , "Installed packages" ) ; addPage ( mRemotePackagesPage , "Available packages" ) ; addExtraPages ( ) ; }

Target:
protected void createPages ( ) { mAvdManagerPage = new com.android.sdkuilib.internal.repository.AvdManagerPage ( mPagesRootComposite , org.eclipse.swt.SWT.BORDER , mUpdaterData ) ; mLocalPackagePage = new com.android.sdkuilib.internal.repository.LocalPackagesPage ( mPagesRootComposite , org.eclipse.swt.SWT.BORDER , mUpdaterData ) ; mRemotePackagesPage = new com.android.sdkuilib.internal.repository.RemotePackagesPage ( mPagesRootComposite , org.eclipse.swt.SWT.BORDER , mUpdaterData ) ; addPage ( mAvdManagerPage , "Virtual devices" ) ; addPage ( mLocalPackagePage , "Installed packages" ) ; addPage ( mRemotePackagesPage , "Available packages" ) ; addExtraPages ( ) ; }
Source:
public com.android.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.dx.io.instructions.CodeInput in ) throws java.io.EOFException { int baseAddress = ( in.baseAddressForCursor ( ) ) - 1 ; int size = in.read ( ) ; int firstKey = in.readInt ( ) ; int [ ] targets = new int [ size ] ; for ( int i = 0 ; i < size ; i ++ ) { targets [ i ] = baseAddress + ( in.readInt ( ) ) ; } return new com.android.dx.io.instructions.PackedSwitchPayloadDecodedInstruction ( this , opcodeUnit , firstKey , targets ) ; }

Target:
public com.android.dx.io.instructions.DecodedInstruction decode ( int opcodeUnit , com.android.dx.io.instructions.CodeInput in ) throws java.io.EOFException { return com.android.dx.io.instructions.InstructionCodec.decodeRegisterList ( this , opcodeUnit , in ) ; }
Source:
protected void fillRtTestInfos ( ) { rtTestInfos.add ( TEST001 ) ; rtTestInfos.add ( TEST002 ) ; rtTestInfos.add ( TEST003 ) ; rtTestInfos.add ( TEST004 ) ; rtTestInfos.add ( TEST005 ) ; rtTestInfos.add ( TEST006 ) ; }

Target:
protected void fillRtTestInfos ( ) { rtTestInfos.add ( TEST001 ) ; rtTestInfos.add ( TEST002 ) ; rtTestInfos.add ( TEST003 ) ; rtTestInfos.add ( TEST004 ) ; rtTestInfos.add ( TEST005 ) ; rtTestInfos.add ( TEST006 ) ; rtTestInfos.add ( TEST007 ) ; }
Source:
public void addDefaultVerifications ( ) { addVerification ( android.hardware.cts.helpers.sensorverification.EventGapVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.EventOrderingVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.FrequencyVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.JitterVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.MagnitudeVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.MeanVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.StandardDeviationVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.EventTimestampSynchronizationVerification.getDefault ( mEnvironment ) ) ; }

Target:
public void addDefaultVerifications ( ) { addVerification ( android.hardware.cts.helpers.sensorverification.EventGapVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.EventOrderingVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.FrequencyVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.JitterVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.MagnitudeVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.MeanVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.StandardDeviationVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.EventTimestampSynchronizationVerification.getDefault ( mEnvironment ) ) ; addVerification ( android.hardware.cts.helpers.sensorverification.InitialValueVerification.getDefault ( mEnvironment ) ) ; }
Source:
public void updateSAD ( java.lang.String keyValuePairs , boolean supportMultiChannels ) { mService.getAudioManager ( ) . setParameters ( keyValuePairs ) ; mService.setCecOption ( Constants.OPTION_CEC_SUPPORT_MULTICHANNELS , ( supportMultiChannels ? Constants.ENABLED : Constants.DISABLED ) ) ; }

Target:
void setSystemAudioMode ( boolean on , boolean updateSetting ) { com.android.server.hdmi.HdmiLogger.debug ( "System Audio Mode change[old:%b new:%b]" , mSystemAudioActivated , on ) ; if ( updateSetting ) { mService.writeBooleanSetting ( Global.HDMI_SYSTEM_AUDIO_ENABLED , on ) ; } updateAudioManagerForSystemAudio ( on ) ; synchronized ( mLock ) { if ( ( mSystemAudioActivated ) != on ) { mSystemAudioActivated = on ; mService.announceSystemAudioModeChange ( on ) ; } } }
Source:
public void run ( ) { if ( ! ( com.android.hierarchyviewerlib.device.DeviceBridge.isViewServerRunning ( device ) ) ) { if ( ! ( com.android.hierarchyviewerlib.device.DeviceBridge.startViewServer ( device ) ) ) { com.android.ddmlib.Log.e ( com.android.hierarchyviewerlib.HierarchyViewerDirector.TAG , ( "Unable to debug device " + device ) ) ; return ; } } com.android.hierarchyviewerlib.device.Window [ ] windows = com.android.hierarchyviewerlib.device.DeviceBridge.loadWindows ( device ) ; com.android.hierarchyviewerlib.models.DeviceSelectionModel.getModel ( ) . updateDevice ( device , windows ) ; }

Target:
public void run ( ) { com.android.hierarchyviewerlib.device.IHvDevice hvDevice = getHvDevice ( device ) ; int focusedWindow = hvDevice.getFocusedWindow ( ) ; com.android.hierarchyviewerlib.models.DeviceSelectionModel.getModel ( ) . updateFocusedWindow ( hvDevice , focusedWindow ) ; }
Source:
public static float $noinline$returnFloat ( ) { if ( Main.doThrow ) throw new java.lang.Error ( "" ) ; int i = 0 ; for ( ; i < 200000000 ; ++ i ) { } while ( ! ( Main.ensureInOsrCode ( ) ) ) { } java.lang.System.out.println ( i ) ; return 42.2F ; }

Target:
public static float $noinline$returnFloat ( ) { if ( Main.doThrow ) throw new java.lang.Error ( "" ) ; int i = 0 ; for ( ; i < 200000 ; ++ i ) { } while ( ! ( Main.ensureInOsrCode ( ) ) ) { } java.lang.System.out.println ( i ) ; return 42.2F ; }
Source:
protected void addImportedResource ( @ javax.annotation.Nonnull com.android.sched.vfs.InputVFile file , @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session , @ javax.annotation.Nonnull java.lang.String currentPath ) { com.android.sched.vfs.VPath path = new com.android.sched.vfs.VPath ( currentPath , com.android.jack.resource.ResourceOrMetaImporter.VPATH_SEPARATOR ) ; com.android.jack.meta.Meta newMeta = new com.android.jack.meta.Meta ( path , file , new com.android.jack.meta.MetaImporter.StandaloneMetaLocation ( file ) ) ; session.addMeta ( newMeta ) ; }

Target:
protected void addImportedResource ( @ javax.annotation.Nonnull com.android.sched.vfs.InputVFile file , @ javax.annotation.Nonnull com.android.jack.ir.ast.JSession session , @ javax.annotation.Nonnull java.lang.String currentPath , @ javax.annotation.Nonnull com.android.sched.util.location.Location resourceDirLocation ) { com.android.sched.vfs.VPath path = new com.android.sched.vfs.VPath ( currentPath , com.android.jack.resource.ResourceOrMetaImporter.VPATH_SEPARATOR ) ; com.android.jack.meta.Meta newMeta = new com.android.jack.meta.Meta ( path , file , new com.android.jack.meta.MetaImporter.StandaloneMetaLocation ( resourceDirLocation , path ) ) ; session.addMeta ( newMeta ) ; }
Source:
public void importFromJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.ImportHelper loader , @ javax.annotation.Nonnull java.lang.Object node ) { com.android.jack.ir.ast.JNewInstance jNewInstance = ( ( com.android.jack.ir.ast.JNewInstance ) ( node ) ) ; receiverType = com.android.jack.jayce.v0002.io.ImportHelper.getSignatureName ( jNewInstance.getReceiverType ( ) ) ; methodArgsType = com.android.jack.jayce.v0002.io.ImportHelper.getMethodArgsSignature ( jNewInstance.getMethodId ( ) ) ; args = loader.load ( com.android.jack.jayce.v0002.nodes.NExpression.class , jNewInstance.getArgs ( ) ) ; sourceInfo = loader.load ( jNewInstance.getSourceInfo ( ) ) ; }

Target:
public void importFromJast ( @ javax.annotation.Nonnull com.android.jack.jayce.v0002.io.ImportHelper loader , @ javax.annotation.Nonnull java.lang.Object node ) { com.android.jack.ir.ast.JNewInstance jNewInstance = ( ( com.android.jack.ir.ast.JNewInstance ) ( node ) ) ; receiverType = com.android.jack.jayce.v0002.io.ImportHelper.getSignatureName ( jNewInstance.getReceiverType ( ) ) ; methodArgsType = com.android.jack.jayce.v0002.io.ImportHelper.getMethodArgsSignature ( jNewInstance.getMethodIdWide ( ) ) ; args = loader.load ( com.android.jack.jayce.v0002.nodes.NExpression.class , jNewInstance.getArgs ( ) ) ; sourceInfo = loader.load ( jNewInstance.getSourceInfo ( ) ) ; }
Source:
public static < T > org.hamcrest.org.hamcrest.Matcher < java.lang.Iterable < T > > hasItem ( T element ) { return org.hamcrest.collection.IsCollectionContaining.hasItem ( element ) ; }

Target:
public static < T > org.hamcrest.core.AnyOf < T > anyOf ( org.hamcrest.org.hamcrest.Matcher < T > first , org.hamcrest.org.hamcrest.Matcher < ? extends T > second , org.hamcrest.org.hamcrest.Matcher < ? extends T > third , org.hamcrest.org.hamcrest.Matcher < ? extends T > fourth , org.hamcrest.org.hamcrest.Matcher < ? extends T > fifth , org.hamcrest.org.hamcrest.Matcher < ? extends T > sixth ) { return org.hamcrest.core.AnyOf.< org.hamcrest.T > anyOf ( first , second , third , fourth , fifth , sixth ) ; }
Source:
public void testRoamFailureDueToBssidSet ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( false , false , false ) ; int connectedNetworkId = 5 ; executeAndValidateConnectSequence ( connectedNetworkId , false , false ) ; org.mockito.Mockito.when ( mSupplicantStaNetworkMock.setBssid ( org.mockito.Matchers.anyString ( ) ) ) . thenReturn ( false ) ; android.net.wifi.WifiConfiguration roamingConfig = new android.net.wifi.WifiConfiguration ( ) ; roamingConfig.networkId = connectedNetworkId ; roamingConfig.getNetworkSelectionStatus ( ) . setNetworkSelectionBSSID ( "45:34:23:23:ab:ed" ) ; assertFalse ( mDut.roamToNetwork ( roamingConfig ) ) ; }

Target:
public void testRoamToSameNetwork ( ) throws java.lang.Exception { executeAndValidateInitializationSequence ( ) ; executeAndValidateRoamSequence ( true ) ; }