-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
138 changed files
with
9,774 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/build | ||
/build | ||
/libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package com.aj.effect; | ||
|
||
import com.android.keyguard.sec.KeyguardEffectViewController; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
public class EffectEnum { | ||
public int name; | ||
public int assigned; | ||
public int drawable; | ||
|
||
public EffectEnum(Integer name, int assigned, Integer drawable) | ||
{ | ||
this.name = name == null ? R.string.unlock_effect : name; | ||
this.assigned = assigned > 15 ? KeyguardEffectViewController.EFFECT_MONTBLANC : assigned; // TODO default effect | ||
this.drawable = drawable == null ? R.drawable.setting_preview_unlock_none : drawable; | ||
} | ||
|
||
public static final EffectEnum NONE = new EffectEnum(R.string.unlock_effect_none, 0, null); | ||
public static final EffectEnum RIPPLE = new EffectEnum(R.string.unlock_effect_ripple, 1, R.drawable.setting_preview_unlock_ripple); | ||
public static final EffectEnum LIGHTING = new EffectEnum(R.string.light_effect, 2, R.drawable.setting_preview_unlock_light); | ||
public static final EffectEnum POPPINGCOLOURS = new EffectEnum(R.string.unlock_effect_popping, 3, R.drawable.setting_preview_unlock_poppingcolor); | ||
public static final EffectEnum WATERCOLOUR = new EffectEnum(R.string.unlock_effect_watercolor, 4, R.drawable.setting_preview_unlock_watercolor); | ||
public static final EffectEnum BLIND = new EffectEnum(R.string.blind_effect, 5, R.drawable.setting_preview_unlock_blind); | ||
public static final EffectEnum EFFECT_MASS_TENSION = new EffectEnum(null, KeyguardEffectViewController.EFFECT_MASS_TENSION, null); // TODO: tension | ||
public static final EffectEnum EFFECT_MASS_RIPPLE = new EffectEnum(R.string.unlock_effect_simple_ripple, 7, R.drawable.setting_preview_unlock_stoneskipping); | ||
public static final EffectEnum BRILLIANTRING = new EffectEnum(R.string.unlock_effect_brilliant_ring, 8, R.drawable.setting_preview_unlock_brilliantring); | ||
public static final EffectEnum BRILLIANTCUT = new EffectEnum(R.string.brilliant_cut, 9, R.drawable.setting_preview_unlock_brilliantcut); | ||
public static final EffectEnum INDIGODIFFUSION = new EffectEnum(R.string.unlock_effect_montblanc, 10, R.drawable.setting_preview_unlock_montblanc); | ||
public static final EffectEnum ABSTRACTTILES = new EffectEnum(R.string.unlock_effect_abstract, 11, R.drawable.setting_preview_unlock_abstract_tiles); | ||
public static final EffectEnum GEOMETRICMOSAIC = new EffectEnum(R.string.unlock_effect_geometric_mosaic, 12, R.drawable.setting_preview_unlock_geometric_mosaic); | ||
public static final EffectEnum WATERDROPLET = new EffectEnum(R.string.unlock_effect_liquid, 13, R.drawable.setting_preview_unlock_liquid_w); // TODO lowres waterdroplet drawable | ||
public static final EffectEnum SPARKLINGBUBBLES = new EffectEnum(R.string.unlock_effect_particle, 14, R.drawable.setting_preview_unlock_particle); | ||
public static final EffectEnum COLOURDROPLET = new EffectEnum(R.string.unlock_effect_colour_droplet, 15, R.drawable.setting_preview_unlock_liquid); | ||
|
||
private static final List<EffectEnum> effectList = Arrays.asList(NONE, | ||
RIPPLE, LIGHTING, POPPINGCOLOURS, WATERCOLOUR, BLIND, EFFECT_MASS_TENSION, | ||
EFFECT_MASS_RIPPLE, BRILLIANTRING, BRILLIANTCUT, INDIGODIFFUSION, ABSTRACTTILES, | ||
GEOMETRICMOSAIC, WATERDROPLET, SPARKLINGBUBBLES, COLOURDROPLET); | ||
|
||
public static EffectEnum getByInt(int assigned) { | ||
for (EffectEnum e : effectList) { | ||
if (e.assigned == assigned) | ||
return e; | ||
} | ||
return INDIGODIFFUSION; // TODO DEFAULT EFFECT; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.aj.effect; | ||
|
||
import android.view.animation.BaseInterpolator; | ||
|
||
public class QuintEaseOut extends BaseInterpolator { | ||
public QuintEaseOut() { | ||
} | ||
|
||
@Override // android.animation.TimeInterpolator | ||
public float getInterpolation(float t) { | ||
return out(t); | ||
} | ||
|
||
private float out(float t) { | ||
float t2 = t - 1.0f; | ||
return (t2 * t2 * t2 * t2 * t2) + 1.0f; | ||
} | ||
|
||
} |
Oops, something went wrong.