Commit Graph

53237 Commits

Author SHA1 Message Date
Julia Reynolds
aaf191c775 Synchronize updates to zen config.
Also, remove some dead code.

Change-Id: If6f4432638aebcedf59a4804a3b5d14b73f12549
2015-10-30 11:55:20 -04:00
Dianne Hackborn
8462bad554 Merge "Implement shell commands for battery and activity services." 2015-10-30 00:34:19 +00:00
Dianne Hackborn
2e44107bf7 Implement shell commands for battery and activity services.
The battery service just implements the existing commands that
are available through dump.

The activity service implements the small set of commands that
are available through dump (not the rest of the dump commands),
and also introduces some of the simple "am" shell commands as
a proof-of-concept of moving those into the service implementation.

Change-Id: If5ff80930dde787703e2682e43c36ce1dab05d69
2015-10-29 16:39:43 -07:00
Vadim Tryshev
02ed4a0e10 Sending drag-start notifications to children added to view group.
Doing this while dragging is really necessary for System UI shelf.

Also, not forgetting to remove the child from the "interested" set when
the child is removed.

Bug: 25231591
Change-Id: I26f5086a0a842868b2d7e9809f7483152098f314
(cherry picked from commit a82c8709f0914064f4b00262f1d411594bab467f)
2015-10-29 19:42:00 +00:00
Bryce Lee
52e52f6f56 Merge "Add ability to set whether audio route is allowed in BluetoothHeadsetClient" into cw-e-dev am: 4636770f0d am: 3b6f9f78cf
am: 698b33ea7f

* commit '698b33ea7f78d200df73ef869d68cfc5ab36e604':
  Add ability to set whether audio route is allowed in BluetoothHeadsetClient
2015-10-29 18:19:14 +00:00
Bryce Lee
bc8654748f Merge "Revert "Declare new interface for headset client bluetooth profile to query."" into cw-e-dev am: 0a80294c81 am: 2adf45bee0
am: 8faa19c826

* commit '8faa19c8260d77c5ad7abc061bc06bc596be7c2b':
  Revert "Declare new interface for headset client bluetooth profile to query."
2015-10-29 18:17:41 +00:00
Bryce Lee
461ba0ce4a Merge "Declare new interface for headset client bluetooth profile to query." into cw-e-dev am: a841973dee am: 8b4f21b108
am: 2b47b6eed2

* commit '2b47b6eed247acc95a2d27980b2d20e43c852946':
  Declare new interface for headset client bluetooth profile to query.
2015-10-29 18:15:23 +00:00
Philip P. Moltmann
9b172f08b2 Merge "Fix javadoc for CameraManager.AvailabilityCallback" 2015-10-29 17:50:51 +00:00
Steven Dao
84e7b4f588 Merge "Add missing actions to getActionSymbolicName - This improves the output of AccessibilityAction.toString() for debugging purposes." 2015-10-29 17:43:12 +00:00
Alan Viverette
d8f56833c5 Merge "Show anchored context menu on long press" 2015-10-29 14:24:53 +00:00
Bryce Lee
698b33ea7f Merge "Add ability to set whether audio route is allowed in BluetoothHeadsetClient" into cw-e-dev am: 4636770f0d
am: 3b6f9f78cf

* commit '3b6f9f78cf0ea09176250059653d05cf6a5282c4':
  Add ability to set whether audio route is allowed in BluetoothHeadsetClient
2015-10-29 07:23:06 +00:00
Bryce Lee
dc13382622 Add ability to set whether audio route is allowed in BluetoothHeadsetClient
Bug: 25332357
Change-Id: I942ac0dea3e4f8580c44e027a570d0b59822a257
2015-10-28 22:21:54 -07:00
Bryce Lee
8faa19c826 Merge "Revert "Declare new interface for headset client bluetooth profile to query."" into cw-e-dev am: 0a80294c81
am: 2adf45bee0

* commit '2adf45bee0b423fa6ca758b806a16b968c0a3c65':
  Revert "Declare new interface for headset client bluetooth profile to query."
2015-10-29 05:19:19 +00:00
Bryce Lee
70d4210e2e Revert "Declare new interface for headset client bluetooth profile to query."
This reverts commit 694251eaaa.

Change-Id: I588206d8aedb96254c27494dddb32ddc3b6ea0ea
2015-10-29 04:58:38 +00:00
Bryce Lee
2b47b6eed2 Merge "Declare new interface for headset client bluetooth profile to query." into cw-e-dev am: a841973dee
am: 8b4f21b108

* commit '8b4f21b108828c08833767c1f3f908e1cd7f8477':
  Declare new interface for headset client bluetooth profile to query.
2015-10-29 04:53:01 +00:00
Bryce Lee
694251eaaa Declare new interface for headset client bluetooth profile to query.
This is needed in order to allow implementations of the HFP HF side to
define when audio can be routed to the device. This allows for calls dialed
from an AG to be kept on the AG if desired.

Bug: 25332357
Change-Id: I35a554cfc53f88c7dd3059bf52df5c69df9c7415
2015-10-28 21:06:27 -07:00
Jun Mukai
794469916c Merge "Add setPointerShape() to View for customizable pointer icon shape." 2015-10-29 00:16:33 +00:00
Filip Gruszczynski
6b614433f6 Merge "Freeform to recents app transition." 2015-10-28 23:34:57 +00:00
Mikhail Naganov
b851929c32 Add new version of WebViewClient.shouldOverrideUrlLoading callback
The new version provides more information about the origin of
the load, which helps making more secure decision on how to proceed
with it.

Bug: 22346196
Change-Id: I27f591bf5e846bde14335a2c929758a2b48d0763
2015-10-28 16:05:41 -07:00
John Reck
9f091287b1 Merge "Free DisplayListData for Views with GONE parents" 2015-10-28 19:20:49 +00:00
John Reck
9dea0d53f5 Free DisplayListData for Views with GONE parents
Bug: 22565656
Change-Id: I06060e6ae473482ec79feb891f9123c85706237f
2015-10-28 12:20:20 -07:00
Makoto Onuki
ec721632d1 Merge "Fix javadoc" 2015-10-28 17:20:03 +00:00
Makoto Onuki
a3c1250a2f Fix javadoc
Change-Id: Iade890cd14bcac844f8ccc1ddde90120600fd64a
2015-10-28 10:18:32 -07:00
Fyodor Kupolov
9147ce4cf9 Merge "Enable default system IMEs for system user" 2015-10-28 17:05:58 +00:00
Filip Gruszczynski
d64ef3ef33 Freeform to recents app transition.
Bug: 24913782

Change-Id: I54fcbe38c51e5d75fa5ad2cb38de89d371b47bed
2015-10-28 09:39:45 -07:00
Erik Kline
7ae47acb0b Merge "Also treat loss of IPv6 as a loss of provisioning." 2015-10-28 07:07:51 +00:00
Vladislav Kaznacheev
56f0720fd7 Merge " Add PackageManager.FEATURE_FREEFORM_WINDOW_MANAGEMENT" 2015-10-28 00:59:06 +00:00
Vladislav Kaznacheev
d303b25ad3 Add PackageManager.FEATURE_FREEFORM_WINDOW_MANAGEMENT
Bug: 25329519

Change-Id: Ib09cb2332ee1810b2f774a8453fe519fa920cd5d
2015-10-27 17:30:58 -07:00
Filip Gruszczynski
ab253faa47 Merge "Fix wrong task bounds when docking from recents." 2015-10-28 00:01:28 +00:00
Makoto Onuki
e9ef528ec7 Merge "Layer user restrictions" 2015-10-27 22:49:04 +00:00
Winson Chung
0f6cb2d7d1 Merge "Passing stack id with RunningTaskInfo." 2015-10-27 21:42:57 +00:00
Winson
5510f6c1b9 Passing stack id with RunningTaskInfo.
- This allows us to remove an extraneous system call when starting 
  overview, and also allows us to easily check for freeform windows.

Change-Id: I4449dad7bf870f528f671f6e7cb1f9b5f1bc9c1c
2015-10-27 21:42:37 +00:00
Makoto Onuki
068c54a5be Layer user restrictions
- Now DPMS remembers user restrictions set by DO / PO in their ActiveAdmin.

- User restrictions set by DO/PO will no longer be saved by UserManger.  Instead,
when needed, UMS will consult DPMS to build "effective" user restrictions.

- UM.getUserRestrictions() will now always return "effective" user restrictions.

- DPMS migrates existing user restrictions per the eng spec.

- Also now UM.setUserRestrictions() will crash.  UMS.setUserRestrictions() has
been removed.
This was needed because UM.setUserRestrctions(UM.getUserRestrictions()) will no
longer be a valid use like it used to be.

- Also introduced a fined-grained lock for user restrictions in UM to avoid
deadlock between DPMS and also for better performance.

Bug 23902097

Change-Id: If0e1e49344e2f3e9226532d00777976d1eaa7df3
2015-10-27 14:26:06 -07:00
Fyodor Kupolov
b3b4f61525 Enable default system IMEs for system user
Added GET_DEFAULT_IMES flag to AppsQueryHelper. Default system IMEs are now
enabled for system user.

Bug: 25276229
Change-Id: I38d74903951200e2207e1864bb3a815f8f2d572f
2015-10-27 13:55:40 -07:00
Julia Reynolds
7fef1888d1 Merge "Stop populating RemoteViews in Notifications." 2015-10-27 20:36:31 +00:00
Filip Gruszczynski
90186c6d6e Fix wrong task bounds when docking from recents.
When docking from recents we would move the task to the docked stack,
but we wouldn't run the resizing code that forces the task to be within
the stack bounds. We need to perform both operations and we can achieve
that using a more general method of moving tasks.

This also adds the passing of creation mode in the activity options, so
the task will be docked in the right spot.

Change-Id: Ia7f94a7e3677ed60ca2f4d889e548d80a3bc3df1
2015-10-27 10:04:20 -07:00
Jorim Jaggi
7c4b0829ea Merge "Add development option to force everything resizable" 2015-10-27 16:21:14 +00:00
Jorim Jaggi
8ccdf3ac49 Add development option to force everything resizable
Add a development setting to force all activites to be
resizable. Currently, a restart is required after changing
this setting. Also remove all the code that forced a single
task to be resizable, as we have a global option now.

Bug: 24815256
Change-Id: I3237c9b6ce96ff9aa9819592ab0c2807fde88dc4
2015-10-27 08:18:36 -07:00
Julia Reynolds
d9228f1135 Stop populating RemoteViews in Notifications.
Builder now stores its parameters directly in the
Notification object itself, reducing the amount of copying
needed to construct the final Notification as well as
converging the two data structures. All Builder data is now
captured in Notification, so it is easy to reconstruct
a Builder for any Notification object.

This obviates all stripping/unstripping operations because
all Notification objects start life "stripped" of their
RemoteViews, which must be constructed explicitly by clients
(presumably listeners wishing to show the notification to
the user in its conventional form).

Note: While contentView, bigContentView, and
headsUpContentView are being @Deprecated in this CL,
specifying custom RemoteViews is definitely still supported!
You just have to use Builder methods to do so.

Bug: 20153922
Change-Id: I81f8ffed0eb76084b2f2b25b97e325858f0a1d05
2015-10-27 10:19:34 -04:00
Keisuke Kuroyanagi
5918519f97 Merge "Add null check for MotionEvent#getDevice." 2015-10-27 11:08:38 +00:00
Keisuke Kuroyanagi
9a4450ba6c Add null check for MotionEvent#getDevice.
MotionEvent#getDevice can return null when the device is
unknown.

Change-Id: I902a96300307e3b2d3b324a2998e470254388e27
2015-10-27 17:29:53 +09:00
Keisuke Kuroyanagi
ead6ba3a63 Stop making a reversed selection with mice.
Bug: 24889605
Bug: 24475013
Change-Id: I6d39e050656dc28e523fab862c84054169e6300b
2015-10-27 17:26:07 +09:00
Erik Kline
1ad4e22534 Also treat loss of IPv6 as a loss of provisioning.
Bug: 23226635
Change-Id: Icebb7d83ed5b3b796901b9f023909a02eb461941
2015-10-27 17:11:27 +09:00
Keisuke Kuroyanagi
742bd40328 Merge "Fix: Last char can be excluded from mouse selection." 2015-10-27 05:46:47 +00:00
Mitchell Wills
61da59bd9c Merge "Fix TimeUtils.formatDuration for exactly one of a unit" 2015-10-26 23:53:57 +00:00
Alan Viverette
35c6d6b08a Show anchored context menu on long press
Also shows anchored menu on D-Pad long press and uses the center of the
view as the anchor point. This is how we already handle hotspot feedback
when there is no explicit center, so there's no visual change there; it's
just more obvious from the View side of things what the result will be.

Bug: 25215353
Change-Id: I930c3aeffc993b7c553ffb626d1b5103c6cb1267
2015-10-26 20:31:55 +00:00
Wale Ogunwale
b60692e3d8 Support for activity to opt-in/out of PiP form of multi-window.
While it makes sense to be able to resize most activities types
in multi-window mode. It only makes sense to put specific types
of activities in Picture-in-Picture (PiP) form of multi-window.
For example, activities that play video will be good candidates
while the Settings activity isn't.

The new flag allows the system to differentiate between resizeable
activities that can go into PiP mode and those that can't.

Bug: 25006507
Change-Id: I8ac518cec2fa3c8fb88be40c266b3751fb88f1ce
2015-10-26 12:23:59 -07:00
Wale Ogunwale
079a0044a3 API for moving top activity in a stack to pinned stack.
* AMS.moveTopStackActivityToPinnedStack can be used to move the top
activity in a stack to the pinned stack and also specify the bounds
the pinned stack should be sized to.
* 'am stack move-top-activity-to-pinned-stack' command for testing
AMS.moveTopStackActivityToPinnedStack API

Bug: 25006507
Change-Id: I8392b4c39d8542153e691be7a627b7f35fd44884
2015-10-26 12:07:00 -07:00
Wale Ogunwale
99db1863a8 Added support for pinned stack.
Used to support picture-in-picture use case for multi-window

Bug: 25006507
Change-Id: I3bef3f75e0c003f5974274294f1250171d424625
2015-10-26 11:17:33 -07:00
Philip P. Moltmann
85e1d5045c Fix javadoc for CameraManager.AvailabilityCallback
The javadoc for CameraManager.AvailabilityCallback was missing an "#".
This causes the link to registerAvailabilityCallback not being generated
correctly.

Once the "#" was added the link shows up correctly.

Change-Id: I3da3aa737a6af487f117eccbeee5c682c003b7e2
2015-10-26 08:56:45 -07:00