139 Commits

Author SHA1 Message Date
Prashant Malani
8171658b9f Re-hide AXIS_SCROLL constant.
Bug: 22836852
Bug: 18707397
Change-Id: I9cf7111cf5e3b73efca2ec8c98bf07941d1cec4e
2016-01-07 20:41:16 +00:00
Jeff Sharkey
11dce73277 Merge "Add Ethernet feature." 2016-01-06 18:04:57 +00:00
Jeff Sharkey
4efb8b4030 Add Ethernet feature.
Change-Id: I1f1badff5a8c9237d9489497e36e2578266e34b4
2016-01-06 11:02:52 -07:00
Jeff Sharkey
62728e3107 Merge "Discourage use of "_data" column." 2016-01-06 17:26:25 +00:00
Jeff Sharkey
60cfad80bd Discourage use of "_data" column.
Moving forward, all client file access really needs to be going
through explicit APIs like openFileDescriptor(), since that allows
the provider to better protect its underlying files.

This change also changes several classes to use the AutoClosable
pattern, which enables try-with-resources usage.  Older release()
methods are deprecated in favor of close().

Uniformly apply CloseGuard across several classes, using
AtomicBoolean to avoid double-freeing, and fix several resource
leaks and bugs related to MediaScanner allocation.  Switch
MediaScanner and friends to use public API instead of raw AIDL calls.

Bug: 22958127
Change-Id: Id722379f72c9e4b80d8b72550d7ce90e5e2bc786
2016-01-06 10:19:35 -07:00
Kenny Guy
028d6906d5 Merge "Add support message for device admins" 2016-01-06 16:27:18 +00:00
Neil Fuller
feffc39ada Revert "Revert "Hide static setDefault methods in ICU4J""
This reverts commit 2be787e359c76086b57dc9f35868da9db71099e8.

It adds the missing file from the original commit.

Change-Id: Ia2c4a0f3fcc7ce1de222fa39b7fdf2ef7880468a
2016-01-06 15:47:48 +00:00
Jason Monk
5a34cb8a73 Merge "More QS Tile modes in the API" 2016-01-06 14:18:57 +00:00
Tony Mak
64ef34bc1a Merge "Add a new property PROPERTY_WORK_CALL" 2016-01-06 12:25:14 +00:00
Chad Brubaker
8885958f4b Merge "Unhide hostname aware isCleartextTrafficPermitted" 2016-01-05 22:37:06 +00:00
Chad Brubaker
25e34339ba Unhide hostname aware isCleartextTrafficPermitted
Change-Id: Id2bde5889d963ca2820fdecce1628dce022b510b
2016-01-05 11:36:43 -08:00
Kenny Guy
06de4e77c2 Add support message for device admins
Allow admins to set a long and short support
message for settings to display.

Bug: 25659579
Change-Id: Ib645490785642e49c69d8dbc65455eb3398547ee
2016-01-05 19:07:04 +00:00
Julia Reynolds
617215874d DND visual interruptions: prevent screen on.
Bug: 25423508
Change-Id: Ie935a2051e1ae774fbeaf624f3599b2b1bb8666d
2016-01-05 12:49:09 -05:00
Jason Monk
fe8f6826ce More QS Tile modes in the API
Allow tiles to request when they are bound instead of doing it
automatically for them when in the listening state.  Only one
of these modes is allowed for a given tile, meaning it can either
push updates when it thinks they matter, or it can be told when
to update.

Change-Id: I165b39dddb836df90d253aeb5ebea48e62ea0dae
2016-01-05 11:08:05 -05:00
Svetoslav Ganov
a7ca3e73bf Merge "Remove FLASHLIGHT permission" 2016-01-05 00:06:03 +00:00
Matt Sarett
e3b8f255cf Merge "Make BitmapFactory.Options API Changes" 2016-01-04 22:55:38 +00:00
Matt Sarett
5e2496bcee Make BitmapFactory.Options API Changes
This changes the documentation for inPreferQualityOverSpeed,
inDither, and requestCancelDecode().

These changes are a result of modifying the backends of
BitmapFactory and BitmapRegionDecoder to be faster, higher quality,
and to use standard libraries.

BUG:26266063
BUG:25556965
Change-Id: I9008fd276a38c737e242bcc6930ffe4e36d9fd1d
2016-01-04 17:20:17 -05:00
Jeff Sharkey
4070072669 Merge "More work towards triaging missing app behavior." 2016-01-04 21:20:49 +00:00
Chris Wren
29b7dd8d69 Merge "implement assistant service connection" 2016-01-04 21:07:24 +00:00
Svetoslav Ganov
1463cebd77 Remove FLASHLIGHT permission
This permissions is not protecting access to the flashlight.
Anyone can use the latter via CameraManager.setTorchMode().

bug:26383626

Change-Id: I44c6395b5a0f80c1c539cffe61715b29b401a775
2016-01-04 12:19:45 -08:00
Jeff Sharkey
2f3e35376a More work towards triaging missing app behavior.
Many places across the platform query package details without
gracefully handling packages or components that go missing for
various reasons.  This can cause annoying user data loss, such as
resetting back to built-in apps or dropping of accounts, etc.

This change verifies that system callers have thought about these
edge cases by logging if they use default matching behaviors without
explicitly marking themselves as being "triaged."  (The logging is
currently disabled by default.)

Also creates explicit definitions of supported flags for various
incoming PackageManager calls, and defines a clear distinction
between flag types:

-- GET-style flags are used to request additional data that may have
been elided to save wire space.

-- MATCH-style flags are used to include components or packages that
would have otherwise been omitted from a result set by current system
state.

There are a handful of existing GET flags that better fit under the
MATCH definition, so this change clones them to new constants and
marks the old ones as deprecated.

Fixes bug in JobSchedulerService to consider jobs from apps on
external storage.  Revert some dialer behavior back to being
untriaged.

Change-Id: I9b6ab0968241e3479bddbd78de0c51e3b9917318
2016-01-04 13:19:02 -07:00
Alan Viverette
db8f4e56fd Merge "Clean up date picker, add simple constructors and setter for listener" 2016-01-04 18:47:55 +00:00
Chris Wren
51017d0e23 implement assistant service connection
Added a guest-mode to ManagedServices.
Like system services, the lifecycle of a guest is not managed.
Unlike system services, guests are not considered privledged.

The Assistant gets all the usual listener events.
Implemented adjustImportance.
Future work: enqueued, clicked, visibility, removed, annotations

Bug: 22455414
Change-Id: Ic41c0bf625b5e98cb577b49098bba23a539bb507
2016-01-04 11:22:37 -05:00
Adrian Roos
7213bdd104 Merge "Add reply text section to notifications" 2015-12-29 13:05:46 +00:00
Vladislav Kaznacheev
b23a757aa2 Bind DropPermissions life cycle to Activity
Move requestDropPermissions from DragEvent to Activity.
Permissions will be granted using UriPermissionOwner
 associated with this activity and revoked when the activity
 is destroyed (if DropPermissions.release is not called before that).

Change-Id: Ic8f8fc3f56f57e83b9bc34ae8c96d82c2c9c4e1d
2015-12-22 14:40:11 -08:00
Philip P. Moltmann
4f71bcec22 Merge "Allow a print service to specify per printer icons, description and info-activities" 2015-12-22 21:49:30 +00:00
Pablo Ceballos
5fa4d15d27 Merge "Add GLES32 class and JNI" 2015-12-21 18:42:03 +00:00
Philip P. Moltmann
bb9f686b40 Allow a print service to specify per printer icons, description and
info-activities

The icon is loaded from the discovery session only when it is displayed
to avoid having to store too many icons in memory.

Also the icons are not maintained in the historical printers. Only if
the printers are available nice icons are shown. A historical printer is
updated with the appropriate properties (including icon) once it becomes
available.

Bug: 24135005
Change-Id: Iec389bab514b024634be8fb5fc8928371cba8740
2015-12-21 09:54:57 -08:00
Narayan Kamath
c55d9e767a Track libcore commit 85d69e16fe1e59e50c1ad228e754abf325088362.
Unhide Pattern.UNICODE_CHARACTER_CLASS.

Change-Id: I5734a3bbe69c825b2563739c953bbf6d98627ab3
2015-12-20 20:17:40 +00:00
Jeff Sharkey
2a9e3f8e68 Better named encryption flags, start triaging.
Create distinct flags for encryption aware, unaware, and both, and
name them like the other MATCH_ flags.

Start adding logic to help triage all system internal callers to
verify that they've done their homework and thought about how to
handle apps while locked.  Call sites in the system should either
ask for explicit matching behavior, or explicitly use the DEFAULT
match flag to indicate that they've been triaged to use the
default state-based matching.

Bug: 26250295
Change-Id: I86214e5c4f71a6dc72f06930800388713aecd107
2015-12-19 15:00:09 -07:00
Tony Mak
a68dcce8c3 Add a new property PROPERTY_WORK_CALL
In our current design, in-call ui in parent user is used.
We need a way for Telecom to tell in-call ui that is the call a work
call or not show that we can have some UI changes to reflect it.

Bug: 26022174
Change-Id: I5f54371ddac14ffdb50359c2e792b9f24858bcb8
2015-12-19 02:49:27 +00:00
Jun Mukai
56cd51a704 Merge "Introduce pointer capture API." 2015-12-18 23:30:10 +00:00
Pablo Ceballos
38c1a7e732 Add GLES32 class and JNI
Change-Id: I05ff0c14a35f51c2015edbd762dc9e6fe43347b9
2015-12-18 13:12:58 -08:00
Ruben Brunk
55bed95778 Merge "Add a framework service tracking VR mode state." 2015-12-18 19:50:24 +00:00
Jun Mukai
347e5d498f Introduce pointer capture API.
This depends on I4189eb4d93f50c2865b7a325727be5ceebcc71f8 of
frameworks/native.

Bug: 5452473
Change-Id: Ie21e521f3e5c581f976dc0feb5d84bfa48b046cd
2015-12-18 10:22:43 -08:00
Ta-wei Yen
76ef0fbe06 Merge "Add field QUOTA_OCCUPIED and QUOTA_TOTAL to VoicemailContract.Status" 2015-12-18 18:22:10 +00:00
Julia Reynolds
1ac1e3104c Merge "Aidl it all!" 2015-12-17 19:15:30 +00:00
Ruben Brunk
dd18a0b695 Add a framework service tracking VR mode state.
- Implement a "VR mode" that may be enabled by a focused Activity.
- Add a system service that tracks the current VR mode state and notifies
  other core framework services of mode changes.
- Extend NotificationListenerService to allow the bind/unbind lifecycle
  of specified listeners to be triggered by system events.

Bug: 22855417
Bug: 25479708

Change-Id: I1ac8692bbb5521bb6c7cfb9d2b56b98b720f8568
2015-12-17 10:09:17 -08:00
Alan Viverette
ad50da54f0 Clean up date picker, add simple constructors and setter for listener
Also adds annotations.

Change-Id: I8498277162176840d6d6de8ad03334366e350eaa
2015-12-17 11:41:05 -05:00
Esteban Talavera
f3378a29e9 Merge "Device or profile owner can let another app manage app restrictions" 2015-12-17 10:59:16 +00:00
Mahaver Chopra
699d537d1b Merge "Adding DPM.reboot" 2015-12-17 10:59:01 +00:00
Esteban Talavera
bf60f728cc Device or profile owner can let another app manage app restrictions
The device or profile owner can allow another
package to set app restrictions for any app in that user

Similar to the way it can give permission to access
CA certificate related APIs from M.

Bug: 22541936
Change-Id: I0c1b0804ad300dfa4fbdc1c7721c5d8653d77861
2015-12-17 10:57:09 +00:00
Vladislav Kaznacheev
9149d2b117 Rename and simplify DropPermissionHolder
Rename DropPermissionHolder to DropPermissions and move
all server-side implementation details into a separate class.
Rename DragEvent.getDropPermissionHolder to
requestDropPermissions and make it take the permissions
implicitly.

Change-Id: Ia83f7cb8af07ce13ba9536d24b0f9d63331d8736
2015-12-16 17:10:36 -08:00
Adrian Roos
e458aa8dbd Add reply text section to notifications
Also fixes a potential NPE in the failed
inflation logging in SystemUI.

Bug: 22452379
Change-Id: I829c332f7f708de8374740f6d02a2bc10a33386b
2015-12-16 16:42:08 -08:00
Makoto Onuki
60df01c522 Merge "Add SQLiteDatabase.validateSql()" 2015-12-16 22:31:44 +00:00
Makoto Onuki
17aa1b7ac7 Add SQLiteDatabase.validateSql()
This API checks the SQL syntax by compiling it.  This is useful to
detect SQL injection, for example.

Change-Id: I956548a34f664950246856966e5601dcac3daf00
2015-12-16 14:18:28 -08:00
Wale Ogunwale
c51fd1d8cf Merge "API for an Activity to enter picture-in-picture mode." 2015-12-16 21:30:51 +00:00
Alan Viverette
ba398eaafe Remove DayNight themes from public API (again)
Bug: 22628106
Change-Id: Id55c9e626813c70671a93aedf8b1e0cdaed45ec1
2015-12-16 15:28:23 -05:00
Wale Ogunwale
9c604c7c1d API for an Activity to enter picture-in-picture mode.
Bug: 25580820
Change-Id: I5c1bf17dd5dd92622458a61517bc9941e4ee5277
2015-12-16 11:01:46 -08:00
Andrei Stingaceanu
1e2839188f Wire call to suspend a package
Adds APIs in DevicePolicyManager and PackageManager for allowing
a device admin to suspend a package. PackageManagerService sets
or unsets a new PackageUserState 'suspended' setting. Terminal
command to suspend/unsuspend has been added via
PackageManagerShellCommand (as root).

Next steps:
* use the new 'suspended' setting for denying access to start app
(probably in ActivityStackSupervisor)
* broadcast a PACKAGE_(UN)SUSPENDED intent for launchers to pick up
* remove app from recents (go further and kill it if it is running)
* erase existing notifications for this app

Bug: 22776576
Change-Id: I718b3498f6a53cc0c6fdfb6d15031e53ddca4353
2015-12-16 18:14:14 +00:00