Gets the default activity, The default activity is defined as the one
with highest rank i.e. the first one in the list of activities that can
handle the intent.

@return The default activity, <code>null</code> id not activities.

@see #getActivity(int)
435988
public ResolveInfo getDefaultActivity() {
        synchronized (mInstanceLock) {
            ensureConsistentState();
            if (!mActivities.isEmpty()) {
                return mActivities.get(0).resolveInfo;
            }
        }
        return null;
    }
963962
public org.tensorflow.framework.ConfigProto getDefaultSessionConfig() {
    return defaultSessionConfig_ == null ? org.tensorflow.framework.ConfigProto.getDefaultInstance() : defaultSessionConfig_;
  }
39433
public Activity getActivityById(String logicalId) {
        for (Activity activityVO : getActivities()) {
            if (activityVO.getLogicalId().equals(logicalId)) {
                activityVO.setProcessName(getName());
                return activityVO;
            }
        }
        for (Process subProc : this.subprocesses) {
            for (Activity activityVO : subProc.getActivities()) {
                if (activityVO.getLogicalId().equals(logicalId)) {
                    activityVO.setProcessName(getName() + ":" + subProc.getName());
                    return activityVO;
                }
            }
        }

        return null;
    }
1321198
public static String getBaseActivityClassName(Context context) {
		ComponentName activity = getBaseActivity(context);
		if (activity == null) {
			return null;
		}
		return activity.getClassName();
	}
255962
public Activity getCurrentActivity() {
		if(config.commandLogging){
			Log.d(config.commandLoggingTag, "getCurrentActivity()");
		}
		
		return activityUtils.getCurrentActivity(false);
	}
1032781
public String defaultActionHtml() {

        if ((getList() != null) && getList().getAllContent().isEmpty()) {
            // TODO: check the need for this
            refreshList();
        }
        StringBuffer result = new StringBuffer(2048);
        result.append(defaultActionHtmlStart());
        result.append(customHtmlStart());
        result.append(defaultActionHtmlContent());
        result.append(customHtmlEnd());
        result.append(defaultActionHtmlEnd());
        return result.toString();
    }
613673
public Object getActivity(ActivityHandle ah) {
	    if (tracer.isFineEnabled()) {
	    	tracer.fine("get Activity with ActivityHandle "+ah.toString());
	    }
	    // if handle exists then recreate activity
	    return activities.get(ah);
	}
143158
protected function get_activity() {
        if ($this->activity === false) {
            $this->activity = $this->reorder_activities();
        }
        return $this->activity;
    }
990515
public ActivityHandle getActivityHandle(Object arg0) {
        if (arg0 instanceof HttpClientActivityImpl) {
            HttpClientActivityHandle handle = new HttpClientActivityHandle(
                    ((HttpClientActivityImpl) arg0).getSessionId());
            if (activities.containsKey(handle)) {
                return handle;
            }
        }
        return null;
    }
500424
public function getLastActivityAttribute()
    {
        $activity = $this->activity;
        return ($activity instanceof UserActivity) ?
                Carbon::createFromFormat('Y-m-d H:i:s', $activity->last_activity) : null;
    }
1279037
public Object getDefault()
    {
        Object objDefault = super.getDefault();
        if (objDefault == null)
            objDefault = FINISH_START;
        return objDefault;
    }
1184591
function getMainLaunchActivityIndex(activities) {
  var launchActivityIndex = -1;
  activities.some(function(activity, index) {
    if (isLaunchActivity(activity)) {
      launchActivityIndex = index;
      return true;
    }

    return false;
  });

  return launchActivityIndex;
}
746513
public ActivityMonitor getActivityMonitor(){
		if(config.commandLogging){
			Log.d(config.commandLoggingTag, "getActivityMonitor()");
		}
		
		return activityUtils.getActivityMonitor();
	}
1359670
protected function _findActivityActor()
    {
        $user = $this->getObject('user.provider')->fetch($this->created_by);

        return is_null($user) ? false : true;
    }
736754
public Activity getActivityVO(Long pWorkId) {
         if(this.activities == null){
            return null;
        }
        for(int i=0; i<activities.size(); i++){
            if(pWorkId.longValue() == activities.get(i).getId().longValue()){
                return activities.get(i);
            }
        }
        return null;

    }
419709
@Override
    public ActivityInterface getActivityInterface() {
        if (activityInterface == null) {
            activityInterface = new ActivityInterface(apiKey, sharedSecret, transport);
        }
        return activityInterface;
    }
900056
public CmmnActivity createActivity(String activityId) {
    CmmnActivity activity = new CmmnActivity(activityId, caseDefinition);
    if (activityId!=null) {
      namedActivities.put(activityId, activity);
    }
    activity.setParent(this);
    activities.add(activity);
    return activity;
  }