300800 Commits

Author SHA1 Message Date
sergeyv
980bead518 Prohibit copyPixelsToBuffer & copyPixelsFromBuffer
Test: BitmapTest#testHardwareCopyPixels(From|To)Buffer
bug:30999911
Change-Id: I3bfa2846bff574bc0bfd54674eac794d1a6a0ff9
2017-01-03 15:54:57 -08:00
sergeyv
81f97ee47c HardwareBitmaps: support createBitmap methods that return immutable bitmap
Test: testCreateScaledBitmap, testCreateTransformedBitmap, testCreateSubsetBitmap in HardwareBitmapTests
bug:30999911
Change-Id: Ic128dfed78b18ad6f12dad50023ee7c2f5bfa4ad
2017-01-03 15:53:03 -08:00
sergeyv
15a108550e Fix getConfig on recycled bitmap
Test: android.graphics.cts.BitmapTest#testGetConfigOnRecycled
bug:33789983
Change-Id: Ic91c16cbd83acdd6002021b44da57636ee27742d
2016-12-27 14:32:03 -08:00
TreeHugger Robot
055b324db3 Merge "Add page view metrics for new paegs in Settings." 2016-12-21 22:05:35 +00:00
TreeHugger Robot
1205974dd7 Merge "Always create grant structures when persistable." 2016-12-21 21:55:49 +00:00
TreeHugger Robot
15a30363af Merge "Stay bound to the most current active scorer." 2016-12-21 21:28:19 +00:00
Julia Reynolds
7f41c150c3 Merge "Add badging support for channels." 2016-12-21 21:15:45 +00:00
Julia Reynolds
baff400fa5 Add badging support for channels.
In this iteration badges are a user opt in feature.
Known issue: all listeners will receive 'badge only' notifications.

Test: runtest systemui-notification

Change-Id: Ic7450bf4de5351cfdc72bd96ec946fe6e035035c
2016-12-21 21:12:23 +00:00
TreeHugger Robot
13d0a6bfbb Merge "HardwarePropertiesManagerService: Fixup log message typo" 2016-12-21 21:00:59 +00:00
Jeff Sharkey
08f1959e10 Always create grant structures when persistable.
Certain apps may already hold permissions to an underlying provider,
but they expect APIs like takePersistableUriPermission() and
getPersistedUriPermissions() to work when a permission grant was
extended with FLAG_GRANT_PERSISTABLE_URI_PERMISSION.

Test: builds, boots
Bug: 31239684
Change-Id: I4b21c57956b70133ecadb50d0d3ee339f41e2260
2016-12-21 13:27:07 -07:00
Fan Zhang
074c4cb509 Add page view metrics for new paegs in Settings.
This does not increase log size, because they replace old Setting pages.

Bug: 33812754
Test: make framework
Change-Id: I17067c75d4dd5aa892c150963c92015ad0380cdd
2016-12-21 12:10:33 -08:00
Sean Stout
5721e75a0a Merge "Renamed "Demo mode" to "System UI demo mode"" 2016-12-21 19:36:53 +00:00
Todd Poynor
94d598d301 HardwarePropertiesManagerService: Fixup log message typo
Trivial typo fixup for IThermal HAL interface load failure.

Test: visual
Change-Id: I10eb01b656a95c5e007d57ff40c16b472e9f53a9
2016-12-21 19:35:50 +00:00
Jeff Sharkey
75e7b8c9ee Merge "Finish up API for missing content:// flags." 2016-12-21 19:28:05 +00:00
Android Build Merger (Role)
7fcd3fe24b Merge "Merge "DO NOT MERGE - Delete the separate grid recents activity and related code" into nyc-mr2-dev am: 09c0fdca7b am: ceebe36a17 -s ours" 2016-12-21 18:50:12 +00:00
Jeff Sharkey
f8efc66773 Merge "Relax protected broadcast checks for shell." 2016-12-21 18:49:30 +00:00
Manu Cornet
8366ce2d71 Merge "DO NOT MERGE - Delete the separate grid recents activity and related code" into nyc-mr2-dev am: 09c0fdca7b
am: ceebe36a17  -s ours

Change-Id: Iaad62a9f61be795b774935a8001309542a4349ea
2016-12-21 18:49:23 +00:00
Android Build Merger (Role)
4f596dc2fe Merge "DO NOT MERGE - Delete the separate grid recents activity and related code am: e93f8100a6 am: 15b6c78534 -s ours" 2016-12-21 18:47:05 +00:00
Manu Cornet
b24cf8e388 DO NOT MERGE - Delete the separate grid recents activity and related code am: e93f8100a6
am: 15b6c78534  -s ours

Change-Id: Ib0e4db2823ba7ddd70c41f9b60b97f5c3e5e5fe7
2016-12-21 18:46:16 +00:00
Android Build Merger (Role)
4d862963fb Merge "Merge changes from topic 'diskstats-mr2' into nyc-mr2-dev am: 639f95dd13 am: 6ee226f6e6" 2016-12-21 18:45:58 +00:00
Fyodor Kupolov
1bf4a52144 Merge "Revert "Settings recovery support"" 2016-12-21 18:45:48 +00:00
Daniel Nishi
eaa3fc40fc Merge changes from topic 'diskstats-mr2' into nyc-mr2-dev am: 639f95dd13
am: 6ee226f6e6

Change-Id: I5bc188cec8da267e046aa1d9bb5aaa2338a0ecd7
2016-12-21 18:45:08 +00:00
Android Build Merger (Role)
faf27d2036 Merge changes from topic 'am-caa9190d4d3243e3bd21c7d512d1026a'
* changes:
  Augment diskstats dumpsys to have categorization and apps. am: 090b2d9d6c am: f1312cd68e
  Add a file collector to the platform. am: be770dce08 am: a9d8602787  -s ours
  Merge "Add an app size collector." into nyc-mr2-dev am: 8fd55702b1 am: 9bd20ab6c9
  Add an app size collector. am: c7d9de59bf am: f5e2f1ae38  -s ours
2016-12-21 18:44:22 +00:00
Daniel Nishi
4711f98170 Augment diskstats dumpsys to have categorization and apps. am: 090b2d9d6c
am: f1312cd68e

Change-Id: I0b806397068dcb1551081695d6301fed639532c6
2016-12-21 18:42:21 +00:00
Daniel Nishi
841e21de3b Add a file collector to the platform. am: be770dce08
am: a9d8602787  -s ours

Change-Id: I24f4f8e829ce15dd55a91385ac8d1e622caf0c08
2016-12-21 18:41:03 +00:00
Daniel Nishi
4d04929ac3 Merge "Add an app size collector." into nyc-mr2-dev am: 8fd55702b1
am: 9bd20ab6c9

Change-Id: Idb68b4178105c60f6c9bbaa3b87c712603d5153c
2016-12-21 18:40:02 +00:00
Ben Lin
e7b416e4ed Merge "Add DocumentsContract#ACTION_DOCUMENT_SETTINGS and Documents#FLAG_SUPPORTS_SETTINGS." 2016-12-21 18:39:51 +00:00
Daniel Nishi
1c790169dc Add an app size collector. am: c7d9de59bf
am: f5e2f1ae38  -s ours

Change-Id: I49364545deb6a857d21c33fab2bebd8bd590b666
2016-12-21 18:39:02 +00:00
Frank Barchard
f41d429ce7 media volume --get outputs the current volume
Add --get option to media volume to fetch the specified
stream volume and output it on the console.
Also displays the min and max volume for that stream.

Bug: 33559057
Test: adb shell media volume --stream 3 --get
Change-Id: Icc82ba1349dd75e07ccff4872e104843a69e5f17
2016-12-21 18:30:28 +00:00
Fyodor Kupolov
457608986c Revert "Settings recovery support"
This reverts commit aa31697424064f823019c068d66fac704e5a2fc1.

Fixes: 33799277
Change-Id: I438e97c6a81512c673f20f6a01d3b9715c2dbf8a
2016-12-21 18:26:21 +00:00
Jeff Sharkey
f361f2fc89 Finish up API for missing content:// flags.
Feature is already built under the hood, but it needs it's own public
StrictMode API so it can be independently enabled.

Test: builds, boots
Bug: 32447617
Change-Id: I3c0c6d62dd36aaf25f30e0ef8e0e7b40cf32c6d2
2016-12-21 10:48:47 -07:00
Jeff Sharkey
6a34e56780 Relax protected broadcast checks for shell.
On userdebug/eng devices, the shell can run as non-shell UIDs, so
define a flag to identify broadcasts coming from the shell, and
don't yell if they're non-protected.

Test: builds, boots, root shell can send broadcasts
Bug: 32369665
Change-Id: I5f55930ee434cb8318c86aaf05eba3c59a326694
2016-12-21 10:13:53 -07:00
Julia Reynolds
4ae5441abd Merge "Don't automatically remove autogroup summaries" 2016-12-21 16:28:04 +00:00
Julia Reynolds
c8ae220ea5 Merge "Expose hidden constant." 2016-12-21 16:17:20 +00:00
Selim Cinek
c4946d4a00 Merge "Revert "Fast-path for ViewGroup#invalidateChild, invalidate tests"" 2016-12-21 15:57:38 +00:00
Selim Cinek
1cb8b08ae4 Revert "Fast-path for ViewGroup#invalidateChild, invalidate tests"
This reverts commit f7505803eaf3b31bae81151535ce6c05c58712be.

Change-Id: Ie7714360357e2baaf7723b8d992b3c6c4b0b9989
2016-12-21 15:34:30 +00:00
Calin Juravle
e83feea26a Merge "Record data about dex files use on disk" 2016-12-21 13:34:20 +00:00
Selim Cinek
45e63815e7 Merge changes Ic88e8094,I4253bf4b,Iba4ebd3c,I943b6352,If88c0b08, ...
* changes:
  Made it easier to use updatable Animators
  Improved the interpolators of the icon appearing
  Modified the way icons merge into the shelf
  Fixed a potential heads up crash
  Fixed a bug where the notifications would close on back
  Bye bye veto button
  Only requiring 2 taps for accessibility on lock screen
  Fixed a bug where systemui could crash
  Introduced the visual stability manager
  Removing notifications always immediately when swiping them away
2016-12-21 12:23:05 +00:00
Selim Cinek
f082fe2319 Made it easier to use updatable Animators
The existing system is extended such that AnimationProperties
can be easier animated and running animations updated.

As a first sample this animates the scale of the
icons in the shelf.

Change-Id: Ic88e8094d53f37ab13f5e9e00796b63d229a5114
Test: runtest systemui
Bug: 32437839
2016-12-21 12:12:31 +01:00
Selim Cinek
061d90729b Improved the interpolators of the icon appearing
The interpolator has now a slight overshoot to it again.

Change-Id: I4253bf4b2cf9d471e3aa8c9483c9bcb88c2b3032
Test: add notifications, observe icon movement
Bug: 32437839
2016-12-21 12:10:54 +01:00
Calin Juravle
0f3fa9e3cc Merge "Add logic for recording dex files use on disk" 2016-12-21 11:03:11 +00:00
Selim Cinek
a1d9790735 Modified the way icons merge into the shelf
The icon can now also move into the shelf in an animated
way instead of just moving out of it.

Change-Id: Iba4ebd3cd48b5299b89bd0cb2b05bd318e352173
Fixes: 33463805
Test: add notification observe behavior when scrolling
2016-12-21 11:55:04 +01:00
Selim Cinek
40f8876515 Fixed a potential heads up crash
If a group became suppressed with a summary that is
heads-upped, while also being in the process of being
removed, it could lead to a crash.

Test: isolate a HUN that was being removed and is a child
Change-Id: I943b63529778a3c85b03da033837f5a677b2d352
Fixes: 33645653
2016-12-21 11:55:03 +01:00
Selim Cinek
9bb05631fa Fixed a bug where the notifications would close on back
When the panel collapsing was aborted or couldn't close
because we were tracking, then the panel wouldn't be
focusable anymore so it wouldn't handle the back pressed
for example.

Change-Id: If88c0b08301dccf8c2dcd79df5239e12fc83cce5
Test: click back while expanding, click back again when expanding finished, observe collapsing.
Fixes: 33260393
2016-12-21 11:55:02 +01:00
Selim Cinek
e907911e63 Bye bye veto button
You were just overruled by the congress
of usefulness.
In other bad joke news: this also fixes a bug
where it was focusable.

Test: dismiss notification, observe it working
Change-Id: I6d170563d0c4371066ce7b149bc40053e41ca5e2
Fixes: 32127661
2016-12-21 11:55:02 +01:00
Selim Cinek
ae1bbbb329 Only requiring 2 taps for accessibility on lock screen
On the lock screen we were requiring two double taps
in order to unlock to a notification, which seems excessive
especially since talkback do their own falsing already.

Test: add notification with talkback on, try double tap
Test: add notification without talkback, existing logic still works
Bug: 32945599
Change-Id: I07e0e4299140644f62d311d8db25ec25ff138fde
2016-12-21 11:54:49 +01:00
TreeHugger Robot
2f73883a73 Merge "CEC: Dump recent message history for better logging" 2016-12-21 07:37:33 +00:00
Joe Onorato
73c109a089 turn off warning that proto generated code causes.
Test: make
Change-Id: Ife3006dc16691dd95a2cc3d36c9b8832970601c9
2016-12-20 22:28:56 -08:00
Joe Onorato
5a991adaf5 Fix varargs bug that made incident_report print incorrectly.
Test: incident_report 3000
Change-Id: I397677ecd6e50ad143518416c8fa3e408139189b
2016-12-20 22:28:56 -08:00
Joe Onorato
7669012623 Clean up file names for protos
Test: cts-tradefed run singleCommand cts -d --module CtsIncidentHostTestCases
Change-Id: Iea2fc81768082e8e01afa8df86e113665020e7f6
2016-12-20 22:28:56 -08:00