Commit Graph

309172 Commits

Author SHA1 Message Date
John Reck
04b926a68b Merge "Overhaul RenderNode's DisplayList management" 2017-01-25 23:11:30 +00:00
John Reck
b5544d0308 Temporarily enable GL validation
Bug: 34206215
Test: none
Change-Id: Ifc2855ca399f4ae42376349dd5c660f60b327c04
2017-01-25 15:09:37 -08:00
Selim Cinek
5be6f33996 Modified the interpolators when opening an ambient notification
Change-Id: Ie24468be028fd7c894840e3d1fbf42717ad387a4
Test: add low-priority notification and expand
Bug: 34469375
2017-01-25 15:04:57 -08:00
Adrian Roos
2a31841e3d AOD: Prevent KeyguardAffordanceViews from triggering in doze
Fixes a bug where the the affordances on the keyguard could
be triggered on Ambient Display even though they were invisible.

Fixes: 34707183
Test: Enter Ambient Display, drag from bottom right corner. Nothing should happen.
Change-Id: I2deab6d006b645670038d7f658fb0361618b3a91
2017-01-25 14:50:01 -08:00
Adrian Roos
e31f30e946 SysUI: Fix typo in NotificationPanelView
Test: mmm frameworks/base/packages/SystemUI
Change-Id: I8c792382418ea814cc9e4688e50815b05058809f
2017-01-25 14:48:15 -08:00
Romain Guy
408afbf060 Change configuration's color mode based on the display's color mode
Bug: 32984164
Test: CtsContentTestCases

Change-Id: Iedc7d1cc488b80718576082667b6e96956c4f847
2017-01-25 14:43:36 -08:00
Chad Brubaker
35b79a7d44 Allow ephemeral apps to reach any CATEGORY_BROWSABLE
Apps receiving browsable intents should already be prompting the user
before taking any action/making any changes, which is what we want to
ensure for ephemeral apps. This way we don't have to manually mark all
such activities visibleToInstantApps.

Test: cts-tradefed run commandAndExit cts-dev -m
CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: Id64706f993a412f163e533fa85b83f5f466731f7
2017-01-25 14:24:53 -08:00
Pavlin Radoslavov
79fdc5001d Fix wording ambiguity for Bluetooth LDAC Playback Quality selection
"Optimize for" -> "Optimized for"

Bug: 34687041
Test: UI Visual inspection
Change-Id: I112ed6451465750978181e6ee35f96fd76969e9c
2017-01-25 22:19:17 +00:00
Makoto Onuki
d49f3fa806 Cache isManagedProfile().
LauncherApps wants to use it in the client side.  Let's cache the
result.

Bug: 34340531
Test: manual tests with work profile
Change-Id: I594a9ca688867e7cb0b35ab389ccef66135ef9cd
2017-01-25 14:12:04 -08:00
William Mee
cd62f3aed6 Added a new wifi_badging_thresholds setting to Settings.Global
Requirement is to have a defined default, to be able to override
using GServices, and to access from both platform and GMSCore.

Bug: 34052475
Test: compiles
Change-Id: I1aaa146ea654c3fcef3fdad5084f7bea9fd341ed
2017-01-25 14:03:32 -08:00
Ta-wei Yen
ebd3aa0bb8 Add APIs to hide voicemail settings.
With unbundle visual voicemail and dialer voicemail notification, the
dialer should be able to control the voicemail settings, and refer
telephony settings as "Advance settings" only showing the options
not in the public API.

This CL gives the default dialer the ability to hide duplicated
settings in telephony.

Bug: 34691905
Fixes 34691905
Test: CTS verifier test "hide public settings in voicemail"
      "hide voicemail in call settings"
Change-Id: I6589c3d77b5075265cf013ee56524a342904ecd1
2017-01-25 13:58:23 -08:00
TreeHugger Robot
3416cc2800 Merge "mediaplayer: add buffering settings API" 2017-01-25 21:53:32 +00:00
Mady Mellor
04d7a0fca0 Add snooze to notification menu row
Moves the snooze plugin code into system UI.
Does not include assistant suggestions.

Test: manual
Change-Id: Ie2c51d65381530c9a72cd8a871efdbf0d63da490
2017-01-25 13:43:09 -08:00
Jerry Zhang
5b15e37678 Merge "Merge changes from topic 'usb_bugfix' into nyc-mr2-dev am: 55772c73c0" into nyc-mr2-dev-plus-aosp
am: 7fef16ff24

Change-Id: I23ce12aab4bc75fb0899626da052bfec5f64a604
2017-01-25 21:41:30 +00:00
Jerry Zhang
8f5f089457 Merge changes from topic 'usb_bugfix' into nyc-mr2-dev am: 55772c73c0
am: 473e3953f5

Change-Id: I333ec4ca60afdd44d0d859eb654d121f6dee95da
2017-01-25 21:41:25 +00:00
Josh Gao
8d2f9e0cf3 Merge "zygote: don't drop CAP_SYS_PTRACE from the bounding set." am: 273b886c49 am: e801810553 am: a07e5312cc
am: 0ebf87e3e7

Change-Id: Ic99476b698ccc056eb97f83d64e844c3fffa481f
2017-01-25 21:39:57 +00:00
Dianne Hackborn
ee9e85f12e Remove some unused code around process state reporting.
Test: manual (removing stuff that wasn't tested anyway)

Change-Id: I6aec4047ecea406db5d740550b838b295d128a1a
2017-01-25 13:33:40 -08:00
Jerry Zhang
40832f9be2 Refactored setCurrentFunction and setUsbDataUnlocked into single method. am: 4882496232 -s ours
am: 270c4bcd86

Change-Id: I935dfed207d96aba169c6da07fa26d57781f5f93
2017-01-25 21:32:16 +00:00
Jerry Zhang
86d39a602c Clean up persistent usb state on boot. am: bfc5d563aa -s ours
am: 6cf9bfde00

Change-Id: If911ea57fe1259029c0825d4a697f0098692f07d
2017-01-25 21:31:24 +00:00
Android Build Merger (Role)
7fef16ff24 Merge "Merge changes from topic 'usb_bugfix' into nyc-mr2-dev am: 55772c73c0" into nyc-mr2-dev-plus-aosp 2017-01-25 21:31:12 +00:00
Jerry Zhang
469fc8cb94 Fixed handling of usb state during adb changes. am: 541295a9a5 -s ours
am: e5a8b4f12c

Change-Id: Iabd888a924226e0a333fe0600daf4bec154eb832
2017-01-25 21:30:08 +00:00
Jerry Zhang
473e3953f5 Merge changes from topic 'usb_bugfix' into nyc-mr2-dev
am: 55772c73c0

Change-Id: Ie41c7e8b7a687e9836354d429e66b5f214a6d0b2
2017-01-25 21:30:07 +00:00
Josh Gao
0ebf87e3e7 Merge "zygote: don't drop CAP_SYS_PTRACE from the bounding set." am: 273b886c49 am: e801810553
am: a07e5312cc

Change-Id: I9165a6dc33058ec4f7bd8a6c6f4426af405bda19
2017-01-25 21:30:03 +00:00
Josh Gao
a07e5312cc Merge "zygote: don't drop CAP_SYS_PTRACE from the bounding set." am: 273b886c49
am: e801810553

Change-Id: I636c0f021c6ffae4518d889b1e7c4c3c29c6e864
2017-01-25 21:25:23 +00:00
Jerry Zhang
270c4bcd86 Refactored setCurrentFunction and setUsbDataUnlocked into single method.
am: 4882496232  -s ours

Change-Id: Ia50fbb88cdaa9e3570b68798b82df609475b5fe6
2017-01-25 21:23:54 +00:00
Jerry Zhang
6cf9bfde00 Clean up persistent usb state on boot.
am: bfc5d563aa  -s ours

Change-Id: Idd46b3f5a0c3a608a3178855b67afbce1cf21acb
2017-01-25 21:22:54 +00:00
Jerry Zhang
e5a8b4f12c Fixed handling of usb state during adb changes.
am: 541295a9a5  -s ours

Change-Id: I608202f6c74d0209f5507f838f103f874ed47e3b
2017-01-25 21:22:07 +00:00
Josh Gao
e801810553 Merge "zygote: don't drop CAP_SYS_PTRACE from the bounding set."
am: 273b886c49

Change-Id: I82c58cd03c8db78a1733ba5070d314607475cee7
2017-01-25 21:21:29 +00:00
phweiss
73145f4e60 Create public API for policy transparency outside of Settings
The new DPM.createAdminSupportIntent() returns an intent that shows the
"This action was disabled by your admin"-dialog from settings.
This enables apps to inform the user about the cause of restricted
functionality.

A new extra for the intent allows to specialize the dialog for different
restricted features, instead of a generic message for all features.

Bug: 31215663
Test: runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest frameworks-services

Change-Id: I3de7aeec0f88b8f013a63957aec803cd123fbedc
2017-01-25 22:20:46 +01:00
Sundeep Ghuman
bf339f5cc5 Add logging for badges shown in WifiSettings.
Bug: 34394557
Test: GmsCore Debug logs (see tron howto).
Change-Id: I14f28278a9478e9ead891e25b1bec54ffa9d90ef
2017-01-25 13:20:40 -08:00
Josh Gao
273b886c49 Merge "zygote: don't drop CAP_SYS_PTRACE from the bounding set." 2017-01-25 21:16:58 +00:00
Vladislav Kaznacheev
3787de16d2 Implement pointer capture API
When in pointer capture mode, mouse pointer disappears and
further mouse events are dispatched to the focused view
in the window which has requested capture.

The captured events have the source SOURCE_MOUSE_RELATIVE
belonging to SOURCE_CLASS_TRACKBALL. They are
dispatched through dispatchCapturedPointerEvent /
onCapturedPointerEvent. There is also a new listener.

Pointer capture mode may only be granted to a currently
focused window, and will be canceled upon a window focus change.

Test: cts-tradefed ... --test android.view.cts.PointerCaptureTest
Bug: 30897034
Change-Id: I6e5934aa415ac2b6dda1cee173d0f23e5021af84
2017-01-25 13:13:45 -08:00
Dianne Hackborn
c5d458930c Merge "Add some new experiment constants for activity and power manager." 2017-01-25 21:12:12 +00:00
Shuzhen Wang
b44dee8e22 Merge "Camera2: Handle (0, 0) size for deferred OutputConfiguration" 2017-01-25 21:05:45 +00:00
Abodunrinwa Toki
e363f427f8 Merge "Implement TextClassifierImpl.getLinks" 2017-01-25 21:05:03 +00:00
Winson Chung
8779446466 Skip resizing the stack when there is no current bounds.
- When initially calling loadConfigurationsAndApply(), the state is
  set to STATE_NO_PIP when there is no pinned stack.  As of change
  ag/1725150, resizeStack no longer fails silently when there is no
  such stack to resize.  This CL skips the call to resizeStack() when
  the PiP mode is set to STATE_NO_PIP.

Bug: 34692144
Test: Try and launch Fugu
Change-Id: Ic539f4431c2f94e7c10520c383fa49157d1d0631
2017-01-25 21:03:59 +00:00
Felipe Leme
436ab6a91d Added support to authentication.
AutoFillService can now require user authentication, both at
FillResponse and Dataset levels;
- FillResponse authentication is typically used when the user data
  need to be unlocked before the first use.
- Dataset authentication is typically used to unlock sensitive data
  such as credit card info.

The authentication can be handled by the service itself (for example,
when it uses the credit card CVV to unlock it) or by the Android
system (when the service asks for fingerprint authentication).

Bug: 31001899

Test: manual verification
Test: CtsAutoFillServiceTestCases passes

Change-Id: If62f42f697ab5ef0d14d991ff1077d1c38808e61
2017-01-25 13:03:32 -08:00
Andy Hung
ebc2c14b07 AudioTrack: Enable deep buffer mode from Java
Test: AudioTrack CTS test, Play Movies
Bug: 30687201
Change-Id: Id3a8d675966671ed13c488936228bd76dfc6c1fe
2017-01-25 13:00:34 -08:00
Steve McKay
24cd592b24 DO NOT MERGE: Allow launcher icon to be config'd in overlay.
Bug: 34441010
Test: Build and view in launcher.
Change-Id: I1f6cb4f2f6cb234e55aac1657aa6cdaa4a22550f
2017-01-25 20:41:14 +00:00
Mady Mellor
3e6552036e Add snooze listener so that a plugin can snooze a notification
Test: manual
Change-Id: Ieb3c0fcae6d832c3e8f5d1b983c52cf4f2ff6239
2017-01-25 12:34:22 -08:00
Mady Mellor
87d7945f06 Change NotificationGuts to contain a view
NotificationGuts is now given a view to display, the notification
management controls have been moved into their own view.

NotificationGuts is provided a view to show via a MenuItem.

This allows configuration via the NotificationMenuRowProvider Plugin.

Test: manual
Change-Id: I68cb23ea2cada30cc6e930fa8c03e0aa4014dfe2
2017-01-25 12:34:11 -08:00
Fyodor Kupolov
6e68706f67 Do not remove file_cache when exiting demo mode
When clearing /data/preloads directory, keep files in file_cache directory.
The content there will only be removed if systems runs low on storage.

Test: manual + RetailDemoModeServiceTest
Bug: 31008665
Change-Id: Id335d84940ee829617986f5345f169271a333de1
2017-01-25 12:33:47 -08:00
Jerry Zhang
55772c73c0 Merge changes from topic 'usb_bugfix' into nyc-mr2-dev
* changes:
  Refactored setCurrentFunction and setUsbDataUnlocked into single method.
  Clean up persistent usb state on boot.
  Fixed handling of usb state during adb changes.
2017-01-25 20:30:22 +00:00
chchao
b8e253a229 Create metrics for toggling Select to Speak service in SetupWizard.
Bug: 29517229
Test: manual
Test: compile framework
Change-Id: I1306a16a88b6bac2b4c53f6e9b5883dfdb36cedb
2017-01-25 12:29:36 -08:00
John Reck
2de950d5a8 Overhaul RenderNode's DisplayList management
* Move mValid to native
* Have destroyHardwareResources destroy everything
* Remove flaky mParentCount checks in setStaging
* All tree updates have an internal observer to
  ensure onRemovedFromTree() is a reliable signal
* onRemovedFromTree() immediately releases resources
  to avoid displaylist "leaks"

Test: Unit tests for validity added & pass, manually
verified that b/34072929 doesn't repro

Bug: 34072929

Change-Id: I856534b4ed1b7f009fc4b7cd13209b97fa42a71c
2017-01-25 12:24:40 -08:00
George Burgess IV
85895792f0 Merge "Fix a use-of-uninitialized-value warning." am: 500cf67206 am: f77f2cb3e7 am: 0c6283e396
am: 858852a6dc

Change-Id: Ib874408eb77d265a9e939679bd2c5459217063e8
2017-01-25 20:23:58 +00:00
Mady Mellor
761cde1173 Rename notification settings icon row / gear to notification menu row
Test: manual
Change-Id: I3a84c5ea180bd1e53495c5a44a93fa1982056174
2017-01-25 12:23:36 -08:00
Mady Mellor
43c2cd1a40 Create + implement plugin for NotificationSettingsIconRow
This will allow plugins to supply additional menu options to the
menu "behind" a notification.

This CL does not include behavior for when one of these new menu
items is tapped, this will be added in a separate CL.

Test: manual
Change-Id: I322f9f39d33b043bd23dcbede5dd15e6afa73fc1
2017-01-25 12:23:29 -08:00
Shuzhen Wang
e56e606f82 Camera2: Handle (0, 0) size for deferred OutputConfiguration
We need to handle below sequence of events:
1. OutputConfiguration(Size(0, 0), klass)
2. addSurface(surface)
3. createCameraCaptureSession

In this case, allow the addSurface() to succeed.

Test: camera works in keep/hangouts/contacts
Bug: 34697112
Change-Id: I726c60cce9a11c69b050aad47f4ed4a0a7a0870e
2017-01-25 12:22:01 -08:00
Mark Rathjen
8bd8564a18 Merge "Resolve Android security comments for Android ID migration." 2017-01-25 20:20:29 +00:00