12385 Commits

Author SHA1 Message Date
Ronghua Wu
23f9efcee3 Merge "Revert "media: Add MIMETYPE_VIDEO_DOLBY_AVC and MIMETYPE_VIDEO_DOLBY_HEVC."" 2016-01-13 00:40:38 +00:00
Brad Ebinger
c614d7c2d5 Refactoring and cleanup
Cleans up obsolete parts of services/Telephony and absorbs others
into Telecomm.


Bug: 26204262
Change-Id: I2028ae0177d83241f861cd59fa78b5f5a869f572
2016-01-12 22:54:36 +00:00
Jason Monk
9429513cc3 Round out the QS API
- Add startActivityAndCollapse, to make collapsing the shade easy
 - Add isSecure()
 - Add isLocked()
 - Add unlockandRun(Runnable)
 - Add unavailable, active, and inactive states

The states are added to allow consistent UI across OEM devices, by
allowing UI tweaking and tinting to match system tiles with custom
ones.

The combination of isSecure() and isLocked() and unlockAndRun(Runnable)
allows all combinations of launching show when lockend and triggering
an unlock when needed for sensitive tiles.

Change-Id: Iade98ad9f2c22aa174e62090d8ccd44c86f3bb3c
2016-01-12 17:27:52 -05:00
Kenny Root
59fdfb121f Track changes in libcore
The OCSP update added some API changes necessary to interact with it.
This change tracks the addition of the API.

Change-Id: I04438fda92cbcde8bc9c66be4f0440066926b51a
2016-01-12 14:20:52 -08:00
Kenny Root
790c944eca Track changes in libcore
The OCSP update added some API changes necessary to interact with it.
This change tracks the addition of the API.

Change-Id: I22c0448848747943bc039ff8e8fd0a1f0c531224
2016-01-12 12:58:07 -08:00
Robin Lee
244ce8ef5f Always-on app VPNs
Bug: 22547950
Change-Id: I46b204170bfac58d944f39b22f815b080de71a58
2016-01-12 19:54:54 +00:00
Udam Saini
b6bb986889 Merge "Makes captive portal server calculation in one place." 2016-01-12 18:40:45 +00:00
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
Tyler Gunn
f5afe6ab8d Merge "Add KEY_USE_RCS_PRESENCE_BOOL carrier config option." 2016-01-12 03:59:29 +00:00
Tyler Gunn
3e122f76f1 Add KEY_USE_RCS_PRESENCE_BOOL carrier config option.
- New carrier config option is used to determine if presence is used
to determine whether a contact is capable of video calling.
- Also, improve logging for PhoneAccount capabilities.

Bug: 20257833
Change-Id: Ifcc7df95677eb4399f08eb8849c4004892957e90
2016-01-11 19:25:00 -08: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
Ronghua Wu
005cb41630 media: Add MIMETYPE_VIDEO_DOLBY_VISION.
Bug: 25684127
Change-Id: I0ff5e395904aded3e5fe1f731d167668e17ff757
2016-01-11 11:22:56 -08: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
Jeremy Klein
502658dd90 Merge "Add a TETHER_PRIVILEGED permission and use it where needed." 2016-01-11 19:10:22 +00: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
Sandra Kwan
a578d11470 AccountManager: make account session APIs SystemApi.
Make startAddAccountSession, startUpdateCredentialsSession and
finishSession Apis SystemApi.

Change-Id: Iaedfe546e9b87a2ee8dd2d19e8c28b7f1d59c111
2016-01-11 00:14:25 -08: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
Udam Saini
b7c2487c8b Makes captive portal server calculation in one place.
This also creates a hidden api for the captive portal server calculation
so that the Setup Wizard can use this as well.

bug:13246857
Change-Id: I4dfd0916df97cfce13252c7cc15f7bd05ed95f77
2016-01-08 14:38:31 -08: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
Ronghua Wu
5755817422 Revert "media: Add MIMETYPE_VIDEO_DOLBY_AVC and MIMETYPE_VIDEO_DOLBY_HEVC."
This reverts commit 58a30f1cf68e0f0bc9e6f270b0f0703fcd74c6c0.

Change-Id: I067892ea5a70f366ef20c45781616715705f4ec4
2016-01-08 09:45:17 -08: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
Jason Monk
66c89c15a0 Add API for System QS tiles to set status icons
Allow system apps that have a Quick Settings tile to show a
status bar icon.  If the quick settings tile is removed, the
status bar icon will no longer be shown.

Change-Id: I875b962bbdf4ff863012de688a3dd29a8d7e11ab
2016-01-08 08:54:13 -05: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
Yohei Yukawa
2afe2aa15f Add a new API IMM#dispatchKeyEventFromInputMethod().
This is a part of effort to reduce the number of dependencies on @hide
method in BaseInputConnection.

Currently BaseInputConnection#sendKeyEvent() cannot be implemented
without relying on @hide internal fields in InputMethodManager.

This is not ideal because app developers cannot implement their own
InputConnection without relying on BaseInputConnection.  If this
functionality needs to be exposed to app developers anyway, then it
should be a public API.

Bug: 24688781
Change-Id: Ib5ea8131de5ba792b10e1a4e51b4d163cf3649e3
2016-01-07 18:09:44 -08: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
Todd Kennedy
819d2745b4 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
2016-01-07 13:51:16 -08:00