OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Clearing up invalid entries when SyncStorageEngine starts" into nyc-dev
TreeHugger Robot [Sun, 10 Sep 2017 19:25:54 +0000 (19:25 +0000)]
Merge "Clearing up invalid entries when SyncStorageEngine starts" into nyc-dev

6 years agoMerge "Javadoc: Added alternative to Package verification." into oc-dev
TreeHugger Robot [Fri, 8 Sep 2017 21:28:02 +0000 (21:28 +0000)]
Merge "Javadoc: Added alternative to Package verification." into oc-dev

6 years agoPrevent getting data from Clipboard if device is locked
Siyamed Sinir [Thu, 7 Sep 2017 01:02:23 +0000 (18:02 -0700)]
Prevent getting data from Clipboard if device is locked

Clipboard should not return data if the device is locked. This CL checks
for device locked state before returning values from get/has functions.

Bug: 64934810
Change-Id: I856a9079fe64db0af44383fae1a9a418de959420
Merged-In: Icefac226615fe22a7735dff4ba4c3b528fb2ac12

6 years agoPrevent getting data from Clipboard if device is locked
Siyamed Sinir [Wed, 6 Sep 2017 22:15:44 +0000 (15:15 -0700)]
Prevent getting data from Clipboard if device is locked

Clipboard should not return data if the device is locked. This CL checks
for device locked state before returning values from get/has functions.

Test: bit -t CtsContentTestCases:android.content.cts.ClipboardManagerTest

Bug: 64934810
Change-Id: Icefac226615fe22a7735dff4ba4c3b528fb2ac12

6 years agoMerge "Make ASSIST launch VIS and add a keycode for TV (ALL_APPS)" into oc-dev
Sujith Ramakrishnan [Thu, 7 Sep 2017 00:09:21 +0000 (00:09 +0000)]
Merge "Make ASSIST launch VIS and add a keycode for TV (ALL_APPS)" into oc-dev

6 years agoClearing up invalid entries when SyncStorageEngine starts
Suprabh Shukla [Fri, 12 May 2017 22:26:54 +0000 (15:26 -0700)]
Clearing up invalid entries when SyncStorageEngine starts

Any app with permission WRITE_SYNC_SETTINGS could write sync settings
for authorities or accounts that are not valid. This results in invalid
data being persisted to disk which can effectively lead to a DOS style
attack. Clearing such entries on boot will make sure that a reboot fixes
any such issues.

Test: cts-tradefed run cts-dev -m CtsSyncContentHostTestCases

Bug: 35028827
Change-Id: I9e206a42508e3cba65d7523bf47fff743f47dcb2
Merged-In: I9e206a42508e3cba65d7523bf47fff743f47dcb2
(cherry picked from commit 042a478b73c3b7f7cd73f5bb1af657cfe07d0571)

6 years agoDO NOT MERGE: Dynamic doze check should be required before adjusting sensor rate...
Julius D'souza [Tue, 5 Sep 2017 20:43:31 +0000 (20:43 +0000)]
DO NOT MERGE: Dynamic doze check should be required before adjusting sensor rate. am: 1f3da1c8b9  -s ours
am: c7088d8bf8  -s ours

Change-Id: I6cbd05dcb09b013e17f5c26c1fa24a656c7b8316

6 years agoDO NOT MERGE: Dynamic doze check should be required before adjusting sensor rate.
Julius D'souza [Tue, 5 Sep 2017 20:23:44 +0000 (20:23 +0000)]
DO NOT MERGE: Dynamic doze check should be required before adjusting sensor rate.
am: 1f3da1c8b9  -s ours

Change-Id: Ib94052397392808af53de5c6f265a0cd29950b4e

6 years agoJavadoc: Added alternative to Package verification.
Felipe Leme [Thu, 31 Aug 2017 19:37:33 +0000 (12:37 -0700)]
Javadoc: Added alternative to Package verification.

Bug: 64125551
Test: ran 'm -j doc-comment-check-docs' and checked resulting HTML

Change-Id: I371cd1752ab92e19461fe3bf3d034c7bc83ca2dd

6 years agoDO NOT MERGE: Dynamic doze check should be required before adjusting sensor rate.
Julius D'souza [Tue, 5 Sep 2017 17:17:06 +0000 (10:17 -0700)]
DO NOT MERGE: Dynamic doze check should be required before adjusting sensor rate.

Some devices have catastrophic firmware issues in switching the sensor rate;
for these devices, the sensor rate switch should be skipped entirely.

Change-Id: I04fc3d27c99f95b33f86f012a8d398f817f7713a

6 years agoDO NOT MERGE ANYWHERE: [AsyncChannel] Fix race in handling of sync result am: 02d802e...
Michael Plass [Fri, 1 Sep 2017 18:35:54 +0000 (18:35 +0000)]
DO NOT MERGE ANYWHERE: [AsyncChannel] Fix race in handling of sync result am: 02d802e71e  -s ours
am: b5ee561702  -s ours

Change-Id: I64e924948b9cd7934d41e2261af73e2232bbaf80

6 years agoDO NOT MERGE ANYWHERE: [AsyncChannel] Fix race in handling of sync result
Michael Plass [Fri, 1 Sep 2017 18:11:19 +0000 (18:11 +0000)]
DO NOT MERGE ANYWHERE: [AsyncChannel] Fix race in handling of sync result
am: 02d802e71e  -s ours

Change-Id: If1a7766ec46207280183c7eb08e036e526a12a34

6 years agoDO NOT MERGE ANYWHERE: [AsyncChannel] Fix race in handling of sync result
Michael Plass [Thu, 13 Jul 2017 17:09:07 +0000 (10:09 -0700)]
DO NOT MERGE ANYWHERE: [AsyncChannel] Fix race in handling of sync result

Bug: 62866191
Bug: 63074860
Bug: 65267749
Test: wifi unit tests
Change-Id: I1d59eb8d599de9d9041e0b9b7d731363675a40c9
(cherry picked from commit 56e46134d364f7f293158979765336721a6c752c)
(cherry picked from commit 9c1d56576e01060f40de74a4c0e35e95064351be)

6 years agoMake ASSIST launch VIS and add a keycode for TV (ALL_APPS)
Sujith Ramakrishnan [Wed, 19 Jul 2017 01:35:14 +0000 (18:35 -0700)]
Make ASSIST launch VIS and add a keycode for TV (ALL_APPS)

    - KEYCODE_ASSIST: Looks for default VIS in system partition
      and launches it.
    - Ensure foreground activity assist context extras are collected
      and sent to VIS.
    - KEYCODE_ALL_APPS: Sends Intent.ACTION_ALL_APPS. For TV,
      this targets default launcher package in system partition.

Test: Manual: ASSIST: adb shell input keyevent 219
Test: Manual: ALL_APPS: adb shell input keyevent 284
Test: also tested with --longpress for these keys
Test: Manual: Checked with dummy app populating overridden
      onProvideAssistData()
Test: Keypresses after overriding ALL_APPS and ASSIST
      on Nexus Remote

Bug: 37950079
Bug: 38496261
Change-Id: I96d9de67d4a442a8c6cb7feec28fc9aeb0dcbc18

6 years agoMerge changes I30e39943,I4b5fb782,I8fe0ddbd into cw-f-dev am: 1c0dba5014
Zheng Zhang [Tue, 29 Aug 2017 18:58:35 +0000 (18:58 +0000)]
Merge changes I30e39943,I4b5fb782,I8fe0ddbd into cw-f-dev am: 1c0dba5014
am: 80a0f290f6

Change-Id: I3aa52949efe603e94ca7c84c4db8212ebe195822

6 years agoDO NOT MERGE ANYWHERE: Listen TRANSPORT_BLUETOOTH network change in GnssLocationProvi...
Zheng Zhang [Tue, 29 Aug 2017 18:57:52 +0000 (18:57 +0000)]
DO NOT MERGE ANYWHERE: Listen TRANSPORT_BLUETOOTH network change in GnssLocationProvider am: 03c0f16f37  -s ours
am: d877297ad4  -s ours

Change-Id: If2056d42363944e8f251fde45199e43fa6ca6509

6 years agoMerge changes I30e39943,I4b5fb782,I8fe0ddbd into cw-f-dev
Zheng Zhang [Tue, 29 Aug 2017 18:46:23 +0000 (18:46 +0000)]
Merge changes I30e39943,I4b5fb782,I8fe0ddbd into cw-f-dev
am: 1c0dba5014

Change-Id: I45f36e954ad432bbb5117b50ab2b7c56974afdbd

6 years agoDO NOT MERGE ANYWHERE: Listen TRANSPORT_BLUETOOTH network change in GnssLocationProvider
Zheng Zhang [Tue, 29 Aug 2017 18:46:20 +0000 (18:46 +0000)]
DO NOT MERGE ANYWHERE: Listen TRANSPORT_BLUETOOTH network change in GnssLocationProvider
am: 03c0f16f37  -s ours

Change-Id: I1e3ec0a6a8e861c10a6c7f19cc080b546d1bbd65

6 years agoMerge changes I30e39943,I4b5fb782,I8fe0ddbd into cw-f-dev
TreeHugger Robot [Tue, 29 Aug 2017 18:35:04 +0000 (18:35 +0000)]
Merge changes I30e39943,I4b5fb782,I8fe0ddbd into cw-f-dev

* changes:
  DO NOT MERGE ANYWHERE: Listen TRANSPORT_BLUETOOTH network change in GnssLocationProvider
  DO NOT MERGE ANYWHERE: GnssLocationProvider: listening to conn lost event
  DO NOT MERGE ANYWHERE: Restoring Network Available Notification to AGnssRil

6 years agoMerge "Backport overlay security fix" into oc-dev
Phil Weaver [Tue, 29 Aug 2017 18:08:54 +0000 (18:08 +0000)]
Merge "Backport overlay security fix" into oc-dev

6 years agoBackport overlay security fix
Phil Weaver [Sat, 19 Aug 2017 01:01:46 +0000 (18:01 -0700)]
Backport overlay security fix

Replacing app opps fix with the flag that is used
elsewhere.

Bug: 37442941
Test: Verified that toast and system overlay still goes
away on permission and a11y service capability screens.

Merged-In: I1a3e3c5b1696a5f5b95eac187acb5a03863b4a0b

Change-Id: If9bec515105369055415d54c7fcad7a65431f8e7

6 years agoDO NOT MERGE ANYWHERE: Listen TRANSPORT_BLUETOOTH network change in GnssLocationProvider
Zheng Zhang [Tue, 22 Aug 2017 17:27:14 +0000 (10:27 -0700)]
DO NOT MERGE ANYWHERE: Listen TRANSPORT_BLUETOOTH network change in GnssLocationProvider

TRANSPORT_BLUETOOTH is a essential network type for wearable device.

For non-master branch, only listen to Bluetooth on wearable device.

Bug: 64881794

Test: Trigger Bluetooth on/off on watch, check if UpdateNetworkState()
got called.

Change-Id: I30e39943220597987320ea7843d7d36827fdd0c7
(cherry picked from commit d6886710b5c9ed9d1567c4ee59773071bae7070c)

6 years agoMerge "Clarified that getAutofillValue() must return same value passed to autofill...
TreeHugger Robot [Fri, 25 Aug 2017 21:27:56 +0000 (21:27 +0000)]
Merge "Clarified that getAutofillValue() must return same value passed to autofill()." into oc-dev

6 years agoMerge "Minor Autofill javadoc fixes." into oc-dev
TreeHugger Robot [Fri, 25 Aug 2017 19:12:22 +0000 (19:12 +0000)]
Merge "Minor Autofill javadoc fixes." into oc-dev

6 years agoMerge "power: throttle interaction hints" into oc-dev
TreeHugger Robot [Wed, 23 Aug 2017 19:25:47 +0000 (19:25 +0000)]
Merge "power: throttle interaction hints" into oc-dev

6 years agoDO NOT MERGE ANYWHERE: GnssLocationProvider: listening to conn lost event
Kevin Tang [Thu, 11 May 2017 02:36:20 +0000 (19:36 -0700)]
DO NOT MERGE ANYWHERE: GnssLocationProvider: listening to conn lost event

The HAL layer now gets onLost notificaiton as well
as connectivity available.  This keeps HAL layer
better informed on what the on what the real
connection status is, for things like assistance
download.

Fixes: 34076506
Test: GPS works, even after delete all, and assistance
downloads wait politely when in airplane mode.

Change-Id: I4b5fb782f9370b0a45282c8a9dd5920120d449fb

6 years agoDO NOT MERGE ANYWHERE: Restoring Network Available Notification to AGnssRil
Wyatt Riley [Wed, 7 Dec 2016 15:16:25 +0000 (07:16 -0800)]
DO NOT MERGE ANYWHERE: Restoring Network Available Notification to AGnssRil

Bug: 33350903
Change-Id: I8fe0ddbd011689258890ce37e37271cc6f170c6a
Fixes: 33350903
Test: On device GPS-still-works check (Ril check to be done by partners)

6 years agoDO NOT MERGE ANYWHERE Revert "Merge "Remove gender-specific pronouns from documentati...
Baligh Uddin [Sat, 19 Aug 2017 22:31:46 +0000 (15:31 -0700)]
DO NOT MERGE ANYWHERE Revert "Merge "Remove gender-specific pronouns from documentation" into oc-dev"

Bug: 64864568

This reverts commit fd35d7c0a284e31231e2f424cade864be695965b, reversing
changes made to 07a21754f45672b27e765d8c7677c9663c6dce91.

6 years agoMerge "Remove gender-specific pronouns from documentation" into oc-dev
Tyler Freeman [Sat, 19 Aug 2017 00:11:01 +0000 (00:11 +0000)]
Merge "Remove gender-specific pronouns from documentation" into oc-dev

6 years agoRemove gender-specific pronouns from documentation
Tyler Freeman [Wed, 9 Aug 2017 20:55:44 +0000 (13:55 -0700)]
Remove gender-specific pronouns from documentation

Bug: 64847340

Change-Id: Ifc48cebbab8ad1d7223d75637eb63049bc28ae7c

6 years agoDPC should not be allowed to grant development permission
Tony Mak [Tue, 15 Aug 2017 18:56:39 +0000 (19:56 +0100)]
DPC should not be allowed to grant development permission

Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --t  com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPermissionGrant_developmentPermission
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --t  com.android.cts.devicepolicy.MixedProfileOwnerTest#testPermissionGrant_developmentPermission
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --t  com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPermissionGrant
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --t  com.android.cts.devicepolicy.MixedProfileOwnerTest#testPermissionGrant
Test: Run "Permissions lockdown" test in CtsVerifier

Merged-In: If83d8edd0eea99145421e967ae47fdc264a5cf7c
Merged-In: I129bfe850981cf0b3646b7c1cf19c8a3ec69f512

Bug: 62623498
Change-Id: Ief96a23fa49f1ea923574840f8ff590a5ea2456e

6 years agoDPC should not be allowed to grant development permission
Tony Mak [Thu, 10 Aug 2017 13:19:43 +0000 (14:19 +0100)]
DPC should not be allowed to grant development permission

Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --t  com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPermissionGrant_developmentPermission
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --t  com.android.cts.devicepolicy.MixedProfileOwnerTest#testPermissionGrant_developmentPermission
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --t  com.android.cts.devicepolicy.MixedDeviceOwnerTest#testPermissionGrant
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --t  com.android.cts.devicepolicy.MixedProfileOwnerTest#testPermissionGrant
Test: Run "Permissions lockdown" test in CtsVerifier

Bug: 62623498

Merged-In: If83d8edd0eea99145421e967ae47fdc264a5cf7c

Change-Id: I129bfe850981cf0b3646b7c1cf19c8a3ec69f512

6 years agoMerge "Fix race condition of removing surface." into oc-dev
TreeHugger Robot [Fri, 18 Aug 2017 00:40:55 +0000 (00:40 +0000)]
Merge "Fix race condition of removing surface." into oc-dev

6 years agoClarified that getAutofillValue() must return same value passed to autofill().
Felipe Leme [Thu, 10 Aug 2017 23:39:02 +0000 (16:39 -0700)]
Clarified that getAutofillValue() must return same value passed to autofill().

Test: m doc-comment-check-docs
Bug: 64114048

Change-Id: I618cc3703db64315a848cc483f460f1b27fec98b

6 years agoMerge "Enforce policy for camera gesture in keyguard" into nyc-mr2-dev
Tony Mak [Thu, 17 Aug 2017 22:07:36 +0000 (22:07 +0000)]
Merge "Enforce policy for camera gesture in keyguard" into nyc-mr2-dev
am: 0c2b2d1f87  -s ours

Change-Id: Id0fe09b6f6ba687b6597ce2f97b6b8d83fbc4915

6 years agoMerge "Enforce policy for camera gesture in keyguard" into nyc-mr2-dev
TreeHugger Robot [Thu, 17 Aug 2017 21:56:52 +0000 (21:56 +0000)]
Merge "Enforce policy for camera gesture in keyguard" into nyc-mr2-dev

6 years agoMinor Autofill javadoc fixes.
Felipe Leme [Wed, 16 Aug 2017 16:21:46 +0000 (09:21 -0700)]
Minor Autofill javadoc fixes.

Bug: 64125551

Test: no, thanks

Change-Id: Idea93d3a55705fbed6ede7eac0c0791300ff1c90

6 years agoMerge "Properly compute default and system set flag on an upgrade" into oc-dev
TreeHugger Robot [Thu, 17 Aug 2017 02:29:21 +0000 (02:29 +0000)]
Merge "Properly compute default and system set flag on an upgrade" into oc-dev

6 years agoProperly compute default and system set flag on an upgrade
Svetoslav Ganov [Wed, 16 Aug 2017 21:50:00 +0000 (14:50 -0700)]
Properly compute default and system set flag on an upgrade

We added the notions of a default value and whether this default is set
by the system for a setting which is needed for experiments since in
case a bad value is pushed we should be able to incrementally rollback
to a stable state. If a system component sets a setting value this
automatically becomes the default. System components are the platform
package, the special UIDs (telephony, etc), apps singed with the
platform cert, system installed persistent apps, and SUW.

In N we did not have the notion of a default and during an upgrade need
to adjust the default and whether this default is set by the system.
This migration runs as the system UID and was incorrectly computing that
the package that changed the settings last was a part of the system and
setting the current value as its default set by the system. This
resulted in taking more storage space as we also count the default which
led the package which changed the setting to go over the quota and that
throws. If the first caller into the settings provider is the system
main
thread (almost certain) we end up throwing an exception on the system
main thread - crashing the system server.

Test: flash N, install an app abusing sys settings, update to O

Merged-In:I8e2c578cb564b2bc2de7c793eb40dea2639fa04e

bug:64718888

Change-Id: I82f0d52fd7984fb2d0da1fd91399a0c914dfa24b

6 years agoDO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6...
Siarhei Vishniakou [Wed, 16 Aug 2017 23:47:50 +0000 (23:47 +0000)]
DO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6 am: 9d99b0001e  -s ours am: 3280efe50e  -s ours am: b737365553 am: 3d1931d4e3  -s ours am: 6a7c6a24a7 am: e8b48abb02 am: a23674b4f9 am: b007784ed1  -s ours am: 712baa6c99 am: a5e996c2e2 am: 3674e3d9d8 am: a5ba83e2ee
am: 1ca8da1969  -s ours

Change-Id: I7db93785a58b059d17725188d42adfd4c7b7780a

6 years agoDO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6...
Siarhei Vishniakou [Wed, 16 Aug 2017 23:30:28 +0000 (23:30 +0000)]
DO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6 am: 9d99b0001e  -s ours am: 3280efe50e  -s ours am: b737365553 am: 3d1931d4e3  -s ours am: 6a7c6a24a7 am: e8b48abb02 am: a23674b4f9 am: b007784ed1  -s ours am: 712baa6c99 am: a5e996c2e2 am: 3674e3d9d8
am: a5ba83e2ee

Change-Id: I442dc3021f89fe808159ce8787e4d2950a4d0806

6 years agoDO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6...
Siarhei Vishniakou [Wed, 16 Aug 2017 23:09:40 +0000 (23:09 +0000)]
DO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6 am: 9d99b0001e  -s ours am: 3280efe50e  -s ours am: b737365553 am: 3d1931d4e3  -s ours am: 6a7c6a24a7 am: e8b48abb02 am: a23674b4f9 am: b007784ed1  -s ours am: 712baa6c99 am: a5e996c2e2
am: 3674e3d9d8

Change-Id: I9bc6659634cd92ceadc9b0560f2802b90b24d573

6 years agoDO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6...
Siarhei Vishniakou [Wed, 16 Aug 2017 22:55:31 +0000 (22:55 +0000)]
DO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6 am: 9d99b0001e  -s ours am: 3280efe50e  -s ours am: b737365553 am: 3d1931d4e3  -s ours am: 6a7c6a24a7 am: e8b48abb02 am: a23674b4f9 am: b007784ed1  -s ours am: 712baa6c99
am: a5e996c2e2

Change-Id: Idfdd87bbf432a23d73a544810bbda29126f15c6d

6 years agoDO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6...
Siarhei Vishniakou [Wed, 16 Aug 2017 22:39:46 +0000 (22:39 +0000)]
DO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6 am: 9d99b0001e  -s ours am: 3280efe50e  -s ours am: b737365553 am: 3d1931d4e3  -s ours am: 6a7c6a24a7 am: e8b48abb02 am: a23674b4f9 am: b007784ed1  -s ours
am: 712baa6c99

Change-Id: Ic2c5a354d8ee69609a6152d75ccdbe66fb8e3daa

6 years agoDO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6...
Siarhei Vishniakou [Wed, 16 Aug 2017 22:19:11 +0000 (22:19 +0000)]
DO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6 am: 9d99b0001e  -s ours am: 3280efe50e  -s ours am: b737365553 am: 3d1931d4e3  -s ours am: 6a7c6a24a7 am: e8b48abb02 am: a23674b4f9
am: b007784ed1  -s ours

Change-Id: I152a8ebaf97c37be52de29c0639fa221a28b5fce

6 years agoDO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6...
Siarhei Vishniakou [Wed, 16 Aug 2017 21:56:58 +0000 (21:56 +0000)]
DO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6 am: 9d99b0001e  -s ours am: 3280efe50e  -s ours am: b737365553 am: 3d1931d4e3  -s ours am: 6a7c6a24a7 am: e8b48abb02
am: a23674b4f9

Change-Id: I1071a79ff62a800027c5da1ffad9401e83f541b1

6 years agoDO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6...
Siarhei Vishniakou [Wed, 16 Aug 2017 21:39:41 +0000 (21:39 +0000)]
DO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6 am: 9d99b0001e  -s ours am: 3280efe50e  -s ours am: b737365553 am: 3d1931d4e3  -s ours am: 6a7c6a24a7
am: e8b48abb02

Change-Id: I171e3e1d9575f4e9b61ee46cfc08ac4331d6d245

6 years agoDO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6...
Siarhei Vishniakou [Wed, 16 Aug 2017 21:26:49 +0000 (21:26 +0000)]
DO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6 am: 9d99b0001e  -s ours am: 3280efe50e  -s ours am: b737365553 am: 3d1931d4e3  -s ours
am: 6a7c6a24a7

Change-Id: I72398c99878637d26dbb976bab05aca315368729

6 years agoDO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6...
Siarhei Vishniakou [Wed, 16 Aug 2017 21:15:05 +0000 (21:15 +0000)]
DO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6 am: 9d99b0001e  -s ours am: 3280efe50e  -s ours am: b737365553
am: 3d1931d4e3  -s ours

Change-Id: Ieb19904cf060072d2525836ebba9f310da515b4b

6 years agoDO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6...
Siarhei Vishniakou [Wed, 16 Aug 2017 20:50:20 +0000 (20:50 +0000)]
DO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6 am: 9d99b0001e  -s ours am: 3280efe50e  -s ours
am: b737365553

Change-Id: I375324a937478c584e95cb6550d98293162656fc

6 years agoDO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6...
Siarhei Vishniakou [Wed, 16 Aug 2017 20:35:40 +0000 (20:35 +0000)]
DO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6 am: 9d99b0001e  -s ours
am: 3280efe50e  -s ours

Change-Id: Ia7bf4d6991be15c732ba8b55c37f2c9e447b1dbd

6 years agoDO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6
Siarhei Vishniakou [Wed, 16 Aug 2017 20:19:29 +0000 (20:19 +0000)]
DO NOT MERGE Remove window obscurement information. am: c3c2ed94ff am: 96fe6421f6
am: 9d99b0001e  -s ours

Change-Id: Ib0fb40f990138b3729b66bdb6d6a095bd3ad231d

6 years agoMerge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46 -s...
Charles He [Wed, 16 Aug 2017 20:15:23 +0000 (20:15 +0000)]
Merge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46  -s ours am: 5048fc8e92 am: 5d34739d70 am: 733c7607d1 am: 6adae5108c am: a175bae662 am: 510f02244d am: 69ae08b680
am: 35c3b58d46

Change-Id: I9ce7456fec5af181ec5e42bfc5f139a1b00137cf

6 years agoDO NOT MERGE Remove window obscurement information. am: c3c2ed94ff
Siarhei Vishniakou [Wed, 16 Aug 2017 20:03:29 +0000 (20:03 +0000)]
DO NOT MERGE Remove window obscurement information. am: c3c2ed94ff
am: 96fe6421f6

Change-Id: Ia2ce3f8b95b578253c5336407ae85880d3d317f4

6 years agoMerge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46 -s...
Charles He [Wed, 16 Aug 2017 20:03:15 +0000 (20:03 +0000)]
Merge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46  -s ours am: 5048fc8e92 am: 5d34739d70 am: 733c7607d1 am: 6adae5108c am: a175bae662 am: 510f02244d
am: 69ae08b680

Change-Id: Ida122a46fece975924a002e6a5a0f6521ed8756f

6 years agoMerge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46 -s...
Charles He [Wed, 16 Aug 2017 19:51:43 +0000 (19:51 +0000)]
Merge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46  -s ours am: 5048fc8e92 am: 5d34739d70 am: 733c7607d1 am: 6adae5108c am: a175bae662
am: 510f02244d

Change-Id: I3bfe22ab41813abbeebee58d7cc8789e95a1a2fa

6 years agoDO NOT MERGE Remove window obscurement information.
Siarhei Vishniakou [Wed, 16 Aug 2017 19:48:22 +0000 (19:48 +0000)]
DO NOT MERGE Remove window obscurement information.
am: c3c2ed94ff

Change-Id: Ib9552165e9b1c2dfcd235d1f7930d85c258b2ece

6 years agoMerge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46 -s...
Charles He [Wed, 16 Aug 2017 19:39:50 +0000 (19:39 +0000)]
Merge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46  -s ours am: 5048fc8e92 am: 5d34739d70 am: 733c7607d1 am: 6adae5108c
am: a175bae662

Change-Id: Id250bcbcf92bdb95813dc4fcdd772aeef7f29c0a

6 years agoMerge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46 -s...
Charles He [Wed, 16 Aug 2017 19:26:45 +0000 (19:26 +0000)]
Merge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46  -s ours am: 5048fc8e92 am: 5d34739d70 am: 733c7607d1
am: 6adae5108c

Change-Id: I104eea9bf02f89b6c2bde0daeff81aaa781e323d

6 years agoMerge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46 -s...
Charles He [Wed, 16 Aug 2017 19:13:17 +0000 (19:13 +0000)]
Merge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46  -s ours am: 5048fc8e92 am: 5d34739d70
am: 733c7607d1

Change-Id: Id1c4c4de5d6e4da05188326287ae86e74bf89623

6 years agoMerge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46 -s...
Charles He [Wed, 16 Aug 2017 18:58:11 +0000 (18:58 +0000)]
Merge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46  -s ours am: 5048fc8e92
am: 5d34739d70

Change-Id: I51f9bbaa35a853ec3442267cbb9327a2a64ff1d1

6 years agopower: throttle interaction hints
Tim Murray [Fri, 14 Jul 2017 20:54:37 +0000 (13:54 -0700)]
power: throttle interaction hints

Don't send power HAL interaction hints more than every 100ms. Also can send userActivity
calls every 100ms too (down from 500ms).

Test: power HAL doesn't run every 8ms
Bug: 63632697

Change-Id: Ic986f6fc51e58f8060f7bf2d2ac61a9906be5c1f

6 years agoMerge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46 -s...
Charles He [Wed, 16 Aug 2017 18:48:14 +0000 (18:48 +0000)]
Merge "Fix security hole in GateKeeperResponse." into mnc-dev am: 039b357a46  -s ours
am: 5048fc8e92

Change-Id: Ib55158e1608d7eeba7d41854377ed1e93e283a75

6 years agoMerge "docs: Updated ShortcutManager API reference guide." into oc-dev
Kevin Hufnagle [Wed, 16 Aug 2017 18:44:34 +0000 (18:44 +0000)]
Merge "docs: Updated ShortcutManager API reference guide." into oc-dev

6 years agoMerge "Fix security hole in GateKeeperResponse." into mnc-dev
Charles He [Wed, 16 Aug 2017 18:37:17 +0000 (18:37 +0000)]
Merge "Fix security hole in GateKeeperResponse." into mnc-dev
am: 039b357a46  -s ours

Change-Id: Ia916a0c1a5ec5d63e4e76ed9da9d563fd39d3823

6 years agoMerge "docs: corrected code example mistakes" into oc-dev
Cindy Kuang [Wed, 16 Aug 2017 16:59:31 +0000 (16:59 +0000)]
Merge "docs: corrected code example mistakes" into oc-dev

6 years agoMerge "Additional documentation about Autofill / WebView security." into oc-dev
TreeHugger Robot [Tue, 15 Aug 2017 21:12:32 +0000 (21:12 +0000)]
Merge "Additional documentation about Autofill / WebView security." into oc-dev

6 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Android Build Merger (Role) [Tue, 15 Aug 2017 20:47:03 +0000 (20:47 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f am: 6dfc8d8d4d am: a3c1de7e49 am: 4acf4fabf4 am: 40317127f4 am: 159cd14334 am: 24587d57cf

Change-Id: If5cad5c0f361acda25df4d90de06821d16e689c0

6 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Charles He [Tue, 15 Aug 2017 20:42:11 +0000 (20:42 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f am: 6dfc8d8d4d am: a3c1de7e49 am: 4acf4fabf4 am: 40317127f4
am: 159cd14334

Change-Id: Iaed779900e094a5951e24771ed1f1f55b0c1b014

6 years ago[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee63...
Android Build Merger (Role) [Tue, 15 Aug 2017 20:35:00 +0000 (20:35 +0000)]
[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee639af am: 569af6584a am: 30d3df57dc am: 79ada733cc am: 2eb85eca12 am: f3589fded1  -s ours am: facc5e40fc

Change-Id: I4531fab8eab2291fcfd790d04a2661307f40dc60

6 years ago[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee63...
Tony Mak [Tue, 15 Aug 2017 20:29:29 +0000 (20:29 +0000)]
[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee639af am: 569af6584a am: 30d3df57dc am: 79ada733cc am: 2eb85eca12
am: f3589fded1  -s ours

Change-Id: I3b60e5cb94895fc155ba11d27ed81640eb8a2a05

6 years agoMerge "Fix security hole in GateKeeperResponse." into mnc-dev
TreeHugger Robot [Tue, 15 Aug 2017 19:30:53 +0000 (19:30 +0000)]
Merge "Fix security hole in GateKeeperResponse." into mnc-dev

6 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Charles He [Tue, 15 Aug 2017 17:54:35 +0000 (17:54 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f am: 6dfc8d8d4d am: a3c1de7e49 am: 4acf4fabf4 am: 40317127f4

Change-Id: I6bb7e6146e9a5a1a7c4721c496b1088fb3209f00

6 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Charles He [Tue, 15 Aug 2017 17:54:05 +0000 (17:54 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f am: 6dfc8d8d4d am: a3c1de7e49 am: 4acf4fabf4

Change-Id: Iea8871d4f1a491e4571e2152afbf8855bf451478

6 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Charles He [Tue, 15 Aug 2017 17:53:35 +0000 (17:53 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f am: 6dfc8d8d4d am: a3c1de7e49

Change-Id: Idcc4beaf75e1aba8609aa18ad1850e0796a17741

6 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Charles He [Tue, 15 Aug 2017 17:52:57 +0000 (17:52 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f am: 6dfc8d8d4d

Change-Id: Ia5ad4b5d36d92caa26fa69951180320848c372e7

6 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Charles He [Tue, 15 Aug 2017 17:52:27 +0000 (17:52 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f

Change-Id: I2fce56d688cc0a4111668c695c9cf9b1c930faf8

6 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0
Charles He [Tue, 15 Aug 2017 17:51:58 +0000 (17:51 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0

Change-Id: Ia0d267bb2013d7ddfe26dddfa35f3f396cca7f20

6 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c
Charles He [Tue, 15 Aug 2017 17:51:28 +0000 (17:51 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c

Change-Id: Ic72c354aaec594f02567949e294be2c10da47853

6 years agoEnforce policy for camera gesture in keyguard
Tony Mak [Fri, 28 Jul 2017 10:53:56 +0000 (11:53 +0100)]
Enforce policy for camera gesture in keyguard

Test:
1. Set lock screen, set keyguard policy. Lock the device.
   Observe that double tap is not showing camera

2. Set lock screen, unset the keyguard policy. Lock the device.
   Observe that double tap is showing camera

3. Unset lock screen (swipe), set the keyguard policy. Lock the device.
   Observe that double tap is showing camera.

4. Unset lock screen (swipe), unset the keyguard policy. Lock the device.
   Observe that double tap is showing camera.

Bug: 63787722
Merged-In: I104688eaad719528376e2851f837d5956a6a1169

Change-Id: I42e6d9015682998176fe41971356bde22e1b37b2

6 years agoAdditional documentation about Autofill / WebView security.
Felipe Leme [Tue, 1 Aug 2017 01:01:15 +0000 (18:01 -0700)]
Additional documentation about Autofill / WebView security.

Test: ran 'm -j doc-comment-check-docs' and checked resulting HTML

Fixes: 64114048
Fixes: 64337380
Fixes: 64125551

Change-Id: I375bb4712af875251fea4f3e572d92165643409a

6 years ago[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee63...
Tony Mak [Fri, 11 Aug 2017 21:13:21 +0000 (21:13 +0000)]
[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee639af am: 569af6584a am: 30d3df57dc am: 79ada733cc am: 2eb85eca12

Change-Id: I3d7846f3b82dd429c69cff700e3d2794039b73db

6 years ago[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee63...
Tony Mak [Fri, 11 Aug 2017 21:12:38 +0000 (21:12 +0000)]
[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee639af am: 569af6584a am: 30d3df57dc am: 79ada733cc

Change-Id: Iea1acc1d757871aaaa58fb27f547fd6261b73585

6 years ago[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee63...
Tony Mak [Fri, 11 Aug 2017 21:11:51 +0000 (21:11 +0000)]
[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee639af am: 569af6584a am: 30d3df57dc

Change-Id: I4ab24abc5c58022d92eb399750c8c8ef07995c5b

6 years ago[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee63...
Tony Mak [Fri, 11 Aug 2017 21:10:58 +0000 (21:10 +0000)]
[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee639af am: 569af6584a

Change-Id: Ic65e9bb19e46a8d16406a3d02e5b60f375338334

6 years ago[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee639af
Tony Mak [Fri, 11 Aug 2017 21:09:58 +0000 (21:09 +0000)]
[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee639af

Change-Id: I877b0cba326b85e894d52f24a694a1ef666cdb1c

6 years ago[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7
Tony Mak [Fri, 11 Aug 2017 21:09:21 +0000 (21:09 +0000)]
[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7

Change-Id: Ia91fe8b88c04f1b430f8cf90f5691b6b2791610b

6 years agoMerge "docs: corrected grammar mistake in Class Overview" into oc-dev
Cindy Kuang [Fri, 11 Aug 2017 20:38:35 +0000 (20:38 +0000)]
Merge "docs: corrected grammar mistake in Class Overview" into oc-dev

6 years agoMerge "docs: replaced "i.e." to fix formatting error" into oc-dev
Cindy Kuang [Fri, 11 Aug 2017 20:33:34 +0000 (20:33 +0000)]
Merge "docs:  replaced "i.e." to fix formatting error" into oc-dev

6 years agodocs: corrected code example mistakes
Cindy Kuang [Wed, 9 Aug 2017 21:18:02 +0000 (14:18 -0700)]
docs: corrected code example mistakes

Test: make ds-docs

Bug: 10808505
Change-Id: I9ee4efab9f0cbac00213179d06a6f0919cb82756

6 years agoMerge "Enforce policy for camera gesture in keyguard" into oc-dev
TreeHugger Robot [Fri, 11 Aug 2017 12:25:01 +0000 (12:25 +0000)]
Merge "Enforce policy for camera gesture in keyguard" into oc-dev

6 years agodocs: replaced "i.e." to fix formatting error
Cindy Kuang [Wed, 9 Aug 2017 17:08:15 +0000 (10:08 -0700)]
docs:  replaced "i.e." to fix formatting error

Test: make ds-docs

Bug: 6440865
Change-Id: I428476ddfe55f14df531ea6a1c3e3a09f7a29e7d

6 years agodocs: corrected grammar mistake in Class Overview
Cindy Kuang [Wed, 9 Aug 2017 21:49:19 +0000 (14:49 -0700)]
docs: corrected grammar mistake in Class Overview

Test: make ds-docs

Bug: 17533073
Change-Id: Iaf22ad26794e2aac454a736efc746bca6f48eb82

6 years agoMerge "Fix BLE scan leaks" into oc-dev
Vinay Kalia [Wed, 9 Aug 2017 21:02:32 +0000 (21:02 +0000)]
Merge "Fix BLE scan leaks" into oc-dev

6 years agoCatch (and ignore) any timeout exceptions when releasing WakeLock am: 9468b48565...
Zheng Zhang [Wed, 9 Aug 2017 18:09:48 +0000 (18:09 +0000)]
Catch (and ignore) any timeout exceptions when releasing WakeLock am: 9468b48565  -s ours
am: 4542686e42

Change-Id: Id140fee89f552999522f3116854761c14265ef04

6 years agoFix Wakelock underlock in GnssLocationProvider. am: 2ed0166808 -s ours
Wei Wang [Wed, 9 Aug 2017 18:08:52 +0000 (18:08 +0000)]
Fix Wakelock underlock in GnssLocationProvider. am: 2ed0166808  -s ours
am: 5d60709dc3

Change-Id: I10a42eee839da98af9434d1f7530335dfa732632

6 years agoCatch (and ignore) any timeout exceptions when releasing WakeLock
Zheng Zhang [Wed, 9 Aug 2017 17:58:18 +0000 (17:58 +0000)]
Catch (and ignore) any timeout exceptions when releasing WakeLock
am: 9468b48565  -s ours

Change-Id: Ia1c10a46771ff4602a1005a3bf0bddaf6f1a70b6

6 years agoFix Wakelock underlock in GnssLocationProvider.
Wei Wang [Wed, 9 Aug 2017 17:57:17 +0000 (17:57 +0000)]
Fix Wakelock underlock in GnssLocationProvider.
am: 2ed0166808  -s ours

Change-Id: I965a5b57ffbc2adcde3a83a95793a3dc29673641

6 years agoFix BLE scan leaks
Vinay Kalia [Fri, 28 Jul 2017 22:09:57 +0000 (15:09 -0700)]
Fix BLE scan leaks

If an app starts multiple scans with same callback then
there is a collision in mLeScanClients hash map which
results in leaking first scan. This change fixes it by
not allowing the second scan with same callback.

BUG: 62389939
BUG: 38198694

Test: Tested applications which started multiple scans with
       same callback.

Change-Id: I569069a40b6f8b4b8bb070731225e732c6b23ec8
(cherry picked from commit 9722971cb4a79e37165f636f9dd057707d2e620a)

6 years agodocs: Updated ShortcutManager API reference guide.
Kevin Hufnagle [Sat, 5 Aug 2017 00:03:48 +0000 (17:03 -0700)]
docs: Updated ShortcutManager API reference guide.

The guide now contains supplemental, rather than duplicate,
information relative to the "App Shortcuts" guide, available at
https://developer.android.com/guide/topics/ui/shortcuts.html

Test: make ds-docs -j8

Bug: 64401518
Change-Id: Iefa34299a9765eb5d853da71d9197a0edb346026