summaryrefslogtreecommitdiffstats
path: root/overlay/packages
diff options
context:
space:
mode:
authoratinm <atinm.dev@gmail.com>2011-11-18 16:41:18 -0500
committeratinm <atinm.dev@gmail.com>2011-11-18 16:41:18 -0500
commitfd7c880b8d0f591186994c206463373869e9ec4f (patch)
treea9776d5dc386b04e2af3b48a7b445bc3fb2fb96c /overlay/packages
parentd3b4a53f4a9c297a73ccaad01eee9ad6586a5569 (diff)
downloaddevice_samsung_aries-common-fd7c880b8d0f591186994c206463373869e9ec4f.zip
device_samsung_aries-common-fd7c880b8d0f591186994c206463373869e9ec4f.tar.gz
device_samsung_aries-common-fd7c880b8d0f591186994c206463373869e9ec4f.tar.bz2
Initial crap
Change-Id: Iea55d594ffc24d554371006682cc954dc91d185d
Diffstat (limited to 'overlay/packages')
-rw-r--r--overlay/packages/apps/CMParts/res/values/config.xml8
-rw-r--r--overlay/packages/apps/Camera/res/values/config.xml24
-rw-r--r--overlay/packages/apps/Contacts/res/values/config.xml21
-rw-r--r--overlay/packages/apps/FM/res/values/config.xml9
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass.jpgbin420605 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass_small.jpgbin27168 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains.jpgbin323665 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains_small.jpgbin19299 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam.jpgbin39209 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam_small.jpgbin6547 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse.jpgbin42199 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse_small.jpgbin5871 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle.jpgbin154313 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle_small.jpgbin8190 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars.jpgbin439193 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars_small.jpgbin33400 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream.jpgbin42360 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream_small.jpgbin5707 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights.jpgbin227572 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights_small.jpgbin23522 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset.jpgbin206025 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset_small.jpgbin14751 -> 0 bytes
-rw-r--r--overlay/packages/apps/Launcher2/res/values-hdpi/wallpapers.xml36
-rw-r--r--overlay/packages/apps/Phone/res/values/config.xml36
-rw-r--r--overlay/packages/apps/Settings/res/values/bools.xml23
-rw-r--r--overlay/packages/wallpapers/Basic/res/drawable-hdpi/nexus_thumb.pngbin14743 -> 0 bytes
-rw-r--r--overlay/packages/wallpapers/Basic/res/drawable-hdpi/pyramid_background.pngbin688177 -> 0 bytes
-rw-r--r--overlay/packages/wallpapers/Basic/res/raw/nexus.rs313
-rw-r--r--overlay/packages/wallpapers/Basic/res/values/surfacemode.xml18
29 files changed, 0 insertions, 488 deletions
diff --git a/overlay/packages/apps/CMParts/res/values/config.xml b/overlay/packages/apps/CMParts/res/values/config.xml
deleted file mode 100644
index 5818480..0000000
--- a/overlay/packages/apps/CMParts/res/values/config.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <!-- Whether or not to display the trackball settings -->
- <bool name="has_trackball">false</bool>
-
- <!-- Notification LED has single color only -->
- <bool name="has_single_notification_led">true</bool>
-</resources>
diff --git a/overlay/packages/apps/Camera/res/values/config.xml b/overlay/packages/apps/Camera/res/values/config.xml
deleted file mode 100644
index a1445c4..0000000
--- a/overlay/packages/apps/Camera/res/values/config.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2011, The CyanogenMod Project
-**
-** Licensed under the Apache License, Version 2.0 (the "License");
-** you may not use this file except in compliance with the License.
-** You may obtain a copy of the License at
-**
-** http://www.apache.org/licenses/LICENSE-2.0
-**
-** Unless required by applicable law or agreed to in writing, software
-** distributed under the License is distributed on an "AS IS" BASIS,
-** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-** See the License for the specific language governing permissions and
-** limitations under the License.
-*/
--->
-
-<resources>
- <!-- Autofocus parameters -->
- <string name="touchFocusParameter">touch-focus</string>
- <bool name="touchFocusNeedsRect">false</bool>
-</resources>
diff --git a/overlay/packages/apps/Contacts/res/values/config.xml b/overlay/packages/apps/Contacts/res/values/config.xml
deleted file mode 100644
index 6e48cd8..0000000
--- a/overlay/packages/apps/Contacts/res/values/config.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 The Android Open Source Project
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<!-- Crespo-specific Contacts app resources. -->
-<resources>
- <!-- Enable the onscreen "Dial" button in the dialer. -->
- <bool name="config_show_onscreen_dial_button">true</bool>
-</resources>
diff --git a/overlay/packages/apps/FM/res/values/config.xml b/overlay/packages/apps/FM/res/values/config.xml
deleted file mode 100644
index 4ee80db..0000000
--- a/overlay/packages/apps/FM/res/values/config.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Aries specific FM app config -->
-<resources>
- <!-- Whether or not Bluetooth must be enabled for FM radio -->
- <bool name="require_bt">false</bool>
-
- <!-- Whether or not seek is supported -->
- <bool name="seek_supported">true</bool>
-</resources>
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass.jpg
deleted file mode 100644
index 5518d6d..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass_small.jpg
deleted file mode 100644
index a1751e2..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass_small.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains.jpg
deleted file mode 100644
index 95c59ea..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains_small.jpg
deleted file mode 100644
index 956e8f0..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains_small.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam.jpg
deleted file mode 100644
index 4bc7ff3..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam_small.jpg
deleted file mode 100644
index f034b33..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam_small.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse.jpg
deleted file mode 100644
index 2f96d02..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse_small.jpg
deleted file mode 100644
index 34ca847..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse_small.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle.jpg
deleted file mode 100644
index f4a3934..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle_small.jpg
deleted file mode 100644
index d580182..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle_small.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars.jpg
deleted file mode 100644
index 8f3ec2d..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars_small.jpg
deleted file mode 100644
index ba76f18..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars_small.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream.jpg
deleted file mode 100644
index fdd4aaf..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream_small.jpg
deleted file mode 100644
index 432d67d..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream_small.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights.jpg
deleted file mode 100644
index a8b6880..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights_small.jpg
deleted file mode 100644
index 11c253e..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights_small.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset.jpg
deleted file mode 100644
index 660040e..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset_small.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset_small.jpg
deleted file mode 100644
index ed79925..0000000
--- a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset_small.jpg
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/apps/Launcher2/res/values-hdpi/wallpapers.xml b/overlay/packages/apps/Launcher2/res/values-hdpi/wallpapers.xml
deleted file mode 100644
index 40033cf..0000000
--- a/overlay/packages/apps/Launcher2/res/values-hdpi/wallpapers.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- * Copyright (C) 2009 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- -->
-
-<resources>
- <string-array name="wallpapers" translatable="false">
- <item>wallpaper_street_lights</item>
- <item>wallpaper_stream</item>
- <item>wallpaper_phasebeam</item>
- <item>wallpaper_pulse</item>
- <item>wallpaper_nexusrain</item>
- <item>wallpaper_stars</item>
- <item>wallpaper_canyon</item>
- <item>wallpaper_grass</item>
- <item>wallpaper_zanzibar</item>
- <item>wallpaper_cloud</item>
- <item>wallpaper_monumentvalley</item>
- <item>wallpaper_mountains</item>
- <item>wallpaper_sunset</item>
- <item>wallpaper_goldengate</item>
- <item>wallpaper_shuttle</item>
- </string-array>
-</resources>
diff --git a/overlay/packages/apps/Phone/res/values/config.xml b/overlay/packages/apps/Phone/res/values/config.xml
deleted file mode 100644
index 69d82c1..0000000
--- a/overlay/packages/apps/Phone/res/values/config.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 The Android Open Source Project
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<!-- Crespo-specific phone app resources. -->
-<resources>
-
- <!-- Enable the onscreen touch UI for all states of the in-call UI. -->
- <bool name="allow_incoming_call_touch_ui">true</bool>
- <bool name="allow_in_call_touch_ui">true</bool>
-
- <!-- This is a device with capacitive buttons, so disable the feature
- where BACK rejects the current incoming call. (Since it's so
- easy to press the key accidentally as you pull the phone out of
- your pocket.) -->
- <bool name="allow_back_key_to_reject_incoming_call">false</bool>
-
- <!-- Enable the onscreen "Dial" button in the emergency dialer. -->
- <bool name="config_show_onscreen_dial_button">true</bool>
-
- <!-- This device implements a noise suppression device for in call audio-->
- <bool name="has_in_call_noise_suppression">true</bool>
-
-</resources>
diff --git a/overlay/packages/apps/Settings/res/values/bools.xml b/overlay/packages/apps/Settings/res/values/bools.xml
deleted file mode 100644
index 83d1213..0000000
--- a/overlay/packages/apps/Settings/res/values/bools.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 The Android Open Source Project
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<resources>
- <!-- Whether or not there is a notification led that is too intrusive to be pulsing
- constantly -->
- <bool name="has_intrusive_led">false</bool>
- <!-- Whether or not the dock settings are to be displayed for this device when docked -->
- <bool name="has_dock_settings">true</bool>
-</resources>
diff --git a/overlay/packages/wallpapers/Basic/res/drawable-hdpi/nexus_thumb.png b/overlay/packages/wallpapers/Basic/res/drawable-hdpi/nexus_thumb.png
deleted file mode 100644
index 84462e2..0000000
--- a/overlay/packages/wallpapers/Basic/res/drawable-hdpi/nexus_thumb.png
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/wallpapers/Basic/res/drawable-hdpi/pyramid_background.png b/overlay/packages/wallpapers/Basic/res/drawable-hdpi/pyramid_background.png
deleted file mode 100644
index 2310a91..0000000
--- a/overlay/packages/wallpapers/Basic/res/drawable-hdpi/pyramid_background.png
+++ /dev/null
Binary files differ
diff --git a/overlay/packages/wallpapers/Basic/res/raw/nexus.rs b/overlay/packages/wallpapers/Basic/res/raw/nexus.rs
deleted file mode 100644
index df79689..0000000
--- a/overlay/packages/wallpapers/Basic/res/raw/nexus.rs
+++ /dev/null
@@ -1,313 +0,0 @@
-// Copyright (C) 2009 The Android Open Source Project
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-#pragma version(1)
-#pragma stateVertex(PVOrtho)
-#pragma stateStore(PSSolid)
-
-#define MAX_PULSES 20
-#define MAX_EXTRAS 40
-#define PULSE_SIZE 14 // Size in pixels of a cell
-#define HALF_PULSE_SIZE 7
-#define GLOW_SIZE 64 // Size of the leading glow in pixels
-#define HALF_GLOW_SIZE 32
-#define SPEED 0.2f // (200 / 1000) Pixels per ms
-#define SPEED_VARIANCE 0.3f
-#define PULSE_NORMAL 0
-#define PULSE_EXTRA 1
-#define TRAIL_SIZE 40 // Number of cells in a trail
-#define MAX_DELAY 2000 // Delay between a pulse going offscreen and restarting
-
-struct pulse_s {
- int pulseType;
- float originX;
- float originY;
- int color;
- int startTime;
- float dx;
- float dy;
- float scale;
- int active;
-};
-struct pulse_s gPulses[MAX_PULSES];
-
-struct pulse_s gExtras[MAX_EXTRAS];
-
-int gNow;
-
-
-void setColor(int c) {
- if (State->mode == 1) {
- // sholes red
- color(0.9f, 0.1f, 0.1f, 0.8f);
- } else if (c == 0) {
- // red
- color(1.0f, 0.0f, 0.0f, 0.8f);
- } else if (c == 1) {
- // green
- color(0.0f, 0.8f, 0.0f, 0.8f);
- } else if (c == 2) {
- // blue
- color(0.0f, 0.4f, 0.9f, 0.8f);
- } else if (c == 3) {
- // yellow
- color(1.0f, 0.8f, 0.0f, 0.8f);
- }
-}
-
-void initPulse(struct pulse_s * pulse, int pulseType) {
- float scale = randf2(0.7f, 1.7f);
- pulse->scale = scale;
- if (randf(1) > 0.5f) {
- pulse->originX = (int)randf(State->width * 2 / PULSE_SIZE) * PULSE_SIZE;
- pulse->dx = 0;
- if (randf(1) > 0.5f) {
- // Top
- pulse->originY = 0;
- pulse->dy = scale;
- } else {
- // Bottom
- pulse->originY = State->height / scale;
- pulse->dy = -scale;
- }
- } else {
- pulse->originY = (int)randf(State->height / PULSE_SIZE) * PULSE_SIZE;
- pulse->dy = 0;
- if (randf(1) > 0.5f) {
- // Left
- pulse->originX = 0;
- pulse->dx = scale;
- } else {
- // Right
- pulse->originX = State->width * 2 / scale;
- pulse->dx = -scale;
- }
- }
- pulse->startTime = gNow + (int)randf(MAX_DELAY);
-
- pulse->color = (int)randf(4.0f);
-
- pulse->pulseType = pulseType;
- if (pulseType == PULSE_EXTRA) {
- pulse->active = 0;
- } else {
- pulse->active = 1;
- }
-}
-
-void initPulses() {
- gNow = uptimeMillis();
- int i;
- for (i=0; i<MAX_PULSES; i++) {
- initPulse(&gPulses[i], PULSE_NORMAL);
- }
- for (i=0; i<MAX_EXTRAS; i++) {
- struct pulse_s * p = &gExtras[i];
- p->pulseType = PULSE_EXTRA;
- p->active = 0;
- }
-}
-
-void drawBackground(int width, int height) {
- bindProgramFragment(NAMED_PFTextureBG);
- bindTexture(NAMED_PFTextureBG, 0, NAMED_TBackground);
- color(1.0f, 1.0f, 1.0f, 1.0f);
- if (State->rotate) {
- drawRect(0.0f, 0.0f, height*2, width, 0.0f);
- } else {
- drawRect(0.0f, 0.0f, width*2, height, 0.0f);
- }
-}
-
-void drawPulses(struct pulse_s * pulseSet, int setSize) {
- bindProgramFragment(NAMED_PFTexture);
- bindProgramFragmentStore(NAMED_PSBlend);
-
- float matrix[16];
- float modelMatrix[16];
-
- int i;
- for (i=0; i<setSize; i++) {
- struct pulse_s * p = &pulseSet[i];
-
- int delta = gNow - p->startTime;
-
- if (p->active != 0 && delta >= 0) {
-
- matrixLoadIdentity(modelMatrix);
- if (State->rotate) {
- //matrixLoadRotate(modelMatrix, 90.0f, 0.0f, 0.0f, 1.0f);
- //matrixTranslate(modelMatrix, 0.0f, -height, 1.0f);
- // XXX: HAX: do not slide display in landscape
- } else {
- matrixTranslate(modelMatrix, -(State->xOffset * State->width), 0, 0);
- }
- matrixScale(modelMatrix, p->scale, p->scale, 1.0f);
- vpLoadModelMatrix(modelMatrix);
-
- float x = p->originX + (p->dx * SPEED * delta);
- float y = p->originY + (p->dy * SPEED * delta);
-
- matrixLoadIdentity(matrix);
- if (p->dx < 0) {
- vpLoadTextureMatrix(matrix);
- float xx = x + (TRAIL_SIZE * PULSE_SIZE);
- if (xx <= 0) {
- initPulse(p, p->pulseType);
- } else {
- setColor(p->color);
- bindTexture(NAMED_PFTexture, 0, NAMED_TPulse);
- drawRect(x, y, xx, y + PULSE_SIZE, 0.0f);
- bindTexture(NAMED_PFTexture, 0, NAMED_TGlow);
- drawRect(x + HALF_PULSE_SIZE - HALF_GLOW_SIZE,
- y + HALF_PULSE_SIZE - HALF_GLOW_SIZE,
- x + HALF_PULSE_SIZE + HALF_GLOW_SIZE,
- y + HALF_PULSE_SIZE + HALF_GLOW_SIZE,
- 0.0f);
- }
- } else if (p->dx > 0) {
- x += PULSE_SIZE; // need to start on the other side of this cell
- vpLoadTextureMatrix(matrix);
- float xx = x - (TRAIL_SIZE * PULSE_SIZE);
- if (xx >= State->width * 2) {
- initPulse(p, p->pulseType);
- } else {
- setColor(p->color);
- bindTexture(NAMED_PFTexture, 0, NAMED_TPulse);
- drawRect(x, y, xx, y + PULSE_SIZE, 0.0f);
- bindTexture(NAMED_PFTexture, 0, NAMED_TGlow);
- drawRect(x - HALF_PULSE_SIZE - HALF_GLOW_SIZE,
- y + HALF_PULSE_SIZE - HALF_GLOW_SIZE,
- x - HALF_PULSE_SIZE + HALF_GLOW_SIZE,
- y + HALF_PULSE_SIZE + HALF_GLOW_SIZE,
- 0.0f);
- }
- } else if (p->dy < 0) {
- vpLoadTextureMatrix(matrix);
- float yy = y + (TRAIL_SIZE * PULSE_SIZE);
- if (yy <= 0) {
- initPulse(p, p->pulseType);
- } else {
- setColor(p->color);
- bindTexture(NAMED_PFTexture, 0, NAMED_TPulseVert);
- drawRect(x, yy, x + PULSE_SIZE, y, 0.0f);
- bindTexture(NAMED_PFTexture, 0, NAMED_TGlow);
- drawRect(x + HALF_PULSE_SIZE - HALF_GLOW_SIZE,
- y + HALF_PULSE_SIZE - HALF_GLOW_SIZE,
- x + HALF_PULSE_SIZE + HALF_GLOW_SIZE,
- y + HALF_PULSE_SIZE + HALF_GLOW_SIZE,
- 0.0f);
- }
- } else if (p->dy > 0) {
- y += PULSE_SIZE; // need to start on the other side of this cell
- vpLoadTextureMatrix(matrix);
- float yy = y - (TRAIL_SIZE * PULSE_SIZE);
- if (yy >= State->height) {
- initPulse(p, p->pulseType);
- } else {
- setColor(p->color);
- bindTexture(NAMED_PFTexture, 0, NAMED_TPulseVert);
- drawRect(x, yy, x + PULSE_SIZE, y, 0.0f);
- bindTexture(NAMED_PFTexture, 0, NAMED_TGlow);
- drawRect(x + HALF_PULSE_SIZE - HALF_GLOW_SIZE,
- y - HALF_PULSE_SIZE - HALF_GLOW_SIZE,
- x + HALF_PULSE_SIZE + HALF_GLOW_SIZE,
- y - HALF_PULSE_SIZE + HALF_GLOW_SIZE,
- 0.0f);
- }
- }
- }
- }
-
-
- matrixLoadIdentity(matrix);
- vpLoadTextureMatrix(matrix);
-}
-
-void addTap(int x, int y) {
- int i;
- int count = 0;
- int color = (int)randf(4.0f);
- float scale = randf2(0.9f, 1.9f);
- x = (int)(x / PULSE_SIZE) * PULSE_SIZE;
- y = (int)(y / PULSE_SIZE) * PULSE_SIZE;
- for (i=0; i<MAX_EXTRAS; i++) {
- struct pulse_s * p = &gExtras[i];
- if (p->active == 0) {
- p->originX = x/scale;
- p->originY = y/scale;
- p->scale = scale;
-
- if (count == 0) {
- p->dx = scale;
- p->dy = 0.0f;
- } else if (count == 1) {
- p->dx = -scale;
- p->dy = 0.0f;
- } else if (count == 2) {
- p->dx = 0.0f;
- p->dy = scale;
- } else if (count == 3) {
- p->dx = 0.0f;
- p->dy = -scale;
- }
-
- p->active = 1;
- p->color = color;
- color++;
- if (color >= 4) {
- color = 0;
- }
- p->startTime = gNow;
- count++;
- if (count == 4) {
- break;
- }
- }
- }
-}
-
-int main(int index) {
-
- gNow = uptimeMillis();
-
- if (Command->command != 0) {
- //debugF("x", Command->x);
- //debugF("y", Command->y);
- Command->command = 0;
- addTap(Command->x, Command->y);
- }
-
- int width = State->width;
- int height = State->height;
-
- float matrix[16];
- matrixLoadIdentity(matrix);
- if (State->rotate) {
- //matrixLoadRotate(matrix, 90.0f, 0.0f, 0.0f, 1.0f);
- //matrixTranslate(matrix, 0.0f, -height, 1.0f);
- // XXX: HAX: do not slide display in landscape
- } else {
- matrixTranslate(matrix, -(State->xOffset * width), 0, 0);
- }
-
- vpLoadModelMatrix(matrix);
-
- drawBackground(width, height);
-
- drawPulses(gPulses, MAX_PULSES);
- drawPulses(gExtras, MAX_EXTRAS);
-
- return 45;
-}
diff --git a/overlay/packages/wallpapers/Basic/res/values/surfacemode.xml b/overlay/packages/wallpapers/Basic/res/values/surfacemode.xml
deleted file mode 100644
index 37774ed..0000000
--- a/overlay/packages/wallpapers/Basic/res/values/surfacemode.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2010 The Android Open Source Project
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<resources>
- <bool name="use_32bit">true</bool>
-</resources>