Home
last modified time | relevance | path

Searched refs:mRS (Results 1 – 18 of 18) sorted by relevance

/packages/wallpapers/Galaxy4/src/com/android/galaxy4/
DGalaxyRS.java30 private RenderScriptGL mRS; field in GalaxyRS
57 mRS = rs; in init()
66 mSpaceClouds = new ScriptField_Particle(mRS, SPACE_CLOUDSTAR_COUNT); in init()
67 Mesh.AllocationBuilder smb = new Mesh.AllocationBuilder(mRS); in init()
72 mBgStars = new ScriptField_Particle(mRS, BG_STAR_COUNT); in init()
73 Mesh.AllocationBuilder smb2 = new Mesh.AllocationBuilder(mRS); in init()
78 mStaticStars = new ScriptField_Particle(mRS, STATIC_STAR_COUNT); in init()
79 Mesh.AllocationBuilder smb3 = new Mesh.AllocationBuilder(mRS); in init()
84 mScript = new ScriptC_galaxy(mRS, mRes, R.raw.galaxy); in init()
92 mPvConsts = new ScriptField_VpConsts(mRS, 1); in init()
[all …]
DGalaxyView.java16 private RenderScriptGL mRS; field in GalaxyView
27 if (mRS == null) { in surfaceChanged()
29 mRS = createRenderScriptGL(sc); in surfaceChanged()
30 mRS.setSurface(holder, w, h); in surfaceChanged()
38 mRender.init(metrics.densityDpi, mRS, getResources(), w, h); in surfaceChanged()
46 if (mRS != null) { in onDetachedFromWindow()
47 mRS.setSurface(null, 0, 0); in onDetachedFromWindow()
48 mRS = null; in onDetachedFromWindow()
/packages/wallpapers/PhaseBeam/src/com/android/phasebeam/
DPhaseBeamRS.java36 private RenderScriptGL mRS; field in PhaseBeamRS
61 mRS = rs; in init()
67 mDotParticles = new ScriptField_Particle(mRS, DOT_COUNT); in init()
68 Mesh.AllocationBuilder smb2 = new Mesh.AllocationBuilder(mRS); in init()
73 mBeamParticles = new ScriptField_Particle(mRS, DOT_COUNT); in init()
74 Mesh.AllocationBuilder smb3 = new Mesh.AllocationBuilder(mRS); in init()
79 mScript = new ScriptC_phasebeam(mRS, mRes, R.raw.phasebeam); in init()
85 mPvConsts = new ScriptField_VpConsts(mRS, 1); in init()
96 mRS.bindRootScript(mScript); in init()
157 mVertexColors = new ScriptField_VertexColor_s(mRS, meshDataSize); in createBackgroundMesh()
[all …]
DPhaseBeamView.java10 private RenderScriptGL mRS; field in PhaseBeamView
22 if (mRS == null) { in surfaceChanged()
24 mRS = createRenderScriptGL(sc); in surfaceChanged()
25 mRS.setSurface(holder, w, h); in surfaceChanged()
28 mRender.init(240, mRS, getResources(), w, h); in surfaceChanged()
35 if (mRS != null) { in onDetachedFromWindow()
36 mRS.setSurface(null, 0, 0); in onDetachedFromWindow()
37 mRS = null; in onDetachedFromWindow()
/packages/wallpapers/Basic/src/com/android/wallpaper/galaxy/
DGalaxyRS.java51 mScript = new ScriptC_galaxy(mRS, mResources, R.raw.galaxy); in createScript()
70 ScriptField_Particle p = new ScriptField_Particle(mRS, PARTICLES_COUNT); in createParticlesMesh()
72 final Mesh.AllocationBuilder meshBuilder = new Mesh.AllocationBuilder(mRS); in createParticlesMesh()
138 final Allocation allocation = Allocation.createFromBitmapResource(mRS, mResources, id); in loadTexture()
145 final Allocation allocation = Allocation.createFromBitmap(mRS, b); in loadTextureARGB()
150 … ProgramFragmentFixedFunction.Builder builder = new ProgramFragmentFixedFunction.Builder(mRS); in createProgramFragment()
154 pfb.bindSampler(Sampler.WRAP_NEAREST(mRS), 0); in createProgramFragment()
157 builder = new ProgramFragmentFixedFunction.Builder(mRS); in createProgramFragment()
163 pfs.bindSampler(Sampler.WRAP_LINEAR(mRS), 0); in createProgramFragment()
168 ProgramStore.Builder builder = new ProgramStore.Builder(mRS); in createProgramFragmentStore()
[all …]
/packages/wallpapers/NoiseField/src/com/android/noisefield/
DNoiseFieldRS.java37 private RenderScriptGL mRS; field in NoiseFieldRS
54 mRS = rs; in init()
63 Mesh.AllocationBuilder smb2 = new Mesh.AllocationBuilder(mRS); in init()
65 mDotParticles = new ScriptField_Particle(mRS, 83); in init()
69 mScript = new ScriptC_noisefield(mRS, mRes, R.raw.noisefield); in init()
75 mPvConsts = new ScriptField_VpConsts(mRS, 1); in init()
142 mVertexColors = new ScriptField_VertexColor_s(mRS, meshDataSize); in createBackgroundMesh()
156 Mesh.AllocationBuilder backgroundBuilder = new Mesh.AllocationBuilder(mRS); in createBackgroundMesh()
164 final Allocation allocation = Allocation.createFromBitmapResource(mRS, mRes, id); in loadTexture()
174 ProgramVertex.Builder backgroundBuilder = new ProgramVertex.Builder(mRS); in createProgramVertex()
[all …]
DNoiseFieldView.java10 private RenderScriptGL mRS; field in NoiseFieldView
22 if (mRS == null) { in surfaceChanged()
24 mRS = createRenderScriptGL(sc); in surfaceChanged()
25 mRS.setSurface(holder, w, h); in surfaceChanged()
28 mRender.init(240, mRS, getResources(), w, h); in surfaceChanged()
34 if (mRS != null) { in onDetachedFromWindow()
35 mRS.setSurface(null, 0, 0); in onDetachedFromWindow()
36 mRS = null; in onDetachedFromWindow()
/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
DHoloSpiralRS.java65 private RenderScriptGL mRS = null; field in HoloSpiralRS
73 mRS = renderer; in init()
88 mRS.bindRootScript(mScript); in start()
92 mRS.bindRootScript(null); in stop()
100 mScript = new ScriptC_holo_spiral(mRS, mResources, R.raw.holo_spiral); in createScript()
115 new ScriptField_VertexShaderConstants_s(mRS, 1); in createVertexPrograms()
120 ProgramVertex.Builder backgroundBuilder = new ProgramVertex.Builder(mRS); in createVertexPrograms()
122 backgroundBuilder.addInput(ScriptField_VertexColor_s.createElement(mRS)); in createVertexPrograms()
126 ProgramVertex.Builder geometryBuilder = new ProgramVertex.Builder(mRS); in createVertexPrograms()
129 geometryBuilder.addInput(ScriptField_VertexColor_s.createElement(mRS)); in createVertexPrograms()
[all …]
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/
DVisualization5RS.java155 mScript = new ScriptC_many(mRS, mResources, R.raw.many); in createScript()
158 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS); in createScript()
160 mPVAlloc = new ProgramVertexFixedFunction.Constants(mRS); in createScript()
169 mTextures[0] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.background, in createScript()
173 mTextures[1] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.frame, in createScript()
177 mTextures[2] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.peak_on, in createScript()
181 mTextures[3] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.peak_off, in createScript()
185 mTextures[4] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.needle, in createScript()
189 mTextures[5] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.black, in createScript()
193 mTextures[6] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.albumart, in createScript()
[all …]
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/
DNexusRS.java77 mScript = new ScriptC_nexus(mRS, mResources, R.raw.nexus); in createScript()
106 return Allocation.createFromBitmapResource(mRS, mResources, id); in loadTexture()
111 return Allocation.createFromBitmap(mRS, b); in loadTextureARGB()
117 … ProgramFragmentFixedFunction.Builder builder = new ProgramFragmentFixedFunction.Builder(mRS); in createProgramFragment()
121 pft.bindSampler(Sampler.WRAP_LINEAR(mRS), 0); in createProgramFragment()
125 builder = new ProgramFragmentFixedFunction.Builder(mRS); in createProgramFragment()
129 pft565.bindSampler(Sampler.CLAMP_NEAREST(mRS), 0); in createProgramFragment()
134 ProgramStore.Builder builder = new ProgramStore.Builder(mRS); in createProgramFragmentStore()
139 mRS.bindProgramStore(solid); in createProgramFragmentStore()
146 mPvOrthoAlloc = new ProgramVertexFixedFunction.Constants(mRS); in createProgramVertex()
[all …]
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis4/
DVisualization4RS.java95 mScript = new ScriptC_vu(mRS, mResources, R.raw.vu); in createScript()
98 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS); in createScript()
100 mPVAlloc = new ProgramVertexFixedFunction.Constants(mRS); in createScript()
111 mTextures[0] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.background); in createScript()
113 mTextures[1] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.frame); in createScript()
115 mTextures[2] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.peak_on); in createScript()
117 mTextures[3] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.peak_off); in createScript()
119 mTextures[4] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.needle); in createScript()
121 mTextures[5] = Allocation.createFromBitmapResource(mRS, mResources, R.drawable.black); in createScript()
124 Sampler.Builder samplerBuilder = new Sampler.Builder(mRS); in createScript()
[all …]
/packages/wallpapers/Basic/src/com/android/wallpaper/grass/
DGrassRS.java140 mScript = new ScriptC_grass(mRS, mResources, R.raw.grass); in createScript()
179 mBlades = new ScriptField_Blade(mRS, BLADES_COUNT); in createBlades()
197 mVertexBuffer = new ScriptField_Vertex(mRS, mVerticies * 2); in createMesh()
199 final Mesh.AllocationBuilder meshBuilder = new Mesh.AllocationBuilder(mRS); in createMesh()
202 mBladesIndicies = Allocation.createSized(mRS, Element.U16(mRS), mIndicies); in createMesh()
256 final Type.Builder builder = new Type.Builder(mRS, A_8(mRS)); in generateTextureAlpha()
261 final Allocation allocation = Allocation.createTyped(mRS, builder.create(), in generateTextureAlpha()
267 AllocationAdapter a = AllocationAdapter.create2D(mRS, allocation); in generateTextureAlpha()
279 return Allocation.createFromBitmapResource(mRS, mResources, id); in loadTexture()
283 Sampler.Builder samplerBuilder = new Sampler.Builder(mRS); in createProgramFragment()
[all …]
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/
DRenderScriptScene.java31 protected RenderScriptGL mRS; field in RenderScriptScene
40 mRS = rs; in init()
63 return mRS; in getRS()
73 mRS.bindRootScript(null); in stop()
77 mRS.bindRootScript(mScript); in start()
DGenericWaveRS.java109 mScript = new ScriptC_waveform(mRS, mResources, R.raw.waveform); in createScript()
122 ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS); in createScript()
124 mPVAlloc = new ProgramVertexFixedFunction.Constants(mRS); in createScript()
132 mVertexBuffer = new ScriptField_Vertex(mRS, mPointData.length / 4); in createScript()
135 final Mesh.AllocationBuilder meshBuilder = new Mesh.AllocationBuilder(mRS); in createScript()
153 mTexture = Allocation.createFromBitmapResource(mRS, mResources, mTexId); in createScript()
160 Sampler.Builder samplerBuilder = new Sampler.Builder(mRS); in createScript()
167 … ProgramFragmentFixedFunction.Builder builder = new ProgramFragmentFixedFunction.Builder(mRS); in createScript()
/packages/wallpapers/Basic/src/com/android/wallpaper/
DRenderScriptScene.java30 protected RenderScriptGL mRS; field in RenderScriptScene
39 mRS = rs; in init()
62 return mRS; in getRS()
72 mRS.bindRootScript(null); in stop()
76 mRS.bindRootScript(mScript); in start()
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/
DRenderScriptScene.java32 protected RenderScriptGL mRS; field in RenderScriptScene
41 mRS = rs; in init()
64 return mRS; in getRS()
74 mRS.bindRootScript(null); in stop()
79 mRS.bindRootScript(mScript); in start()
DMagicSmokeRS.java159 mRS.finish(); in onSharedPreferenceChanged()
270 mRealTextures[index] = Allocation.createTyped(mRS, mTextureType, in loadBitmap()
274 mSourceTextures[index] = Allocation.createTyped(mRS, mTextureType, in loadBitmap()
327 mScript = new ScriptC_clouds(mRS, mResources, R.raw.clouds); in createScript()
329 mVSConst = new ScriptField_VertexShaderConstants_s(mRS, 1); in createScript()
333 ProgramVertex.Builder builder = new ProgramVertex.Builder(mRS); in createScript()
336 builder.addInput(ScriptField_VertexInputs_s.createElement(mRS)); in createScript()
351 Type.Builder tb = new Type.Builder(mRS, Element.RGBA_8888(mRS)); in createScript()
357 Sampler.Builder samplerBuilder = new Sampler.Builder(mRS); in createScript()
367 mFSConst = new ScriptField_FragmentShaderConstants_s(mRS, 1); in createScript()
[all …]
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/
DFallRS.java138 mScript = new ScriptC_fall(mRS, mResources, R.raw.fall); in createScript()
155 Mesh.TriangleMeshBuilder tmb = new Mesh.TriangleMeshBuilder(mRS, 2, 0); in createMesh()
243 final Allocation allocation = Allocation.createFromBitmapResource(mRS, mResources, id); in loadTexture()
249 final Allocation allocation = Allocation.createFromBitmap(mRS, b); in loadTextureARGB()
254 Sampler.Builder sampleBuilder = new Sampler.Builder(mRS); in createProgramFragment()
261 … ProgramFragmentFixedFunction.Builder builder = new ProgramFragmentFixedFunction.Builder(mRS); in createProgramFragment()
269 builder = new ProgramFragmentFixedFunction.Builder(mRS); in createProgramFragment()
279 ProgramStore.Builder builder = new ProgramStore.Builder(mRS); in createProgramFragmentStore()
286 builder = new ProgramStore.Builder(mRS); in createProgramFragmentStore()
298 mPvOrthoAlloc = new ProgramVertexFixedFunction.Constants(mRS); in createProgramVertex()
[all …]