4709 Commits

Author SHA1 Message Date
Adam Powell
9828830611 Merge "TaskStackBuilder and Activity navigation features for framework" 2012-04-05 11:55:06 -07:00
Dianne Hackborn
5459c43b83 Merge "Clean up status bar, system bar, navigation bar management." 2012-04-05 11:47:02 -07:00
Adam Powell
dd8fab2629 TaskStackBuilder and Activity navigation features for framework
Promote navigation helpers from the support library to the core
platform.

The support library's meta-data element has been replaced with a
first-class parentActivityName attribute. This attribute is valid
on both activity and activity-alias elements. An activity-alias
will inherit the target activity's parentActivityName if one is
not explicitly specified.

Automatic Up navigation for Activities

Add the public method onNavigateUp() to Activity. The default
implementation will use the metadata supplied in the manifest about an
activity's hierarchical parent (parentActivityName) to do the right
thing.

If any activities in the parent chain require special Intent
arguments, the Activity subclass should override onNavigateUp() to
properly implement Up navigation for the app, supplying such arguments
as needed.

If automatic Up navigation within the same task can't find an activity
matching the supplied intent in the current task stack, it will act as
an in-app "home" and return to the root activity (presumably the app's
front page) in that task. (From this state, pressing "back" with
default behavior will return to the launcher.)

Change-Id: If163e27e59587f7af36975a09c986cb117ec3bc6
2012-04-05 11:45:10 -07:00
Daniel Sandler
48200b6f3f Merge "Chronometer support in Notifications." 2012-04-04 17:49:24 -07:00
Dianne Hackborn
f87d19621d Clean up status bar, system bar, navigation bar management.
The status bar and navigation bar are two completely separate
elements, with their own semantics.  The system bar now classifies
itself as a navigation bar, since that is really how it behaves.

This required rewriting the HDMI resizing code, so that it is
all done by PhoneWindowManager since that is what is responsible
for the size of the navigation bar (and thus now system bar).  This
actually gets rid of a fair amount of code, and means we can also
do the same thing for a pure navigation bar.

Likewise the system bar now has the navigation bar ability to be
hidden when requested by system UI flags.  To get the behavior
we want on Xoom, we only allow the nav bar to be hidden when it
will help provide a better aspect ratio for showing widescreen
videos.

Finally the nav/system bar now animates when hidden and shown.

Change-Id: Ie927154b68376a0b61802f99171ff56b8da92e7a
2012-04-04 16:00:45 -07:00
Fabrice Di Meglio
d779412c58 Merge "Add View textAlignment" 2012-04-04 14:17:22 -07:00
Daniel Sandler
a2985ed309 Chronometer support in Notifications.
@hidden for now while we experiment with it in Phone.

Change-Id: Ib6ca3a8262f676d49d81e081a30c6d994c732a6b
2012-04-04 15:35:44 -04:00
Fabrice Di Meglio
9da0f8a5c4 Add View textAlignment
- fix bug #6163772
- use bits field and pack them as much as possible
- take care of "supportsRtl" flag from Manifest
- add visual unit tests

CTS unit tests in another CL

Change-Id: Ib77c4eb423854209af130688c5ef9977401a9c1c
2012-04-04 12:20:45 -07:00
Daniel Sandler
ea7593ce0f Fix vertical alignment of notification contents.
Change-Id: Ibbb237f1b892cb0605417cdef17a9e59316ecb1f
2012-04-04 15:00:55 -04:00
Jim Miller
1533a87eef Merge "Fix 6247249: make sure label on tablets is "done" instead of "next"" 2012-04-03 15:24:51 -07:00
Fabrice Di Meglio
fde3f83cd2 Merge "Fix bug #6140391 Make RTL awareness as an opt-in into the AndroidManifest" 2012-04-03 14:45:53 -07:00
Fabrice Di Meglio
59dfce8bda Fix bug #6140391 Make RTL awareness as an opt-in into the AndroidManifest
- introduce "supportsRtl" as a new application attribute in the AndroidManifest
- "supportsRtl" default value is FALSE (no RTL support)
- adapt the View layoutDirection and textDirection logic to take care of "supportsRtl" value

Change-Id: I5e4f9f576e14f35dedc6b0c29a7142c397f598e0
2012-04-03 11:43:20 -07:00
Svetoslav Ganov
1663565739 Merge "Polish the Number/Date/Pickers per UX request." 2012-04-03 11:38:47 -07:00
Svetoslav Ganov
fe41ce4ef9 Polish the Number/Date/Pickers per UX request.
1. Now the NumberPicker max height is a bit smaller.

2. The Time/Date picker add top and bottom margin to
   compensate for the shorter NumberPickers.

3. The Time/DatePicker dialogs have only "Done" button
   and tapping onside saves the current state.

bug:6277808

Change-Id: I4c5928debb1c3b7fe126d6cd6745e3c5eb980901
2012-04-02 21:20:14 -07:00
Jim Miller
337b07c30f Fix 6247249: make sure label on tablets is "done" instead of "next"
This fixes a bug where the password/PIN unlock screen would show
"next" instead of "done" depending on the orientation of the device
on tablets.

Change-Id: Id9dece919226f43a9bd5901ec9135267c1321ff4
2012-04-02 19:01:42 -07:00
Yang Chuang
7511f9cd2f Add Japanese specific key codes.
These keys are specific to Japanese hardware keyboard which can be
used by input method.

Patch ported from AOSP, with the addition of EISU and KANA mappings.

Change-Id: I647473cdd257458e3b9d134b0fc623eae946c3e0
2012-04-02 15:19:45 -07:00
Daniel Sandler
0424716328 Merge "Show action buttons in expanded notifications." 2012-04-02 05:27:03 -07:00
Daniel Sandler
96fd7c1c1a Show action buttons in expanded notifications.
Any notification with at least one action will now have an
expanded form by default. BigPicture/BigText can have
actions, too, of course.

Change-Id: I6f54cac65d9a9f335d8038c2105cd2c674f991ff
2012-03-30 22:18:06 -04:00
Dianne Hackborn
61d6c8ca49 Merge "Add new feature to let apps layout over status bar / system bar." 2012-03-30 17:36:32 -07:00
Svetoslav Ganov
96695f9ba0 Merge "Added "slide" to slide-to-unlock spoken instructions." 2012-03-30 16:07:17 -07:00
Svetoslav Ganov
d06fa89b52 Merge "Replace increment/decrement with increase/decrease." 2012-03-30 15:27:30 -07:00
Dianne Hackborn
3a3a6cfd8e Add new feature to let apps layout over status bar / system bar.
The main change is a few new flags you can supply to
View.setSystemUiVisibility().  One is a new visibility mode,
SYSTEM_UI_FLAG_FULLSCREEN, which is basically the same as
the global FLAG_FULLSCREEN option for windows, but driven as
part of the system UI state.

There are also three new flags for telling the framework that you
would like to have your application's UI ignore screen
decorations -- SYSTEM_UI_FLAG_LAYOUT_NO_NAVIGATION for going
behind the navigation bar and SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
for ignoring full screen decorations (that is the status bar).

In combination with this you can use SYSTEM_UI_FLAG_LAYOUT_STABLE
to have the framework report consistent insets to your application.

When using NO_NAVIGATION, when the user taps the screen we now
also automatically clear ONLY_CONTENT, so that we atomically show
both UI elements.  This should make it easy for apps like video
players that want to move between fully full-screen and regular
modes.

The ActionBar has also been extended when in overlay mode so
that it will adjust the system window insets to also account
for its space, and allow it to be hidden using the new
SYSTEM_UI_FLAG_FULLSCREEN.

Change-Id: Ic8db1adec49a0f420bfe40c1d92eb21307856d0b
2012-03-30 15:22:04 -07:00
alanv
a2ef47f1c6 Added "slide" to slide-to-unlock spoken instructions.
Change-Id: I73640fde77bd3840ab788f930f343ef3bdfe786a
2012-03-30 14:03:42 -07:00
alanv
7960fe0fa6 Replace increment/decrement with increase/decrease.
Change-Id: Ic9c0b1e27091c85e712f2a8a7e347e2e1ee2c3ea
2012-03-30 13:56:14 -07:00
Eric Fischer
2efa47b14a Import translations. DO NOT MERGE
Change-Id: I9caf479e5252fd34664a0604c6fe6bfad716d5ba
2012-03-30 12:57:51 -07:00
Daisuke Miyakawa
5f12f03111 Move TelephonyCapabilities from Phone to telephony
- Move the class.
- Remove some TODOs mentioning this action : the class should belong to
  telephony layer instead of to the Phone package
- Add private strings used in the class

Bug: 6252254
Change-Id: I0d4ca2f8e4d775004d146fe6f9c60165a94366a9
2012-03-29 15:27:55 -07:00
Daniel Sandler
f3b7343246 The beginning of expanded notifications.
There are now two "rebuilder" classes, each of which
consumes a Notification.Builder and modifies its behavior.
(Inheritance in Builder classes is...not advisable.)

- BigPictureStyle: includes a large Bitmap above the usual
  notification strip.

- BigTextStyle: shows the contentText in a large, wrapping
  TextView instead of truncating to one line.

As for SystemUI, the notification panel now shows the
expanded form if it is available, otherwise the usual
contentView is shown.

(Note that the structure of largeIcon notifications has
changed a bit: The largeIcon is no longer handled by the
status bar at all; it's entirely inside the template now.
Not only does this make the code simpler, and make large
notifications possible, but it fixes the longstanding
irritation that tapping on a largeIcon doesn't highlight the
whole notification row. Man, that feels good.)

Change-Id: I2b9d8a6ea4385659d8cb1ed467c1caf5e12628dd
2012-03-29 00:42:15 -04:00
Daniel Sandler
fc90b6a7c7 Merge "Add text labels to intruder actions." 2012-03-27 19:19:01 -07:00
Eric Fischer
31074a5d5d Merge "Import translations. DO NOT MERGE" 2012-03-27 16:12:47 -07:00
Nick Kralevich
5b8fd25029 Merge "Make READ_LOGS signature|system|development" 2012-03-27 14:55:34 -07:00
Eric Fischer
6447f22b36 Import translations. DO NOT MERGE
Change-Id: Ib76eb1342c224a7e9fba7693f5fcb7f3e816ff39
2012-03-27 12:32:15 -07:00
Amith Yamasani
8b5bce8d90 Merge "User management and switching" 2012-03-27 11:24:54 -07:00
Amith Yamasani
135936072b User management and switching
Broadcast intents that get sent out when users are added/removed/switched.

More work on generating user-specific information in package manager queries.
APIs to update user name and query a user by id.
Removed Package.mSetStopped and mSetEnabled, since they're not user specific.

User removal:
- Cleanup ActivityManager, PackageManager, WallpaperManager, AppWidgetService
  and AccountManager.
- Shutdown processes belonging to the user.

Don't show vibrate option in long-press power if there's no vibrator.

Lock the screen when switching users, to force unlocking.

Change-Id: Ib23a721cb75285eef5fd6ba8c7272462764038fa
2012-03-27 11:23:01 -07:00
Daniel Sandler
b2a1c23a55 Add text labels to intruder actions.
Change-Id: I544bed7b37c043639ee0e6a11bf757c0a191c1fc
2012-03-26 16:25:21 -04:00
Eric Fischer
966f26e75b Import translations. DO NOT MERGE
Change-Id: I4f9ab5611d594523b15cd15609bc76b4a0d54a87
2012-03-26 13:09:00 -07:00
Nick Kralevich
cb5863e022 Make READ_LOGS signature|system|development
Change-Id: I387d53ac4b7fd3d65891145985e4cd272dffddcf
2012-03-23 13:18:36 -07:00
Eric Fischer
14766b1910 Import translations. DO NOT MERGE
Change-Id: I1c74b3c254a7c6ed1563aa451ddcbd00ccff39ce
2012-03-23 12:55:06 -07:00
Mike Lockwood
ced11a5bc4 Merge changes I35a76a27,I04bb7ad4,If38a1a10,Ice5be6e5,I009e443f,I968ddf90,I69d4e518,I09b1dfc9
* changes:
  Merge commit '74803dc'
  add config_bluetooth_default_profiles config var and use it to disable bt profiles
  Do not allow Surface creation on machines without SurfaceFlinger We will fail later anyways, but this change makes it much easier to track down places where we are inadvertently doing operations that depend on the flinger.
  fix setting only usb mode
  Detect (at runtime) kernel support for the "hdmi_audio" switch.
  Add a config resource to disable key-chord screenshotting
  Do not assume that there is always a running activity (Necessary for headless devices)
  Add batch volume adjust support to adjustMasterVolume() in AudioManager and AudioService.
2012-03-22 15:16:03 -07:00
Mike Lockwood
ca1f596677 Merge changes Ifbc8b4dd,I96a4e3bf
* changes:
  Add config_wifi_driver_stop_delay to public.xml to fix build
  WifiStateMachine: Move wifi teardown delay to a framework resource
2012-03-22 15:14:05 -07:00
Amith Yamasani
ad812a23df Merge "Package restrictions per user" 2012-03-22 15:11:51 -07:00
Travis Geiselbrecht
a91da5da56 add config_bluetooth_default_profiles config var and use it to disable bt profiles
For devices that don't care about the previously default bluetooth profiles,
add a config var to disable them.

Change-Id: I04bb7ad4b1235bc37227645f472fdf5b918f6a31
2012-03-22 15:09:44 -07:00
Christopher Tate
e90585f89d Add a config resource to disable key-chord screenshotting
The key chord screenshot mechanism introduces significant latency into
processing of volume-key input; enough to be quite noticeable and
annoying on some kinds of device.  This patch introduces a new config
resource entry ("config_enableScreenshotChord"), true by default, so
that products on which this functionality is inapplicable can avoid
its runtime overhead.

Bug 6039047

Change-Id: I968ddf9046741da35988310b7893fae2c0369beb
2012-03-22 15:09:25 -07:00
Mike Lockwood
c1c0ced669 Add config_wifi_driver_stop_delay to public.xml to fix build
Change-Id: Ifbc8b4dd97f20a343119b414423fdb609331e482
Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-03-22 15:09:09 -07:00
Mike Lockwood
09a12bcfab WifiStateMachine: Move wifi teardown delay to a framework resource
Bug: 5931171

Change-Id: I96a4e3bf1d044ea4a4d2955775703b6f0ce862ed
Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-03-22 15:09:05 -07:00
Amith Yamasani
483f3b06ea Package restrictions per user
Packages can be enabled/disabled per user.
This requires maintaining stopped/launched states and
enabled / disabled components and packages per user.

Refactored pm.Settings and PackageSettingsBase to keep
track of states per user.

Migrated the stopped-packages.xml to users/<u>/package-restrictions.xml

Changed intent resolution to handle individual user restrictions.
Bunch of IPackageManager calls now have a userId argument.
Make AppWidgetService handle removals of packages.

Added some tests for pm.Settings and PackageManager.

Change-Id: Ia83b529e1df88dbcb3bd55ebfc952a6e9b20e861
2012-03-22 10:08:24 -07:00
Daniel Sandler
a0a938cd5f Notification actions API.
Actions will be attached to the Notification object and also
used to inject additional tap targets in the default
template used by Builder.

Change-Id: Idd58686b9c44b2ca7bb9ec5aa8337f3bdce5b878
2012-03-21 22:13:30 -04:00
Eric Fischer
88796897d3 Restore deleted string still referenced from public.xml.
Change-Id: I738c1ef185b306f5a25afc6ed4b0f46a14e3c6a7
2012-03-21 13:38:55 -07:00
Eric Fischer
6e05e37a58 Import translations. DO NOT MERGE
Change-Id: I4c22ac70a03bfc348fc201415c5a4e432d1add53
2012-03-21 12:38:30 -07:00
Amith Yamasani
525a058c00 am 65e4b90d: am 31f7ef24: am 90e3bcae: Increase line limit for summary text
* commit '65e4b90d6cc3673e70b6b94fa1566e31eb44ffc7':
  Increase line limit for summary text
2012-03-20 17:54:57 -07:00
Steven Ross
848763daea Merge "Adding lock icon to FaceLockAreaView on lockscreen fixes 5394522" 2012-03-20 17:39:06 -07:00