Creates an active hotspot at the specified location.
167275
private void tryBackgroundEnter(boolean focused) {
        if (mBackground == null) {
            mBackground = new RippleBackground(this, mHotspotBounds);
        }

        mBackground.setup(mState.mMaxRadius, mDensity);
        mBackground.enter(focused);
    }
859420
private void createStackAndPushStartActivity(){
		activityStack = new Stack<WeakReference<Activity>>();
		if (activity != null && config.trackActivities){
			WeakReference<Activity> weakReference = new WeakReference<Activity>(activity);
			activity = null;
			activityStack.push(weakReference);
		}
	}
198418
function nodeAtLocation(location) {
        return exports.root.find(function each(n) {
            return n.isAtLocation(location, false);
        });
    }
448671
public static Cursor createImageCursor (Image img, Point hotspot)
    {
        Toolkit tk = Toolkit.getDefaultToolkit();

        // for now, just report the cursor restrictions, then blindly create
        int w = img.getWidth(null);
        int h = img.getHeight(null);
        Dimension d = tk.getBestCursorSize(w, h);
//         int colors = tk.getMaximumCursorColors();
//         Log.debug("Creating custom cursor [desiredSize=" + w + "x" + h +
//                   ", bestSize=" + d.width + "x" + d.height +
//                   ", maxcolors=" + colors + "].");

        // if the passed-in image is smaller, pad it with transparent pixels and use it anyway.
        if (((w < d.width) && (h <= d.height)) ||
            ((w <= d.width) && (h < d.height))) {
            Image padder = GraphicsEnvironment.getLocalGraphicsEnvironment().
                getDefaultScreenDevice().getDefaultConfiguration().
                createCompatibleImage(d.width, d.height, Transparency.BITMASK);
            Graphics g = padder.getGraphics();
            g.drawImage(img, 0, 0, null);
            g.dispose();

            // and reassign the image to the padded image
            img = padder;

            // and adjust the 'best' to cheat the hotspot checking code
            d.width = w;
            d.height = h;
        }

        // make sure the hotspot is valid
        if (hotspot == null) {
            hotspot = new Point(d.width / 2, d.height / 2);
        } else {
            hotspot.x = Math.min(d.width - 1, Math.max(0, hotspot.x));
            hotspot.y = Math.min(d.height - 1, Math.max(0, hotspot.y));
        }

        // and create the cursor
        return tk.createCustomCursor(img, hotspot, "samskivertDnDCursor");
    }
559658
public void
setActive(int len) {
	if (len > array.length - pos) {
		throw new IllegalArgumentException("cannot set active " +
						   "region past end of input");
	}
	end = pos + len;
}
1118491
def activateRandomLocation(self):
    
    self.activePhases = np.array([np.random.random(2)])
    if self.anchoringMethod == "discrete":
      # Need to place the phase in the middle of a cell
      self.activePhases = np.floor(
        self.activePhases * self.cellDimensions)/self.cellDimensions
    self._computeActiveCells()
356574
def send_location(self, *args, **kwargs):
        """"""
        return send_location(*args, **self._merge_overrides(**kwargs)).run()
114690
protected function createCustomLocationUrlAliasBackupTable()
    {
        $schema = new Schema();

        $table = $schema->createTable(static::CUSTOM_ALIAS_BACKUP_TABLE);

        $table->addColumn('id', 'integer', ['autoincrement' => true]);
        $table->addColumn('location_id', 'integer');
        $table->addColumn('path', 'text');
        $table->addColumn('language_code', 'string');
        $table->addColumn('always_available', 'integer');
        $table->addColumn('forwarding', 'integer');
        $table->setPrimaryKey(['id']);

        $queries = $schema->toSql($this->connection->getDatabasePlatform());

        foreach ($queries as $query) {
            $this->connection->exec($query);
        }
    }
702167
public static function create()
	{
		switch (func_num_args()) {
			case 0:
				return new Location();
			case 1:
				return new Location(func_get_arg(0));
			case 2:
				return new Location(func_get_arg(0), func_get_arg(1));
			case 3:
				return new Location(func_get_arg(0), func_get_arg(1), func_get_arg(2));
			case 4:
				return new Location(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3));
			case 5:
				return new Location(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4));
			case 6:
				return new Location(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5));
			case 7:
				return new Location(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5), func_get_arg(6));
			case 8:
				return new Location(func_get_arg(0), func_get_arg(1), func_get_arg(2), func_get_arg(3), func_get_arg(4), func_get_arg(5), func_get_arg(6), func_get_arg(7));
			default:
				throw new \InvalidArgumentException('More than 8 arguments supplied, please be reasonable.');
		}
	}
823674
public function createLocation(string $location, string $match = null) : Location
    {
        return new Location(new Param($location), is_null($match) ? null : new Param($match));
    }
533727
def OnMouse( self, event ):
        """"""
        node = HotMapNavigator.findNodeAtPosition(self.hot_map, event.GetPosition())
        self.SetHighlight( node, event.GetPosition() )
983356
function makeLocation(req, origin) {
  var protocol = !!req.connection.verifyPeer ? 'https://' : 'http://',
      reqOrigin = origin || (protocol + req.headers.host);
  return url.parse(reqOrigin + req.originalUrl);
}
975735
def location(name, uri, default):
    """"""
    from .models import Location
    location = Location(name=name, uri=uri, default=default)
    db.session.add(location)
    db.session.commit()
    click.secho(str(location), fg='green')
985515
public void setMyLocation(final Poi NEW_LOCATION) {
        this.MY_LOCATION.setLocation(NEW_LOCATION.getLocation());
        checkForBlips();
        init(getInnerBounds().width, getInnerBounds().height);
        repaint();
    }
596630
public static void setLocation(HttpServletRequest request, HttpServletResponse response, String location) {
		if(request.getAttribute(IS_INCLUDED_REQUEST_ATTRIBUTE_NAME) == null) {
			// Not included, setHeader directly
			response.setHeader("Location", location);
		} else {
			// Is included, set attribute so top level tag can perform actual setHeader call
			request.setAttribute(LOCATION_REQUEST_ATTRIBUTE_NAME, location);
		}
	}
548475
def createFromURL(urlOfXMLDefinition):
        
        url = urlparse(urlOfXMLDefinition)

        if not url.port:
            if url.scheme.lower() == "https":
                port = 443
            else:
                port = 80
        else:
            port = url.port

        return Wifi(url.hostname, port, url.scheme)
897528
private BrowserSession createBrowserSession(
                                                SIDestinationAddress destinationAddress,
                                                DestinationType destinationType,
                                                SelectionCriteria criteria,
                                                boolean system,
                                                String alternateUser,
                                                boolean gatherMessages)
                    throws SIConnectionUnavailableException, SIConnectionDroppedException,
                    SIErrorException,
                    SITemporaryDestinationNotFoundException,
                    SIResourceException,
                    SINotPossibleInCurrentConfigurationException, SISelectorSyntaxException, SIDiscriminatorSyntaxException
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(
                        tc,
                        "createBrowserSession",
                        new Object[] { destinationAddress, destinationType, criteria, Boolean.valueOf(gatherMessages) });

        // Finding a destination could take some time so we don't have the
        // connection locked (on closed) when we do this.
        DestinationHandler destination = _destinationManager.getDestination(
                                                                            (JsDestinationAddress) destinationAddress, false);

        // Check that this is the correct destination type
        checkDestinationType(destinationType, destinationAddress, destination, system);

        if (destination.getDestinationType() == DestinationType.SERVICE)
        {
            //Cant browse a service destination
            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                SibTr.exit(tc, "createBrowserSession", "cannot browse a service destination");

            throw new SINotPossibleInCurrentConfigurationException(
                            nls.getFormattedMessage(
                                                    "INVALID_DESTINATION_USAGE_ERROR_CWSIP0022",
                                                    new Object[] { destination.getName(),
                                                                  _messageProcessor.getMessagingEngineName() },
                                                    null));
        }

        // Check that this temporary destination was created by this connection.
        checkTemporary(destination, false);

        // Check authority to browse this destination
        // If security is disabled then we'll bypass the check
        checkDestinationAuthority(destination, MessagingSecurityConstants.OPERATION_TYPE_BROWSE, null);

        //if the destination turns out to be pub-sub then that doesn't make sense
        //so we'll just set it back to null
        if (destination.isPubSub())
        {
            destination = null;
        }

        BrowserSession browser = null;

        // Synchronize on the close object, we don't want the connection closing
        // while we try to add the browser.
        synchronized (this)
        {
            // See if this connection has been closed
            checkNotClosed();

            //create a browser session with the given destination
            //if the destination was null - it was pub sub - this will create a browser
            //session which never returns any messages
            browser = new BrowserSessionImpl(destination,
                            criteria,
                            this,
                            destinationAddress,
                            gatherMessages);
            synchronized (_browsers)
            {
                //store a reference
                _browsers.add(browser);
            }
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "createBrowserSession", browser);

        return browser;
    }