Commit Graph

4297 Commits

Author SHA1 Message Date
Christopher Tate
4161a27dec am e363c642: am 9566f67a: am 5cd3f209: A little more system API in RestoreSetObserver
* commit 'e363c642ae83d4cb94a58a68a777a21b203c6e5b':
  A little more system API in RestoreSetObserver
2014-08-08 02:26:03 +00:00
Christopher Tate
26bd4c5691 am faea5f39: am 52a22451: am 7c8f2d5d: Merge "API to tell the transport to cancel a full backup in progress" into lmp-dev
* commit 'faea5f39df55088f8700adb890c275e26f52cd09':
  API to tell the transport to cancel a full backup in progress
2014-08-08 02:25:43 +00:00
Christopher Tate
4ab1747efa am ffd2ffea: am 5a68fe74: am b7c40868: Mark beginRestoreSession() as system API
* commit 'ffd2ffeaaaae57a11ed2a319b6204e501dd5c9d7':
  Mark beginRestoreSession() as system API
2014-08-08 02:25:06 +00:00
Christopher Tate
a589f12c34 am b39bc60c: am 6fb63e97: am bc835105: Merge "Reify the transport lookup/selection API" into lmp-dev
* commit 'b39bc60c4a255a6dd4eaa3e4b92394bff22ac4d3':
  Reify the transport lookup/selection API
2014-08-08 02:22:33 +00:00
Christopher Tate
58d467a584 A little more system API in RestoreSetObserver
Bug 16542048

Change-Id: I8b773df872e3cc50c42645e3833d40a691edc4e7
2014-08-08 00:02:25 +00:00
Christopher Tate
2e5979236c Mark beginRestoreSession() as system API
Bug 16874911

Change-Id: Idb06ebf2d0f54bb13af1d2eeacf0d7b06fda68db
2014-08-07 22:44:15 +00:00
Winson Chung
38c010dd05 am 06e564d2: am e70eb503: am f9c1251b: Merge "Initial changes to add task affiliation styling. (Bug 16656169)" into lmp-dev
* commit '06e564d23309dc1c5198eda98e975b7fc5f00c61':
  Initial changes to add task affiliation styling.  (Bug 16656169)
2014-08-07 19:17:19 +00:00
Christopher Tate
e079264b98 API to tell the transport to cancel a full backup in progress
Bug 16524520

Change-Id: If2cbffd3c8a03bf4eb7b11ff1ae784c437e27e7f
2014-08-07 23:16:19 +00:00
Winson Chung
ec396d6399 Initial changes to add task affiliation styling. (Bug 16656169)
- Fixing issue with launch-in-background animation
2014-08-07 17:57:25 +00:00
Christopher Tate
d5cf722ae6 Reify the transport lookup/selection API
Introduce a stable BackupTransport interface class for transport
implementations to derive from.

Make the interface for viewing/selecting the active backup transport
part of the stable API.

Make restore-related classes (RestoreSession, RestoreSet) stable API.

Express backup manager APIs needed for transport operation as
@SystemApi methods in BackupManager.

Bug 16661321

Change-Id: I423b87ae8f45c1b77831d4f8ffd97715484c2d2b
2014-08-07 19:43:22 +00:00
Dan Sandler
91b9715b43 am 74746c7e: am 11dff416: am a20ca819: Merge "Need to post-process all action icons to get the correct color." into lmp-dev
* commit '74746c7e1440fe3ab2a8939b9c75e70b3d3bf258':
  Need to post-process all action icons to get the correct color.
2014-08-07 14:25:00 +00:00
Adrian Roos
afc625a679 am 06407eb4: am 4902e5ff: am ae9b5cd0: Merge "Pass initiatedByUser to TrustListeners" into lmp-dev
* commit '06407eb441b71d0dd62f38cef72aba140944b711':
  Pass initiatedByUser to TrustListeners
2014-08-07 14:09:33 +00:00
Adrian Roos
3c9a350165 Pass initiatedByUser to TrustListeners
Bug: 16840500
Change-Id: I8d9bd8fe9a305066f33ac5c888d8a41ce219a6f1
2014-08-07 15:13:09 +02:00
Dan Sandler
09723fd04a Merge "Need to post-process all action icons to get the correct color." into lmp-dev 2014-08-07 09:28:12 +00:00
Svet Ganov
3d2838fa88 am e7066052: am fbbd64aa: am 7efdcd46: Merge "Fix regression in remote views." into lmp-dev
* commit 'e7066052a3b517652222107602a1b8d33dc5aee3':
  Fix regression in remote views.
2014-08-07 01:17:21 +00:00
Jeff Sharkey
89a8afe6ea am 59eeb5fa: am 744e367e: am 197ec8d3: Surface user action events when un/installing.
* commit '59eeb5fa26c0bb7eee513170ccc53d0d040f9d4e':
  Surface user action events when un/installing.
2014-08-07 00:44:22 +00:00
Svetoslav
d97d65900a am a13e3ab6: am 3892dcfb: am f287eb85: Polish of the app widgets cross-profiles feature.
* commit 'a13e3ab6c7621ba7d02941bfd001baa9400af56b':
  Polish of the app widgets cross-profiles feature.
2014-08-07 00:39:40 +00:00
Jeff Sharkey
fbd0e9fa37 Surface user action events when un/installing.
This will be used shortly to connect up with permissions
confirmation UI.

Bug: 16515814
Change-Id: If28cecc28549900d960ac107a1fba0b10ce5bd7b
2014-08-07 00:23:54 +00:00
Svetoslav
c71c42fdb2 Polish of the app widgets cross-profiles feature.
1. Added API for badging an arbitrary drawable at a given location.

2. Updated the icon and previewImage deprecation as they are no longer
   returning a badged drawable. The methods to load the icon and the
   preview are now just making it easier for a developer to get the
   drawables.

3. Fixed a bug in AppWidgetServiceImpl leading to a crash when a user
   is removed.

4. Fixed a bug in AppWidgetHost which was unnecessarily caching its
   package name and having code paths where the cached value was not
   populated when calling into the system.

bug:14991269

Change-Id: I50d011a6597d88814715d5ec04ee67815e8ce0bd
2014-08-07 00:12:27 +00:00
Dan Sandler
aa21e395f5 Need to post-process all action icons to get the correct color.
This reverts commit fd266000212b33956d586807c76967b30b815cb6.

Bug: 16846210
Change-Id: I67e0acaacb6a4d9eb9a1a7392a7c647ff51c8f54
2014-08-06 19:26:11 +00:00
Alexandra Gherghina
ce5be58a85 am 2656f743: am 6a0d4fbd: am 00aeefd2: Add hidden API for removing cross-profile package filters
* commit '2656f743456b6792309a2d37c30db412df748b4b':
  Add hidden API for removing cross-profile package filters
2014-08-06 17:40:16 +00:00
Amith Yamasani
01fa2ec823 am 604af1a6: am a41b17ac: am 41179448: Merge "Allow phone UID to export singleton providers" into lmp-dev
* commit '604af1a6212ccfe1deb7cb4c2cb1cb13154cf255':
  Allow phone UID to export singleton providers
2014-08-06 17:35:29 +00:00
Alexandra Gherghina
e41ce995a0 Add hidden API for removing cross-profile package filters
Bug: 16646591
Change-Id: Iaf6837fe4390ac1018c49df366ea434776ed7244
2014-08-06 14:52:50 +00:00
Svet Ganov
0da85b6c90 Fix regression in remote views.
Now remote views contain the application info for the app on whose
behalf they should show content. The application info contains the
user id and the package name which makes it unique in the multi
user environment. If the app which creates the remote views does
not have the same package as the one passed in the contructor of
the remote views, we lookup the app info for the target package.
There is a special hidden overload that allows creating a remote
views instance that represents an app in given package and user
(requires interact across users) permission. The latter is used
by SystemUi when creating remote views for apps that posted a
notification.

bug:16838651

Change-Id: I2daa974629f89a2446848e59300d994dadcf4439
2014-08-07 00:30:44 +00:00
Svetoslav
39999cf026 Allow adding widgets from user profiles.
The goal of this change is to enable support for appwidget from
user profiles to the user main profile. A user profile is a user
which is associated as a child of the main user profile. For example,
a user may have a personal (parent) and corporate (child) profile.
The device policy should be able to control whether adding a widget
from a child profile and given packages is allowed. This change
assumes that all packages from managed profiles are white listed.
Another change will add the device policy changes.

(cherrypicked 8cd27c3c to work around Gerrit issue)

Change-Id: I267260b55d74c48b112a29979a9f59eef7a8194e
2014-08-06 11:01:36 +01:00
Amith Yamasani
f17e498fea Merge "Allow phone UID to export singleton providers" into lmp-dev 2014-08-05 00:19:02 +00:00
Amith Yamasani
41c1ded7f0 Allow phone UID to export singleton providers
Also add a user variant of replacePreferredActivity for use
by SmsApplication.

Map user restrictions for SMS/MMS to AppOps perms.

Bug: 16681533
Change-Id: I3dfed5fc754e33bb51c6f571851653a7c2770e46
2014-08-05 14:37:27 -07:00
Svetoslav
976e8bd201 Allow adding widgets from user profiles.
The goal of this change is to enable support for appwidget from
user profiles to the user main profile. A user profile is a user
which is associated as a child of the main user profile. For example,
a user may have a personal (parent) and corporate (child) profile.
The device policy should be able to control whether adding a widget
from a child profile and given packages is allowed. This change
assumes that all packages from managed profiles are white listed.
Another change will add the device policy changes.

Change-Id: I267260b55d74c48b112a29979a9f59eef7a8194e
2014-08-05 20:57:20 +00:00
Christoph Studer
1cda67f8b3 Notification: Only post-process legacy notifications
Bug: 16522199
Change-Id: I20330f946cee6569c249be1800c3a0e814d79efc
2014-08-03 18:22:46 +00:00
Dake Gu
fc0fc0e341 ActivityTransitionCoordinator: Fix memory leak of ResultReceiver
The ActivityTransitionCoordinator is retained by reference from native code.
The coordinator refers to a app's listener which can cause leak.

b/16737906

Change-Id: Ibbb85480b852442f95b00a8d3beff0161bdadb47
2014-08-01 22:53:14 +00:00
Christoph Studer
697642be8b am 725c3271: am 3ac1c594: am 4021914f: Merge "NoMan: Optimize profile badge retrieval" into lmp-dev
* commit '725c3271c3b4942f8806531aeff1cb42de4c4806':
  NoMan: Optimize profile badge retrieval
2014-08-04 14:51:30 +00:00
Christoph Studer
b3d6e84638 am 241b0781: am f20347e6: am 728662c8: Merge "Notif: Fix profile badge for stripped RemoteViews" into lmp-dev
* commit '241b07819200e15672ff5a11f4847c00c4a3822a':
  Notif: Fix profile badge for stripped RemoteViews
2014-08-04 12:27:00 +00:00
Christoph Studer
7ac80e630d NoMan: Optimize profile badge retrieval
Instead of stuffing the profile badge into extras, store the
originating user and read the badge via UserManager.

Bug: 16735645
Change-Id: Ia5f9b6f113dcbc88581af5308585edcf9b92b88d
2014-08-04 16:27:54 +02:00
Christoph Studer
943aa6778f Notif: Fix profile badge for stripped RemoteViews
Stash the profile badge into the extras such that rebuild() can read
it back.

Bug: 16735645
Change-Id: I620da121615a01c27fb31ee292088701e364d223
2014-08-04 12:26:18 +02:00
Christoph Studer
ff8647b4de am 3e79dab2: am d2a28cdc: am fd266000: Notification: Only post-process legacy notifications
* commit '3e79dab28ee52eb996406cbc866e27688ed5238e':
  Notification: Only post-process legacy notifications
2014-08-03 18:34:27 +00:00
Dake Gu
29a0e682b5 am 04bc766a: am f7560b36: am de545505: ActivityTransitionCoordinator: Fix memory leak of ResultReceiver
* commit '04bc766a04a51c1c01b09a530494d549eef3faf1':
  ActivityTransitionCoordinator: Fix memory leak of ResultReceiver
2014-08-01 23:19:37 +00:00
Chris Wren
a3b59dbfc2 am 7d902825: am 4ba63196: am 949c6e3a: Expose headsUpContentView so developers can customize it.
* commit '7d902825399fbba5c84a62292305e844ca0ad9a5':
  Expose headsUpContentView so developers can customize it.
2014-08-01 20:50:34 +00:00
Zoltan Szatmary-Ban
381ef63f81 am f1ec4d86: am 51ac9512: am f3a2ec5c: Add AsUser versions of existing DevicePolicyManager methods
* commit 'f1ec4d86381dd20709206372219ef41a0c0181a7':
  Add AsUser versions of existing DevicePolicyManager methods
2014-08-01 20:50:30 +00:00
George Mount
23785adfe9 am b3bd029b: am dab97bb2: am 044a7d67: Add differentiating transitions for returning/reentering.
* commit 'b3bd029b5ab2df8c86ab903bc597f858298be157':
  Add differentiating transitions for returning/reentering.
2014-08-01 20:49:16 +00:00
Chris Wren
97c0b90f89 Expose headsUpContentView so developers can customize it.
Bug: 13510114
Change-Id: I645c204e366fefab58224d2e67d00e701dc661aa
2014-08-01 10:57:05 +00:00
Zoltan Szatmary-Ban
3f1ddf83a4 Add AsUser versions of existing DevicePolicyManager methods
Some API methods on DevicePolicyManager call underlying IDevicePolicyManager methods
that can be parameterised with a user id. DPM however only exposed methods for the current user.
This CL makes it possible to call them with any user id by introducing hidden methods on
DevicePolicyManager.

Bug: 15558397
Change-Id: I1786a64fa7cf5f6590ddd04cbf4527bb159f8795
2014-08-01 09:27:19 +00:00
George Mount
68f96d8db5 Add differentiating transitions for returning/reentering.
Bug 16550363

Change-Id: I85f9a8bcbc92ce048d06b36579bb05893534f7f8
2014-07-31 21:58:06 +00:00
Evan Charlton
2e5fbbe867 am ef1a64ec: am 7fedbd06: am 0e097002: Fix a small typo in javadocs
* commit 'ef1a64ec49ce6a28f87179ca863ecac337288df7':
  Fix a small typo in javadocs
2014-07-31 16:28:19 +00:00
Evan Charlton
b8d0717934 Fix a small typo in javadocs
Service#START_FLAG_RETRY has an extra word; remove it.

Change-Id: I4743e2ea474c70fe5d31f1a4ef257f9752f8e823
2014-07-31 16:14:22 +00:00
Alexandra Gherghina
3d92d12151 am fdf33a8b: am 4b990549: am 8b0b1504: Use the appropriate default icon
* commit 'fdf33a8b803683887240b7d4ef6e614bc77ddc79':
  Use the appropriate default icon
2014-07-31 15:55:32 +00:00
Alexandra Gherghina
a709314537 Use the appropriate default icon
ComponentInfo subclasses and ApplicationInfo have different ways to retrieving
the default icon. Previously, in CL I2db300a69a08030eacc245ee91556f0443ba5878
we defaulted everything to the green Android. This makes sure that they get the
right default.

Bug: 16630068
Change-Id: Ifa499eac6f1543523d6ecf0831175bfd6b772edb
2014-07-31 15:43:11 +00:00
Bernhard Bauer
8989964ee3 Add a method to DevicePolicyManager to silently install a certificate / private key pair.
BUG=15065444

Change-Id: Id3d255e1fce2c608501c3a038633a93c7f191426
2014-07-31 09:30:13 +01:00
keunyoung
176ded3d62 am 4e8e785e: am 669f8f22: am 4d2751c5: Merge "add UiModeManager.ENABLE_CAR_MODE_NO_WAKE_LOCK flag for enableCarMode" into lmp-dev
* commit '4e8e785e2b7f58de656c7d473dcedd96c1a91e80':
  add UiModeManager.ENABLE_CAR_MODE_NO_WAKE_LOCK flag for enableCarMode
2014-07-30 21:35:18 +00:00
Christoph Studer
00781c693a am c63f6df8: am 2522c94a: am 6b8a2734: Merge "SysUI: Display group children when no summary is present" into lmp-dev
* commit 'c63f6df88623578ca199e9c108d36dc2859dc803':
  SysUI: Display group children when no summary is present
2014-07-30 20:34:46 +00:00
Primiano Tucci
810c052d9b Cherry pick Introduce startIsolatedProcess private API in ActivityManager DO NOT MERGE
The new API spawns a isolated process, using a custom uid, entrypoint and
abi. Such API is used by the WebViewFactory to spawn its unpriviledged
but trusted process (hence the fixed uid) which rewrites the rerlo file
on boot / when an update occurs.
Since both the ActivityManager service and the WebViewUpdate service
live in the SystemServer their calls be dispatched locally and no
binder interface needs to be exposed for the new startIsolatedProcess API.

Original BUG:16403706
Original Change-Id: I327b59735c12698595e0dbcc4da5d759c9103b0a

Bug: 16723226
Change-Id: Iecb49888e11eec9d302d9712953fd498db5821af
2014-08-01 14:24:09 +01:00