Reducing method count by eliminating synthetic accessors
Elimates 304 methods based on dex analysis The java compiler generates sythetic accessor methods for all private fields, methods and contructors accessed from inner classes. By marking them package-private and @Thunk instead, sythentic accessor methods are no longer needeed. These annotated elements should be treated as private. Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
This commit is contained in:
1 parent
f846b9054c
commit
091440a9cb
44 files changed
+364
-260
No files matched your search
@@ -29,8 +29,10 @@ import android.graphics.Rect;
|
||||
import android.view.View;
|
||||
import android.view.animation.DecelerateInterpolator;
|
||||
|
||||
import com.android.launcher3.util.Thunk;
|
||||
|
||||
public class DragView extends View {
|
||||
private static float sDragAlpha = 1f;
|
||||
@Thunk static float sDragAlpha = 1f;
|
||||
|
||||
private Bitmap mBitmap;
|
||||
private Bitmap mCrossFadeBitmap;
|
||||
@@ -42,11 +44,11 @@ public class DragView extends View {
|
||||
private Rect mDragRegion = null;
|
||||
private DragLayer mDragLayer = null;
|
||||
private boolean mHasDrawn = false;
|
||||
private float mCrossFadeProgress = 0f;
|
||||
@Thunk float mCrossFadeProgress = 0f;
|
||||
|
||||
ValueAnimator mAnim;
|
||||
private float mOffsetX = 0.0f;
|
||||
private float mOffsetY = 0.0f;
|
||||
@Thunk float mOffsetX = 0.0f;
|
||||
@Thunk float mOffsetY = 0.0f;
|
||||
private float mInitialScale = 1f;
|
||||
// The intrinsic icon scale factor is the scale factor for a drag icon over the workspace
|
||||
// size. This is ignored for non-icons.
|
||||
|
||||
Reference in new issue
Block a user