6918 Commits

Author SHA1 Message Date
Amith Yamasani
df2e92a535 Application restrictions API
Adds the ability for apps to export some restrictions. The restrictions
are presented in Settings based on the restriction type. The user's
selections are stored by UserManagerService and provided to the
target user's application as a list of RestrictionEntry objects which
contain the key, value(s).

Also introduce a manifest entry for system apps to request that the
app be automatically installed in all users, so that they cannot be
deselected by the owner user.

Shared account filtering for non-whitelisted apps.

Change-Id: I15b741e3c0f3448883cb364c130783f1f6ea7ce6
2013-03-20 22:29:59 -07:00
Eric Laurent
fc7c9b484a Merge "audio service: allow touch sounds customization" into jb-mr2-dev 2013-03-21 00:05:08 +00:00
Fabrice Di Meglio
90179dc6aa Merge "Fix bug #8205589 Media Framework UI should be mirrored for RTL languages" into jb-mr2-dev 2013-03-20 17:46:03 +00:00
Eric Laurent
e78fced559 audio service: allow touch sounds customization
Added audio_assets.xml resource listing the
audio asset files for each touch sound effect.
This resource can be overlayed to customize the
touch sounds for a given device.

Bug 8339000

Change-Id: I8c156f0ce7f8769a58d77442fbd9c46b57c202e9
2013-03-20 10:38:07 -07:00
Baligh Uddin
06d59ad05c Import translations. DO NOT MERGE
Change-Id: I5f8e095504000dada72590b5043a7c7ad85de245
Auto-generated-cl: translation import
2013-03-20 09:06:00 -07:00
Fabrice Di Meglio
d410ccb1cb Fix bug #8205589 Media Framework UI should be mirrored for RTL languages
- force LTR layout direction for MediaController UI elements

Change-Id: Ia2b8058d16e2587314b6f01cf935a5599c2983c9
2013-03-19 17:45:43 -07:00
Elliott Hughes
f7c01e5a8a am eda35cb7: am a8974d3f: Merge "Clean up (some of) our many clocks to use H instead of k."
* commit 'eda35cb7c5781a32b038f1ef76b8e50f26f9bfaf':
  Clean up (some of) our many clocks to use H instead of k.
2013-03-19 09:31:04 -07:00
Elliott Hughes
cdafd37f31 Clean up (some of) our many clocks to use H instead of k.
Bug: 8359981
Change-Id: I3c0c38c2bf5adc4b5bdc11c3d10cf41dd8fb6462
2013-03-18 17:21:33 -07:00
Baligh Uddin
b885442820 Import translations. DO NOT MERGE
Change-Id: I18e0b1bb666d62540c921e8e83508ef6dc3f01af
Auto-generated-cl: translation import
2013-03-18 09:15:53 -07:00
Robert Greenwalt
2e6ce4f737 am 3fafccdd: am 519ba7b1: Merge "update APN version for MVNO"
* commit '3fafccdd180fa9918e900e1176de97cdfec6bccd':
  update APN version for MVNO
2013-03-15 17:58:57 -07:00
Robert Greenwalt
519ba7b10c Merge "update APN version for MVNO" 2013-03-16 00:18:52 +00:00
Amith Yamasani
0060deb6ed Merge "Move the account picker class name to a config resource." into jb-mr2-dev 2013-03-14 19:18:44 +00:00
Amith Yamasani
12b8e134c1 Move the account picker class name to a config resource.
For customization in derived products.

Bug: 8379133
Change-Id: I1dba4734f322455f0b0dd9c009be2ddc8d6b7d22
2013-03-14 11:43:56 -07:00
Jeff Sharkey
34f37e7412 Merge "Handle finished bugreports, share from private." into jb-mr2-dev 2013-03-14 15:44:12 +00:00
Jeff Sharkey
02ffba940c Handle finished bugreports, share from private.
Show notification when a bugreport is finished, letting the user
launch a SEND_MULTIPLE intent to share them.  Add dialog that warns
user about contents before sharing.  Since bugreports are now stored
in private app data of the Shell app, use FileProvider to build Uris
that we can grant others access to.

Define BUGREPORT_FINISHED as being a protected broadcast.  Delete
older bugreports automatically to reclaim disk space.  Migrate any
Intent extras to ClipData when building PendingIntents.

Add --receiver-permission support to am shell command.

Bug: 7005318
Change-Id: If6c607dbcf137362d5887eac482ff7391563890f
2013-03-13 16:42:38 -07:00
Baligh Uddin
f3d5de8246 Merge "Import translations. DO NOT MERGE" into jb-mr2-dev 2013-03-13 15:00:19 +00:00
Dianne Hackborn
c895be7bc6 Implement limited shared libraries in apks.
You can now declare shared libraries in apks that are
on the system image.  This is like the existing mechanism
of using raw jar files as shared libraries, but since they
are contained in an apk the library can actually be updated
from the Play Store.  And this even (mostly) works.

There are some deliberate limitations on this feature.  A
new shared library *must* be declared by an apk on the system
image.  Installing an update to a system image apk does not
allow you to add new shared libraries; they must be defined
by everything on the base system image.  This allows us to
get rid of a lot of ugly edge cases (shared libraries that were
there disappearing after an update is uninstalled for example)
and give some brakes on apps that happen to be pre-installed
on devices from being able to throw in new shared libraries
after the fact.

In working on this, I ran into a recently introduced bug where
uninstalling updated to system apps would fail.  This was done
to allow for the new restricted users that don't have all
system apps, but conflicts with the existing semantics for
uninstalling system apps.  To fix this I added a new uninstall
flag that lets you switch on the new mode if desired.

Also to implement the desired logic for limitations on declaring
new shared libraries in app updates, I needed to slightly tweak
the initial boot to keep the Package object for hidden system
packages associated with their PackageSetting, so we can look at
it to determine which shared libraries are allowed.  I think
this is probably more right than it was before -- we already
need to parse the package anyway, so we have it, and when you
install an update to a system app we are in this same state
until you reboot anyway.

And having this fixed also allowed me to fix another bug where
we wouldn't grant a new permission to an updated app if its
system image version is updated to request the permission but
its version is still older than whatever is currently installed
as an update.  So that's good.

Also add new sample code showing the implementation of an apk
shared library and a client app using it.

Change-Id: I8ccca8f3c3bffd036c5968e22bd7f8a73e69be22
2013-03-12 12:51:38 -07:00
Baligh Uddin
7741e623b8 Import translations. DO NOT MERGE
Change-Id: Ice2858fac7d254735d28f22bc1df95e684deefe8
Auto-generated-cl: translation import
2013-03-12 09:11:05 -07:00
Michael Jurka
ff82f06c98 Updating search asset for action bar
Bug: 7599978
2013-03-09 00:33:19 +01:00
Michael Jurka
23609f750c Do some minor cleanup of SearchView icons
Making one asset sharper, and deleting an unused
asset

Bug: 7599978
2013-03-08 14:59:08 +01:00
Baligh Uddin
7409c9d5a2 Merge "Import translations. DO NOT MERGE" into jb-mr2-dev 2013-03-07 02:59:20 +00:00
Santos Cordon
e20891e4cc Merge "Additional context for sip address types." into jb-mr2-dev 2013-03-07 01:12:40 +00:00
Santos Cordon
a05dd8e5e2 Additional context for sip address types.
bug: 7285478
Change-Id: I18eb050cbf54ae535b5403e927d352642d726d30
2013-03-06 16:32:53 -08:00
Dianne Hackborn
f6fcea6027 Merge "Fix issue #8325007: EyeEm app crashes on launch- NPE at..." into jb-mr2-dev 2013-03-06 21:40:56 +00:00
Dianne Hackborn
474690caf8 Fix issue #8325007: EyeEm app crashes on launch- NPE at...
...android.view.ViewGroup.measureChildWithMargins

The app is doing grungy stuff with trying to insert its own
views inside the window decor.  This new custom layout of the
action bar was assuming it would get fitSystemWindows() called
at which point it would retrieve all of its child views...  but
with the app doing this, it blocks the call down to
fitSystemWindows() and breaks us.  So we now make the layout
manager more robust and ensure it has retrieved its children
when measuring.

Also fix an issue where the xlarge layouts were not updated.

Change-Id: I6c69f26f26b59a6aa8fa1e5788288ffce0b490ca
2013-03-06 11:33:26 -08:00
Baligh Uddin
de2192f2a7 Import translations. DO NOT MERGE
Change-Id: Iaa1f94fce177730ea1471a1361727012a4d11306
Auto-generated-cl: translation import
2013-03-06 08:53:51 -08:00
Fabrice Di Meglio
f80ceed450 Make Spinner widget RTL-aware (part 2)
See bug #8159072 Spinner widget should be RTL'ized

Change-Id: I3f9368f242a027852bf13a7ce4b760de1e1c2fb2
2013-03-05 13:12:13 -08:00
Dianne Hackborn
1dc5f92716 Fix issue #8311263: Corrupted UI across all tabs in People app
The problem is that there are other configurations that the
action bar can be in that ActionBarOverlayLayout didn't account
for -- such as here, the nav part visible but the rest hidden.

Fixing this was non-trivial because it means that to correctly
implement fitSystemWindows() we need to in these cases take the
actual measured height of the action bar for positioning the
content view...  but that is not yet available, since
fitSystemWindows() must run before layout.

To solve this, ActionBarOverlayLayout now inherits directly from
ViewGroup and implements its own custom layout.  In its measure
pass it does all of the fitSystemWindows() work that is dependent
on the measured sizes of the action bar child views after those
are measured and applies them to the content view before it is
measured.

Change-Id: Ie327075d502e9c348aa80b0968c6b0403478301e
2013-03-04 18:17:50 -08:00
Baligh Uddin
7c36114d7f Import translations. DO NOT MERGE
Change-Id: I66270509422beeed4de4d5c7e94c62be82365a44
Auto-generated-cl: translation import
2013-03-01 08:55:13 -08:00
Dianne Hackborn
df7221ced3 Unify normal and overlay action bar layouts.
Switch the action bar to always use the overlay layout, and
make it smarter to do the right thing depending on whether the
action bar is in overlay mode or not.

This allows apps to use the system UI magic flags without
having to worry about whether the action bar is configured
in overlay mode or note -- just select a stable layout and it
will automatically go into overlay mode.

In the future this should also allow us to simplify the action
bar code, since it is all sitting on one common implementation.
For example, much of the logic in ActionBarImpl can be moved
to the root action bar layout, and that layout can be optimized
to do custom layout with all of the known elements it has.

Also fixed a little bug in the performance tests.

Change-Id: Iec0c0c0699754f0d1ce37402d786b4966e052a56
2013-02-27 18:27:42 -08:00
Dianne Hackborn
1bf1af60a3 Add documentation for overscan flag.
Change-Id: Ibed06f23b2011a66021344384150e9d4ba6e61ed
2013-02-26 10:36:10 -08:00
Baligh Uddin
69a8dbbd67 Merge "Import translations. DO NOT MERGE" 2013-02-22 23:27:47 +00:00
Craig Mautner
12e563fff9 Merge "Create rotation animation modes." 2013-02-22 18:51:21 +00:00
Craig Mautner
3c1743705c Create rotation animation modes.
Allow fullscreen windows to specify crossfade or jumpcut animations
that override the default rotation animation. Only if the incoming
and outgoing topmost windows are fullscreen and both specify the
same animation to use.

Fixes bug 8182773.

Change-Id: I6b3c0020d7bd2cdfba5c66189e114ec62cd54fcf
2013-02-22 10:44:52 -08:00
Baligh Uddin
5d5ac5bb0a Import translations. DO NOT MERGE
Change-Id: I26214599db1cab9d2c5847860d43e008d0e463ab
Auto-generated-cl: translation import
2013-02-22 09:25:20 -08:00
Jeff Sharkey
4fa63b2d5e Improve notification UI for lockdown VPN.
Bug: 7064111
Change-Id: I9554f6a426697b4abeb2ddd0827d314920e88ed6
2013-02-21 09:47:11 -08:00
Fabrice Di Meglio
04de3b8141 Merge "Make Spinner widget RTL-aware" 2013-02-20 19:20:22 +00:00
Svetoslav
aa7cc1e2ab Merge "Adding idle maintenance service." 2013-02-20 19:11:07 +00:00
Baligh Uddin
9f81aff74d Merge "Import translations. DO NOT MERGE" 2013-02-19 21:46:45 +00:00
Baligh Uddin
cda90b6d80 Import translations. DO NOT MERGE
Change-Id: Id749bf92fae550427415636ec1816b9683a614b3
Auto-generated-cl: translation import
2013-02-19 12:30:44 -08:00
Dianne Hackborn
c652de8141 Implement display overscan support.
The window manager now keeps track of the overscan of
each display, with an API to set it.  The overscan impacts
how it positions windows in the display.  There is a new set
of APIs for windows to say they would like to go into the
overscan region.  There is a call into the window manager to
set the overscan region for a display, and it now has a
concept of display settings that it stores presistently.

Also added a new "wm" command, moving the window manager
specific commands from the "am" command to there and adding
a new now to set the overscan region.

Change-Id: Id2c8092db64fd0a982274fedac7658d82f30f9ff
2013-02-19 12:08:58 -08:00
Baligh Uddin
570bf48d4a Import translations. DO NOT MERGE
Change-Id: Id6fd43d678aa4013c8d8214ac9b6b66de3982d69
Auto-generated-cl: translation import
2013-02-15 13:37:31 -08:00
Svetoslav
b3038ec7cf Adding idle maintenance service.
It is beneficial that there is a mechanism on the platform
to notify applications whether it is safe to perform somehow
expensive operations while the user is not using the device.
Thus, user experience will not be degraded. An example is
discarding of unused blocks on a mounted file system instead
of doing this on every write operation.

bug:8056794

Change-Id: I708bad9d3ce6c8f1d5a1c05c0abf46f81a3d464b
2013-02-15 11:04:11 -08:00
Adam Powell
ac91df87fc Add support for shadows in TextAppearance styles
Allow developers to specify shadow properties for text in a
TextAppearance, not just in direct TextView attributes.

Change-Id: I873fbaf2c26683895e1eea2d02b5d9b17ca333d0
2013-02-14 13:48:47 -08:00
Russell Brenner
108da0cfa4 Adjust captive portal test for setup wizard
During setup wizard, perform captive portal test without the typical
delays.

Change-Id: If596948e732966817aae6201440e87e19be0c2f8
2013-02-14 11:02:10 -08:00
Fabrice Di Meglio
58bd12deb2 Make Spinner widget RTL-aware
See bug #8159072 Spinner widget should be RTL'ized

Change-Id: I59ac564ef484bebbca0aeb1dc17b56e1665b61e2
2013-02-13 17:58:05 -08:00
Baligh Uddin
222a6e9e98 Import translations. DO NOT MERGE
Change-Id: I19f0cf6b89a1bfb5d95aeafc7a639716b86f618e
Auto-generated-cl: translation import
2013-02-13 08:43:11 -08:00
Ying Wang
4c818473d4 Remove the unnecessary framework-res-package-target
Now the dependency should be correctly established by
framework_docs_LOCAL_JAVA_LIBRARIES.

Change-Id: I4c0ed2d3fb2855539027c7a0eb663f5747ae3ebd
2013-02-12 17:18:44 -08:00
Baligh Uddin
f706cbdf22 Import translations. DO NOT MERGE
Change-Id: I06e0cc4a9f16f2356a25011fb5784eb5475a6591
Auto-generated-cl: translation import
2013-02-12 11:24:15 -08:00
Baligh Uddin
ea2f802928 Import translations. DO NOT MERGE
Change-Id: I5d6b97a7078b930416335dcf016bc820e1f09845
Auto-generated-cl: translation import
2013-02-11 08:12:48 -08:00