History log of /packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/GlowPadView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
efe6a5d64851519eea0fe9d349b7b8f904193a36 12-Jul-2014 Andrew Lee <anwlee@google.com> Show different glowpad options for incoming video call.

- Refactor code be more flexibile/specific in specifying the targets
for the glow pad; went from "n-way" labeling of different target sets
to more explicit labeling of scenarios, such as "audio without sms".
- Add target sets and cases for showing targest in AnswerFragment.
- Added new drawable for the target to answer a video call.
- Add method to GlowPadView to allow changing the handle (now it may
be either a videocamera or phone icon, depending on the scenario).
- Add a new video handle for incoming video calls.
- TODO: Hook this up to show these glowpads if there is an incoming
video call.
- Deleted some unused resource files.

Bug: 16015750
Change-Id: I77ff08f45f57cd2817866b5d78648af8891bb675
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/GlowPadView.java
74abd42ad94cc10b6e1b9462e73f21f0240fc268 25-Mar-2014 Alan Viverette <alanv@google.com> Remove extra recycle() call

BUG: 13636003
Change-Id: I28dfcf2506a5dcff6d17990eaf416ea18dada762
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/GlowPadView.java
dc8cda5a71ee4ee644561fed0767c6d0b3a3447d 28-Sep-2013 Santos Cordon <santoscordon@google.com> Make sure glowpad is centered when gravity is centered.

+----------------+
| ---- |
| - - |
| - - |
| - - |
| ---- |
+----------------+
| h | from square edge to circle edge
| d | diameter of circle
| w | width of square

Those are the three values involved in the calculation that we are
changing. The formula calculated the center of the circle (glowpad).

When setting the x position of the glowpad we should always grab the
radius of the circle (d/2) then set h to a proper value depending on
the gravity setting:
left) h = 0 // do not shift at all
center) h = (w - d) / 2 // half the diff. between box and circle widths
right) h = (w - d) // total diff. between box and circle widths

This is what the code does after this change. The flaw that I saw was
that instead of using the radius and adding to h, we used the maximum
between the radius or w/2 (half the width of the box).

The result was that in rare occassion (possibly for the first time in the
associated bug) where the circle is smaller than the box, we would shift
too far to the right because w/2 is always larger than the more
appropriate d/2. I don't know why this was done, but I have added
jaggies@ who originally wrote the code.

I consulted with christinech@ and both determined that this is the
correct mathematical formula.

I verified that the old code did not work correctly for left, right, or
center and that all three work as expected with the new code.

bug:10958942
Change-Id: I781dc25601382d7a43408cbce0badf8a0a90d663
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/GlowPadView.java
b0899adba59d1c5cdd2db1363f49803a24546883 10-Sep-2013 Christine Chen <christinech@google.com> Makes glowpad scalable.

Bug: 10634748
Change-Id: Iac3d424e7d6be94230da12f3058214b7ca3d8a84
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/GlowPadView.java
d05336248c5600cde35ad564840532f59b4c085c 15-Jul-2013 Chiao Cheng <chiaocheng@google.com> Adding in call screen template.

Along with glow pad for incoming call interaction..

Change-Id: I8d518b5247bee4a10c8fd06763a7e3fe6cff5652
/packages/apps/InCallUI/src/com/android/incallui/widget/multiwaveview/GlowPadView.java