Commit Graph

6489 Commits

Author SHA1 Message Date
Wale Ogunwale
59a73ca331 Support creating docked stack at top/left/bottom/right half of screen
Change-Id: Id8d6f639ed67baadb856ce84a20af8929e04cb2e
2015-09-14 15:37:47 -07:00
Chong Zhang
8e89b31a62 Move window moving and resizing handling to WindowManager
- add a startMoving API to initiate a window move from app, once
  the move starts WindowManager will take over the event handling.

- detect touch events along window's outside border and start
  a resize if necessary

Change-Id: Ic7e8baba34e0aa27a43173e044ffb46e93e219e0
2015-09-11 17:15:19 -07:00
Svet Ganov
d7ad54e603 Update requestPermission docs about requesting a held permission - framework
bug:23370436

Change-Id: I7c0134578f529ea698a2c237d19112d1d0a91828
2015-09-10 23:40:15 +00:00
Gus Prevas
84cb35aa28 am 94a47646: am 27cb5670: am 3d1115db: Merge "Fixes cloned notification actions missing icon." into cw-e-dev
* commit '94a4764649f3611806b95d3f1394ea9f77e30459':
  Fixes cloned notification actions missing icon.
2015-09-10 20:02:20 +00:00
Gus Prevas
94a4764649 am 27cb5670: am 3d1115db: Merge "Fixes cloned notification actions missing icon." into cw-e-dev
* commit '27cb56703d350b441a2e9efc55bd16dd5b1528e7':
  Fixes cloned notification actions missing icon.
2015-09-10 19:54:13 +00:00
Gus Prevas
3d1115dba5 Merge "Fixes cloned notification actions missing icon." into cw-e-dev 2015-09-10 19:40:19 +00:00
Gus Prevas
f5bff46f6a Fixes cloned notification actions missing icon.
This change modifies the Notification.Action constructor
to populate the deprecated "icon" field based on the provided icon.
This field is still used by NotificationCompatApi20
to create a NotificationCompatBase.Action from a Notification.Action.

Bug: 23348968
Bug: 22591778
Change-Id: I3576038384d2baa12c4c75bc4124e3859aacbd13
2015-09-10 13:13:45 -04:00
Svetoslav
f3f02ac931 Add get_accounts app op
For each runtime permission we have an app op to toggle the
permission for legacy apps as they cannot handle permission
revocations. We were lacking an app op for get_accounts
which prevented the user from controlling access to accounts
regardelss that they change the state of the permission
toggle in the UI. Even worse the permission UI is written
with the assumption that every runtime permission has an
app op and as a result revoking the contacts group (if the
app requests the get_accounts permission) is reset back to
allowed in the UI.

bug:23854618

Change-Id: I12b83dfd22974d130e5b8e7a195421120813e2db
2015-09-09 07:31:17 -07:00
Svetoslav Ganov
5f677b114c am 4f1bd159: am db4efcfa: am f57d9856: am 4f7d0bc7: Merge "Add get_accounts app op" into mnc-dev
* commit '4f1bd159d9042106d112cbf579c2daf82842f375':
  Add get_accounts app op
2015-09-09 02:08:18 +00:00
Svetoslav Ganov
db4efcfa8d am f57d9856: am 4f7d0bc7: Merge "Add get_accounts app op" into mnc-dev
* commit 'f57d98564b26953b722ab0e14222f50e6515f36d':
  Add get_accounts app op
2015-09-09 01:51:37 +00:00
Svetoslav Ganov
f57d98564b am 4f7d0bc7: Merge "Add get_accounts app op" into mnc-dev
* commit '4f7d0bc7af5fbb65796d24b130b7e9e63107bc5d':
  Add get_accounts app op
2015-09-09 01:42:56 +00:00
Svetoslav
ce852ddcec Add get_accounts app op
For each runtime permission we have an app op to toggle the
permission for legacy apps as they cannot handle permission
revocations. We were lacking an app op for get_accounts
which prevented the user from controlling access to accounts
regardelss that they change the state of the permission
toggle in the UI. Even worse the permission UI is written
with the assumption that every runtime permission has an
app op and as a result revoking the contacts group (if the
app requests the get_accounts permission) is reset back to
allowed in the UI.

bug:23854618

Change-Id: I9e3f9bfeb320bed561d718db99ee285915d5701b
2015-09-08 17:54:37 -07:00
Makoto Onuki
3adba7867a Merge "[split system] Tentatively support running DO on meat user" 2015-09-08 18:28:53 +00:00
Makoto Onuki
58b684f1cd [split system] Tentatively support running DO on meat user
- setDeviceOwner() now takes a user ID.  (We can infer it from Binder, but
we still need it for the dpm command.)

- Change broadcast target UID for DO to the DO user

- Start the DO user on boot complete.
TODO Investigate whether this is actually the good timing.

TODO Prevent the DO user from being killed

Bug 23827706

Change-Id: I227dbd444f1f4e94d98c317489d151554fe79d91
2015-09-08 11:24:58 -07:00
Alan Viverette
c6c28731e5 Merge "Invalidate when Drawable.setState() returns true" 2015-09-08 14:08:19 +00:00
Alan Viverette
9ed62e47c9 Merge "Deprecate FEATURE_PROGRESS and related methods" 2015-09-04 19:16:33 +00:00
Vadim Tryshev
131e8faa97 Merge "Implementing app-centric Shelf." 2015-09-04 18:48:55 +00:00
Alan Viverette
4aef7c8594 Deprecate FEATURE_PROGRESS and related methods
Bug: 23763003
Change-Id: I4ef97e089db592e438a27657faffa1c8290f2b0e
2015-09-04 14:14:50 -04:00
Vadim Tryshev
3560575009 Implementing app-centric Shelf.
We finally get a UX decision for the Shelf.
Shelf won't have 2 parts - pinned and recents; it will have only 1 list where
all pinned and recent activities of the same kind are grouped under a single icon.
Clicking at that icon activates the latest running activity if it's present, or
starts a new one otherwise.

The above part is implemented in this CL. I removed stuff related to the separate
Recents pane, and moved surviving code to NavigationBarApps.

Later, we'll have menus popping up from the icon, which will allow pinning and unpinning,
and choosing a concrete activity to activate.

Bug: 20024603
Change-Id: Ia08fe62939f92c7ee4f102c07a31e7168a11f010
2015-09-04 11:02:35 -07:00
Alan Viverette
ad0020f807 Invalidate when Drawable.setState() returns true
Ensures views that manage drawables follow the contract set forth in
the Drawable.setState() documentation.

Bug: 23792020
Change-Id: I4e5a449cd6535487873fd8443da50555c38e8ed9
2015-09-04 10:10:42 -04:00
Chong Zhang
0fa656b952 Allow apps to pass in launch bounds when moving/starting a task
Pass in bounds via ActivityOptions for moveTaskToFront and
startActivityFromRecents. Allow bounds to be overriden by rects
in starting intents.

Set bounds to null in RecentsView for full screen layout.

Change-Id: I0ff79fd75068f4ba82d5e2c0a21881fabebdadb8
2015-09-03 18:23:21 -07:00
Alan Viverette
be64eae333 Minor clean up in ActivityThread, mostly final usage
Change-Id: Ic98103cb8b2ac6fb9b37fc9457366ded2bfbb7a8
2015-09-03 14:56:04 -04:00
Alan Viverette
2107d69d35 Postpone loading app context until instrumentation is set up
The application context needs instrumentation data to be in place
prior to construction so that the class loader is initialized using
the correct paths.

Removes unnecessary clearClassLoader() workaround that was previously
added to fix instrumentation tests.

Bug: 22627299
Change-Id: Ibf8e69e037189a9a563f0b68cfe333461726b71d
2015-09-03 14:55:27 -04:00
Nicolas Prévot
4c82053a76 Merge "Fix documentation of EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME" 2015-09-02 09:25:57 +00:00
Alan Viverette
8056e41324 Merge "Reset class loader after updating instrumentation paths" 2015-09-01 21:00:15 +00:00
Alan Viverette
346296bd7d Reset class loader after updating instrumentation paths
Bug: 23688983
Change-Id: I9a0f81b422b5e29f3f8707b987e40c65965e0223
2015-09-01 13:08:05 -04:00
Todd Kennedy
fa1ff3da12 am dde3fd65: am f7bf24ad: am 9fe274d6: am 9e25e164: am e7078e18: Merge "Ensure host is set before onInflate()" into mnc-dev
* commit 'dde3fd6585411bd31ff7717eff483f5b7534c0c9':
  Ensure host is set before onInflate()
2015-09-01 16:09:50 +00:00
Todd Kennedy
dde3fd6585 am f7bf24ad: am 9fe274d6: am 9e25e164: am e7078e18: Merge "Ensure host is set before onInflate()" into mnc-dev
* commit 'f7bf24ad1d780b326287409f37e0e8c03115f60d':
  Ensure host is set before onInflate()
2015-08-31 23:14:54 +00:00
Todd Kennedy
9fe274d638 am 9e25e164: am e7078e18: Merge "Ensure host is set before onInflate()" into mnc-dev
* commit '9e25e1645f5e436c88ceab7d7eaf9f21c7fa845b':
  Ensure host is set before onInflate()
2015-08-31 22:57:52 +00:00
Todd Kennedy
9e25e1645f am e7078e18: Merge "Ensure host is set before onInflate()" into mnc-dev
* commit 'e7078e181cd00d20ce7764efa9835e2604a3cb83':
  Ensure host is set before onInflate()
2015-08-31 22:45:23 +00:00
Todd Kennedy
0aa69b7dc5 Ensure host is set before onInflate()
Bug: 22512520
Change-Id: I70f3b3c3234d7015880e0b83ae13f6fbe218f19a
2015-08-31 14:10:04 -07:00
Alan Viverette
c725e8d5ea Add missing @param in ResourceManager, set InflateException source
Bug: 11695070
Change-Id: I94a4980688a952c1f59f1cb15cf2192e3c51de90
2015-08-31 11:36:16 -04:00
Stefan Kuhne
400f29c37f Merge "Bring an activity to the front upon click & drag" 2015-08-28 15:28:37 +00:00
Skuhne
f36bb0ca99 Bring an activity to the front upon click & drag
Clicking on the control area of a window should bring it to
the top and set the focus since it might be used as a drag
operation which would move / resize it.

Bug: 23179116
Change-Id: I672bfefa42dd85e962fe343aeb89167ce125f168
2015-08-28 08:26:15 -07:00
Alan Viverette
02fc5fef36 Extract drawable inflation to its own class, inflate from class name
Bug: 22627299
Change-Id: Icd2ac88af4f3102e08e52f6f0f7565839da6437a
2015-08-27 13:16:09 -04:00
Dmitry Polukhin
91b3d8bf24 Merge "[Backup] Special handling for sharedpref files in backup config" 2015-08-25 18:06:15 +00:00
Xiaohui Chen
bd0e03bb76 More USER_OWNER cleanup.
Bug: 19913735
Change-Id: I408a92d9dbab2a096407efccb91e2a8bdc22714d
2015-08-24 16:42:37 +00:00
Adrian Roos
e3b07451c3 resolved conflicts for merge of bcc26c02 to master
Change-Id: I4260ff0d090cfa9741fd3adcfcadcbbff6839388
2015-08-21 18:08:58 -07:00
Adrian Roos
bcc26c0201 am 69fd61cb: am a8bbebd4: am b5e47228: Add StrongAuthTracker
* commit '69fd61cb9a487e5993098c93113d86c4fb32c304':
  Add StrongAuthTracker
2015-08-22 00:40:47 +00:00
Adrian Roos
a8bbebd426 am b5e47228: Add StrongAuthTracker
* commit 'b5e4722891e7bbf2fffcd995af02838667a3abab':
  Add StrongAuthTracker
2015-08-22 00:16:48 +00:00
Adrian Roos
b5e4722891 Add StrongAuthTracker
Bug: 22846469
Bug: 22115393
Change-Id: I6ef5322d02e540fc043e7f20d3aabf595ce7c224
2015-08-21 13:28:00 -07:00
Nicolas Prevot
8f78d6a87f Fix documentation of EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME
Say it is supported only if there is only one device admin receiver
that requires BIND_DEVICE_ADMIN.

BUG:23370442
Change-Id: I19e1e2e218f224bc337f7d8eec2b62fcb4c08d91
2015-08-21 11:35:08 +01:00
Dmitry Polukhin
80e8db3d9c [Backup] Special handling for sharedpref files in backup config
Allow specifying sharedpref without .xml suffix as it is for
getSharedPreferences Android API. If .xml extension is missing for
sharedpref file name, it is added in include/exclude filters.

BUG: 20923818
Change-Id: I8bf3d43654b69d847e57c94f23aa3799e01948e6
2015-08-21 10:28:02 +02:00
Chong Zhang
aa1fd4e6d3 Merge "Restore recent task to freeform space when resizing" 2015-08-18 23:55:07 +00:00
Chong Zhang
5dcb275cc1 Restore recent task to freeform space when resizing
bug: 22984782
Change-Id: I95b7b7b4871865102a279e529f068479e9b5df34
2015-08-18 15:28:54 -07:00
Wale Ogunwale
339e4155fb Merge "Added support for docked stack" 2015-08-18 21:23:46 +00:00
Wale Ogunwale
b34a7ad1af Added support for docked stack
Docked stacks occupy a dedicated region on a display.
When a docked stack is present all other static stacks bounds
are restricted to the region of the screen not occupied by
the docked stack.

Change-Id: I6aec3aa19c41a7e756375002f3a925977b5533b5
2015-08-18 11:31:20 -07:00
Esteban Talavera
019a499c70 am 12e42ba2: am 31638de3: am 07b36bd3: am aed1c9fb: am 5d467ac5: Merge "Remove uids with empty history from NetworkStats uid enumeration" into mnc-dev
* commit '12e42ba225cf6c38eaf752f55a22ce6296d2343c':
  Remove uids with empty history from NetworkStats uid enumeration
2015-08-17 16:26:39 +00:00
Esteban Talavera
12e42ba225 am 31638de3: am 07b36bd3: am aed1c9fb: am 5d467ac5: Merge "Remove uids with empty history from NetworkStats uid enumeration" into mnc-dev
* commit '31638de30564d5b5fdc4177227cdab6df681ecfc':
  Remove uids with empty history from NetworkStats uid enumeration
2015-08-17 15:14:04 +00:00
Esteban Talavera
07b36bd3bf am aed1c9fb: am 5d467ac5: Merge "Remove uids with empty history from NetworkStats uid enumeration" into mnc-dev
* commit 'aed1c9fbc5c4f77bfc8c44fb7bd87bbdb6dc0174':
  Remove uids with empty history from NetworkStats uid enumeration
2015-08-17 15:00:04 +00:00