Skip to content
This repository was archived by the owner on Dec 1, 2017. It is now read-only.
This repository was archived by the owner on Dec 1, 2017. It is now read-only.

Package name in generated code is null #14

@bishopmatthew

Description

@bishopmatthew

I ran into another problem -- the package name for the generated source files is null.probe, which is invalid. Where's it supposed to get the package name from?

By the way, how do I run / debug Probe itself? I tried to set a breakpoint in ProbeTask (to see where it's getting the package name) and then ran the sample project, but no dice.

Example: (this happens for every view class)

package null.probe;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import org.lucasr.probe.InterceptableView;
import org.lucasr.probe.Interceptor;
import android.view.View;
public final class ProbeProxy$android_view_View extends View
    implements InterceptableView {
  private Interceptor mInterceptor;
  public ProbeProxy$android_view_View(Context context, AttributeSet attrs) {
    super(context, attrs);
  }
  public void setInterceptor(Interceptor interceptor) {
    mInterceptor = interceptor;
  }
  protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
    if (mInterceptor != null) {
      mInterceptor.onMeasure(this, widthMeasureSpec, heightMeasureSpec);
    }
    else {
      super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }
  }
  public void superOnMeasure(int widthMeasureSpec, int heightMeasureSpec) {
    super.onMeasure(widthMeasureSpec, heightMeasureSpec);
  }
  protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
    if (mInterceptor != null) {
      mInterceptor.onLayout(this, changed, left, top, right, bottom);
    }
    else {
      super.onLayout(changed, left, top, right, bottom);
    }
  }
  public void superOnLayout(boolean changed, int left, int top, int right, int bottom) {
    super.onLayout(changed, left, top, right, bottom);
  }
  public void draw(Canvas canvas) {
    if (mInterceptor != null) {
      mInterceptor.draw(this, canvas);
    }
    else {
      super.draw(canvas);
    }
  }
  public void superDraw(Canvas canvas) {
    super.draw(canvas);
  }
  protected void onDraw(Canvas canvas) {
    if (mInterceptor != null) {
      mInterceptor.onDraw(this, canvas);
    }
    else {
      super.onDraw(canvas);
    }
  }
  public void superOnDraw(Canvas canvas) {
    super.onDraw(canvas);
  }
  public void requestLayout() {
    if (mInterceptor != null) {
      mInterceptor.requestLayout(this);
    }
    else {
      super.requestLayout();
    }
  }
  public void superRequestLayout() {
    super.requestLayout();
  }
  public void superSetMeasuredDimension(int width, int height) {
    super.setMeasuredDimension(width, height);
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions