8828 Commits

Author SHA1 Message Date
Alan Viverette
0ef12aefe5 Clean up LayerDrawable, refactoring only
Uses consistent naming and ordering for padding and inset calculations.
Updates documentation to include UNDEFINED_INSET as public API, since we
return the value and will accept the value as a valid param. Flattens
out RTL logic for readability.

Change-Id: Ie704e2e5fc7f5763500ebe1217ddbbf4d0c5ef86
2016-01-12 09:47:09 -05:00
Victor Chang
c754dffe19 Merge "Create a new device policy for controlling work contacts search" 2016-01-12 11:51:01 +00:00
Victor Chang
1060c61866 Create a new device policy for controlling work contacts search
BUG=25981902

Change-Id: I5cea59d7d09bf54051ae0e56e824e4d3a08a49e7
2016-01-12 11:31:16 +00:00
Daichi Hirono
d7c46bdec1 Merge "Reland "Add event parameters to MtpEvent."" 2016-01-12 03:20:45 +00:00
Daichi Hirono
2a9a43369b Reland "Add event parameters to MtpEvent."
The CL was previously reviewed at ag/842930.

> We can obtain detailed information of MtpEvent from devices. e.g. object
> handle of changed object.  The CL adds the detailed information as
> properties of MtpEvent class.
>
> BUG=26480986

Change-Id: I93afad9caf118d74cd0923d70242133c4fb2a648
2016-01-12 12:14:30 +09:00
Daichi Hirono
8f124a9a97 Merge "Revert "Add event parameters to MtpEvent."" 2016-01-12 02:34:03 +00:00
Daichi Hirono
497f806350 Revert "Add event parameters to MtpEvent."
This reverts commit 592356b63f7446eec2e521a5649e986582183c49.

Change-Id: I9d5eae69c20c914d7946d4e933ada905f428dcb6
2016-01-12 02:31:48 +00:00
Daichi Hirono
0c66554a9a Merge "Add event parameters to MtpEvent." 2016-01-12 02:27:46 +00:00
Todd Kennedy
12705131b9 Hide ephemerality
Change-Id: Ibf60366b3f00b1920e330cd804bcc1c550f8882a

Bug: 26404647
2016-01-11 16:21:03 -08:00
Julia Reynolds
04fc35428f Merge "Notification banning updates." 2016-01-11 21:32:37 +00:00
Shreyas Basarge
89ee618280 Flex time for periodic jobs in JobScheduler
A periodic job will start only within time
satisfying period - flex < time % period < period.

Bug: 26254850
Change-Id: I97a840446e5592e5151d784800855d909f1790b8
2016-01-11 20:58:29 +00:00
Tingting Wang
9d46b3efd7 Merge "Remove @hide for CONTACT_METADATA_SYNC." 2016-01-11 20:18:37 +00:00
Rob Carr
3d4f83c01f Merge "Implement surfaceRedrawNeeded for GLSurfaceView" 2016-01-11 19:18:25 +00:00
Tingting Wang
e105521736 Remove @hide for CONTACT_METADATA_SYNC.
Make Contacts App access this flag.

BUG 26491409

Change-Id: I440cb540fbcc5dd3722ecb6e335dd40914cc30b5
2016-01-11 11:12:03 -08:00
Jeff Davidson
6cf2fb3f66 Merge "Define new APIs for metering and roaming network stats buckets." 2016-01-11 18:51:20 +00:00
Roozbeh Pournader
a514b63749 Merge "Support properly setting and getting LocaleLists" 2016-01-11 17:48:53 +00:00
Phil Weaver
a6b64f5099 Gesture dispatch from accessibility services.
Add public APIs to describe gestures and dispatch them from
an accessibility service. Added a new capability that
services must declare to have this capability.

Bug: 22514086

Change-Id: I9bff2d9335f0310115112d14b7ed033a6d6c2393
2016-01-11 09:32:43 -08:00
Daichi Hirono
592356b63f Add event parameters to MtpEvent.
We can obtain detailed information of MtpEvent from devices. e.g. object
handle of changed object.  The CL adds the detailed information as
properties of MtpEvent class.

BUG=26480986

Change-Id: I79a305a6a9507236709ed69881a3835867e04cfe
2016-01-11 17:41:54 +09:00
Robert Carr
2b3bf720bf Implement surfaceRedrawNeeded for GLSurfaceView
GLSurfaceView was not supporting the surfaceRedrawNeeded protocol
which leads to issues with report draw. Thus far this has mostly
been fine as the main surface will not render
a transparent hole until the SurfaceView has finished drawing. However
in the case of SurfaceView replacement the hole in the parent surface
will be preexisting and we must be able to tell that our new SurfaceView
has actually drawn before removing the replacee. This is part of a
series of fixes to 26070641.

Bug: 26070641
Change-Id: Iecc16647f9979aa057449e8bafa540885881ed64
2016-01-08 15:13:54 -08:00
Julia Reynolds
85aa6cb177 Notification banning updates.
- Dismiss notifications from banned topics
- Don't ban all topics when banning an app.
- Block notifications from banned topics.

Bug: 26154396
Change-Id: I1d94e6176a413386d89f8dc1c4899aee8a8a73b8
2016-01-08 17:56:42 -05:00
Mahaver Chopra
932f66428c Merge "Added Data roaming user restriction" 2016-01-08 18:39:15 +00:00
Alan Viverette
598d8eafd6 Merge "Add support for tick marks in SeekBar" 2016-01-08 18:16:37 +00:00
Mahaver Chopra
dea471ef54 Added Data roaming user restriction
Added new user restriction DISALLOW_DATA_ROAMING, can only be set
by device owners.

Bug: 24890464
Change-Id: Ic4cb37dd5f9bbffa35f921751488ef7c7ff99452
2016-01-08 18:07:31 +00:00
Michal Karpinski
3da5c97460 Adjusting AMN#requestBugReport() to be able to invoke 3 types
of bugreport services

ActivityManagerNative#requestBugReport() now can accept 3 types:
FULL, INTERACTIVE AND REMOTE.

Bug: 26152603
Change-Id: Ife9bbef4691e172fb56b72b256880f0d4ad4d198
2016-01-08 17:50:16 +00:00
Chris Wren
2d20a4dcc6 Merge "allow listeners to disable themselves" 2016-01-08 15:50:13 +00:00
Matt Sarett
c03c596a53 Merge "Deprecate mCancel in BitmapFactory.Options API" 2016-01-08 15:47:32 +00:00
Daichi Hirono
1d4779c29a Add operationsSupported to device info.
Because not all MTP devices support getPartialObject, we need to check
supported operation of MTP devices. The CL adds operationsSupported
field to MtpDeviceInfo class.

BUG=26147375

Change-Id: Iaad968fb4497a5ad11bf6489097abea99c3cbac7
2016-01-08 16:58:24 +09:00
Daichi Hirono
c0a77fa95d Merge "Move MTP event code to MtpConstants class." 2016-01-08 02:09:40 +00:00
Daichi Hirono
cf62fdc0c9 Move MTP event code to MtpConstants class.
BUG=25128276

Change-Id: I49530c50d7889e1b04931b8ec61f5f92a1c7e68f
2016-01-08 11:06:02 +09:00
Roozbeh Pournader
2b5ab18294 Support properly setting and getting LocaleLists
Two setters are added, a hidden one for fast unsafe calls when the
input is known to be OK, and a public one for normal users.

A hidden constructor is also added for adjusting locale lists and
moving a locale to the front.

Finally, an indexOf method is added. It's only used in testing now,
but it's potentially useful for others too.

Bug: 26404035
Change-Id: I4ab3140134325456a8c3df1b126ccc6f8e3f43fd
2016-01-07 17:08:52 -08:00
Matt Sarett
51b75386a8 Deprecate mCancel in BitmapFactory.Options API
This is a follow-up to:
https://googleplex-android-review.git.corp.google.com/#/c/837260/

BUG:26266063
Change-Id: I4a5a9c7bd1f04f27f096ce74668d1509791e1952
2016-01-07 17:56:24 -05:00
Chris Wren
ab41eecf22 allow listeners to disable themselves
This decouples the user permisson grant from the
bound state of the listener. This allows listeners
that are only relevant sometimes to avoid being
bound as a foreground service all the time.

Bug: 19232554
Change-Id: I9ab078630af5a10c6878d3f19ba80661299713d5
2016-01-07 17:29:29 -05:00
Sailesh Nepal
5b7d39428a Merge "Add methods to the API to retrieve voicemail notification settings." 2016-01-07 22:06:32 +00:00
Alan Viverette
41a90675be Add support for tick marks in SeekBar
Bug: 26399774
Change-Id: Ie4722fb91da96468325b52a22f72372ba4f536d6
2016-01-07 16:35:40 -05:00
Prashant Malani
9d7272a669 Merge "Re-hide AXIS_SCROLL constant." 2016-01-07 20:42:34 +00:00
Prashant Malani
8171658b9f Re-hide AXIS_SCROLL constant.
Bug: 22836852
Bug: 18707397
Change-Id: I9cf7111cf5e3b73efca2ec8c98bf07941d1cec4e
2016-01-07 20:41:16 +00:00
Hui Shu
15c5a50b9d Merge "Deprecate setGeolocationDatabasePath because it is no-op since KitKat" 2016-01-07 20:07:02 +00:00
Hui Shu
89eb9b4540 Deprecate setGeolocationDatabasePath because it is no-op since KitKat
Also updated the documentation of setGeolocationEnabled.

BUG: crbug.com/507505
Change-Id: I5f4bb38189338f58dcd4c1ba0310493aeac5cbd2
2016-01-07 11:47:30 -08:00
Sudheer Shanka
918343b5f9 Merge "Add an intent for ShowAdminSupportDetailsDialog in settings." 2016-01-07 18:43:40 +00:00
Jeff Sharkey
6190d9cf17 Merge "Add flags to requests for package UID/GIDs." 2016-01-07 18:31:53 +00:00
Jeff Sharkey
8588bc1ef1 Add flags to requests for package UID/GIDs.
This gives callers the ability to request details for missing
packages.  Also add annotations for userId and appId variables and
start tagging their usage.

Change-Id: I63d5d7f870ac4b7ebae501e0ba4f40e08b14f3f6
2016-01-07 10:33:26 -07:00
Clara Bayarri
3e826effed Create parent APIs in DevicePolicyManager
This change creates the infrastructure for a parent
DPM and implements the actual parent APIs for
- set/getPasswordQuality
- isActivePasswordSufficient

This is part of the Separate Work Challenge

Change-Id: I0477051b3162cbb26aac79467da08932f22fd1b7
2016-01-07 10:55:24 +00:00
Tomasz Mikolajewski
4cc43f010a Revert "Revert "Update APIs for the flag changes in SAF.""
This reverts commit 475c19532d1f06185b63a0708cf0164a0d6f3feb.

Change-Id: Idb9a91eaab36d28e6ed3f3b4c55f1e7d44f1d3ad
2016-01-07 07:26:51 +00:00
Tomasz Mikolajewski
97dd67cc34 Merge "Revert "Remove the flag and make openTypedDocument throw FileNotFoundException."" 2016-01-07 04:47:42 +00:00
Tomasz Mikolajewski
2b93171978 Revert "Remove the flag and make openTypedDocument throw FileNotFoundException."
This reverts commit 95149ab6a5442a05f05f448854b6ab386c87f717.

Change-Id: I218aa8059ef674400dac8531a86cd326748c26d5
2016-01-07 04:47:03 +00:00
Tomasz Mikolajewski
475c19532d Revert "Update APIs for the flag changes in SAF."
This reverts commit e7decfb815342dbea00b305a52b1178e2d646df1.

Change-Id: I023989381ffa7296db7a21ec01327a32b3f16c4f
2016-01-07 04:44:19 +00:00
Tomasz Mikolajewski
e7decfb815 Update APIs for the flag changes in SAF.
Bug: 26222645
Change-Id: I7189b7867ad31dbd7e3f768387e2f570a41527b1
2016-01-07 15:36:12 +11:00
Tomasz Mikolajewski
5a22e1a19d Merge "Remove the flag and make openTypedDocument throw FileNotFoundException." 2016-01-07 03:52:01 +00:00
Tomasz Mikolajewski
95149ab6a5 Remove the flag and make openTypedDocument throw FileNotFoundException.
To be compatible with ContentProvider, DocumentsProvider should not
require checking for a flag before calling openTypedAssetFile.

This CL removes the flag, and makes the default implementation throw
FileNotFoundException instead.

Bug: 26222645
Change-Id: I3492f05804e39583ebb8584109c7017b3082846e
2016-01-07 03:49:14 +00:00
Daichi Hirono
52da3ad906 Add getPartialObject to Java MtpDevice class.
BUG=26284424

Change-Id: Id05dc6297a1682999eee4e72972fb883fa49a5d1
2016-01-07 12:41:17 +09:00