text:
package android.view;

import com.francetelecom.rd.stubs.annotation.CallBackRegister;

@com.francetelecom.rd.stubs.annotation.ClassDone(0)
@com.francetelecom.rd.stubs.annotation.Accumulator("stubAccumulator")
@com.francetelecom.rd.stubs.annotation.DumpHierarchy(value = "android.hierarchy.View", noAbstract = true)
public class View
  implements android.view.accessibility.AccessibilityEventSource, KeyEvent.Callback, android.graphics.drawable.Drawable.Callback, android.graphics.drawable.Drawable.Callback2
{
  // Classes

  public static interface OnLayoutChangeListener
  {
    // Methods
	@com.francetelecom.rd.stubs.annotation.CallBack("OnLayoutChangeListener")
    public void onLayoutChange(View arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, int arg9);
  }
  public static class DragShadowBuilder
  {
    // Constructors

    public DragShadowBuilder(View arg1){
    }
    public DragShadowBuilder(){
    }
    // Methods

    public final View getView(){
      return (View) null;
    }
    @com.francetelecom.rd.stubs.annotation.CallBack("DragShadowBuilder")
    public void onProvideShadowMetrics(android.graphics.Point arg1, android.graphics.Point arg2){
    }
    @com.francetelecom.rd.stubs.annotation.CallBack("DragShadowBuilder")
    public void onDrawShadow(android.graphics.Canvas arg1){
    }
  }
  public static class MeasureSpec
  {
    // Fields

    public static final int UNSPECIFIED = 0;

    public static final int EXACTLY = 1073741824;

    public static final int AT_MOST = -2147483648;

    // Constructors

    public MeasureSpec(){
    }
    // Methods

    public static java.lang.String toString(int arg1){
      return (java.lang.String) null;
    }
    public static int getSize(int arg1){
      return 0;
    }
    public static int getMode(int arg1){
      return 0;
    }
    public static int makeMeasureSpec(int arg1, int arg2){
      return 0;
    }
  }
  public static interface OnKeyListener
  {
    // Methods

    @com.francetelecom.rd.stubs.annotation.CallBack("onKey")
    public boolean onKey(View arg1, int arg2, KeyEvent arg3);
  }
  public static interface OnTouchListener
  {
    // Methods

    @com.francetelecom.rd.stubs.annotation.CallBack("onTouch")
    public boolean onTouch(View arg1, MotionEvent arg2);
  }
  public static interface OnHoverListener
  {
    // Methods
	@com.francetelecom.rd.stubs.annotation.CallBack("OnHoverListener")
    public boolean onHover(View arg1, MotionEvent arg2);
  }
  public static interface OnGenericMotionListener
  {
    // Methods

    @com.francetelecom.rd.stubs.annotation.CallBack("OnGenericMotionListener")
    public boolean onGenericMotion(View arg1, MotionEvent arg2);
  }
  public static interface OnLongClickListener
  {
    // Methods

    @com.francetelecom.rd.stubs.annotation.CallBack("onLongClick")
    public boolean onLongClick(View arg1);
  }
  public static interface OnDragListener
  {
    // Methods
	@com.francetelecom.rd.stubs.annotation.CallBack("OnDragListener")
    public boolean onDrag(View arg1, DragEvent arg2);
  }
  public static interface OnFocusChangeListener
  {
    // Methods

    @com.francetelecom.rd.stubs.annotation.CallBack("onFocusChange")
    public void onFocusChange(View arg1, boolean arg2);
  }
  public static interface OnClickListener
  {
    // Methods

    @com.francetelecom.rd.stubs.annotation.CallBack("onClick")
    public void onClick(View arg1);
  }
  public static interface OnCreateContextMenuListener
  {
    // Methods

    @com.francetelecom.rd.stubs.annotation.CallBack("onCreateContextMenu")
    public void onCreateContextMenu(ContextMenu arg1, View arg2, ContextMenu.ContextMenuInfo arg3);
  }
  public static interface OnSystemUiVisibilityChangeListener
  {
    // Methods

	@com.francetelecom.rd.stubs.annotation.CallBack("OnSystemUiVisibilityChangeListener")
    public void onSystemUiVisibilityChange(int arg1);
  }
  public static interface OnAttachStateChangeListener
  {
    // Methods

	@com.francetelecom.rd.stubs.annotation.CallBack("OnAttachStateChangeListener")
    public void onViewAttachedToWindow(View arg1);
	@com.francetelecom.rd.stubs.annotation.CallBack("OnAttachStateChangeListener")
    public void onViewDetachedFromWindow(View arg1);
  }
  public static class BaseSavedState
    extends AbsSavedState  {
    // Fields

    public static final android.os.Parcelable.Creator<View.BaseSavedState> CREATOR = null;

    // Constructors

    public BaseSavedState(android.os.Parcel arg1){
      super((android.os.Parcelable) null);
    }
    public BaseSavedState(android.os.Parcelable arg1){
      super((android.os.Parcelable) null);
    }
  }
  public static class AccessibilityDelegate
  {
    // Constructors

    public AccessibilityDelegate(){
    }
    // Methods

    public boolean dispatchPopulateAccessibilityEvent(View arg1, android.view.accessibility.AccessibilityEvent arg2){
      return false;
    }
    @com.francetelecom.rd.stubs.annotation.CallBack("AccessibilityDelegate")
    public void onInitializeAccessibilityEvent(View arg1, android.view.accessibility.AccessibilityEvent arg2){
    }
    @com.francetelecom.rd.stubs.annotation.CallBack("AccessibilityDelegate")
    public boolean onRequestSendAccessibilityEvent(ViewGroup arg1, View arg2, android.view.accessibility.AccessibilityEvent arg3){
      return false;
    }
    public void sendAccessibilityEvent(View arg1, int arg2){
    }
    public void sendAccessibilityEventUnchecked(View arg1, android.view.accessibility.AccessibilityEvent arg2){
    }
    @com.francetelecom.rd.stubs.annotation.CallBack("AccessibilityDelegate")
    public void onPopulateAccessibilityEvent(View arg1, android.view.accessibility.AccessibilityEvent arg2){
    }
    @com.francetelecom.rd.stubs.annotation.CallBack("AccessibilityDelegate")
    public void onInitializeAccessibilityNodeInfo(View arg1, android.view.accessibility.AccessibilityNodeInfo arg2){
    }
  }
  // Fields

  protected static final java.lang.String VIEW_LOG_TAG = (java.lang.String) null;

  public static final int NO_ID = -1;

  public static final int VISIBLE = 0;

  public static final int INVISIBLE = 4;

  public static final int GONE = 8;

  public static final int DRAWING_CACHE_QUALITY_LOW = 524288;

  public static final int DRAWING_CACHE_QUALITY_HIGH = 1048576;

  public static final int DRAWING_CACHE_QUALITY_AUTO = 0;

  public static final int SCROLLBARS_INSIDE_OVERLAY = 0;

  public static final int SCROLLBARS_INSIDE_INSET = 16777216;

  public static final int SCROLLBARS_OUTSIDE_OVERLAY = 33554432;

  public static final int SCROLLBARS_OUTSIDE_INSET = 50331648;

  public static final int KEEP_SCREEN_ON = 67108864;

  public static final int SOUND_EFFECTS_ENABLED = 134217728;

  public static final int HAPTIC_FEEDBACK_ENABLED = 268435456;

  public static final int LAYOUT_DIRECTION_LTR = 0;

  public static final int LAYOUT_DIRECTION_RTL = 1073741824;

  public static final int LAYOUT_DIRECTION_INHERIT = -2147483648;

  public static final int LAYOUT_DIRECTION_LOCALE = -1073741824;

  public static final int FOCUSABLES_ALL = 0;

  public static final int FOCUSABLES_TOUCH_MODE = 1;

  public static final int FOCUS_BACKWARD = 1;

  public static final int FOCUS_FORWARD = 2;

  public static final int FOCUS_LEFT = 17;

  public static final int FOCUS_UP = 33;

  public static final int FOCUS_RIGHT = 66;

  public static final int FOCUS_DOWN = 130;

  public static final int MEASURED_SIZE_MASK = 16777215;

  public static final int MEASURED_STATE_MASK = -16777216;

  public static final int MEASURED_HEIGHT_STATE_SHIFT = 16;

  public static final int MEASURED_STATE_TOO_SMALL = 16777216;

  protected static final int [] EMPTY_STATE_SET = null;

  protected static final int [] ENABLED_STATE_SET = null;

  protected static final int [] FOCUSED_STATE_SET = null;

  protected static final int [] SELECTED_STATE_SET = null;

  protected static final int [] PRESSED_STATE_SET = null;

  protected static final int [] WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] ENABLED_FOCUSED_STATE_SET = null;

  protected static final int [] ENABLED_SELECTED_STATE_SET = null;

  protected static final int [] ENABLED_WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] FOCUSED_SELECTED_STATE_SET = null;

  protected static final int [] FOCUSED_WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] SELECTED_WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] ENABLED_FOCUSED_SELECTED_STATE_SET = null;

  protected static final int [] ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] PRESSED_WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] PRESSED_SELECTED_STATE_SET = null;

  protected static final int [] PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] PRESSED_FOCUSED_STATE_SET = null;

  protected static final int [] PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] PRESSED_FOCUSED_SELECTED_STATE_SET = null;

  protected static final int [] PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] PRESSED_ENABLED_STATE_SET = null;

  protected static final int [] PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] PRESSED_ENABLED_SELECTED_STATE_SET = null;

  protected static final int [] PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] PRESSED_ENABLED_FOCUSED_STATE_SET = null;

  protected static final int [] PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET = null;

  protected static final int [] PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET = null;

  protected static final int [] PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET = null;

  protected android.view.animation.Animation mCurrentAnimation;

  protected java.lang.Object mTag;

  public static final int OVER_SCROLL_ALWAYS = 0;

  public static final int OVER_SCROLL_IF_CONTENT_SCROLLS = 1;

  public static final int OVER_SCROLL_NEVER = 2;

  public static final int SYSTEM_UI_FLAG_VISIBLE = 0;

  public static final int SYSTEM_UI_FLAG_LOW_PROFILE = 1;

  public static final int SYSTEM_UI_FLAG_HIDE_NAVIGATION = 2;

  public static final int STATUS_BAR_HIDDEN = 1;

  public static final int STATUS_BAR_VISIBLE = 0;

  public static final int STATUS_BAR_DISABLE_EXPAND = 65536;

  public static final int STATUS_BAR_DISABLE_NOTIFICATION_ICONS = 131072;

  public static final int STATUS_BAR_DISABLE_NOTIFICATION_ALERTS = 262144;

  public static final int STATUS_BAR_DISABLE_NOTIFICATION_TICKER = 524288;

  public static final int STATUS_BAR_DISABLE_SYSTEM_INFO = 1048576;

  public static final int STATUS_BAR_DISABLE_HOME = 2097152;

  public static final int STATUS_BAR_DISABLE_BACK = 4194304;

  public static final int STATUS_BAR_DISABLE_CLOCK = 8388608;

  public static final int STATUS_BAR_DISABLE_RECENT = 16777216;

  @java.lang.Deprecated
  public static final int STATUS_BAR_DISABLE_NAVIGATION = 18874368;

  public static final int PUBLIC_STATUS_BAR_VISIBILITY_MASK = 65535;

  public static final int SYSTEM_UI_CLEARABLE_FLAGS = 3;

  public static final int FIND_VIEWS_WITH_TEXT = 1;

  public static final int FIND_VIEWS_WITH_CONTENT_DESCRIPTION = 2;

  protected ViewParent mParent;

  protected ViewGroup.LayoutParams mLayoutParams;

  protected int mLeft;

  protected int mRight;

  protected int mTop;

  protected int mBottom;

  protected int mScrollX;

  protected int mScrollY;

  protected int mPaddingLeft;

  protected int mPaddingRight;

  protected int mPaddingTop;

  protected int mPaddingBottom;

  @ViewDebug.ExportedProperty(prefix = "", category = "padding", mapping = {}, resolveId = false, flagMapping = {}, deepExport = false, indexMapping = {})
  protected int mUserPaddingRight;

  @ViewDebug.ExportedProperty(prefix = "", category = "padding", mapping = {}, resolveId = false, flagMapping = {}, deepExport = false, indexMapping = {})
  protected int mUserPaddingBottom;

  @ViewDebug.ExportedProperty(prefix = "", category = "padding", mapping = {}, resolveId = false, flagMapping = {}, deepExport = false, indexMapping = {})
  protected int mUserPaddingLeft;

  protected View.OnFocusChangeListener mOnFocusChangeListener;

  protected View.OnClickListener mOnClickListener;

  protected View.OnLongClickListener mOnLongClickListener;

  protected View.OnCreateContextMenuListener mOnCreateContextMenuListener;

  protected android.content.Context mContext;

  public boolean mCachingFailed;

  public static final int DRAG_FLAG_GLOBAL = 1;

  public static final int SCROLLBAR_POSITION_DEFAULT = 0;

  public static final int SCROLLBAR_POSITION_LEFT = 1;

  public static final int SCROLLBAR_POSITION_RIGHT = 2;

  public static final int LAYER_TYPE_NONE = 0;

  public static final int LAYER_TYPE_SOFTWARE = 1;

  public static final int LAYER_TYPE_HARDWARE = 2;

  public static final int TEXT_DIRECTION_INHERIT = 0;

  public static final int TEXT_DIRECTION_FIRST_STRONG = 1;

  public static final int TEXT_DIRECTION_ANY_RTL = 2;

  public static final int TEXT_DIRECTION_LTR = 3;

  public static final int TEXT_DIRECTION_RTL = 4;

  protected static int DEFAULT_TEXT_DIRECTION;

  protected final InputEventConsistencyVerifier mInputEventConsistencyVerifier = (InputEventConsistencyVerifier) null;

  public static android.util.Property<View, java.lang.Float> ALPHA;

  public static android.util.Property<View, java.lang.Float> TRANSLATION_X;

  public static android.util.Property<View, java.lang.Float> TRANSLATION_Y;

  public static android.util.Property<View, java.lang.Float> X;

  public static android.util.Property<View, java.lang.Float> Y;

  public static android.util.Property<View, java.lang.Float> ROTATION;

  public static android.util.Property<View, java.lang.Float> ROTATION_X;

  public static android.util.Property<View, java.lang.Float> ROTATION_Y;

  public static android.util.Property<View, java.lang.Float> SCALE_X;

  public static android.util.Property<View, java.lang.Float> SCALE_Y;

  // Constructors

  @com.francetelecom.rd.stubs.annotation.CallBackRegister("onCreate")
  public View(android.content.Context arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBackRegister("onCreate")
  public View(android.content.Context arg1, android.util.AttributeSet arg2){
  }
  @com.francetelecom.rd.stubs.annotation.CallBackRegister("onCreate")
  public View(android.content.Context arg1, android.util.AttributeSet arg2, int arg3){
  }
  View(){
  }
  // Methods

  public final ViewParent getParent(){
    return (ViewParent) null;
  }
  public android.content.res.Resources getResources(){
    return (android.content.res.Resources) null;
  }
  public void debug(){
  }
  protected void debug(int arg1){
  }
  public final android.content.Context getContext(){
    return (android.content.Context) null;
  }
  public int getId(){
    return 0;
  }
  public boolean isOpaque(){
    return false;
  }
  public android.os.Handler getHandler(){
    return (android.os.Handler) null;
  }
  public static View inflate(android.content.Context arg1, int arg2, ViewGroup arg3){
    return (View) null;
  }
  public final View findViewById(int arg1){
    return (View) null;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onRestoreInstanceState(android.os.Parcelable arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected android.os.Parcelable onSaveInstanceState(){
    return (android.os.Parcelable) null;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onConfigurationChanged(android.content.res.Configuration arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean onKeyDown(int arg1, KeyEvent arg2){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean onKeyLongPress(int arg1, KeyEvent arg2){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean onKeyUp(int arg1, KeyEvent arg2){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean onKeyMultiple(int arg1, int arg2, KeyEvent arg3){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean onKeyShortcut(int arg1, KeyEvent arg2){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean onTouchEvent(MotionEvent arg1){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean onTrackballEvent(MotionEvent arg1){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean onGenericMotionEvent(MotionEvent arg1){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void onWindowFocusChanged(boolean arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onAttachedToWindow(){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onDetachedFromWindow(){
  }
  public boolean hasWindowFocus(){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean dispatchKeyEvent(KeyEvent arg1){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean dispatchKeyShortcutEvent(KeyEvent arg1){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean dispatchTouchEvent(MotionEvent arg1){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean dispatchTrackballEvent(MotionEvent arg1){
    return false;
  }
  public boolean dispatchGenericMotionEvent(MotionEvent arg1){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent arg1){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreateContextMenu")
  protected void onCreateContextMenu(ContextMenu arg1){
  }
  public ActionMode startActionMode(@CallBackRegister("actionMode") ActionMode.Callback arg1){
    return (ActionMode) null;
  }
  public boolean post(@com.francetelecom.rd.stubs.annotation.CallBackRegister("run") java.lang.Runnable arg1){
    return false;
  }
  public boolean postDelayed(@com.francetelecom.rd.stubs.annotation.CallBackRegister("run") java.lang.Runnable arg1, long arg2){
    return false;
  }
  public boolean removeCallbacks(java.lang.Runnable arg1){
    return false;
  }
  public java.lang.Object getTag(){
    return (java.lang.Object) null;
  }
  public java.lang.Object getTag(int arg1){
    return (java.lang.Object) null;
  }
  public boolean isEnabled(){
    return false;
  }
  protected boolean setFrame(int arg1, int arg2, int arg3, int arg4){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onMeasure(int arg1, int arg2){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onLayout(boolean arg1, int arg2, int arg3, int arg4, int arg5){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onAnimationStart(){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onAnimationEnd(){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void setVisibility(int arg1){
  }
  public boolean hasFocus(){
    return false;
  }
  public boolean dispatchDragEvent(DragEvent arg1){
    return false;
  }
  public void dispatchSystemUiVisibilityChanged(int arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void dispatchConfigurationChanged(android.content.res.Configuration arg1){
  }
  public void layout(int arg1, int arg2, int arg3, int arg4){
  }
  public View focusSearch(int arg1){
    return (View) null;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean dispatchUnhandledMove(View arg1, int arg2){
    return false;
  }
  public void clearFocus(){
  }
  public View findFocus(){
    return (View) null;
  }
  public boolean hasFocusable(){
    return false;
  }
  public void addFocusables(java.util.ArrayList<View> arg1, int arg2){
  }
  public void addFocusables(java.util.ArrayList<View> arg1, int arg2, int arg3){
  }
  public void findViewsWithText(java.util.ArrayList<View> arg1, java.lang.CharSequence arg2, int arg3){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void dispatchWindowFocusChanged(boolean arg1){
  }
  public void addTouchables(java.util.ArrayList<View> arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void dispatchDisplayHint(int arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void dispatchVisibilityChanged(View arg1, int arg2){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void dispatchWindowVisibilityChanged(int arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean dispatchKeyEventPreIme(KeyEvent arg1){
    return false;
  }
  protected boolean dispatchHoverEvent(MotionEvent arg1){
    return false;
  }
  protected boolean hasHoveredChild(){
    return false;
  }
  protected boolean dispatchGenericPointerEvent(MotionEvent arg1){
    return false;
  }
  protected boolean dispatchGenericFocusedEvent(MotionEvent arg1){
    return false;
  }
  public final boolean requestFocus(){
    return false;
  }
  public final boolean requestFocus(int arg1){
    return false;
  }
  public boolean requestFocus(int arg1, android.graphics.Rect arg2){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void dispatchStartTemporaryDetach(){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void dispatchFinishTemporaryDetach(){
  }
  public void setPadding(int arg1, int arg2, int arg3, int arg4){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void dispatchSaveInstanceState(android.util.SparseArray<android.os.Parcelable> arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void dispatchRestoreInstanceState(android.util.SparseArray<android.os.Parcelable> arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void dispatchDraw(android.graphics.Canvas arg1){
  }
  protected void dispatchGetDisplayList(){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void dispatchSetSelected(boolean arg1){
  }
  protected void dispatchSetActivated(boolean arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void dispatchSetPressed(boolean arg1){
  }
  protected View findViewTraversal(int arg1){
    return (View) null;
  }
  protected View findViewWithTagTraversal(java.lang.Object arg1){
    return (View) null;
  }
  protected View findViewByPredicateTraversal(com.android.internal.util.Predicate<View> arg1, View arg2){
    return (View) null;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected boolean dispatchConsistencyCheck(int arg1){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected boolean onConsistencyCheck(int arg1){
    return false;
  }
  public boolean gatherTransparentRegion(android.graphics.Region arg1){
    return false;
  }
  protected boolean fitSystemWindows(android.graphics.Rect arg1){
    return false;
  }
  protected void drawableStateChanged(){
  }
  public void jumpDrawablesToCurrentState(){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected int [] onCreateDrawableState(int arg1){
    return (int []) null;
  }
  protected void resetResolvedLayoutDirection(){
  }
  protected void resetResolvedTextDirection(){
  }
  public void requestLayout(){
  }
  public boolean isLayoutRequested(){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBackRegister("onCreateContextMenu")
  public void createContextMenu(ContextMenu arg1){
  }
  public void setKeepScreenOn(boolean arg1){
  }
  public float getX(){
    return 0.0f;
  }
  public float getY(){
    return 0.0f;
  }
  public void restoreHierarchyState(android.util.SparseArray<android.os.Parcelable> arg1){
  }
  public void saveHierarchyState(android.util.SparseArray<android.os.Parcelable> arg1){
  }
  public KeyEvent.DispatcherState getKeyDispatcherState(){
    return (KeyEvent.DispatcherState) null;
  }
  public void setOnCreateContextMenuListener(@com.francetelecom.rd.stubs.annotation.CallBackRegister("onCreateContextMenu") View.OnCreateContextMenuListener arg1){
  }
  public boolean showContextMenu(){
    return false;
  }
  public boolean showContextMenu(float arg1, float arg2, int arg3){
    return false;
  }
  public void setId(int arg1){
  }
  public void setTag(java.lang.Object arg1){
  }
  public void setTag(int arg1, java.lang.Object arg2){
  }
  public final void setTop(int arg1){
  }
  public void invalidate(android.graphics.Rect arg1){
  }
  public void invalidate(int arg1, int arg2, int arg3, int arg4){
  }
  public void invalidate(){
  }
  public void setBackgroundDrawable(android.graphics.drawable.Drawable arg1){
  }
  @com.francetelecom.rd.stubs.annotation.Code("arg1.onClick(this);")
  public void setOnClickListener(View.OnClickListener arg1){
  }
  public int getPaddingTop(){
    return 0;
  }
  public int getPaddingBottom(){
    return 0;
  }
  public int getPaddingLeft(){
    return 0;
  }
  public int getPaddingRight(){
    return 0;
  }
  public ViewGroup.LayoutParams getLayoutParams(){
    return (ViewGroup.LayoutParams) null;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public final void measure(int arg1, int arg2){
  }
  public final int getMeasuredHeight(){
    return 0;
  }
  protected final void setMeasuredDimension(int arg1, int arg2){
  }
  public final int getWidth(){
    return 0;
  }
  public void setTranslationX(float arg1){
  }
  public void setScaleY(float arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public int getVisibility(){
    return 0;
  }
  public void setContentDescription(java.lang.CharSequence arg1){
  }
  public void setAlpha(float arg1){
  }
  public final int getMeasuredWidth(){
    return 0;
  }
  public ViewPropertyAnimator animate(){
    return (ViewPropertyAnimator) null;
  }
  public boolean isFocused(){
    return false;
  }
  public boolean isRootNamespace(){
    return false;
  }
  public final boolean isFocusable(){
    return false;
  }
  public void refreshDrawableState(){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean onFilterTouchEventForSecurity(MotionEvent arg1){
    return false;
  }
  public android.view.animation.Animation getAnimation(){
    return (android.view.animation.Animation) null;
  }
  public void setDrawingCacheEnabled(boolean arg1){
  }
  public boolean isHardwareAccelerated(){
    return false;
  }
  public void buildDrawingCache(){
  }
  public void buildDrawingCache(boolean arg1){
  }
  public long getDrawingTime(){
    return 0l;
  }
  public DisplayList getDisplayList(){
    return (DisplayList) null;
  }
  public int getLayerType(){
    return 0;
  }
  public final int getHeight(){
    return 0;
  }
  public float getAlpha(){
    return 0.0f;
  }
  public void computeScroll(){
  }
  public android.graphics.Bitmap getDrawingCache(){
    return (android.graphics.Bitmap) null;
  }
  public android.graphics.Bitmap getDrawingCache(boolean arg1){
    return (android.graphics.Bitmap) null;
  }
  public boolean canHaveDisplayList(){
    return false;
  }
  public android.graphics.Matrix getMatrix(){
    return (android.graphics.Matrix) null;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected boolean onSetAlpha(int arg1){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void draw(android.graphics.Canvas arg1){
  }
  public void setSelected(boolean arg1){
  }
  public void setActivated(boolean arg1){
  }
  public void setPressed(boolean arg1){
  }
  public final View findViewWithTag(java.lang.Object arg1){
    return (View) null;
  }
  public final View findViewByPredicate(com.android.internal.util.Predicate<View> arg1){
    return (View) null;
  }
  public void setLayoutParams(ViewGroup.LayoutParams arg1){
  }
  public void setAnimation(android.view.animation.Animation arg1){
  }
  public int getSolidColor(){
    return 0;
  }
  protected static java.lang.String debugIndent(int arg1){
    return (java.lang.String) null;
  }
  public void clearAnimation(){
  }
  public final int [] getDrawableState(){
    return (int []) null;
  }
  protected static int [] mergeDrawableStates(int [] arg1, int [] arg2){
    return (int []) null;
  }
  @ViewDebug.ExportedProperty(prefix = "", category = "layout", mapping = {@ViewDebug.IntToString(from = 0, to = "LTR"), @ViewDebug.IntToString(from = 1073741824, to = "RTL"), @ViewDebug.IntToString(from = -2147483648, to = "INHERIT"), @ViewDebug.IntToString(from = -1073741824, to = "LOCALE")}, resolveId = false, flagMapping = {}, deepExport = false, indexMapping = {})
  public int getLayoutDirection(){
    return 0;
  }
  public int getTextDirection(){
    return 0;
  }
  public void setScrollContainer(boolean arg1){
  }
  protected void initializeFadingEdge(android.content.res.TypedArray arg1){
  }
  public int getVerticalFadingEdgeLength(){
    return 0;
  }
  public void setFadingEdgeLength(int arg1){
  }
  public int getHorizontalFadingEdgeLength(){
    return 0;
  }
  public int getVerticalScrollbarWidth(){
    return 0;
  }
  protected int getHorizontalScrollbarHeight(){
    return 0;
  }
  protected void initializeScrollbars(android.content.res.TypedArray arg1){
  }
  public void setVerticalScrollbarPosition(int arg1){
  }
  public int getVerticalScrollbarPosition(){
    return 0;
  }
  public void setOnFocusChangeListener(@com.francetelecom.rd.stubs.annotation.CallBackRegister("onFocusChange") View.OnFocusChangeListener arg1){
  }
  public void addOnLayoutChangeListener(@com.francetelecom.rd.stubs.annotation.CallBackRegister("OnLayoutChangeListener") View.OnLayoutChangeListener arg1){
  }
  public void removeOnLayoutChangeListener(View.OnLayoutChangeListener arg1){
  }
  public void addOnAttachStateChangeListener(@com.francetelecom.rd.stubs.annotation.CallBackRegister("OnAttachStateChangeListener") View.OnAttachStateChangeListener arg1){
  }
  public void removeOnAttachStateChangeListener(View.OnAttachStateChangeListener arg1){
  }
  public View.OnFocusChangeListener getOnFocusChangeListener(){
    return (View.OnFocusChangeListener) null;
  }
  @com.francetelecom.rd.stubs.annotation.Code("arg1.onLongClick(this);")
  public void setOnLongClickListener(View.OnLongClickListener arg1){
  }
  public boolean performClick(){
    return false;
  }
  public boolean performLongClick(){
    return false;
  }
  protected boolean performButtonActionOnTouchDown(MotionEvent arg1){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.Code("arg1.onKey(this, com.francetelecom.rd.stubs.Generator.intValue(), new KeyEvent(com.francetelecom.rd.stubs.Generator.token));")
  public void setOnKeyListener(View.OnKeyListener arg1){
  }
  @com.francetelecom.rd.stubs.annotation.Code("arg1.onTouch(this, new MotionEvent(com.francetelecom.rd.stubs.Generator.token));")
  public void setOnTouchListener(View.OnTouchListener arg1){
  }
  public void setOnGenericMotionListener(@com.francetelecom.rd.stubs.annotation.CallBackRegister("OnGenericMotionListener") View.OnGenericMotionListener arg1){
  }
  public void setOnHoverListener(@com.francetelecom.rd.stubs.annotation.CallBackRegister("OnHoverListener") View.OnHoverListener arg1){
  }
  public void setOnDragListener(@com.francetelecom.rd.stubs.annotation.CallBackRegister("OnDragListener") View.OnDragListener arg1){
  }
  public boolean requestRectangleOnScreen(android.graphics.Rect arg1){
    return false;
  }
  public boolean requestRectangleOnScreen(android.graphics.Rect arg1, boolean arg2){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onFocusChanged(boolean arg1, int arg2, android.graphics.Rect arg3){
  }
  public void sendAccessibilityEvent(int arg1){
  }
  public void sendAccessibilityEventUnchecked(android.view.accessibility.AccessibilityEvent arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent arg1){
  }
  public android.view.accessibility.AccessibilityNodeInfo createAccessibilityNodeInfo(){
    return (android.view.accessibility.AccessibilityNodeInfo) null;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void onInitializeAccessibilityNodeInfo(android.view.accessibility.AccessibilityNodeInfo arg1){
  }
  public void setAccessibilityDelegate(@com.francetelecom.rd.stubs.annotation.CallBackRegister("AccessibilityDelegate") View.AccessibilityDelegate arg1){
  }
  public int getAccessibilityViewId(){
    return 0;
  }
  public int getAccessibilityWindowId(){
    return 0;
  }
  public java.lang.CharSequence getContentDescription(){
    return (java.lang.CharSequence) null;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onFocusLost(){
  }
  public int getDrawingCacheQuality(){
    return 0;
  }
  public void setDrawingCacheQuality(int arg1){
  }
  public boolean getKeepScreenOn(){
    return false;
  }
  public int getNextFocusLeftId(){
    return 0;
  }
  public void setNextFocusLeftId(int arg1){
  }
  public int getNextFocusRightId(){
    return 0;
  }
  public void setNextFocusRightId(int arg1){
  }
  public int getNextFocusUpId(){
    return 0;
  }
  public void setNextFocusUpId(int arg1){
  }
  public int getNextFocusDownId(){
    return 0;
  }
  public void setNextFocusDownId(int arg1){
  }
  public int getNextFocusForwardId(){
    return 0;
  }
  public void setNextFocusForwardId(int arg1){
  }
  public boolean isShown(){
    return false;
  }
  public void setFitsSystemWindows(boolean arg1){
  }
  public boolean fitsSystemWindows(){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void setEnabled(boolean arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void setFocusable(boolean arg1){
  }
  public void setFocusableInTouchMode(boolean arg1){
  }
  public void setSoundEffectsEnabled(boolean arg1){
  }
  public boolean isSoundEffectsEnabled(){
    return false;
  }
  public void setHapticFeedbackEnabled(boolean arg1){
  }
  public boolean isHapticFeedbackEnabled(){
    return false;
  }
  @RemotableViewMethod
  public void setLayoutDirection(int arg1){
  }
  @ViewDebug.ExportedProperty(prefix = "", category = "layout", mapping = {@ViewDebug.IntToString(from = 0, to = "RESOLVED_DIRECTION_LTR"), @ViewDebug.IntToString(from = 1073741824, to = "RESOLVED_DIRECTION_RTL")}, resolveId = false, flagMapping = {}, deepExport = false, indexMapping = {})
  public int getResolvedLayoutDirection(){
    return 0;
  }
  public int getResolvedLayoutDirection(android.graphics.drawable.Drawable arg1){
    return 0;
  }
  @ViewDebug.ExportedProperty(prefix = "", category = "layout", mapping = {}, resolveId = false, flagMapping = {}, deepExport = false, indexMapping = {})
  public boolean isLayoutRtl(){
    return false;
  }
  public void setWillNotDraw(boolean arg1){
  }
  public boolean willNotDraw(){
    return false;
  }
  public void setWillNotCacheDrawing(boolean arg1){
  }
  public boolean willNotCacheDrawing(){
    return false;
  }
  public boolean isClickable(){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void setClickable(boolean arg1){
  }
  public boolean isLongClickable(){
    return false;
  }
  public void setLongClickable(boolean arg1){
  }
  public boolean isPressed(){
    return false;
  }
  public boolean isSaveEnabled(){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void setSaveEnabled(boolean arg1){
  }
  public boolean getFilterTouchesWhenObscured(){
    return false;
  }
  public void setFilterTouchesWhenObscured(boolean arg1){
  }
  public boolean isSaveFromParentEnabled(){
    return false;
  }
  public void setSaveFromParentEnabled(boolean arg1){
  }
  public final boolean isFocusableInTouchMode(){
    return false;
  }
  public java.util.ArrayList<View> getFocusables(int arg1){
    return (java.util.ArrayList) null;
  }
  public java.util.ArrayList<View> getTouchables(){
    return (java.util.ArrayList) null;
  }
  public final boolean requestFocusFromTouch(){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void onStartTemporaryDetach(){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void onFinishTemporaryDetach(){
  }
  public final boolean dispatchPointerEvent(MotionEvent arg1){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onVisibilityChanged(View arg1, int arg2){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onDisplayHint(int arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onWindowVisibilityChanged(int arg1){
  }
  public int getWindowVisibility(){
    return 0;
  }
  public void getWindowVisibleDisplayFrame(android.graphics.Rect arg1){
  }
  public boolean isInTouchMode(){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean onKeyPreIme(int arg1, KeyEvent arg2){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean onCheckIsTextEditor(){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public android.view.inputmethod.InputConnection onCreateInputConnection(android.view.inputmethod.EditorInfo arg1){
    return (android.view.inputmethod.InputConnection) null;
  }
  public boolean checkInputConnectionProxy(View arg1){
    return false;
  }
  protected ContextMenu.ContextMenuInfo getContextMenuInfo(){
    return (ContextMenu.ContextMenuInfo) null;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean onHoverEvent(MotionEvent arg1){
    return false;
  }
  @ViewDebug.ExportedProperty(prefix = "", category = "", mapping = {}, resolveId = false, flagMapping = {}, deepExport = false, indexMapping = {})
  public boolean isHovered(){
    return false;
  }
  public void setHovered(boolean arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void onHoverChanged(boolean arg1){
  }
  public boolean isInScrollingContainer(){
    return false;
  }
  public void cancelLongPress(){
  }
  public void setTouchDelegate(TouchDelegate arg1){
  }
  public TouchDelegate getTouchDelegate(){
    return (TouchDelegate) null;
  }
  public void bringToFront(){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onScrollChanged(int arg1, int arg2, int arg3, int arg4){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onSizeChanged(int arg1, int arg2, int arg3, int arg4){
  }
  public void setScrollX(int arg1){
  }
  public void setScrollY(int arg1){
  }
  public final int getScrollX(){
    return 0;
  }
  public final int getScrollY(){
    return 0;
  }
  public void getDrawingRect(android.graphics.Rect arg1){
  }
  public final int getMeasuredWidthAndState(){
    return 0;
  }
  public final int getMeasuredHeightAndState(){
    return 0;
  }
  public final int getMeasuredState(){
    return 0;
  }
  public void setCameraDistance(float arg1){
  }
  public float getRotation(){
    return 0.0f;
  }
  public void setRotation(float arg1){
  }
  public float getRotationY(){
    return 0.0f;
  }
  public void setRotationY(float arg1){
  }
  public float getRotationX(){
    return 0.0f;
  }
  public void setRotationX(float arg1){
  }
  public float getScaleX(){
    return 0.0f;
  }
  public void setScaleX(float arg1){
  }
  public float getScaleY(){
    return 0.0f;
  }
  public float getPivotX(){
    return 0.0f;
  }
  public void setPivotX(float arg1){
  }
  public float getPivotY(){
    return 0.0f;
  }
  public void setPivotY(float arg1){
  }
  public final int getTop(){
    return 0;
  }
  public final int getBottom(){
    return 0;
  }
  public boolean isDirty(){
    return false;
  }
  public final void setBottom(int arg1){
  }
  public final int getLeft(){
    return 0;
  }
  public final void setLeft(int arg1){
  }
  public final int getRight(){
    return 0;
  }
  public final void setRight(int arg1){
  }
  public void setX(float arg1){
  }
  public void setY(float arg1){
  }
  public float getTranslationX(){
    return 0.0f;
  }
  public float getTranslationY(){
    return 0.0f;
  }
  public void setTranslationY(float arg1){
  }
  public void setFastTranslationX(float arg1){
  }
  public void setFastTranslationY(float arg1){
  }
  public void setFastX(float arg1){
  }
  public void setFastY(float arg1){
  }
  public void setFastScaleX(float arg1){
  }
  public void setFastScaleY(float arg1){
  }
  public void setFastAlpha(float arg1){
  }
  public void setFastRotationY(float arg1){
  }
  public void getHitRect(android.graphics.Rect arg1){
  }
  public void getFocusedRect(android.graphics.Rect arg1){
  }
  public boolean getGlobalVisibleRect(android.graphics.Rect arg1, android.graphics.Point arg2){
    return false;
  }
  public final boolean getGlobalVisibleRect(android.graphics.Rect arg1){
    return false;
  }
  public final boolean getLocalVisibleRect(android.graphics.Rect arg1){
    return false;
  }
  public void offsetTopAndBottom(int arg1){
  }
  public void offsetLeftAndRight(int arg1){
  }
  public void scrollTo(int arg1, int arg2){
  }
  public void scrollBy(int arg1, int arg2){
  }
  protected boolean awakenScrollBars(){
    return false;
  }
  protected boolean awakenScrollBars(int arg1){
    return false;
  }
  protected boolean awakenScrollBars(int arg1, boolean arg2){
    return false;
  }
  public void fastInvalidate(){
  }
  protected void invalidateParentCaches(){
  }
  protected void invalidateParentIfNeeded(){
  }
  protected void computeOpaqueFlags(){
  }
  protected boolean hasOpaqueScrollbars(){
    return false;
  }
  public void postInvalidate(){
  }
  public void postInvalidate(int arg1, int arg2, int arg3, int arg4){
  }
  public void postInvalidateDelayed(long arg1){
  }
  public void postInvalidateDelayed(long arg1, int arg2, int arg3, int arg4, int arg5){
  }
  public boolean isHorizontalFadingEdgeEnabled(){
    return false;
  }
  public void setHorizontalFadingEdgeEnabled(boolean arg1){
  }
  public boolean isVerticalFadingEdgeEnabled(){
    return false;
  }
  public void setVerticalFadingEdgeEnabled(boolean arg1){
  }
  protected float getTopFadingEdgeStrength(){
    return 0.0f;
  }
  protected float getBottomFadingEdgeStrength(){
    return 0.0f;
  }
  protected float getLeftFadingEdgeStrength(){
    return 0.0f;
  }
  protected float getRightFadingEdgeStrength(){
    return 0.0f;
  }
  public boolean isHorizontalScrollBarEnabled(){
    return false;
  }
  public void setHorizontalScrollBarEnabled(boolean arg1){
  }
  public boolean isVerticalScrollBarEnabled(){
    return false;
  }
  public void setVerticalScrollBarEnabled(boolean arg1){
  }
  protected void recomputePadding(){
  }
  public void setScrollbarFadingEnabled(boolean arg1){
  }
  public boolean isScrollbarFadingEnabled(){
    return false;
  }
  public void setScrollBarStyle(int arg1){
  }
  public int getScrollBarStyle(){
    return 0;
  }
  protected int computeHorizontalScrollRange(){
    return 0;
  }
  protected int computeHorizontalScrollOffset(){
    return 0;
  }
  protected int computeHorizontalScrollExtent(){
    return 0;
  }
  protected int computeVerticalScrollRange(){
    return 0;
  }
  protected int computeVerticalScrollOffset(){
    return 0;
  }
  protected int computeVerticalScrollExtent(){
    return 0;
  }
  public boolean canScrollHorizontally(int arg1){
    return false;
  }
  public boolean canScrollVertically(int arg1){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected final void onDrawScrollBars(android.graphics.Canvas arg1){
  }
  protected boolean isVerticalScrollBarHidden(){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onDrawHorizontalScrollBar(android.graphics.Canvas arg1, android.graphics.drawable.Drawable arg2, int arg3, int arg4, int arg5, int arg6){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onDrawVerticalScrollBar(android.graphics.Canvas arg1, android.graphics.drawable.Drawable arg2, int arg3, int arg4, int arg5, int arg6){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onDraw(android.graphics.Canvas arg1){
  }
  protected void resolvePadding(){
  }
  protected boolean canResolveLayoutDirection(){
    return false;
  }
  protected static boolean isLayoutDirectionRtl(java.util.Locale arg1){
    return false;
  }
  protected int getWindowAttachCount(){
    return 0;
  }
  public android.os.IBinder getWindowToken(){
    return (android.os.IBinder) null;
  }
  public android.os.IBinder getApplicationWindowToken(){
    return (android.os.IBinder) null;
  }
  public void setDuplicateParentStateEnabled(boolean arg1){
  }
  public boolean isDuplicateParentStateEnabled(){
    return false;
  }
  public void setLayerType(int arg1, android.graphics.Paint arg2){
  }
  public void buildLayer(){
  }
  public boolean isDrawingCacheEnabled(){
    return false;
  }
  public void outputDirtyFlags(java.lang.String arg1, boolean arg2, int arg3){
  }
  public void destroyDrawingCache(){
  }
  public void setDrawingCacheBackgroundColor(int arg1){
  }
  public int getDrawingCacheBackgroundColor(){
    return 0;
  }
  public boolean isInEditMode(){
    return false;
  }
  protected boolean isPaddingOffsetRequired(){
    return false;
  }
  protected int getLeftPaddingOffset(){
    return 0;
  }
  protected int getRightPaddingOffset(){
    return 0;
  }
  protected int getTopPaddingOffset(){
    return 0;
  }
  protected int getBottomPaddingOffset(){
    return 0;
  }
  protected int getFadeTop(boolean arg1){
    return 0;
  }
  protected int getFadeHeight(boolean arg1){
    return 0;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onFinishInflate(){
  }
  public void invalidateDrawable(android.graphics.drawable.Drawable arg1){
  }
  public void scheduleDrawable(android.graphics.drawable.Drawable arg1, java.lang.Runnable arg2, long arg3){
  }
  public void unscheduleDrawable(android.graphics.drawable.Drawable arg1, java.lang.Runnable arg2){
  }
  public void unscheduleDrawable(android.graphics.drawable.Drawable arg1){
  }
  protected boolean verifyDrawable(android.graphics.drawable.Drawable arg1){
    return false;
  }
  public void setBackgroundColor(int arg1){
  }
  public void setBackgroundResource(int arg1){
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public android.graphics.drawable.Drawable getBackground(){
    return (android.graphics.drawable.Drawable) null;
  }
  public void setPaddingRelative(int arg1, int arg2, int arg3, int arg4){
  }
  public int getPaddingStart(){
    return 0;
  }
  public int getPaddingEnd(){
    return 0;
  }
  public boolean isPaddingRelative(){
    return false;
  }
  public boolean isSelected(){
    return false;
  }
  @ViewDebug.ExportedProperty(prefix = "", category = "", mapping = {}, resolveId = false, flagMapping = {}, deepExport = false, indexMapping = {})
  public boolean isActivated(){
    return false;
  }
  public ViewTreeObserver getViewTreeObserver(){
    return (ViewTreeObserver) null;
  }
  public View getRootView(){
    return (View) null;
  }
  public void getLocationOnScreen(int [] arg1){
  }
  public void getLocationInWindow(int [] arg1){
  }
  public final View findViewByPredicateInsideOut(View arg1, com.android.internal.util.Predicate<View> arg2){
    return (View) null;
  }
  public void setIsRootNamespace(boolean arg1){
  }
  public void setTagInternal(int arg1, java.lang.Object arg2){
  }
  public int getBaseline(){
    return 0;
  }
  public void forceLayout(){
  }
  public static int combineMeasuredStates(int arg1, int arg2){
    return 0;
  }
  public static int resolveSize(int arg1, int arg2){
    return 0;
  }
  public static int resolveSizeAndState(int arg1, int arg2, int arg3){
    return 0;
  }
  public static int getDefaultSize(int arg1, int arg2){
    return 0;
  }
  protected int getSuggestedMinimumHeight(){
    return 0;
  }
  protected int getSuggestedMinimumWidth(){
    return 0;
  }
  public void setMinimumHeight(int arg1){
  }
  public void setMinimumWidth(int arg1){
  }
  public void startAnimation(android.view.animation.Animation arg1){
  }
  public void playSoundEffect(int arg1){
  }
  public boolean performHapticFeedback(int arg1){
    return false;
  }
  public boolean performHapticFeedback(int arg1, int arg2){
    return false;
  }
  public void setSystemUiVisibility(int arg1){
  }
  public int getSystemUiVisibility(){
    return 0;
  }
  public void setOnSystemUiVisibilityChangeListener(@com.francetelecom.rd.stubs.annotation.CallBackRegister("OnSystemUiVisibilityChangeListener") View.OnSystemUiVisibilityChangeListener arg1){
  }
  public final boolean startDrag(android.content.ClipData arg1, @com.francetelecom.rd.stubs.annotation.CallBack("DragShadowBuilder") View.DragShadowBuilder arg2, java.lang.Object arg3, int arg4){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public boolean onDragEvent(DragEvent arg1){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  public void onCloseSystemDialogs(java.lang.String arg1){
  }
  public void applyDrawableToTransparentRegion(android.graphics.drawable.Drawable arg1, android.graphics.Region arg2){
  }
  protected boolean overScrollBy(int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, int arg8, boolean arg9){
    return false;
  }
  @com.francetelecom.rd.stubs.annotation.CallBack("onCreate")
  protected void onOverScrolled(int arg1, int arg2, boolean arg3, boolean arg4){
  }
  public int getOverScrollMode(){
    return 0;
  }
  public void setOverScrollMode(int arg1){
  }
  protected float getVerticalScrollFactor(){
    return 0.0f;
  }
  protected float getHorizontalScrollFactor(){
    return 0.0f;
  }
  public void setTextDirection(int arg1){
  }
  public int getResolvedTextDirection(){
    return 0;
  }
  protected void resolveTextDirection(){
  }
  public void hackTurnOffWindowResizeAnim(boolean arg1){
  }
}


text:
<?php

final class PhabricatorProjectListView extends AphrontView {

  private $projects;

  public function setProjects(array $projects) {
    $this->projects = $projects;
    return $this;
  }

  public function getProjects() {
    return $this->projects;
  }

  public function renderList() {
    $viewer = $this->getUser();
    $projects = $this->getProjects();

    $handles = $viewer->loadHandles(mpull($projects, 'getPHID'));

    $list = id(new PHUIObjectItemListView())
      ->setUser($viewer);

    foreach ($projects as $key => $project) {
      $id = $project->getID();

      $tag_list = id(new PHUIHandleTagListView())
        ->setSlim(true)
        ->setHandles(array($handles[$project->getPHID()]));

      $item = id(new PHUIObjectItemView())
        ->setHeader($project->getName())
        ->setHref("/project/view/{$id}/")
        ->setImageURI($project->getProfileImageURI())
        ->addAttribute($tag_list);

      if ($project->getStatus() == PhabricatorProjectStatus::STATUS_ARCHIVED) {
        $item->addIcon('delete-grey', pht('Archived'));
        $item->setDisabled(true);
      }

      $list->addItem($item);
    }

    return $list;
  }

  public function render() {
    return $this->renderList();
  }

}

redpajama_set_name: RedPajamaGithub


text:
title: Host Custom Logging
summary: Illustrates how to customize logging when running inside the NServiceBus host.
tags:
- Logging
---

## Code walk-through

This sample shows how to customize logging when running inside the NServiceBus host.

### Configuring logging

<!-- import Config -->

## More Info

 * [Logging in NServiceBus](/nservicebus/logging/)


text:
package broker

import (
	"context"
	"crypto/tls"

	"github.com/micro/micro/v3/service/registry"
	"github.com/micro/micro/v3/util/codec"
)

type Options struct {
	Addrs  []string
	Secure bool
	Codec  codec.Marshaler

	TLSConfig *tls.Config
	// Registry used for clustering
	Registry registry.Registry
	// Other options for implementations of the interface
	// can be stored in a context
	Context context.Context
}

type PublishOptions struct {
	// Other options for implementations of the interface
	// can be stored in a context
	Context context.Context
}

type SubscribeOptions struct {
	// Handler executed when errors occur processing messages
	ErrorHandler ErrorHandler

	// Subscribers with the same queue name
	// will create a shared subscription where each
	// receives a subset of messages.
	Queue string

	// Other options for implementations of the interface
	// can be stored in a context
	Context context.Context
}

type Option func(*Options)

type PublishOption func(*PublishOptions)

// PublishContext set context
func PublishContext(ctx context.Context) PublishOption {
	return func(o *PublishOptions) {
		o.Context = ctx
	}
}

type SubscribeOption func(*SubscribeOptions)

func NewSubscribeOptions(opts ...SubscribeOption) SubscribeOptions {
	opt := SubscribeOptions{}

	for _, o := range opts {
		o(&opt)
	}

	return opt
}

// Addrs sets the host addresses to be used by the broker
func Addrs(addrs ...string) Option {
	return func(o *Options) {
		o.Addrs = addrs
	}
}

// Codec sets the codec used for encoding/decoding used where
// a broker does not support headers
func Codec(c codec.Marshaler) Option {
	return func(o *Options) {
		o.Codec = c
	}
}

// ErrorHandler will catch all broker errors that cant be handled
// in normal way, for example Codec errors
func HandleError(h ErrorHandler) SubscribeOption {
	return func(o *SubscribeOptions) {
		o.ErrorHandler = h
	}
}

// Queue sets the name of the queue to share messages on
func Queue(name string) SubscribeOption {
	return func(o *SubscribeOptions) {
		o.Queue = name
	}
}

func Registry(r registry.Registry) Option {
	return func(o *Options) {
		o.Registry = r
	}
}

// Secure communication with the broker
func Secure(b bool) Option {
	return func(o *Options) {
		o.Secure = b
	}
}

// Specify TLS Config
func TLSConfig(t *tls.Config) Option {
	return func(o *Options) {
		o.TLSConfig = t
	}
}

// SubscribeContext set context
func SubscribeContext(ctx context.Context) SubscribeOption {
	return func(o *SubscribeOptions) {
		o.Context = ctx
	}
}


text:
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation and
// any modifications thereto. Any use, reproduction, disclosure, or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA Corporation is strictly prohibited.
//
// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES
// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,
// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.
//
// Information and code furnished is believed to be accurate and reliable.
// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such
// information or for any infringement of patents or other rights of third parties that may
// result from its use. No license is granted by implication or otherwise under any patent
// or patent rights of NVIDIA Corporation. Details are subject to change without notice.
// This code supersedes and replaces all information previously supplied.
// NVIDIA Corporation products are not authorized for use as critical
// components in life support devices or systems without express written approval of
// NVIDIA Corporation.
//
// Copyright (c) 2008-2014 NVIDIA Corporation. All rights reserved.
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.

#ifndef NV_NVFOUNDATION_NVVEC3_H
#define NV_NVFOUNDATION_NVVEC3_H

/** \addtogroup foundation
@{
*/

#include "NvMath.h"

#if !NV_DOXYGEN
namespace nvidia
{
#endif

/**
\brief 3 Element vector class.

This is a 3-dimensional vector class with public data members.
*/
class NvVec3
{
  public:
	/**
	\brief default constructor leaves data uninitialized.
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3()
	{
	}

	/**
	\brief zero constructor.
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3(NvZERO r) : x(0.0f), y(0.0f), z(0.0f)
	{
		NV_UNUSED(r);
	}

	/**
	\brief Assigns scalar parameter to all elements.

	Useful to initialize to zero or one.

	\param[in] a Value to assign to elements.
	*/
	explicit NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3(float a) : x(a), y(a), z(a)
	{
	}

	/**
	\brief Initializes from 3 scalar parameters.

	\param[in] nx Value to initialize X component.
	\param[in] ny Value to initialize Y component.
	\param[in] nz Value to initialize Z component.
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3(float nx, float ny, float nz) : x(nx), y(ny), z(nz)
	{
	}

	/**
	\brief Copy ctor.
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3(const NvVec3& v) : x(v.x), y(v.y), z(v.z)
	{
	}

	// Operators

	/**
	\brief Assignment operator
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3& operator=(const NvVec3& p)
	{
		x = p.x;
		y = p.y;
		z = p.z;
		return *this;
	}

	/**
	\brief element access
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE float& operator[](unsigned int index)
	{
		NV_ASSERT(index <= 2);

		return reinterpret_cast<float*>(this)[index];
	}

	/**
	\brief element access
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE const float& operator[](unsigned int index) const
	{
		NV_ASSERT(index <= 2);

		return reinterpret_cast<const float*>(this)[index];
	}
	/**
	\brief returns true if the two vectors are exactly equal.
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE bool operator==(const NvVec3& v) const
	{
		return x == v.x && y == v.y && z == v.z;
	}

	/**
	\brief returns true if the two vectors are not exactly equal.
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE bool operator!=(const NvVec3& v) const
	{
		return x != v.x || y != v.y || z != v.z;
	}

	/**
	\brief tests for exact zero vector
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE bool isZero() const
	{
		return x == 0.0f && y == 0.0f && z == 0.0f;
	}

	/**
	\brief returns true if all 3 elems of the vector are finite (not NAN or INF, etc.)
	*/
	NV_CUDA_CALLABLE NV_INLINE bool isFinite() const
	{
		return NvIsFinite(x) && NvIsFinite(y) && NvIsFinite(z);
	}

	/**
	\brief is normalized - used by API parameter validation
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE bool isNormalized() const
	{
		const float unitTolerance = 1e-4f;
		return isFinite() && NvAbs(magnitude() - 1) < unitTolerance;
	}

	/**
	\brief returns the squared magnitude

	Avoids calling NvSqrt()!
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE float magnitudeSquared() const
	{
		return x * x + y * y + z * z;
	}

	/**
	\brief returns the magnitude
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE float magnitude() const
	{
		return NvSqrt(magnitudeSquared());
	}

	/**
	\brief negation
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3 operator-() const
	{
		return NvVec3(-x, -y, -z);
	}

	/**
	\brief vector addition
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3 operator+(const NvVec3& v) const
	{
		return NvVec3(x + v.x, y + v.y, z + v.z);
	}

	/**
	\brief vector difference
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3 operator-(const NvVec3& v) const
	{
		return NvVec3(x - v.x, y - v.y, z - v.z);
	}

	/**
	\brief scalar post-multiplication
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3 operator*(float f) const
	{
		return NvVec3(x * f, y * f, z * f);
	}

	/**
	\brief scalar division
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3 operator/(float f) const
	{
		f = 1.0f / f;
		return NvVec3(x * f, y * f, z * f);
	}

	/**
	\brief vector addition
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3& operator+=(const NvVec3& v)
	{
		x += v.x;
		y += v.y;
		z += v.z;
		return *this;
	}

	/**
	\brief vector difference
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3& operator-=(const NvVec3& v)
	{
		x -= v.x;
		y -= v.y;
		z -= v.z;
		return *this;
	}

	/**
	\brief scalar multiplication
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3& operator*=(float f)
	{
		x *= f;
		y *= f;
		z *= f;
		return *this;
	}
	/**
	\brief scalar division
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3& operator/=(float f)
	{
		f = 1.0f / f;
		x *= f;
		y *= f;
		z *= f;
		return *this;
	}

	/**
	\brief returns the scalar product of this and other.
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE float dot(const NvVec3& v) const
	{
		return x * v.x + y * v.y + z * v.z;
	}

	/**
	\brief cross product
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3 cross(const NvVec3& v) const
	{
		return NvVec3(y * v.z - z * v.y, z * v.x - x * v.z, x * v.y - y * v.x);
	}

	/** return a unit vector */

	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3 getNormalized() const
	{
		const float m = magnitudeSquared();
		return m > 0.0f ? *this * NvRecipSqrt(m) : NvVec3(0, 0, 0);
	}

	/**
	\brief normalizes the vector in place
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE float normalize()
	{
		const float m = magnitude();
		if(m > 0.0f)
			*this /= m;
		return m;
	}

	/**
	\brief normalizes the vector in place. Does nothing if vector magnitude is under NV_NORMALIZATION_EPSILON.
	Returns vector magnitude if >= NV_NORMALIZATION_EPSILON and 0.0f otherwise.
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE float normalizeSafe()
	{
		const float mag = magnitude();
		if(mag < NV_NORMALIZATION_EPSILON)
			return 0.0f;
		*this *= 1.0f / mag;
		return mag;
	}

	/**
	\brief normalizes the vector in place. Asserts if vector magnitude is under NV_NORMALIZATION_EPSILON.
	returns vector magnitude.
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE float normalizeFast()
	{
		const float mag = magnitude();
		NV_ASSERT(mag >= NV_NORMALIZATION_EPSILON);
		*this *= 1.0f / mag;
		return mag;
	}

	/**
	\brief a[i] * b[i], for all i.
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3 multiply(const NvVec3& a) const
	{
		return NvVec3(x * a.x, y * a.y, z * a.z);
	}

	/**
	\brief element-wise minimum
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3 minimum(const NvVec3& v) const
	{
		return NvVec3(NvMin(x, v.x), NvMin(y, v.y), NvMin(z, v.z));
	}

	/**
	\brief returns MIN(x, y, z);
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE float minElement() const
	{
		return NvMin(x, NvMin(y, z));
	}

	/**
	\brief element-wise maximum
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3 maximum(const NvVec3& v) const
	{
		return NvVec3(NvMax(x, v.x), NvMax(y, v.y), NvMax(z, v.z));
	}

	/**
	\brief returns MAX(x, y, z);
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE float maxElement() const
	{
		return NvMax(x, NvMax(y, z));
	}

	/**
	\brief returns absolute values of components;
	*/
	NV_CUDA_CALLABLE NV_FORCE_INLINE NvVec3 abs() const
	{
		return NvVec3(NvAbs(x), NvAbs(y), NvAbs(z));
	}

	float x, y, z;
};

NV_CUDA_CALLABLE static NV_FORCE_INLINE NvVec3 operator*(float f, const NvVec3& v)
{
	return NvVec3(f * v.x, f * v.y, f * v.z);
}

#if !NV_DOXYGEN
} // namespace nvidia
#endif

/** @} */
#endif // #ifndef NV_NVFOUNDATION_NVVEC3_H


text:
<form class="agg_option">

		Field :
		<input class="form-control" type="text" ng-model="curAgg.field">

			<button title="Display Fields" type="button" class="btn btn-default" ng-click="openModalFields('sm', curAgg)">

			</button>

		Format :
		<input class="form-control" type="text" ng-model="curAgg.format">

		Interval :
		<input class="form-control" type="number" step="any" ng-model="curAgg.interval">

		Order :
		<input class="form-control" type="text" ng-model="curAgg.order">

        	<button class="btn btn-default" type="button" ng-click="curAgg.orderType = !curAgg.orderType">

	        </button>

		Minimum doc count :
		<input class="form-control" type="number" ng-model="curAgg.minDoc" min="1">

		Script :
		<input class="form-control" type="text" ng-model="curAgg.script">

		<button class="btn btn-default" ng-click="validateAgg(curAgg)">
			Deactivate
			Activate
		</button>
		<button class="btn btn-default" ng-click="addNestedAgg(curAgg)">Add Nested Agg</button>

</form>


text:
package org.apache.metamodel.xml;

import java.io.File;
import java.util.Arrays;

import junit.framework.TestCase;

import org.apache.metamodel.DataContext;
import org.apache.metamodel.data.DataSet;
import org.apache.metamodel.query.Query;
import org.apache.metamodel.schema.Column;
import org.apache.metamodel.schema.Schema;
import org.apache.metamodel.schema.Table;

public class XmlSaxDataContextTest extends TestCase {

	public void testBasicScenarios() throws Exception {
		XmlSaxTableDef tableDef = new XmlSaxTableDef(
				"/dependencies/dependency", new String[] {
						"/dependencies/dependency/artifactId",
						"/dependencies/dependency/groupId",
						"/dependencies/dependency/version",
						"/dependencies/dependency/scope" });
		DataContext dc = new XmlSaxDataContext(new File(
				"src/test/resources/xml_input_flatten_tables.xml"), tableDef);

		final Schema schema = dc.getDefaultSchema();
		assertEquals("Schema[name=/dependencies]", schema.toString());
		assertEquals("[/dependency]", Arrays.toString(schema.getTableNames()));

		final Table table = schema.getTableByName("/dependency");
		assertEquals("[row_id, /artifactId, /groupId, /version, /scope]",
				Arrays.toString(table.getColumnNames()));

		// perform a regular query
		DataSet ds = dc.query().from(table).select(table.getColumns())
				.execute();
		assertTrue(ds.next());
		assertEquals("Row[values=[0, joda-time, joda-time, 1.5.2, compile]]",
				ds.getRow().toString());

		assertTrue(ds.next());
		assertEquals("Row[values=[1, commons-math, commons-math, 1.1, null]]",
				ds.getRow().toString());

		assertTrue(ds.next());
		assertTrue(ds.next());
		assertTrue(ds.next());
		assertTrue(ds.next());
		assertEquals("Row[values=[5, hsqldb, hsqldb, 1.8.0.7, null]]", ds
				.getRow().toString());

		assertTrue(ds.next());
		assertTrue(ds.next());
		assertTrue(ds.next());
		assertTrue(ds.next());
		assertTrue(ds.next());
		assertEquals(
				"Row[values=[10, mysql-connector-java, mysql, 5.1.6, test]]",
				ds.getRow().toString());
		assertFalse(ds.next());
		ds.close();

		// perform a constrained query
		Query q = dc.query().from(table).select("row_id").and("/groupId")
				.where("/scope").isNotNull().toQuery();
		q.setMaxRows(2);
		ds = dc.executeQuery(q);

		assertTrue(ds.next());
		assertEquals("Row[values=[0, joda-time]]", ds.getRow().toString());
		assertTrue(ds.next());
		assertEquals("Row[values=[6, junit]]", ds.getRow().toString());
		assertFalse(ds.next());
		ds.close();
	}

	public void testParentTagIndex() throws Exception {
		final XmlSaxTableDef employeeTableDef = new XmlSaxTableDef(
				"/root/organization/employees/employee", new String[] {
						"/root/organization/employees/employee/name",
						"/root/organization/employees/employee/gender",
						"index(/root/organization/employees)",
						"index(/root/organization)" });
		final XmlSaxTableDef organizationTableDef = new XmlSaxTableDef(
				"/root/organization", new String[] { "/root/organization/name",
						"/root/organization@type" });

		final DataContext dc = new XmlSaxDataContext(
				new File(
						"src/test/resources/xml_input_parent_and_child_relationship.xml"),
				employeeTableDef, organizationTableDef);

		final Schema schema = dc.getDefaultSchema();
		assertEquals("Schema[name=/root]", schema.toString());
		assertEquals("[/employee, /organization]",
				Arrays.toString(schema.getTableNames()));

		// organization assertions
		final Table organizationTable = schema.getTableByName("/organization");
		{
			assertEquals("[row_id, /name, @type]",
					Arrays.toString(organizationTable.getColumnNames()));

			DataSet ds = dc.query().from(organizationTable)
					.select(organizationTable.getColumns()).execute();
			assertTrue(ds.next());
			assertEquals("Row[values=[0, Company A, governmental]]", ds
					.getRow().toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[1, Company B, company]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[2, Company C, company]]", ds.getRow()
					.toString());
			assertFalse(ds.next());
			ds.close();
		}

		// employee assertions
		final Table employeeTable = schema.getTableByName("/employee");
		{
			assertEquals(
					"[row_id, /name, /gender, index(/root/organization/employees), index(/root/organization)]",
					Arrays.toString(employeeTable.getColumnNames()));

			DataSet ds = dc.query().from(employeeTable)
					.select(employeeTable.getColumns()).execute();
			assertTrue(ds.next());
			assertEquals("Row[values=[0, John Doe, M, 0, 0]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[1, Jane Doe, F, 0, 0]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[2, Peter, M, 1, 1]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[3, Bob, M, 1, 1]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[4, Cindy, F, 1, 1]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[5, John, M, 1, 1]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[6, James, M, 2, 2]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[7, Suzy, F, 2, 2]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[8, Carla, F, 3, 2]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[9, Vincent, M, 3, 2]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[10, Barbara, F, 3, 2]]", ds.getRow()
					.toString());
			assertFalse(ds.next());
			ds.close();
		}

		// do a join
		{
			Column fk = employeeTable
					.getColumnByName("index(/root/organization)");
			assertNotNull(fk);
			Column empName = employeeTable.getColumnByName("/name");
			assertNotNull(empName);
			Column orgId = organizationTable.getColumnByName("row_id");
			assertNotNull(orgId);
			Column orgName = organizationTable.getColumnByName("/name");
			assertNotNull(orgName);

			Query q = dc.query().from(employeeTable)
					.innerJoin(organizationTable).on(fk, orgId).select(empName)
					.as("employee").select(orgName).as("company").toQuery();

			assertEquals(
					"SELECT /employee./name AS employee, /organization./name AS company "
							+ "FROM /root./employee INNER JOIN /root./organization "
							+ "ON /employee.index(/root/organization) = /organization.row_id",
					q.toSql());

			DataSet ds = dc.executeQuery(q);
			assertTrue(ds.next());
			assertEquals("Row[values=[John Doe, Company A]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[Jane Doe, Company A]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[Peter, Company B]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[Bob, Company B]]", ds.getRow().toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[Cindy, Company B]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[John, Company B]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[James, Company C]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[Suzy, Company C]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[Carla, Company C]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[Vincent, Company C]]", ds.getRow()
					.toString());
			assertTrue(ds.next());
			assertEquals("Row[values=[Barbara, Company C]]", ds.getRow()
					.toString());
			ds.close();
		}
	}
}


text:
{% from "macros/_form.html" import render_form %}

{% extends "roster/config/layout.html" %}

{% block body %}

Edit Company

    {{ render_form(url_for('roster.config_edit_company', id=company.id), form) }}

{% endblock %}


text:
class AddStateAndCountriesEndpoint < ActiveRecord::Migration
  def up
    execute <<-SQL
    CREATE MATERIALIZED VIEW "1".countries AS
      SELECT * FROM countries;

    CREATE MATERIALIZED VIEW "1".states AS
      SELECT * FROM states;

    GRANT SELECT ON "1".countries, "1".states to admin, web_user, anonymous;
    SQL
  end
  def down
    execute <<-SQL
    DROP VIEW "1".countries, "1".states
    SQL
  end
end


text:
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: FyChessMessage.proto

package org.okraAx.v3.chess.beans;

public interface ResChessMoveOrBuilder extends
    // @@protoc_insertion_point(interface_extends:org.okraAx.v3.ResChessMove)
    com.google.protobuf.MessageOrBuilder {

  /**
   *

   *  是否可以移动
   *

   *
   * optional bool movable = 1;
   */
  boolean getMovable();
}


text:
"""Utility methods for production data generation."""

import six
import yaml

def longest_common_prefix(str1, str2):
    """Returns the longest common prefix length of two strings."""
    limit = min(len(str1), len(str2))
    for i in six.moves.range(limit):
        if str1[i] != str2[i]:
            return i
    return limit

def yaml_load(path):
    """Returns content of YAML file at `path` as a Python object."""
    with open(path, 'r', encoding='utf-8') as f:
        data_yaml = yaml.load(f, Loader=yaml.FullLoader)
    return data_yaml


text:
namespace gpos
{
	class CTaskContext
	{
		// trace flag iterator needs access to trace vector
		friend class CTraceFlagIter;

		private:

			// trace vector
			CBitSet *m_pbs;

			// output log abstraction
			ILogger *m_plogOut;

			// error log abstraction
			ILogger *m_plogErr;

			// locale of messages
			ELocale m_eloc;

		public:

			// basic ctor; used only for the main worker
			CTaskContext(IMemoryPool *pmp);

			// copy ctor
			// used to inherit parent task's context
			CTaskContext(IMemoryPool *pmp, const CTaskContext &tskctxt);

			// dtor
			~CTaskContext();

			// accessors
			inline
			ILogger *PlogOut() const
			{
				return m_plogOut;
			}

			inline
			ILogger *PlogErr() const
			{
				return m_plogErr;
			}

			void SetLogOut(ILogger *plogOut)
			{
				GPOS_ASSERT(NULL != plogOut);
				m_plogOut = plogOut;
			}

			void SetLogErr(ILogger *plogErr)
			{
				GPOS_ASSERT(NULL != plogErr);
				m_plogErr = plogErr;
			}

			// set trace flag
			BOOL FTrace(ULONG ulTrace, BOOL fVal);

			// test if tracing on
			inline
			BOOL FTrace
				(
				ULONG ulTrace
				)
			{
				return m_pbs->FBit(ulTrace);
			}

			// locale
			ELocale Eloc() const
			{
				return m_eloc;
			}

			void SetEloc
				(
				ELocale eloc
				)
			{
				m_eloc = eloc;
			}

	}; // class CTaskContext
}

#endif // !GPOS_CTaskContext_H

// EOF


text:
/// <reference path='fourslash.ts'/>

////function f(a: { xa: number; xb: number; }) { }
////var xc;
////f({
////    /**/

goTo.marker()
verify.memberListContains('xa');
verify.memberListContains('xb');
verify.memberListCount(2);


text:
#include <algorithm>
#include <string>
#include <vector>

#if HAVE_CONFIG_H
#include "config.h"
#endif  // HAVE_CONFIG_H

#if HAVE_NSS_SSL_H

#include "talk/base/nssidentity.h"

#include "cert.h"
#include "cryptohi.h"
#include "keyhi.h"
#include "nss.h"
#include "pk11pub.h"
#include "sechash.h"

#include "talk/base/logging.h"
#include "talk/base/helpers.h"
#include "talk/base/nssstreamadapter.h"

namespace talk_base {

NSSKeyPair::~NSSKeyPair() {
  if (privkey_)
    SECKEY_DestroyPrivateKey(privkey_);
  if (pubkey_)
    SECKEY_DestroyPublicKey(pubkey_);
}

NSSKeyPair *NSSKeyPair::Generate() {
  SECKEYPrivateKey *privkey = NULL;
  SECKEYPublicKey *pubkey = NULL;
  PK11RSAGenParams rsaparams;
  rsaparams.keySizeInBits = 1024;
  rsaparams.pe = 0x010001;  // 65537 -- a common RSA public exponent.

  privkey = PK11_GenerateKeyPair(NSSContext::GetSlot(),
                                 CKM_RSA_PKCS_KEY_PAIR_GEN,
                                 &rsaparams, &pubkey, PR_FALSE /*permanent*/,
                                 PR_FALSE /*sensitive*/, NULL);
  if (!privkey) {
    LOG(LS_ERROR) << "Couldn't generate key pair";
    return NULL;
  }

  return new NSSKeyPair(privkey, pubkey);
}

// Just make a copy.
NSSKeyPair *NSSKeyPair::GetReference() {
  SECKEYPrivateKey *privkey = SECKEY_CopyPrivateKey(privkey_);
  if (!privkey)
    return NULL;

  SECKEYPublicKey *pubkey = SECKEY_CopyPublicKey(pubkey_);
  if (!pubkey) {
    SECKEY_DestroyPrivateKey(privkey);
    return NULL;
  }

  return new NSSKeyPair(privkey, pubkey);
}

NSSCertificate::NSSCertificate(CERTCertificate* cert)
    : certificate_(CERT_DupCertificate(cert)) {
  ASSERT(certificate_ != NULL);
}

static void DeleteCert(SSLCertificate* cert) {
  delete cert;
}

NSSCertificate::NSSCertificate(CERTCertList* cert_list) {
  // Copy the first cert into certificate_.
  CERTCertListNode* node = CERT_LIST_HEAD(cert_list);
  certificate_ = CERT_DupCertificate(node->cert);

  // Put any remaining certificates into the chain.
  node = CERT_LIST_NEXT(node);
  std::vector<SSLCertificate*> certs;
  for (; !CERT_LIST_END(node, cert_list); node = CERT_LIST_NEXT(node)) {
    certs.push_back(new NSSCertificate(node->cert));
  }

  if (!certs.empty())
    chain_.reset(new SSLCertChain(certs));

  // The SSLCertChain constructor copies its input, so now we have to delete
  // the originals.
  std::for_each(certs.begin(), certs.end(), DeleteCert);
}

NSSCertificate::NSSCertificate(CERTCertificate* cert, SSLCertChain* chain)
    : certificate_(CERT_DupCertificate(cert)) {
  ASSERT(certificate_ != NULL);
  if (chain)
    chain_.reset(chain->Copy());
}

NSSCertificate *NSSCertificate::FromPEMString(const std::string &pem_string) {
  std::string der;
  if (!SSLIdentity::PemToDer(kPemTypeCertificate, pem_string, &der))
    return NULL;

  SECItem der_cert;
  der_cert.data = reinterpret_cast<unsigned char *>(const_cast<char *>(
      der.data()));
  der_cert.len = der.size();
  CERTCertificate *cert = CERT_NewTempCertificate(CERT_GetDefaultCertDB(),
      &der_cert, NULL, PR_FALSE, PR_TRUE);

  if (!cert)
    return NULL;

  NSSCertificate* ret = new NSSCertificate(cert);
  CERT_DestroyCertificate(cert);
  return ret;
}

NSSCertificate *NSSCertificate::GetReference() const {
  return new NSSCertificate(certificate_, chain_.get());
}

std::string NSSCertificate::ToPEMString() const {
  return SSLIdentity::DerToPem(kPemTypeCertificate,
                               certificate_->derCert.data,
                               certificate_->derCert.len);
}

void NSSCertificate::ToDER(Buffer* der_buffer) const {
  der_buffer->SetData(certificate_->derCert.data, certificate_->derCert.len);
}

bool NSSCertificate::GetDigestLength(const std::string &algorithm,
                                     std::size_t *length) {
  const SECHashObject *ho;

  if (!GetDigestObject(algorithm, &ho))
    return false;

  *length = ho->length;

  return true;
}

bool NSSCertificate::GetSignatureDigestAlgorithm(std::string* algorithm) const {
  // The function sec_DecodeSigAlg in NSS provides this mapping functionality.
  // Unfortunately it is private, so the functionality must be duplicated here.
  // See https://bugzilla.mozilla.org/show_bug.cgi?id=925165 .
  SECOidTag sig_alg = SECOID_GetAlgorithmTag(&certificate_->signature);
  switch (sig_alg) {
    case SEC_OID_PKCS1_MD5_WITH_RSA_ENCRYPTION:
      *algorithm = DIGEST_MD5;
      break;
    case SEC_OID_PKCS1_SHA1_WITH_RSA_ENCRYPTION:
    case SEC_OID_ISO_SHA_WITH_RSA_SIGNATURE:
    case SEC_OID_ISO_SHA1_WITH_RSA_SIGNATURE:
    case SEC_OID_ANSIX9_DSA_SIGNATURE_WITH_SHA1_DIGEST:
    case SEC_OID_BOGUS_DSA_SIGNATURE_WITH_SHA1_DIGEST:
    case SEC_OID_ANSIX962_ECDSA_SHA1_SIGNATURE:
    case SEC_OID_MISSI_DSS:
    case SEC_OID_MISSI_KEA_DSS:
    case SEC_OID_MISSI_KEA_DSS_OLD:
    case SEC_OID_MISSI_DSS_OLD:
      *algorithm = DIGEST_SHA_1;
      break;
    case SEC_OID_ANSIX962_ECDSA_SHA224_SIGNATURE:
    case SEC_OID_PKCS1_SHA224_WITH_RSA_ENCRYPTION:
    case SEC_OID_NIST_DSA_SIGNATURE_WITH_SHA224_DIGEST:
      *algorithm = DIGEST_SHA_224;
      break;
    case SEC_OID_ANSIX962_ECDSA_SHA256_SIGNATURE:
    case SEC_OID_PKCS1_SHA256_WITH_RSA_ENCRYPTION:
    case SEC_OID_NIST_DSA_SIGNATURE_WITH_SHA256_DIGEST:
      *algorithm = DIGEST_SHA_256;
      break;
    case SEC_OID_ANSIX962_ECDSA_SHA384_SIGNATURE:
    case SEC_OID_PKCS1_SHA384_WITH_RSA_ENCRYPTION:
      *algorithm = DIGEST_SHA_384;
      break;
    case SEC_OID_ANSIX962_ECDSA_SHA512_SIGNATURE:
    case SEC_OID_PKCS1_SHA512_WITH_RSA_ENCRYPTION:
      *algorithm = DIGEST_SHA_512;
      break;
    default:
      // Unknown algorithm.  There are several unhandled options that are less
      // common and more complex.
      algorithm->clear();
      return false;
  }
  return true;
}

bool NSSCertificate::ComputeDigest(const std::string &algorithm,
                                   unsigned char *digest, std::size_t size,
                                   std::size_t *length) const {
  const SECHashObject *ho;

  if (!GetDigestObject(algorithm, &ho))
    return false;

  if (size < ho->length)  // Sanity check for fit
    return false;

  SECStatus rv = HASH_HashBuf(ho->type, digest,
                              certificate_->derCert.data,
                              certificate_->derCert.len);
  if (rv != SECSuccess)
    return false;

  *length = ho->length;

  return true;
}

bool NSSCertificate::GetChain(SSLCertChain** chain) const {
  if (!chain_)
    return false;

  *chain = chain_->Copy();
  return true;
}

bool NSSCertificate::Equals(const NSSCertificate *tocompare) const {
  if (!certificate_->derCert.len)
    return false;
  if (!tocompare->certificate_->derCert.len)
    return false;

  if (certificate_->derCert.len != tocompare->certificate_->derCert.len)
    return false;

  return memcmp(certificate_->derCert.data,
                tocompare->certificate_->derCert.data,
                certificate_->derCert.len) == 0;
}

bool NSSCertificate::GetDigestObject(const std::string &algorithm,
                                     const SECHashObject **hop) {
  const SECHashObject *ho;
  HASH_HashType hash_type;

  if (algorithm == DIGEST_SHA_1) {
    hash_type = HASH_AlgSHA1;
  // HASH_AlgSHA224 is not supported in the chromium linux build system.
#if 0
  } else if (algorithm == DIGEST_SHA_224) {
    hash_type = HASH_AlgSHA224;
#endif
  } else if (algorithm == DIGEST_SHA_256) {
    hash_type = HASH_AlgSHA256;
  } else if (algorithm == DIGEST_SHA_384) {
    hash_type = HASH_AlgSHA384;
  } else if (algorithm == DIGEST_SHA_512) {
    hash_type = HASH_AlgSHA512;
  } else {
    return false;
  }

  ho = HASH_GetHashObject(hash_type);

  ASSERT(ho->length >= 20);  // Can't happen
  *hop = ho;

  return true;
}

NSSIdentity *NSSIdentity::Generate(const std::string &common_name) {
  std::string subject_name_string = "CN=" + common_name;
  CERTName *subject_name = CERT_AsciiToName(
      const_cast<char *>(subject_name_string.c_str()));
  NSSIdentity *identity = NULL;
  CERTSubjectPublicKeyInfo *spki = NULL;
  CERTCertificateRequest *certreq = NULL;
  CERTValidity *validity;
  CERTCertificate *certificate = NULL;
  NSSKeyPair *keypair = NSSKeyPair::Generate();
  SECItem inner_der;
  SECStatus rv;
  PLArenaPool* arena;
  SECItem signed_cert;
  PRTime not_before, not_after;
  PRTime now = PR_Now();
  PRTime one_day;

  inner_der.len = 0;
  inner_der.data = NULL;

  if (!keypair) {
    LOG(LS_ERROR) << "Couldn't generate key pair";
    goto fail;
  }

  if (!subject_name) {
    LOG(LS_ERROR) << "Couldn't convert subject name " << subject_name;
    goto fail;
  }

  spki = SECKEY_CreateSubjectPublicKeyInfo(keypair->pubkey());
  if (!spki) {
    LOG(LS_ERROR) << "Couldn't create SPKI";
    goto fail;
  }

  certreq = CERT_CreateCertificateRequest(subject_name, spki, NULL);
  if (!certreq) {
    LOG(LS_ERROR) << "Couldn't create certificate signing request";
    goto fail;
  }

  one_day = 86400;
  one_day *= PR_USEC_PER_SEC;
  not_before = now - one_day;
  not_after = now + 30 * one_day;

  validity = CERT_CreateValidity(not_before, not_after);
  if (!validity) {
    LOG(LS_ERROR) << "Couldn't create validity";
    goto fail;
  }

  unsigned long serial;
  // Note: This serial in principle could collide, but it's unlikely
  rv = PK11_GenerateRandom(reinterpret_cast<unsigned char *>(&serial),
                           sizeof(serial));
  if (rv != SECSuccess) {
    LOG(LS_ERROR) << "Couldn't generate random serial";
    goto fail;
  }

  certificate = CERT_CreateCertificate(serial, subject_name, validity, certreq);
  if (!certificate) {
    LOG(LS_ERROR) << "Couldn't create certificate";
    goto fail;
  }

  arena = certificate->arena;

  rv = SECOID_SetAlgorithmID(arena, &certificate->signature,
                             SEC_OID_PKCS1_SHA1_WITH_RSA_ENCRYPTION, NULL);
  if (rv != SECSuccess)
    goto fail;

  // Set version to X509v3.
  *(certificate->version.data) = 2;
  certificate->version.len = 1;

  if (!SEC_ASN1EncodeItem(arena, &inner_der, certificate,
                          SEC_ASN1_GET(CERT_CertificateTemplate)))
    goto fail;

  rv = SEC_DerSignData(arena, &signed_cert, inner_der.data, inner_der.len,
                       keypair->privkey(),
                       SEC_OID_PKCS1_SHA1_WITH_RSA_ENCRYPTION);
  if (rv != SECSuccess) {
    LOG(LS_ERROR) << "Couldn't sign certificate";
    goto fail;
  }
  certificate->derCert = signed_cert;

  identity = new NSSIdentity(keypair, new NSSCertificate(certificate));

  goto done;

 fail:
  delete keypair;

 done:
  if (certificate) CERT_DestroyCertificate(certificate);
  if (subject_name) CERT_DestroyName(subject_name);
  if (spki) SECKEY_DestroySubjectPublicKeyInfo(spki);
  if (certreq) CERT_DestroyCertificateRequest(certreq);
  if (validity) CERT_DestroyValidity(validity);
  return identity;
}

SSLIdentity* NSSIdentity::FromPEMStrings(const std::string& private_key,
                                         const std::string& certificate) {
  std::string private_key_der;
  if (!SSLIdentity::PemToDer(
      kPemTypeRsaPrivateKey, private_key, &private_key_der))
    return NULL;

  SECItem private_key_item;
  private_key_item.data =
      reinterpret_cast<unsigned char *>(
          const_cast<char *>(private_key_der.c_str()));
  private_key_item.len = private_key_der.size();

  const unsigned int key_usage = KU_KEY_ENCIPHERMENT | KU_DATA_ENCIPHERMENT |
      KU_DIGITAL_SIGNATURE;

  SECKEYPrivateKey* privkey = NULL;
  SECStatus rv =
      PK11_ImportDERPrivateKeyInfoAndReturnKey(NSSContext::GetSlot(),
                                               &private_key_item,
                                               NULL, NULL, PR_FALSE, PR_FALSE,
                                               key_usage, &privkey, NULL);
  if (rv != SECSuccess) {
    LOG(LS_ERROR) << "Couldn't import private key";
    return NULL;
  }

  SECKEYPublicKey *pubkey = SECKEY_ConvertToPublicKey(privkey);
  if (rv != SECSuccess) {
    SECKEY_DestroyPrivateKey(privkey);
    LOG(LS_ERROR) << "Couldn't convert private key to public key";
    return NULL;
  }

  // Assign to a scoped_ptr so we don't leak on error.
  scoped_ptr<NSSKeyPair> keypair(new NSSKeyPair(privkey, pubkey));

  scoped_ptr<NSSCertificate> cert(NSSCertificate::FromPEMString(certificate));
  if (!cert) {
    LOG(LS_ERROR) << "Couldn't parse certificate";
    return NULL;
  }

  // TODO(ekr@rtfm.com): Check the public key against the certificate.

  return new NSSIdentity(keypair.release(), cert.release());
}

NSSIdentity *NSSIdentity::GetReference() const {
  NSSKeyPair *keypair = keypair_->GetReference();
  if (!keypair)
    return NULL;

  NSSCertificate *certificate = certificate_->GetReference();
  if (!certificate) {
    delete keypair;
    return NULL;
  }

  return new NSSIdentity(keypair, certificate);
}

NSSCertificate &NSSIdentity::certificate() const {
  return *certificate_;
}

}  // talk_base namespace

#endif  // HAVE_NSS_SSL_H


text:
const importLazy = require('import-lazy')(require);
const del = importLazy('del');

// Ours
const { getProjectConfig } = require('../../config/project');
const { OUTPUT_DIRECTORY_NAME } = require('../../constants');
const { hvy } = require('../../utils/color');
const { dry, info, spin } = require('../../utils/logging');
const { inlineList } = require('../../utils/text');
const { command } = require('../');
const { MESSAGES } = require('./constants');

module.exports = command(
  {
    name: 'clean',
    usage: MESSAGES.usage
  },
  async argv => {
    const { root } = getProjectConfig();
    const globs = [OUTPUT_DIRECTORY_NAME];

    if (argv.dry) {
      return dry({
        'Deletion paths': { globs, cwd: root }
      });
    }

    let spinner;

    if (!argv.quiet) {
      info(MESSAGES.clean(globs));
      spinner = spin(`Cleaning`);
    }

    await del(globs, { cwd: root });

    if (!argv.quiet) {
      spinner.succeed('Cleaned');
    }
  }
);