diff options
author | Kolja Dummann <k.dummann@gmail.com> | 2011-05-26 23:13:57 +0200 |
---|---|---|
committer | Kolja Dummann <k.dummann@gmail.com> | 2011-05-28 18:23:34 +0200 |
commit | 163c7a28554f63d61f26391f223adcbbe0cdb2e3 (patch) | |
tree | 6b9c361dbbe7a0c3f8ab43ba3362274e16115772 /overlay/packages | |
parent | 32f1062d6f60bf4a38c17413660ae1b4634d740c (diff) | |
download | device_samsung_aries-common-163c7a28554f63d61f26391f223adcbbe0cdb2e3.zip device_samsung_aries-common-163c7a28554f63d61f26391f223adcbbe0cdb2e3.tar.gz device_samsung_aries-common-163c7a28554f63d61f26391f223adcbbe0cdb2e3.tar.bz2 |
overlay: code dedup, move overlay to aries-common
new update script for radio image
fix tethering interface
Change-Id: I19583cce1aac14cef01f5ba05b85fb1bfbedb507
Diffstat (limited to 'overlay/packages')
26 files changed, 447 insertions, 0 deletions
diff --git a/overlay/packages/apps/Contacts/res/values/config.xml b/overlay/packages/apps/Contacts/res/values/config.xml new file mode 100644 index 0000000..6e48cd8 --- /dev/null +++ b/overlay/packages/apps/Contacts/res/values/config.xml @@ -0,0 +1,21 @@ +<?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/Launcher2/res/drawable-hdpi/wallpaper_grass.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass.jpg Binary files differnew file mode 100644 index 0000000..5518d6d --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass.jpg 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 Binary files differnew file mode 100644 index 0000000..a1751e2 --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_grass_small.jpg diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains.jpg Binary files differnew file mode 100644 index 0000000..95c59ea --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains.jpg 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 Binary files differnew file mode 100644 index 0000000..956e8f0 --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_mountains_small.jpg diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam.jpg Binary files differnew file mode 100644 index 0000000..4bc7ff3 --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam.jpg 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 Binary files differnew file mode 100644 index 0000000..f034b33 --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_phasebeam_small.jpg diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse.jpg Binary files differnew file mode 100644 index 0000000..2f96d02 --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse.jpg 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 Binary files differnew file mode 100644 index 0000000..34ca847 --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_pulse_small.jpg diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle.jpg Binary files differnew file mode 100644 index 0000000..f4a3934 --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle.jpg 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 Binary files differnew file mode 100644 index 0000000..d580182 --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_shuttle_small.jpg diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars.jpg Binary files differnew file mode 100644 index 0000000..8f3ec2d --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars.jpg 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 Binary files differnew file mode 100644 index 0000000..ba76f18 --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stars_small.jpg diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream.jpg Binary files differnew file mode 100644 index 0000000..fdd4aaf --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream.jpg 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 Binary files differnew file mode 100644 index 0000000..432d67d --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_stream_small.jpg 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 Binary files differnew file mode 100644 index 0000000..a8b6880 --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights.jpg 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 Binary files differnew file mode 100644 index 0000000..11c253e --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_street_lights_small.jpg diff --git a/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset.jpg b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset.jpg Binary files differnew file mode 100644 index 0000000..660040e --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset.jpg 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 Binary files differnew file mode 100644 index 0000000..ed79925 --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/drawable-hdpi/wallpaper_sunset_small.jpg diff --git a/overlay/packages/apps/Launcher2/res/values-hdpi/wallpapers.xml b/overlay/packages/apps/Launcher2/res/values-hdpi/wallpapers.xml new file mode 100644 index 0000000..40033cf --- /dev/null +++ b/overlay/packages/apps/Launcher2/res/values-hdpi/wallpapers.xml @@ -0,0 +1,36 @@ +<?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 new file mode 100644 index 0000000..69d82c1 --- /dev/null +++ b/overlay/packages/apps/Phone/res/values/config.xml @@ -0,0 +1,36 @@ +<?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 new file mode 100644 index 0000000..83d1213 --- /dev/null +++ b/overlay/packages/apps/Settings/res/values/bools.xml @@ -0,0 +1,23 @@ +<?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 Binary files differnew file mode 100644 index 0000000..84462e2 --- /dev/null +++ b/overlay/packages/wallpapers/Basic/res/drawable-hdpi/nexus_thumb.png diff --git a/overlay/packages/wallpapers/Basic/res/drawable-hdpi/pyramid_background.png b/overlay/packages/wallpapers/Basic/res/drawable-hdpi/pyramid_background.png Binary files differnew file mode 100644 index 0000000..2310a91 --- /dev/null +++ b/overlay/packages/wallpapers/Basic/res/drawable-hdpi/pyramid_background.png diff --git a/overlay/packages/wallpapers/Basic/res/raw/nexus.rs b/overlay/packages/wallpapers/Basic/res/raw/nexus.rs new file mode 100644 index 0000000..df79689 --- /dev/null +++ b/overlay/packages/wallpapers/Basic/res/raw/nexus.rs @@ -0,0 +1,313 @@ +// 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 new file mode 100644 index 0000000..37774ed --- /dev/null +++ b/overlay/packages/wallpapers/Basic/res/values/surfacemode.xml @@ -0,0 +1,18 @@ +<?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> |