Commit Graph

301953 Commits

Author SHA1 Message Date
Andrii Kulian
eb4a7943b1 Check if device supports HDMI before getting service
Hdmi control service is created only if device supports
HDMI CEC, so need to check for it before requesting.

Change-Id: I0e2d83514fd3b87e8db0a5e6784fc69377b890cf
Fixes: 33193534
Test: Manual - click home button, check logs for crashes.
2016-12-21 12:18:05 -08: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
Amin Shaikh
9926363b09 Merge "Expose ScanResult#untrusted as a @SystemApi." am: a93e57f1ac am: a3943850ab
am: 471093b58e

Change-Id: I129d3abd329d9e00de1177ca39cf3ce0ff06946b
2016-12-21 20:10:30 +00:00
Adrian Roos
cca4e6d093 Merge "DirectReply: Close if touching outside status bar" into nyc-mr2-dev
am: 4869a55f66

Change-Id: Icab4bdb1181a6b321ba78e954920576d1d79161a
2016-12-21 20:06:14 +00:00
Adrian Roos
e6395f8ac7 DirectReply: Close if touching outside status bar
am: 6d53de63bb

Change-Id: I134abad75cae32c8eb9229ac8aa993f9bd71b667
2016-12-21 20:06:08 +00:00
Amin Shaikh
471093b58e Merge "Expose ScanResult#untrusted as a @SystemApi." am: a93e57f1ac
am: a3943850ab

Change-Id: Id763d2f82e10dd5843258ef09d0e65824e2c2de6
2016-12-21 20:02:03 +00:00
Adrian Roos
4869a55f66 Merge "DirectReply: Close if touching outside status bar" into nyc-mr2-dev 2016-12-21 19:56:42 +00:00
Amin Shaikh
a3943850ab Merge "Expose ScanResult#untrusted as a @SystemApi."
am: a93e57f1ac

Change-Id: I9cac16dbceb36d6ff72e92d2ab8de20bd8d70e36
2016-12-21 19:56:19 +00:00
Treehugger Robot
a93e57f1ac Merge "Expose ScanResult#untrusted as a @SystemApi." 2016-12-21 19:47:32 +00:00
Amin Shaikh
3d18c621cb Expose ScanResult#untrusted as a @SystemApi.
- Expose ScanResult#untrusted to inform NetworkRecommendationProviders
  that a ScanResult does not correspond to a saved network.
- Add static construction methods and assertions to RecommendationResult

Test: runtest frameworks-services

Bug: 33490132
Change-Id: If7006040f63843c1c468c9d95c5c017383c5c5dd
Merged-In: If7006040f63843c1c468c9d95c5c017383c5c5dd
2016-12-21 11:46:22 -08:00
Ben Lin
836f9249b7 Unihiding REFRESH_SUPPORTED and ContentProviderClient#refresh.
Test: Only unhiding previously hidden methods.
Change-Id: Id1731b64b86760d3249855d685d8cb83721596fc
2016-12-21 11:45:33 -08:00
Shunta Sato
d18ffd8223 Avoid Calendar's unexpect change in snapToCycleDay()
Symptom:
Calendar object's certain field is unexpectedly changed after
using Calendar.add() method.

Detail and sample:
Following patch causes this issue.
- Switch network cycle calculation to use Calendar.
  https://android.googlesource.com/platform/frameworks/base/+/f2bead5

Call of Calendar.add() method might make a smaller field value
invariant. The smaller field means such a field of
Calendar.HOUR_OF_DAY, Calendar.MINUTE, Calendar.SECOND and so on
if Calendar.MONTH field is focused.
According to above, sometimes correct Calendar value won't be
acquired by original code.
To avoid unexpected change, it requires initialization toward
each smaller field after Calendar.add() call.

Solutions:
Calendar.DAY_OF_MONTH, Calendar.HOUR_OF_DAY, Calendar.MINUTE,
and Calendar.SECOND fields is set to 0 after added value to
Calendar.MONTH field.

Bug: 32724903
Author: Shigeki Yokomichi <shigeki.x.yokomichi@sonymobile.com>
Change-Id: I7af6391653be21786b662b2f8eaad10c413733c1
2016-12-21 12:44:30 -07: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
Ashutosh Joshi
420e45e9cb Move ContextHubService to a better location.
Move ContextHub service from system core to a more appropriate place
for a service.

Test: GTS tests pass.

Change-Id: Ie0f25414fc472a0214c0dd94e7ad4564cd38f842
2016-12-21 11:33:28 -08:00
Jeff Sharkey
75e7b8c9ee Merge "Finish up API for missing content:// flags." 2016-12-21 19:28:05 +00:00
Jeff Sharkey
57c829c291 Merge "Reconnect to installd when it restarts." am: 48d5d6cda8 am: fe35f0f4f6
am: e286d1b2f8

Change-Id: Ib7ff45fee2865a28e7cb138d9fd418d7a3e50c94
2016-12-21 19:06:21 +00:00
Steven Moreland
520d12c53c HwBinder: fail gracefully for device w/o hwbinder
Test: compiles
Change-Id: I03ffd0d7480c5771634977e30ccf02b39f69f8ba
2016-12-21 11:02:49 -08:00
Jeff Sharkey
e286d1b2f8 Merge "Reconnect to installd when it restarts." am: 48d5d6cda8
am: fe35f0f4f6

Change-Id: I63a78822f4a4c3c4d6e71af721c7a31a5bdba03a
2016-12-21 19:01:55 +00:00
Jeff Sharkey
fe35f0f4f6 Merge "Reconnect to installd when it restarts."
am: 48d5d6cda8

Change-Id: Ib4c4ced58f5963465f1e2d3eb401a8c71624ac12
2016-12-21 18:56:47 +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
Jeff Sharkey
48d5d6cda8 Merge "Reconnect to installd when it restarts." 2016-12-21 18:45:46 +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
6c00eb1f31 Merge "Enable multi-dex for coverage builds to fix breakage" into nyc-mr2-dev
am: fbe70a3e93

Change-Id: I05bf62c7d4b5d0a98b30ed8b8748d6afe919133f
2016-12-21 18:44:14 +00:00
Allen Hair
b0d5ade11c Enable multi-dex for coverage builds to fix breakage
am: 77a51d1274

Change-Id: Ife18d443d4c6a7ffcdb183cee3f7317efafbab38
2016-12-21 18:44:08 +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
Daniel Nishi
fbe70a3e93 Merge "Enable multi-dex for coverage builds to fix breakage" into nyc-mr2-dev 2016-12-21 18:37:29 +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 aa31697424.

Fixes: 33799277
Change-Id: I438e97c6a81512c673f20f6a01d3b9715c2dbf8a
2016-12-21 18:26:21 +00:00
Jiaquan He
5887b6d7b5 Merge "DO NOT MERGE - Disabled swiping in Grid-based Recents." into nyc-mr2-dev
am: b9606a5d09

Change-Id: I3888fc06f40661f73689a71b3db83a52ccbb7c89
2016-12-21 18:18:39 +00:00
Jiaquan He
3785f0a2f6 DO NOT MERGE - Disabled swiping in Grid-based Recents.
am: 620aebabb2

Change-Id: I24914bfe923ec251adff8c931c32398c013ac581
2016-12-21 18:18:34 +00:00
TreeHugger Robot
b9606a5d09 Merge "DO NOT MERGE - Disabled swiping in Grid-based Recents." into nyc-mr2-dev 2016-12-21 18:09:48 +00:00
Shahriyar Amini
676add4122 Allow Settings tiles to use content provider data.
Bug: 31002801
Test: make RunSettingsLibRoboTests

Adds optional metadata fields to specify a URI to a content provider
for reading the tile data.

Change-Id: Idc47eefc067fb9d4832dfbd58171943c29f0a529
2016-12-21 10:01:39 -08: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
Selim Cinek
01ee2cd5c4 Allowing heads-up notifications now on the lock screen
In order to isolate notifications properly from their group
and in order to allow them to visually reorder, we now allow
heads up notifications on the lock screen.

Change-Id: I1d04a92e66ae92ecee4f8ee23b218c2b167dadd4
Test: existing tests pass
Test: add heads up on lockscreen
Test: heads up group child on lockscreen
Bug: 32442500
2016-12-21 18:23:11 +01:00
Allen Hair
77a51d1274 Enable multi-dex for coverage builds to fix breakage
Test: m PRODUCT-bullhead-userdebug showcommands dist EMMA_INSTRUMENT=true EMMA_INSTRUMENT_FRAMEWORK=true SKIP_BOOT_JARS_CHECK=true WITH_DEXPREOPT=false tests
Change-Id: I6a324cbd0dc078ad2903345a069385d9f0d179ff
(cherry picked from commit aeaee4c5fe)
2016-12-21 17:22:33 +00: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
Jeff Sharkey
9f2f2183fc Reconnect to installd when it restarts.
Test: builds, boots, reconnects when installd dies
Bug: 33695164
Change-Id: I29769a111783095f742ad81af779a7403ca52ff3
2016-12-21 09:19:08 -07:00