summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/ScriptC_allapps.java
blob: 4bd1c3926ca9b337472f6ae594c5601f8b638e4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197

package com.android.launcher2;

import android.content.res.Resources;
import android.renderscript.*;
import android.util.Log;

public class ScriptC_allapps
    extends android.renderscript.ScriptC
{
    public ScriptC_allapps(RenderScript rs, Resources resources, int id, boolean isRoot) {
        super(rs, resources, id, isRoot);
    }

    private int mField_COLUMNS_PER_PAGE_PORTRAIT;
    public void set_COLUMNS_PER_PAGE_PORTRAIT(int v) {
        mField_COLUMNS_PER_PAGE_PORTRAIT = v;
        setVar(0, v);
    }

    private int mField_ROWS_PER_PAGE_PORTRAIT;
    public void set_ROWS_PER_PAGE_PORTRAIT(int v) {
        mField_ROWS_PER_PAGE_PORTRAIT = v;
        setVar(1, v);
    }

    private int mField_COLUMNS_PER_PAGE_LANDSCAPE;
    public void set_COLUMNS_PER_PAGE_LANDSCAPE(int v) {
        mField_COLUMNS_PER_PAGE_LANDSCAPE = v;
        setVar(2, v);
    }

    private int mField_ROWS_PER_PAGE_LANDSCAPE;
    public void set_ROWS_PER_PAGE_LANDSCAPE(int v) {
        mField_ROWS_PER_PAGE_LANDSCAPE = v;
        setVar(3, v);
    }


    private float mField_gNewPositionX;
    public void set_gNewPositionX(float v) {
        mField_gNewPositionX = v;
        setVar(4, v);
    }

    private int mField_gNewTouchDown;
    public void set_gNewTouchDown(int v) {
        mField_gNewTouchDown = v;
        setVar(5, v);
    }

    private float mField_gFlingVelocity;
    public void set_gFlingVelocity(float v) {
        mField_gFlingVelocity = v;
        setVar(6, v);
    }

    private int mField_gIconCount;
    public void set_gIconCount(int v) {
        mField_gIconCount = v;
        setVar(7, v);
    }
    public int get_gIconCount() {
        return mField_gIconCount;
    }

    private int mField_gSelectedIconIndex;
    public void set_gSelectedIconIndex(int v) {
        mField_gSelectedIconIndex = v;
        setVar(8, v);
    }
    public int get_gSelectedIconIndex() {
        return mField_gSelectedIconIndex;
    }

    private Allocation mField_gSelectedIconTexture;
    public void set_gSelectedIconTexture(Allocation v) {
        mField_gSelectedIconTexture = v;
        setVar(9, v.getID());
    }

    private float mField_gZoomTarget;
    public void set_gZoomTarget(float v) {
        mField_gZoomTarget = v;
        setVar(10, v);
    }

    private Allocation mField_gHomeButton;
    public void set_gHomeButton(Allocation v) {
        mField_gHomeButton = v;
        setVar(11, v.getID());
    }

    private float mField_gTargetPos;
    public void set_gTargetPos(float v) {
        mField_gTargetPos = v;
        setVar(12, v);
    }


    private ProgramFragment mField_gPFTexNearest;
    public void set_gPFTexNearest(ProgramFragment v) {
        mField_gPFTexNearest = v;
        setVar(13, v.getID());
    }

    private ProgramFragment mField_gPFTexMip;
    public void set_gPFTexMip(ProgramFragment v) {
        mField_gPFTexMip = v;
        setVar(14, v.getID());
    }

    private ProgramFragment mField_gPFTexMipAlpha;
    public void set_gPFTexMipAlpha(ProgramFragment v) {
        mField_gPFTexMipAlpha = v;
        setVar(15, v.getID());
    }

    private ProgramVertex mField_gPVCurve;
    public void set_gPVCurve(ProgramVertex v) {
        mField_gPVCurve = v;
        setVar(16, v.getID());
    }

    private ProgramStore mField_gPS;
    public void set_gPS(ProgramStore v) {
        mField_gPS = v;
        setVar(17, v.getID());
    }

    private SimpleMesh mField_gSMCell;
    public void set_gSMCell(SimpleMesh v) {
        mField_gSMCell = v;
        setVar(18, v.getID());
    }


    // binds
    private Allocation mField_gIconIDs;
    public void bind_gIconIDs(Allocation f) {
        mField_gIconIDs = f;
        bindAllocation(f, 19);
    }
    public Allocation get_gIconIDs() {
        return mField_gIconIDs;
    }

    private Allocation mField_gLabelIDs;
    public void bind_gLabelIDs(Allocation f) {
        mField_gLabelIDs = f;
        bindAllocation(f, 20);
    }
    public Allocation get_gLabelIDs() {
        return mField_gLabelIDs;
    }

    private ScriptField_VpConsts mField_vpConstants;
    public void bind_vpConstants(ScriptField_VpConsts f) {
        android.util.Log.e("rs", "bind_vpConstants " + f);
        mField_vpConstants = f;
        if (f == null) {
            bindAllocation(null, 21);
        } else {
            bindAllocation(f.getAllocation(), 21);
        }
    }
    public ScriptField_VpConsts get_vpConstants() {
        return mField_vpConstants;
    }



//#pragma rs export_func(resetHWWar, move, moveTo, setZoom, fling)

    public void invokable_Move() {
        //android.util.Log.e("rs", "invokable_Move");
        invoke(7);  // verified
    }
    public void invokable_MoveTo() {
        //android.util.Log.e("rs", "invokable_MoveTo");
        invoke(8);  // verified
    }
    public void invokable_Fling() {
        //android.util.Log.e("rs", "invokable_Fling");
        invoke(2);
    }
    //public void invokable_ResetWAR() {
        //android.util.Log.e("rs", "invokable_WAR");
        //invoke(9);  // verified
    //}
    public void invokable_SetZoom() {
        //android.util.Log.e("rs", "invokable_SetZoom");
        invoke(12);
    }
}