1041 Commits

Author SHA1 Message Date
Jim Miller
c002fab06d Fix 3201849: Remove builder pattern from DrawableHolder setters
This removes the builder pattern from DrawableHolder setters
to avoid reflection and unnecessary GCs in Animators.

Change-Id: I8e3485823f30f10d768d0ab447a5ee3281a363f0
2010-12-02 20:43:15 -08:00
Brian Carlstrom
db1a3ba219 Merge "Resurrect SamplingProfilerIntegration" 2010-12-01 16:23:58 -08:00
Brian Carlstrom
def41ec2e8 Resurrect SamplingProfilerIntegration
1.) Change from samples per second (persist.sys.profiler_hz) to
    interval between samples (persist.sys.profiler_ms) to match
    underlying SamplingProfiler API.  This allows samples to be taken
    less often than a second, which allows lower overhead for always
    on profiling.

2.) Add persist.sys.profiler_depth to control the number of frames
    kept. Currently defaults to 4 which is the default hprof depth,
    but often 12 is necessary even in benchmarks to get a good idea
    where time is being spent.

3.) Moved SNAPSHOT_DIR creation to initialization time instead of
    checking it on every sample.

4.) Used ThreadFactory to provide human readable name to writeSnapshot
    Executor thread.

5.) Fixed bug where writeZygoteSnapshot was calling wrong variant of
    writeSnapshot causing profiling to prevent zygote startup. Renamed
    underling private writeSnapshot to writeSnapshotFile to try to
    prevent future confusion.

Change-Id: Ifcfc343816b19f13a6eef2cbf25cde334d8adc3b
2010-12-01 15:40:38 -08:00
Adam Powell
8515ee846b Fix bug 3240444 - add OnMenuVisibilityListener for action bar.
Fix bug 3180015 - leaking window handles on configuration change for
action bar dropdown menus

Rename ActionBar.NavigationCallback to something more consistent with
the rest of the API.

Change-Id: Ic1fb4c07484c57a72649b30e27d220b18cda6cdf
2010-12-01 13:03:44 -08:00
Jim Miller
2a98a4cbaa Fix 3024522: Add "no lock screen" support to the framework.
This adds a new feature where LockScreen can be disabled to
allow the device to go straight to the home screen when
powered on.

Change-Id: I288e8d5359442c042ae7911340885877a864faff
2010-11-29 15:39:08 -08:00
satok
440aab54ca Removed InputMethodSubtypePicker
Change-Id: I08abac5d65a30c02cc671f4f70e93df25b6c8a92
2010-11-25 19:53:56 +09:00
satok
cd7cd2969f Store the current IME's token in the system bar for changing the current IME to a shortcut IME from the system bar
Bug: 3212206
Bug: 3201828

- Added a shortcut IME button. This will be used for calling a shortcut IME (e.g. Voice input)
- Made the positions of IME buttons left aligned
- IME token is required to change IME because of the security reasons.

Change-Id: I48ba5e2509b3aa1bfd2394f9201427fa6b93c6d3
2010-11-25 14:02:04 +09:00
satok
2820351489 Add an API to set InputMethodAndSubtype
Change-Id: I66f1a4c8e0d98705614f12a737e7efcd0263b72a
2010-11-24 12:28:45 +09:00
Dianne Hackborn
621e17de87 Implement issue #3221502: New APIs to support new back stack / task navigation
What this adds:

- A new Intent activity flag to completely replace an existing task.
- A new Intent activity flag to bring the current home task up behind
  a new task being started/brought to the foreground.
- New versions of startActivity() that take an array of Intents to be
  started, allowing applications to start a task in a specific state.
- A public moveTaskToFront() method on ActivityManager, with a new flag
  that allows the caller to have the task moved to the front with the
  current home task immediately behind it.

Change-Id: Ie8028d09acffb5349d98043c67676daba09f75c8
2010-11-22 18:35:55 -08:00
satok
4e4569dab5 Add an API to get shortcut IMEs
- If there are no selected shortcut IMEs, the most applicable voice input will be selected as a shortcut IME

Change-Id: Ibd0f7ef5101013569c303820a3adc9038a97356d
2010-11-23 10:26:11 +09:00
Jeff Brown
dd4e4603ef Merge "Added support for full PC-style keyboards." 2010-11-18 14:20:30 -08:00
Adam Powell
b33be1c672 Fix bug 3208911 - apps not getting default ActionBar style values
Change-Id: Ie2855d6ebbaf49d187dc8bd63fda7f1b397325b5
2010-11-18 12:31:56 -08:00
Ed Heyl
1c60300129 Revert "Temp fix; Revert "Fix bug 3167081 - Action Bar redesign to support "up"""
This reverts commit 8b8914b50d36734305d582485fa839b7d04b8872.

Change-Id: Ib3ee99257ed10af5f729f3d29af37b5b48a8e139
2010-11-18 12:18:23 -08:00
android-build SharedAccount
8b8914b50d Temp fix; Revert "Fix bug 3167081 - Action Bar redesign to support "up""
This reverts commit 432e5f9f167e622d03fee0e10215b6e2234c1a3c.

Conflicts:

	core/res/res/values/public.xml

Change-Id: I7212626479da7aef80b9bcb4c2144435364dafae
2010-11-18 10:52:41 -08:00
Jeff Brown
6b53e8daa6 Added support for full PC-style keyboards.
BREAKING CHANGE: Redesigned the key character map format to
accomodate full keyboards with more comprehensive suite of modifiers.
Old key character maps will not work anymore and must be updated.
The new format is plain text only and it not compiled to a binary
file (so the "kcm" tool will be removed in a subsequent check-in).

Added FULL keyboard type to support full PC-style keyboards.

Added SPECIAL_FUNCTION keyboard type to support special function
keypads that do not have any printable keys suitable for typing
and only have keys like HOME and POWER

Added a special VIRTUAL_KEYBOARD device id convention that maps
to a virtual keyboard with a fixed known layout.  This is designed
to work around issues injecting input events on devices whose
built-in keyboard does not have a useful key character map (ie.
when the built-in keyboard is a special function keyboard only.)

Modified several places where events were being synthesized
to use the virtual keyboard.

Removed support for the "qwerty" default layout.
The new default layout is "Generic".  For the most part "qwerty"
was being used as a backstop in case the built-in keyboard did
not have a key character map (probably because it was a special
function keypad) and the framework needed to be able to inject
key events anyways.  The latter issue is resolved by using the
special VIRTUAL_KEYBOARD device instead of BUILT_IN_KEYBOARD.

Added the concept of a key modifier behavior so that
MetaKeyKeyListener can distinguish between keyboards that use
chorded vs. toggled modifiers.

Wrote more robust key layout and key character map parsers
to enable support for new keyboard features and user installable
key maps.

Fixed a bug in InputReader generating key ups when keys
are released out of sequence.

Updated tons of documentation.

Currently QwertyKeyListener is being used for full keyboards
with autotext and capitalization disabled.  This mostly works
but causes some problems with character pickers, etc.
These issues will be resolved in subsequent changes.

Change-Id: Ica48f6097a551141c215bc0d2c6f7b3fb634d354
2010-11-18 09:49:03 -08:00
Adam Powell
432e5f9f16 Fix bug 3167081 - Action Bar redesign to support "up"
Integrate new assets for action bar "up" and menu. Restructure action
bar layout to support the new design. First pass at metrics.

Change-Id: Iefc502bf398905208129ef41072bdf4a0225bfe0
2010-11-17 20:30:33 -08:00
Adam Powell
32555f3479 Add resource ID variants of ActionBar tab setters
Bugs 3204153 and 2901235

Change-Id: Ib430f96da77f8e7647b22d190243a2fcd766d842
2010-11-17 14:07:26 -08:00
satok
67ddf9cbd5 Add a function to get enabledInputMethodAndSubtype
Change-Id: Ie97635343249aa63e33028c2843cab103125ca92
2010-11-17 13:59:56 +09:00
Adam Powell
ef70444768 Improve docs around ActionBar as noted in bug 3111444.
Rename method that was missed in previous ActionBar
refactoring. Deprecated previous version for compatibility for apps in
development.

Change-Id: I2c466aed8ed620aec5056026257e131fadf8843e
2010-11-16 15:08:35 -08:00
Adam Powell
ed8b403cc8 Fix bug 3198503 - NPE at MenuPopupHelper.dismiss
Make sure dismiss() can be called even when the popup is not currently
showing.

Change-Id: I48077d8b3bfe0df04bceeb056ed54cbd79a6e660
2010-11-16 10:22:35 -08:00
Adam Powell
c028a5ee7e Merge "Fix a couple interactions between action bar and options menus" 2010-11-15 16:49:35 -08:00
Adam Powell
8d12e20162 Fix a couple interactions between action bar and options menus
Fix bug 3129937 - Activity.openOptionsMenu not calling onPrepareOptionsMenu

Fix bug 3070720 - actionbar android.R.id.home isn't dispatched to fragments

Change-Id: I4a154941595583cdec7d1dffbeac9c8340781fa0
2010-11-15 16:44:17 -08:00
Wink Saville
33c54e3365 Add html formatting to AsyncChannel & Hsm class comments.
Change-Id: Ic42fdb4e8970166a92f173317210353ab8a2fa6a
2010-11-15 10:50:34 -08:00
Adam Powell
6af97e1c20 Revised assets for progress bars and indeterminate progress spinners.
Add support in ActionBar for activity-wide progress APIs.

Add ability for progress bars to set a target framerate rather than
the 5fps previously used.

Clean up some more dialog layouts using hardcoded styles rather than
theme attributes.

Change-Id: I8e88c7595e27c0b6f7829b598f2b084ac8501ae3
2010-11-12 19:06:40 -08:00
satok
b66d287e30 Add a setter of InputMethodSubtype to InputMethodManager
- Public API: void setCurrentInputMethodSubtype(int pos)

Change-Id: I55daa19ba924999def544bf841f00bf54852f3e1
2010-11-13 09:49:59 +09:00
satok
735cf38b8c Add a function to switch back to the last used IME
Change-Id: Iac7bcc2ee16dd04d91a3e75b160622d246788c9a
2010-11-13 08:00:25 +09:00
Brad Fitzpatrick
9feaa0fb44 Merge "Disable SamplingProfilerIntegration until it's fixed." 2010-11-12 13:24:09 -08:00
Brad Fitzpatrick
0b91729b8d Disable SamplingProfilerIntegration until it's fixed.
Change-Id: I685e0600414836d0caae8e37ee7e97cabeb555ce
2010-11-12 13:22:24 -08:00
Adam Powell
0458796f14 Fix bug 3146938 - Menus spawned by ActionBar should hide when action
bar is hidden

Any popup spawned by the private class MenuPopupHelper will be hidden
if its anchor becomes hidden. ("hidden" == !View#isShown())

Fix a bug where ActionBar subtitle views were not going away when
subtitle text was set to null.

Fix a bug when switching out of ActionBar tabbed nav mode with no
active tabs.

Change-Id: I1f30c067156221f96905ac69ab876418ad2e94f8
2010-11-11 22:55:36 -08:00
Dianne Hackborn
c600720638 am 63f40387: am 34594e75: Merge "Fix issue #3177284: Account for wake lock power usage on Crespo" into gingerbread
* commit '63f40387d931b5cd555b4743a4d8ff4f1ccf9558':
  Fix issue #3177284: Account for wake lock power usage on Crespo
2010-11-10 18:06:55 -08:00
Dianne Hackborn
63f40387d9 am 34594e75: Merge "Fix issue #3177284: Account for wake lock power usage on Crespo" into gingerbread
* commit '34594e75e4a7962840f34c0b57116ecf1497f118':
  Fix issue #3177284: Account for wake lock power usage on Crespo
2010-11-10 18:01:21 -08:00
Chris Tate
a8ddef346c Add description and configuration methods to the transport interface
It's now possible for the transport to supply a descriptive string to inform
the user about the nature of the backup destination (e.g. telling the user
what account the data is being stored under), and to supply an Intent with
which the system can initiate a configuration Activity supplied by the
transport (e.g. allowing the user to select which account their data is
being stored under).

The transport interface is not public.

Part of bug 2753632 and bug 2987804

Change-Id: I911f70a3ea440daf2a7a04710e9d7e65b61a58db
2010-11-10 14:45:07 -08:00
Joe Onorato
30693374e8 If the image wallpaper fails to load, including via an OutOfMemoryError because of a big bitmap, reset to the default.
Bug: 3139118
Change-Id: Iff02e7440019598cce0cc87e4031a157e3feb641
2010-11-09 12:25:01 -08:00
Dianne Hackborn
0c8b4d3f7e Fix issue #3177284: Account for wake lock power usage on Crespo
Change-Id: I5e3d6c4772f08277ee775dba191a5054dd5a4ca2
2010-11-08 19:10:58 -08:00
Jeff Brown
3915bb845b Tell system server whether the app handled input events.
Refactored ViewRoot, NativeActivity and related classes to tell the
dispatcher whether an input event was actually handled by the application.

This will be used to move more of the global default key processing
into the system server instead of the application.

Change-Id: If06b98b6f45c543e5ac5b1eae2b3baf9371fba28
2010-11-08 12:49:43 -08:00
Joe Onorato
51387974f0 Merge "Move the volume, media, call, camera and search key handling from PhoneWindow to a new PhoneFallbackEventHandler class that is used for all windows, not just ones with decors." 2010-11-08 10:59:27 -08:00
Adam Powell
3320dcd049 Fixed several dialog theming issues
Change-Id: I8e83e5a35acaae63a70bef48f543e3fd82ced354
2010-11-05 20:06:02 -07:00
Joe Onorato
86f6786032 Move the volume, media, call, camera and search key handling from
PhoneWindow to a new PhoneFallbackEventHandler class that is used
for all windows, not just ones with decors.

Bug: 3155146
Change-Id: Ib070fa3e523e3564b225bca576c08012fef4f416
2010-11-05 18:58:29 -07:00
Jim Miller
ec6ac82a29 Fix 3165868: Fix stall in state machine logic in WaveView
It was possible for the state machine to get stuck when
user interaction and animations both completed before success
was detected.  This fixes the problem by explicitly advancing
the state machine when an up event is detected.

Change-Id: I802e3f1bb35aeab7a0d6f64e85acaa6980b9d65a
2010-11-05 13:05:27 -07:00
Brian Carlstrom
a4f03f98f1 Merge "Integrate StrictMode with CloseGuard" 2010-11-04 14:32:33 -07:00
Brian Carlstrom
fd9ddd1a40 Integrate StrictMode with CloseGuard
In additional to adding the StringMode API for controling CloseGuard,
this checkin fixes several CloseGuard issues found booting a device.

Bug: 3041575
Change-Id: I4dffd184f49438d6d477ed81a1c2a2a5b56cc76b
2010-11-04 14:21:33 -07:00
Jeff Sharkey
f786805acc Respect padding when positioning custom view.
Fixes http://b/3164071

Change-Id: I74700fecf7e9f4785e8e944b2660724b3d270b0d
2010-11-04 14:16:25 -07:00
Jim Miller
0c91a8ee93 Minor tweaks to lockscreen animation:
Remove transition delay to show home.
Add new constants to allow finer tuning of "success" animation.
Transition all items to transparent on successful unlock.

Change-Id: Id9f57b9bfc08be840d9282f987925617d2b42ea1
2010-11-03 21:55:18 -07:00
Adam Powell
0c24a5514c Fix bug 3156280 - Fix several issues with tab navigation in action bars.
Add the ability to restrict a FragmentTransaction's ability to be
added to the back stack. (It doesn't make sense for tabs or other
scenarios to allow this.)

Change-Id: I8fa2edb5f35c365e2483010ad13eb9993f5e6570
2010-11-03 19:24:19 -07:00
Robert Greenwalt
26ba124903 Merge "Add some network/phone type constants." 2010-11-03 17:05:24 -07:00
Robert Greenwalt
962a990a45 Add some network/phone type constants.
Support for LTE (and SIP-based voice) and the stepping-stone eHPRD.

bug:3125398
Change-Id: Ied3d96fa09d9c758a82a2fd1817f55db711d1a4f
2010-11-03 17:02:37 -07:00
Ben Komalo
ad199ecc44 Fix issue where home layout click listener was being attached
before it was initialized.

Change-Id: I25641ca7c2db18d423dcafebc9bdf42d608a7a31
2010-11-03 12:05:49 -07:00
Nick Pelly
cc82f3ae3c am 6fb9316f: am 38e561dd: Merge "Remove timeout support." into gingerbread
* commit '6fb9316f6bd72b406bbfc61bd210281744eea9c1':
  Remove timeout support.
2010-11-03 10:59:54 -07:00
Adam Powell
81b8944131 Fix bug 3093591 - add richer control over default tab selection in ActionBar
Added overloads to ActionBar#addTab with control over whether the added tab
will become selected or not. Old versions implemented in terms of the new.

Change-Id: I810c64652bb7e755b81151ce8a2c765266d78a66
2010-11-02 18:18:37 -07:00
Romain Guy
5b3b35296e Optimize FBO drawing with regions.
This optimization is currently disabled until Launcher is
modified to take advantage of it. The optimization can be
enabled by turning on RENDER_LAYERS_AS_REGIONS in the
OpenGLRenderer.h file.

Change-Id: I2fdf59d0f4dc690a3d7f712173ab8db3848b27b1
2010-11-02 16:17:23 -07:00