4691 Commits

Author SHA1 Message Date
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
Eric Fischer
635f3a3db1 Merge "Import translations. DO NOT MERGE" 2012-03-20 13:19:50 -07:00
Steven Ross
ec5501acd8 Adding lock icon to FaceLockAreaView on lockscreen fixes 5394522
This makes the transition from the backup to Face Unlock invisible to the user,
using three layers:
the base background layer (also used in Face Unlock)
the spotlight mask layer (black alpha = .8), representing a size-0 spotlight
The cancel button, which would incorrectly resize to full-screen if a View with
a background were used instead of the current ImageView

Change-Id: Ieb433baf171088e0af06f183fcdb5ddda6001f01
2012-03-20 15:19:58 -04:00
Svetoslav Ganov
eb0b1da78f Merge "Revamp of the NumberPicker widget." 2012-03-20 12:14:37 -07:00
Svetoslav Ganov
d11e6151fe Revamp of the NumberPicker widget.
1. The number picker no longer shows up and down arrows, it
   has only three touch targets which are the currently selected number
   in the middle with a lesser one above and greater below, now what
   you touch is what you get, flingability and long press are still
   supported.

2. Removed the restriction for a View with an AccessibilityNodeProvider
   to not have any concrete children. If the View has a provider, then
   this provider is responsible for creating the AccessibilityNodeInfos
   for all its descendants, concrete and virtual. The number picker is
   a good example for such a case - it has a concrete input view and
   two virtual buttons as its children. This is a safe change since
   this behavior has not been released.

3. This patch also fixes bug where the number picker is stretched too
   much in the Theme theme.

bug:6177794
bug:5728294

Change-Id: I5fb370fe0b864a156f5f2aaf2de5f55f6b6d4e84
2012-03-20 12:13:06 -07:00
Eric Fischer
413c4c71ed Import translations. DO NOT MERGE
Change-Id: Ia1039610eecfe92fe348056b774b0d8f16cea898
2012-03-20 11:59:58 -07:00
Svetoslav Ganov
52c1055462 Merge "Revert "Revamp of the NumberPicker widget."" 2012-03-19 20:03:45 -07:00
Svetoslav Ganov
efd1c67779 Revert "Revamp of the NumberPicker widget."
This reverts commit 912ab8506ae6409ee7fa0323b217fefaf0bd9771
2012-03-19 20:03:29 -07:00
Svetoslav Ganov
ca07bc1d35 Merge "Revamp of the NumberPicker widget." 2012-03-19 18:56:51 -07:00
Jim Miller
5d189e12d7 Merge "Fix 6021938: Improved target support in lock screen" 2012-03-19 17:18:34 -07:00
Jim Miller
b030476d19 Fix 6021938: Improved target support in lock screen
This adds the ability to enable or disable target icons based on the drawable
resource of the target.

It also fixes a bug where we'd show the camera while displaying
the PIN/PUK unlock screen or when it's disabled by DevicePolicyAdmin.

Minor simplification and cleanup KeyguardUpdateMonitor callbacks.

Change-Id: I33fad56a2203bc8b7bcd0300c20478711a56713a
2012-03-19 14:18:13 -07:00
Eric Fischer
def849723e Import translations. DO NOT MERGE
Change-Id: I6f82687669c41ae6a681b306d53e1b95ec8f95c6
2012-03-19 13:52:26 -07:00
Svetoslav Ganov
912ab8506a Revamp of the NumberPicker widget.
1. The number picker no longer shows up and down arrows, it
   has only three touch targets which are the currently selected number
   in the middle with a lesser one above and greater below, now what
   you touch is what you get, flingability and long press are still
   supported.

2. Removed the restriction for a View with an AccessibilityNodeProvider
   to not have any concrete children. If the View has a provider, then
   this provider is responsible for creating the AccessibilityNodeInfos
   for all its descendants, concrete and virtual. The number picker is
   a good example for such a case - it has a concrete input view and
   two virtual buttons as its children. This is a safe change since
   this behavior has not been released.

3. This patch also fixes bug where the number picker is stretched too
   much in the Theme theme.

bug:6177794
bug:5728294

Change-Id: Id8c0b3549174b9599f971d6e3086ca427cfbaa39
2012-03-19 13:02:22 -07:00
Eric Fischer
21cc2c15b1 Merge "Move map center resources out of arrays.xml." 2012-03-19 11:20:31 -07:00
Eric Fischer
e10333fdcc Move map center resources out of arrays.xml.
Having them in the same file means that the translation importer
will in some cases try to override the files that were manually
added for each locale.

Change-Id: Ie34106d08aacdbddb0c1005fb511f2018db93800
2012-03-19 11:14:20 -07:00
Dianne Hackborn
d6b32b6178 More work on rotation animation.
Change-Id: Ib8206db98b68cb1e0b16e4c55d949e80ff31bd9f
2012-03-16 18:20:07 -07:00
Amith Yamasani
90e3bcae67 Increase line limit for summary text
Doing this to accomodate some really long warning text in a
checkbox widget. Needs 5 lines for English. Probably a lot
more for German, etc., so increasing it to 10 lines.

Please don't abuse that. 4 lines is still a reasonable max.

Change-Id: Ife5858f2165cb2bc046ce606f29d31010d26ecc2
2012-03-16 13:13:50 -07:00
Eric Fischer
a1d2bd829d Merge "Import translations. DO NOT MERGE" 2012-03-15 13:48:06 -07:00
Eric Fischer
1469438f8b Import translations. DO NOT MERGE
Change-Id: Icb1104d90c24d1f6a572205e2a6bcb9fcd489b19
2012-03-15 13:37:49 -07:00