8568 Commits

Author SHA1 Message Date
Makoto Onuki
6d2beef6a8 Merge "Add DPM.getUserRestrictions()" 2015-11-06 18:32:35 +00:00
Makoto Onuki
3a3092fab0 Add DPM.getUserRestrictions()
This returns per-DO/PO restrictions.

Bug 23902097

Change-Id: I225c1b01444fe2f60e5a6674d327182cc9bb15dc
2015-11-06 10:30:08 -08:00
Tomasz Mikolajewski
0c55387059 Merge "Add support for opening files in specified MIME type to DocumentsProvider." 2015-11-04 23:17:14 +00:00
Julia Reynolds
f3d8f26034 Merge changes I49660236,I56a7970a
* changes:
  Delete unused code.
  Unhide setting for CTS testing.
2015-11-04 19:44:49 +00:00
Tomasz Mikolajewski
b344b894ca Add support for opening files in specified MIME type to DocumentsProvider.
Change-Id: I5453d6d699069ec59521917c024f173d2ae67565
Bug: 18113606
2015-11-04 16:24:00 +09:00
Chet Haase
8240c97b01 Un-hide FloatProperty and IntProperty
These simple utility classes (used internally since Property was first introduced
way back in Jellybean) are the best way to avoid autoboxing when using the Property
approach to ObjectAnimator. But since their hidden, developers have to use the
autoboxing version (Property, the superclass) or know to come up with their own
primitive-optimized property subclasses.

This CL simply un-hides these two classes to make them usable outside of the framework.

Issue #21722783 Make [Int|Float]Property public

Change-Id: I7f3a456d108bf48587d711255d3577cce3ac5e24
2015-11-03 13:41:46 -08:00
Julia Reynolds
e2549af1b8 Unhide setting for CTS testing.
Change-Id: I56a7970a3613eb930f565befcfa86cf33702c74c
2015-11-03 08:47:42 -05:00
Rob Carr
b97ba3c09d Merge "Add window setDecorView API." 2015-10-30 20:55:35 +00:00
Christopher Tate
14a7bb0d37 Introduce direct listener API for alarm delivery
The Alarm Manager now supports a set() variant that takes a listener
callback to invoke at alarm trigger time rather than a PendingIntent.
This is much lower overhead and has guaranteed low delivery latency
from the trigger time.  The tradeoff is that the app must be running
*continuously* from the time the alarm is set to the time it is
delivered.  If the app exits for any reason before the alarm fires,
the listener becomes invalid and the alarm will be dropped.  This is
more or less equivalent to setting an alarm with a broadcast
PendingIntent that matches only a runtime-registered receiver.

The app's alarm listener can be any object that implements the new
AlarmManager.OnAlarmListener interface and implements its onAlarm()
method.  There is no data delivered at alarm trigger time: whatever
state needs to be associated with the specific alarm instance should
simply be packaged inside the OnAlarmListener instance.

An alarm using OnAlarmListener can request that the onAlarm() method
be called on an arbitrary handler.  If the program passes 'null' for
this parameter when setting the alarm, the callback occurs on the
application's main Looper thread.

Bug 20157436

Change-Id: I2eb030a24efdd466a2eee1666c5231201b43684b
2015-10-30 12:14:15 -07:00
Dianne Hackborn
d176de5f9d Merge "Add API to determine if the app supplied a web URI." 2015-10-30 17:18:31 +00:00
Dianne Hackborn
dfc23dd185 Add API to determine if the app supplied a web URI.
Change-Id: I60aa39b9db822fe46ddd57ef5483b5708cf21422
2015-10-30 10:17:03 -07:00
Robert Carr
b6c2624c8d Add window setDecorView API.
Add a Window API for setting a view which will be placed in
the decoration area (next to the window control buttons).

Change-Id: Ie106cbea653ff95fdba987a2a43506d394600612
2015-10-29 12:31:47 -07:00
Alan Viverette
d8f56833c5 Merge "Show anchored context menu on long press" 2015-10-29 14:24:53 +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
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
Julia Reynolds
7fef1888d1 Merge "Stop populating RemoteViews in Notifications." 2015-10-27 20:36:31 +00:00
Pablo Ceballos
dce45fd66b Merge "Add missing OpenGLES 3.1 bitfield constants." 2015-10-27 17:57:28 +00: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
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
1485acc222 Merge "Updated support for drawing background drawable when resizing" 2015-10-23 21:48:39 +00:00
Wale Ogunwale
5bcd3189c5 Updated support for drawing background drawable when resizing
f3a62fbc58bbc7f081a53248cae48a8951294e8f added support for drawing
the background draweable when resizing an activity window.
However, after some additional discussion we decided that
R.styleable.Window_windowResizingBackground and
R.integer.config_windowResizingBackgroundColorARGB are not needed.
We use R.styleable.Window_windowBackground for the background
drawable and fallback to using R.styleable.Window_windowBackgroundFallback
which is now public if the first isn't set.

Bug: 24534744
Change-Id: Ia0507e25a1893ea941d259f1d4e88ce500dda154
2015-10-23 12:30:28 -07:00
Hall Liu
6a967dd131 Merge "Add support for post-dial digits to logs." 2015-10-23 17:37:56 +00:00
Hall Liu
594c7918e9 Add support for post-dial digits to logs.
Bug: 24955678
Change-Id: I03c1be349231492fc9dc7c9a3ae5983d5a44779c
2015-10-22 17:09:07 -07:00
Hui Shu
227a8c1df2 Add the APIs for customizing WebView action mode menu actions
We will allow apps to disable Share, Web Search, and text
processing related menu actions.

The default actions like cut, copy, paste cannot be disabled.

BUG: 22772178
Change-Id: I8429454f71f74a99298f412862cd32d8fba93784
2015-10-22 15:35:59 -07:00
Michael Wright
874ce44a80 Merge "Add new Cut / Copy / Paste keys." 2015-10-22 14:47:33 +00:00
Tyler Gunn
5da678f71b Merge "Add extras keys for instant lettering." 2015-10-21 21:26:09 +00:00
Michael Wright
ea84cff8fd Add new Cut / Copy / Paste keys.
Bug: 25120948
Change-Id: I401792b8c88584d8c389fa356186ccea943d5dd4
2015-10-21 18:08:30 +01:00
Julia Reynolds
aeeb39d2ec Merge "Add Notification topics." 2015-10-19 14:38:40 +00:00
Julia Reynolds
74303cfe2b Add Notification topics.
Topics are tags that developers can add to group notifications
by theme. Users will be able to block notifications by topic.

Bug: 22451710
Change-Id: I5b4677da66b21933f479f5e56c18ca563810b43b
2015-10-16 16:38:45 -04:00
Wale Ogunwale
f3a62fbc58 Added support for resizing background color for an app window
R.styleable.Window_windowResizingBackground allows an activity to
specify the background drawable that should be used when it is being
resized in multi-window mode. If unset, the system will try to use
R.styleable.Window_windowBackground if set, then
R.styleable.Window_windowBackgroundFallback if set. Otherwise, the
system default resizing background color set by
R.integer.config_windowResizingBackgroundColorARGB.

Also, use decor title color as caption background color when resizing
instead of black.

Bug: 24534744
Change-Id: I83313865b4044b976ebc78d598e14e17e0f37212
2015-10-16 12:54:31 -07:00
Filip Gruszczynski
d2f1d94fe5 API for minimal width/height of an activity.
Bug: 21409825

Change-Id: Id6286064713672366dd4dc1f80258450a8039c36
2015-10-15 17:02:59 -07:00
Doris Liu
d1bf9f0054 Merge "New public API for calculating the total duration of an animation" 2015-10-14 17:18:37 +00:00
Tyler Gunn
d426b20cd8 Add extras keys for instant lettering.
- Also fix bug where copy-builder for PA was not copying over the extras.

Bug: 22806380
Change-Id: If25a1299bdd0a48340e9d13857f982a90d728af6
2015-10-13 13:33:53 -07:00
Daichi Hirono
85f7078f8b Add constans for MTP event codes.
BUG=23368533

Change-Id: I922eb9a26812a44780ba81b8a391be45852cad08
2015-10-13 12:49:16 -07:00
Doris Liu
8b7c99cca2 New public API for calculating the total duration of an animation
Total duration is the total amount of time an animation takes from
start to finish. It include start delay (if any), child animation
sequence, accounting for repeat.

Change-Id: Id5b36a63c02e25586aefd38612aa5867492e1adb
2015-10-12 18:24:40 -07:00
Julia Reynolds
8b14288c94 Merge "Remove rename automatic zen rule." 2015-10-08 22:27:10 +00:00
Julia Reynolds
4fe98d6d4c Remove rename automatic zen rule.
Use zen rule id as key when finding matching rule to update.

Bug: 22977552
Change-Id: I7beeb5688aabe409a9a72aaa3aa27932d590c489
2015-10-07 20:10:58 -04:00
Tyler Gunn
77e7c96890 Merge "Add "Extras" to PhoneAccount." 2015-10-07 22:41:11 +00:00
Julia Reynolds
5686addb76 Merge "Add id and creation date to Zen rules." 2015-10-06 19:48:44 +00:00
Wale Ogunwale
012904e43a Merge "Added SDK version code for N." 2015-10-06 14:40:41 +00:00
Julia Reynolds
56106ff337 Add id and creation date to Zen rules.
Bug: 22977552
Change-Id: Ic79714ebbcc895e55ee87ccfc0e03b1735255ef3
2015-10-05 20:32:29 -04:00
Wale Ogunwale
79113108a8 Added SDK version code for N.
Change-Id: Id0ca002650842299f076a3f181b3455cd8a0f06b
2015-10-05 17:17:11 -07:00
Tyler Gunn
25ed2d7aec Add "Extras" to PhoneAccount.
- Add extras to PhoneAccount, and associated builder.

Bug: 22806380
Change-Id: I90f4c1a9b022eef7e6d2829d82851ac307ceafdf
2015-10-05 14:14:38 -07:00
Craig Lafayette
c3cdf1c614 Merge "Remove device initializer agent" 2015-10-05 17:52:05 +00:00
Andrew Lee
2d574a5aa8 Merge "Add BLOCKED and REJECTED call types." 2015-10-02 20:37:47 +00:00
Craig Lafayette
e7ee54ee7f Remove device initializer agent
Bug: 23216982
Change-Id: I867c0b5f4165983d1ed2623a655f6a2a5e3770bb
2015-10-02 13:11:57 -04:00
Todd Kennedy
3da3ca609e Merge "Update PackageInstaller install handing" 2015-10-01 14:15:41 +00:00
Todd Kennedy
a1d12cfdb0 Update PackageInstaller install handing
* Allow forcing permission check. We want to modify the PackageInstaller to
use the PackageInstallerSession for better security / remove deprecated APIs.
In order to do this and continue to prompt for permissions, we need to prevent
the PakcageInstaller from auto-approving the permissions.

* Add originating UID to SessionParams. This is used for package verifier
checks.

Bug: 22282121
Change-Id: I19079749d20ace66f1332f399d52cb0fb8784cd9
2015-09-30 14:11:33 -07:00