342 Commits

Author SHA1 Message Date
Jim Miller
2cd1e6eda9 Fix for 2292713: Remove workaround that hides SlidingTab widget while internal state is inconsistent.
The previous workaround for this race condition prevented glitches by postponing drawing the SlidingTab until the internal state was consistent.
Unfortunately, the InCallScreen seems to trigger this most of the time if the keyboard is open or the last application was in landscape mode.

Instead, we'll handle this separately in lockscreen.
2010-01-15 16:20:36 -08:00
San Mehat
c93c70c4b8 Merge "framework: storage: Ensure that filesystems are unmounted before shutdown/reboot" into eclair 2010-01-12 09:59:35 -08:00
San Mehat
7ebf017658 framework: storage: Ensure that filesystems are unmounted before shutdown/reboot
Signed-off-by: San Mehat <san@google.com>
2010-01-12 07:57:42 -08:00
Tom Taylor
ac65121351 Hide unused fields
When ContactHeaderWidget.bindFromPhoneNumber is called with a number
that's not in contacts, onQueryComplete takes a path that doesn't hide
fields that don't apply to the current phone number. As a result, the
user sees the new number, but old data from the previous display (such
as the facebook status). With this change, those fields are hidden.
Fixes bug 2336977.

Change-Id: Ib6253c18dc58c3d28b463c87d5d195a84d613600
2010-01-05 16:25:53 -08:00
Jim Miller
8b63ab664f Better animation for sliding widget.
Because of the way an Animation handles invalidates, we need to have one Animation per widget being animated.
2009-12-02 13:42:48 -08:00
Daniel Sandler
f60e108fa9 Don't block TIME_TICK broadcasts in the DigitalClock widget.
This change applies the fix -- originally by phanna in
https://android-git.corp.google.com/g/#change,33669 -- to
the com.android.internal.widget version of DigitalClock,
which is used by the keyguard and pattern lock screens.

Change-Id: I43f72dd144423e55f73ba52903d52163c8f65591
2009-11-20 19:55:07 -05:00
Android (Google) Code Review
30142f7ef7 Merge change I9f239766 into eclair
* changes:
  Workaround for 2262578: Don't draw tabs if view is not in the correct orientation for the layout
2009-11-18 13:26:30 -08:00
Android (Google) Code Review
778f1e65a5 Merge change Icfc893d2 into eclair
* changes:
  Fix for 2267410 : Battery use doesn't show CPU usage on non-wiped devices
2009-11-18 12:38:30 -08:00
Amith Yamasani
cfc893d27a Fix for 2267410 : Battery use doesn't show CPU usage on non-wiped devices
Due to a change in cpu stepping values, the batterystats.bin file needs to
be wiped for Battery Use app to show CPU cost correctly.
Bumping up the version number of the file fixes this.
2009-11-18 10:39:14 -08:00
Jim Miller
1d0a152fa8 Workaround for 2262578: Don't draw tabs if view is not in the correct orientation for the layout
This is an uber hack.  Since there is a race between resizing the view and getting
the orientation-changed notification, this just tries to avoid drawing the tabs in the
wrong orientation (based on what we *expect* to be the orientation specified in the layout
file for the SlidingTab). This masks the problem *most* of the time.
2009-11-18 01:46:00 -08:00
Evan Millar
1b6d202bd4 Move photo querying off main thread.
Fixes bug http://b/issue?id=2265642
2009-11-17 12:07:41 -08:00
Jim Miller
4f01d4a4da Fix 2209086: Clean up visual glitches in SlidingTab for lock and incall screen.
This fixes the following glitches:
- flash at the end of animation as the widget resets. Fix: new "hold" animation holds the view for 1 second, allowing it to transition before we reset the view.
- target flashing. Fix: remove AlphaAnimation when we want to hide the target.
- bar appears to get stuck at edge. Fix: sliding bar now slides fully offscreen when hold == true.  Added setHoldAfterTrigger() method to allow InCallScreen and LockScreen to have different behaviors.
- view continues to animate when shown again. Fix: reset the animations and sliders when the view is hidden.

Tested:
	Answer/Decline call on CDMA and GSM device.
	Unlock phone and toggle sound on/off in LockScreen on both devices.
2009-11-16 23:08:35 -08:00
Jim Miller
521d400b23 Fix 2209086: Add animations and misc ui improvements to SlidingTab.
Added translation animation where tab "flies" when you release.
Added translation animation where pressing and releasing one tab will hide/show the other
Added alpha animation to make target appear gradually
Added margin around swipe area to allow easier unlocking.
Removed unused handler.
2009-11-15 17:06:49 -08:00
Jim Miller
16a9d9a736 Fix 2209086: Fix missing callback that was preventing tab bar text from updating.
Also includes a cosmetic fix to move the Digital clock down a bit.
2009-11-15 13:26:37 -08:00
Jim Miller
425ca595dc Fix 2261626: Don't show text on button if orientation is vertical. 2009-11-13 19:20:28 -08:00
Jim Miller
4811d62d5f Fix 2209086: Updated assets and fixed widget dimension calculation.
Added hvga assets for new lock screen widget.

Tested:
	LockScreen on wvga and hvga devices.
	InCallScreen on wvga and hvga devices.
2009-11-12 18:15:00 -08:00
Android (Google) Code Review
2477fd6949 Merge change Ic31c11ad into eclair
* changes:
  Fix 2209086: restore drawable states when drawables change.
2009-11-12 13:13:58 -08:00
Jim Miller
4df2c5433b Fix 2209086: restore drawable states when drawables change.
This fixes a bug where the right tab hightlight wasn't being seen.
The prooblem was that we weren't preserving the drawables' states when
the application requested a new drawable. We now track the drawable state
so we can updated it when the resources change.
2009-11-12 11:23:29 -08:00
Daniel Sandler
e3ea6e3d4c Update keyguard and pattern-lock layouts for new UX designs.
To do this, we bring DigitalClock over from Clock into the
internal widgets.  Its font, Clockopia, comes along for the
ride (find it in /system/fonts).

This change is required for relevant code changes in
frameworks/policy/phone.

Change-Id: I354534f1abd9cf9557c9d18566f1d55b6be5e8f1
2009-11-12 09:37:44 -08:00
Dianne Hackborn
c9dbbe28f7 Fix issue #2239203: Setting large background causes OOME and soft-reboot spiral
Try really really hard not to crash, for any reason.

Change-Id: I32371166229825f13fc8d12d5cf3a6531cdb345e
2009-11-11 22:50:37 -08:00
Jim Miller
753401aa47 Fix 2209086: add drawables for SlidingTab states in PhoneApp. Update string file for new SlidingTab sound states.
Tweak "animation" to be 250ms based on conversation with ui guys. Some minor performance tweaks to SlidingTab.
2009-11-11 18:00:48 -08:00
Jim Miller
24ccf3c590 Fix for 2209086: Initial pass at new SlidingTab widget and integration into LockScreen.
Tested:
	- unlock and mute/unmute

Not working:
    - highlighting on right tab.
2009-11-11 11:37:54 -08:00
Marco Nelissen
bf6956b1d9 Add a way for wallpapers to know the delta between virtual screens. 2009-11-09 17:39:33 -08:00
Tom Taylor
246978b8dc Add a method to clear info about a contact
Add a method so the ContactInfoWidget will throw away the cached
info it has on a contact (e.g. picture and uri).

Change-Id: Ia8f376e356c6bcf246bbd72239c5ca2a3b7c9574
2009-10-23 13:33:25 -07:00
Dianne Hackborn
7580493b01 Implement feature #2117336: Create event communication APIs for live wallpaper
Note: currently only implements an async version (no result), and not yet
actually tested.

Change-Id: Id47ed045a4b0eb309ea8c58daf41a0e03eff1d3a
2009-10-22 20:10:53 -07:00
Amith Yamasani
f37447bad3 Proper fix for zero signal strength and no_service. Fixes #2176141
Track phone service state changes and use a separate timer for out-of-service
since the hunting can timeout on some devices.

Store the timeout value in the config.xml, as it is device/network specific.

Settings App will also change to use the hunting duration to compute the cost
of zero signal.
2009-10-19 15:16:26 -07:00
Jim Miller
9485aec1df Fix for 2177367: Reduce duration of vibrate in RotaryLockScreen
BUG=2177367
2009-10-08 18:49:53 -07:00
Dianne Hackborn
568cae571a Fix issue #2171460: Turn off background blurring of power dialog
Change-Id: I521629e0ccd0116acf149eeb7476c8474fc7c74a
2009-10-07 17:37:16 -07:00
Nick Pelly
f242b7b931 Introduce BluetoothAdapter.getDefaultAdapter().
This is the main entry point to the Bluetooth APIs, and returns the default
local Bluetooth adapter.

It replaces context.getSystemService(Context.BLUETOOTH_SERVICE). This was
never in a public SDK release.

DrNo: eastham
Bug: 2158765
Joke: Why can't you play cards in the jungle? Because there's too many cheetas!
Change-Id: Ieed8be009ee5aba621cb69090ee8c8a9c19c840d
2009-10-08 00:27:17 +02:00
Jim Miller
5037e57fd4 Fix for 2161835: Tweaks to rotary lock screen:
- Make inactive dimples dim.
- When an item is grabbed, make all other dimples dim.
2009-10-06 13:20:46 -07:00
Dianne Hackborn
bd0a81ff1c Work on issue #2163789: Way too much logging
Dr.No from mcleron.

Change-Id: Iaca2268684f83fe8757e64db0b0e047a19755311
2009-10-04 14:48:47 -07:00
David Brown
88e037577f RotarySelector widget: add callback for "grabbed" state changes.
This is the frameworks/base part of the fix for Bug 2158434: add a new
callback to the OnDialTriggerListener interface, so the RotarySelector can
tell the app about state changes between NOTHING_GRABBED and
LEFT_HANDLE_GRABBED and RIGHT_HANDLE_GRABBED.

BUG=2158434
DRNO=timsullivan

TESTED=regular incoming calls, call waiting calls, answering a call,
       rejecting a call.  Also verified I didn't affect the
       lock screen at all.
2009-10-02 00:30:08 -07:00
Jim Miller
d9b6f14a69 Adjust opacity for inactive dimple in rotary widget 2009-09-30 22:50:01 -07:00
Suchi Amalapurapu
8550f25523 Check if rename of backed up file fails before persisting new changes.
If not these system services will end up with inconsistent settings files
when the device runs out of storage.
Delete mangled settings file in PackageManager if the current write fails
so that we don't end up overwriting the backed up version with the
mangled version
Include null check when retrieving fwd locked resource for an existing package
2009-09-30 15:36:29 -07:00
Android (Google) Code Review
86aece8b4a Merge change I8dfd6ea8 into eclair
* changes:
  Handle bad lines in /proc/wakelocks : Fix for 2124260
2009-09-30 14:49:21 -04:00
Amith Yamasani
53b707ba26 Handle bad lines in /proc/wakelocks : Fix for 2124260
Use the return value from the native parser to skip over bad lines. When
the wakelocks overflow, there could be empty or badly formatted lines.
Skip over them.
2009-09-30 11:08:31 -07:00
Evan Millar
c1a2a8296e Change FasttrackBadgeWidget->QuickContactBadge and make public.
Change-Id: I9d12beeba16c2f64742b4a99d0da4ceb73525b5b
2009-09-30 08:33:31 -07:00
Jim Miller
85d630020a Fix for 2139014: Allow platform customization of vibration pattern in LockScreenView.
Can be configured by config_virtualKeyVibePattern.
2009-09-30 02:53:05 -07:00
Jim Miller
41e8dc02cd Fix for 2137900: Be more conservative about poking the wakelock.
Updated after review: white space, check for null pattern listener.
2009-09-29 15:33:06 -07:00
Dmitri Plotnikov
13a90abcae Adding status update attribution to ContactHeaderWidget
Change-Id: I677f8a8d805c68d95ee56cd1119cc3e97c6ae073
2009-09-28 17:40:28 -07:00
Tadashi G. Takaoka
36ad03e1b7 Delegate exclude mimetypes to FasttrackBadgeWidget
Internal Bug: 2138745
2009-09-28 14:58:49 -07:00
Dmitri Plotnikov
879664e3e2 Adding columns to support attribution of status updates. Also renaming some columns to better describe their purpose.
Change-Id: If6d7812f38a3cfd662a5ae2387c72c4761fdf9fa
2009-09-27 19:47:48 -07:00
Wei Huang
c6b336d6a4 bug 2148061: if PduBody is zero length, treat it as an empty message.
Change-Id: I2f352dd481f6b8d02b67cd3a44d692e3a5d03999
2009-09-27 13:39:46 -07:00
Dmitri Plotnikov
8e55eaccff Changing contact status to Presence-based
Change-Id: I35589e87f1e1743413d3f10509e9eccc333aa2fb
2009-09-27 08:23:58 -07:00
Evan Millar
695800047c Fix http://b/issue?id=2106682 (Don't show status if we don't have it).
Change-Id: I1636914ef47fc5319f2593d3e7aea33e523be3c7
2009-09-26 14:47:38 -07:00
Evan Millar
bf07e03291 Change longClick -> click in ContactHeaderWidget.
Also don't enable it by default, but add an api to explicitly request
it.

Change-Id: I75fa4bfddba7a1800dec24e6a068eca614370a26
2009-09-26 13:30:01 -07:00
Neel Parekh
6ecacd40dd Center name when no status.
Also shows the status if exists (not actually hooked up yet though).

Bug: 2138736
2009-09-25 16:22:26 -07:00
Android (Google) Code Review
3546825421 Merge change 26720 into eclair
* changes:
  Allow us to set the contact uri without setting the fast track's uri
2009-09-25 19:05:10 -04:00
Karl Rosaen
c8ad6dcb8a Optimize rotary selector widget by using bitmaps instead of drawables.
In profiling setBounds was expensive.  Time per onDraw from 13.3ms to 6.59ms :)
2009-09-25 11:35:41 -07:00
Android (Google) Code Review
d35db5ec8b Merge change 26946 into eclair
* changes:
  Fix bug#2144742: guard against 0 length encoded string when attaching a 'from' address for MMS.
2009-09-24 19:13:30 -04:00