312343 Commits

Author SHA1 Message Date
Seigo Nonaka
d5d6561f25 Need to return false if addSkTypeface fails.
Bug: 36809770
Test: android.content.res.cts.ResourcesTest#testGetFont_invalidFontFiles
Change-Id: I89438805b9232b1f789af5f70ef1f773589ecd3a
2017-04-03 15:51:02 -07:00
Jason Monk
be436bdefe Merge "Add test API for if the device supports QS" into oc-dev 2017-04-03 19:11:44 +00:00
TreeHugger Robot
38344ac4e9 Merge "Add friction icon for metered networks." into oc-dev 2017-04-03 18:24:02 +00:00
Winson Chung
34ecbaa991 Merge "Ensuring multi-window callbacks contain new configuration and are in order" into oc-dev 2017-04-03 18:23:31 +00:00
Winson Chung
244e4854c3 Merge "Fixing regression in PiP TV." into oc-dev 2017-04-03 18:22:41 +00:00
Brad Ebinger
57132a1513 Merge "Move CALL_PRIVILEGED/EMERGENCY to @SystemApi" into oc-dev 2017-04-03 18:12:42 +00:00
Chad Brubaker
e35d50622c Merge "Rename READ_PHONE_NUMBER to READ_PHONE_NUMBERS" into oc-dev 2017-04-03 17:34:13 +00:00
Andrii Kulian
2c93764bee Merge "Fix some WM unit tests" into oc-dev 2017-04-03 17:34:01 +00:00
Daniel Nishi
e8165eb4ba Merge "Use KB instead of kB." into oc-dev 2017-04-03 17:25:17 +00:00
TreeHugger Robot
a906fb7b43 Merge "Fix deleting Misc channel for o-aps" into oc-dev 2017-04-03 16:53:54 +00:00
TreeHugger Robot
644648ebfd Merge "Expose instant app to exposed providers" into oc-dev 2017-04-03 16:43:08 +00:00
TreeHugger Robot
5c8832a983 Merge "Disable sounds on menu button" into oc-dev 2017-04-03 16:37:49 +00:00
TreeHugger Robot
cb4ed821f2 Merge "Fix battery icon dark initialization" into oc-dev 2017-04-03 16:37:11 +00:00
TreeHugger Robot
e9679db5e2 Merge "Allow committing allowing state loss on detached FragmentManager." into oc-dev 2017-04-03 16:34:17 +00:00
Winson Chung
d62acec309 Fixing regression in PiP TV.
- Don't clobber the state if we are deferring resizing due to finishing
  activities.
- Fix issue with PiP tasks being visible after the stack is removed, due
  to it being put below a non-fullscreen task in the fullscreen stack.
  Instead just move it to the back of the stack.

Bug: 36592307
Test: android.server.cts.ActivityManagerPinnedStackTests

Change-Id: Ia18fe155b8a045a8ffea84612fd08af3ef3982d8
2017-04-03 09:30:42 -07:00
TreeHugger Robot
974b5b13b2 Merge "Fix broken perf tests" into oc-dev 2017-04-03 15:57:40 +00:00
TreeHugger Robot
a56b6e530a Merge "QS: Add transient animations for bluetooth and wifi" into oc-dev 2017-04-03 15:37:18 +00:00
TreeHugger Robot
f244f7e1b8 Merge "Fix losing status bar icons on config changes" into oc-dev 2017-04-03 15:05:38 +00:00
TreeHugger Robot
35110948b7 Merge "Implement service filtering" into oc-dev 2017-04-03 14:45:57 +00:00
Bryce Lee
7efe56b779 Merge "Add app bounds to configuration." into oc-dev 2017-04-03 14:30:49 +00:00
Geoffrey Pitsch
326eb2ee80 Fix deleting Misc channel for o-aps
Change-Id: If5ebebcd1b983e12dee860801db578dfe882bd9c
Fixes: 36816111
Test: runtest systemui-notification
2017-04-03 10:19:11 -04:00
Diego Perez
fdf453aa9d Fix broken perf tests
Do not dispose Bridge on tearDown. The concept of disposing the Bridge
only made sense when we were loading it dynamically. Some classes have
static initializers that will fail after the dispose (like Typeface).

Test: N/A
Change-Id: I9c934432232bda02a4d26425587096fb6dc957b0
(cherry picked from commit f1532e36e16e2b55f175a24f11df91cf344833ff)
2017-04-03 14:11:23 +00:00
Chris Wren
ef3a28cb92 Merge "standardize network policy notification IDs" into oc-dev 2017-04-03 13:42:44 +00:00
Jason Monk
de8cd0e8f5 Merge "Switch cast over to support library dialog" into oc-dev 2017-04-03 13:34:19 +00:00
Jorim Jaggi
91232840aa Revert "Temporarily bg-whitelist the default container package-cleaning service"
Causes bootloop.

This reverts commit f16e7423c79c4ccccf43265a5b1966eb8e7f7be7.
2017-04-03 14:40:39 +02:00
TreeHugger Robot
0c224f9674 Merge "Revert "Whitelist ManagedProvisioning from bg check"" into oc-dev 2017-04-03 11:06:59 +00:00
TreeHugger Robot
891e03203c Merge "Prevent NPE when draw is called without bounds being set Test: unit test inside AdaptiveIconDrawableTest.java" into oc-dev 2017-04-03 09:52:19 +00:00
TreeHugger Robot
713b7c6b53 Merge "Lower-level user enumeration; fix disabled bug." into oc-dev 2017-04-03 08:36:09 +00:00
TreeHugger Robot
fd463121c6 Merge "We really want f_frsize and f_bavail." into oc-dev 2017-04-03 07:37:49 +00:00
TreeHugger Robot
e1df48d3a0 Merge "Camera: add batching support to HAL1 recording path" into oc-dev 2017-04-03 07:34:06 +00:00
Hyunyoung Song
55211c032c Prevent NPE when draw is called without bounds being set
Test: unit test inside AdaptiveIconDrawableTest.java

Change-Id: Ic3260ce9c6bae595c7eba7be1cd7ae249939a1cf
2017-04-03 00:23:49 -07:00
TreeHugger Robot
cb9ceb3fd4 Merge "Process FuseAppLoop messages in Handler.Callback" into oc-dev 2017-04-03 06:55:04 +00:00
Jeff Sharkey
8231146d4e Lower-level user enumeration; fix disabled bug.
UserManager may not have been started yet, so discover users by
looking at filesystem.

Fix disabled bug where default should be "false."

Test: builds, boots
Bug: 36794413
Change-Id: If91fd27b955175072228a93aab4b8ac3b27df0bf
2017-04-02 23:42:29 -06:00
Jeff Sharkey
dafb17e7eb We really want f_frsize and f_bavail.
It's confusing, but f_bsize is not the value you're looking for; the
real block size is f_frsize.  Fix all those bugs.

Also, the vast majority of clients are interested in the usable
disk space, not including reserved space.

Test: builds, boots
Bug: 36840579
Change-Id: Ib1470389afd49c14cab62282ec1e978ebb2c4791
2017-04-02 23:33:38 -06:00
Daichi Hirono
ea6e6e17a0 Process FuseAppLoop messages in Handler.Callback
Previously FuseAppLoop instantiates Runnable for each command, which
causes lots of instantiation and GC.

Test: CTS
Bug: 35229514
Change-Id: Ifea098e5ade044b1a954c0b714c5b3270a95cd1a
2017-04-03 05:03:03 +00:00
Jeff Sharkey
6df866a851 Enforce PACKAGE_USAGE_STATS for usage data.
Some system services are offering package usage data through both
public/system APIs and through dump() calls.  In principle, usage
data hould always be protected with PACKAGE_USAGE_STATS, so start
enforcing that.  (Otherwise if a user blocked PACKAGE_USAGE_STATS
access to an app, that app could still obtain the data via dump()
if they held the DUMP permission.)

Bottom line, let's respect the user's wishes.

Protecting the entire output like this is pretty blunt, but future
CLs can add more nuance to the output if desired.

Test: cts-tradefed run commandAndExit cts-dev -m CtsSecurityTestCases -t android.security.cts.ServicePermissionsTest
Bug: 32806790
Change-Id: I46173562713bea7d89e12a4313c78eb52ea8d77d
2017-04-02 22:29:07 -06:00
Jeff Sharkey
fe9a53bc45 Consistent dump() permission checking.
This change introduces new methods on DumpUtils that can check if the
caller has DUMP and/or PACKAGE_USAGE_STATS access.  It then moves all
existing dump() methods to use these checks so that we emit
consistent error messages.

Test: cts-tradefed run commandAndExit cts-dev -m CtsSecurityTestCases -t android.security.cts.ServicePermissionsTest
Bug: 32806790
Change-Id: Iaff6b9506818ee082b1e169c89ebe1001b3bfeca
2017-04-02 22:29:07 -06:00
TreeHugger Robot
21a5edcc24 Merge "Override bidi property of new emojis" into oc-dev 2017-04-03 00:21:55 +00:00
Yin-Chia Yeh
19ddea90c1 Camera: add batching support to HAL1 recording path
Test: Angler HAL1 + batching normal recording mode
Bug: 35997432
Change-Id: Ibe82e7fed8d6e57291e0c009fb26ce156e66eee7
2017-04-01 13:14:20 -07:00
Chris Wren
fb54aee325 Merge "move network notification IDs to central registry" into oc-dev 2017-04-01 16:15:34 +00:00
Jakub Pawlowski
187e0108ff Merge changes from topic 'bt5-cherry-pickery-1' into oc-dev
* changes:
  Bluetooth 5 advertising duration refactoring (4/4)
  Bluetooth LE Advertising minor improvements
  Fix advertise data size estimation
  Hide periodic scanning
  Bluetooth API spelling fixes ("wether" -> "whether")
2017-04-01 15:28:34 +00:00
Jakub Pawlowski
260846b31b Bluetooth 5 advertising duration refactoring (4/4)
Expose both duration and maximum extended advertising events to limit
advertising time.

Test: manual
Bug: 30622771
Change-Id: I44df300995ef985526b93f8c24389775720b3432
(cherry picked from commit 5a355610fe6ac0460f7130375de97b4d7bae7ba4)
2017-03-31 22:47:19 -07:00
Jakub Pawlowski
d89e4ba357 Bluetooth LE Advertising minor improvements
This patch adds some additional error checking for the advertising set
parameters, and some more comments.

Test: manual
Bug: 30622771
Change-Id: I87bd44f4179ef63694ad3ed656dc2acc52e40f1e
(cherry picked from commit f4ed33f5fa6ffa3bda6faff773a3fb90b16a760c)
2017-03-31 22:47:18 -07:00
Jakub Pawlowski
66bf1bd18b Fix advertise data size estimation
UUID in service data field can be 2, 4, or 16 bytes long.

Test: manual
Bug: 36553478
Change-Id: Ib5ba2d16065496ca311e8642a15a7ea6bc84d4c1
(cherry picked from commit 72e9e9f81504559ca18b71358203b1b39d9f0581)
2017-03-31 22:47:18 -07:00
Jakub Pawlowski
a537b3f1f8 Hide periodic scanning
Bug: 30622771
Test: manual
Change-Id: I5d786b13cf99287732e16769e2563ac7c4fe715c
(cherry picked from commit 63fad69a19bbfe78e64d56c9d775ddf6d7cd84c9)
2017-03-31 22:47:17 -07:00
Jakub Pawlowski
f752ace75a Bluetooth API spelling fixes ("wether" -> "whether")
Bug: 30622771
Test: manual
Change-Id: I01c8b18d0057f2fd6e477ce2ca0b779321b6c0e6
(cherry picked from commit 08ed924d8922eec0555f6a860d80e6e2770c8a2d)
2017-03-31 22:47:16 -07:00
TreeHugger Robot
28119285e8 Merge "Revert "Layoutlib changes to support the new ResourceUrl"" into oc-dev 2017-04-01 05:31:05 +00:00
Bryce Lee
7566d76c61 Add app bounds to configuration.
The system previously overrode the display size for a specific scope
(task/activity/etc.) by setting the associated Configuration's
screenWidthDp/screenHeightDp. This leads to two issues. First, the
conversion of screen size from pixels to display independent pixels
and then upconverting later on leads to rounding errors. Secondly,
the screenWidthDp and screenHeightDp values account for insets, such
as the status bar. These however are not reflected in the display
size when returned from Display#getMetrics/getSize.

This changelist addresses the issue by adding a Rect value to
Configuration which stores the app display bounds. This is always set
at the display level and overridden as appropriate. As the proper
app insets are accounted for at the root configuration, all overrides
(outside of specific exceptions) are the result of the intersection
between the requested bound and the parent bound.

Change-Id: I2c4fcd0bee92af12aabbca258de05b4ec061d0e1
Fixes: 34338931
Bug: 36812336
Bug: 36676979
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsAppTestCases android.app.cts.AspectRatioTests
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerDisplayTests
Test: bit FrameworksServicesTests:com.android.server.wm.AppBoundsTests
2017-03-31 21:34:30 -07:00
TreeHugger Robot
81b292abdf Merge changes from topic 'bitmapfactory-options-outdecodecolorspace' into oc-dev
* changes:
  Documentation for PorterDuffXfermode
  Query color space before decoding a bitmap
2017-04-01 04:17:48 +00:00
TreeHugger Robot
2579ec1b6d Merge "Fix tuner sub-screens attach" into oc-dev 2017-04-01 04:16:40 +00:00