Commit Graph

301953 Commits

Author SHA1 Message Date
Bill Yi
0277a42568 Import translations. DO NOT MERGE
Change-Id: I292c850e85d1d11be974bc80ddd0ecd7a66ca557
Auto-generated-cl: translation import
2016-12-21 19:41:35 -08:00
Treehugger Robot
5e055b6a18 Merge "Fix failing WifiNetworkScoreCacheTest." 2016-12-22 03:11:58 +00:00
Hugo Benichi
1edb9a54b3 NetworkNotificationManager: remove spammy log am: 1f0d972efc
am: f294cdeb27

Change-Id: I2b9b1b52e11ddf784244eedf1311f3b015841215
2016-12-22 03:07:19 +00:00
Hugo Benichi
f294cdeb27 NetworkNotificationManager: remove spammy log
am: 1f0d972efc

Change-Id: I01785760854cd040c0d09f76e3832bbb7986dc4e
2016-12-22 03:02:39 +00:00
Bill Yi
c91793989f Import translations. DO NOT MERGE
Change-Id: Ic0448c86f29ed5dbd26909f152fb7712da402c57
Auto-generated-cl: translation import
2016-12-21 18:49:21 -08:00
Bill Yi
4543ac390e Import translations. DO NOT MERGE
Change-Id: I8e8050efa30aa198e2a8b1ba30e17d8bbec8a942
Auto-generated-cl: translation import
2016-12-21 18:26:47 -08:00
Vadim Tryshev
01d8c49e04 Restoring last focused view when teleporting to a cluster.
The UX spec requires each cluster to remember which view was last
focused in it, and focus on it upon the teleportation to this
cluster.

This CL implements saving and restoring the focus.
It also introduces a public API so that an app could switch to a
cluster as if it was teleported to.

Bug: 32151632
Test: Manual checks; CTS are coming after feature freeze.
Change-Id: I0dc816776386015a7f1235f93e3dd9c03dfffcd6
2016-12-21 17:41:33 -08:00
pkanwar
9f47a5d85e DO NOT MERGE: Add API to indicate carrier networks.
Bug: 31003437
Change-Id: I3e3989256588f509c45e50374b8b7168589d6c5d
2016-12-21 17:39:35 -08:00
TreeHugger Robot
1fd9c8d351 Merge "media volume: remove old --set and rename --index to --set" 2016-12-22 01:38:15 +00:00
Svetoslav Ganov
e080da9ee0 Settings recovery support
This change allows the system to perform iterative reset
of changes to settings in order to recover from bad a
state such as a reboot loop.

To enable this we add the notion of a default value. The
default can be set by any package but if the package that
set it is a part of the system, i.e. trusted, then other
packages that are not a part of the system, i.e. untrusted,
cannot change the default. The settings setter APIs that
do not take a default effectively clear the default. Putting
a setting from a system component always makes it the
default and if the package in not trusted then value is
not made the default. The rationale is that the system is
tested and its values are safe but third-party components
are not trusted and their values are not safe.

The reset modes from the least intrusive are: untrusted
defaults - reset only settings set by untrusted components
to their defaults or clear them otherwise; untrusted clear
- clear settings set by untrusted components (or snap to
default if provided by the system); trusted defaults - reset
all settings to defaults set by the system or clear them
otherwise.

Also a package can reset to defaults changes it made to
the global and secure settings. It is also possible to
associate a setting with an optional token which can then
be used to reset settings set by this package and
associated with the token allowing parallel experiments
over disjoint settings subsets.

The default values are also useful for experiment (or
more precisely iterative tuning of devices' behavior in
production) as the stable configuration can be set to
the "graduated" safe defaults and set the values to the
experimental ones to measure impact.

Test: tests pass

Change-Id: I838955ea3bb28337f416ee244dff2fb1199b6943
2016-12-22 01:14:28 +00:00
Hugo Benichi
1f0d972efc NetworkNotificationManager: remove spammy log
Test: build, flashed, booted phone.
Bug: 32198726
Change-Id: I3ac2f07c756f48653195f6198aaee4d8b3939fb5
2016-12-22 09:51:01 +09:00
TreeHugger Robot
0abb3003a1 Merge "Tighter equals/hashCode method checking." 2016-12-22 00:49:12 +00:00
Sundeep Ghuman
0a5b3e2fe9 Fix failing WifiNetworkScoreCacheTest.
There was a NPE thrown by an unintialized mock.

Bug: 33818187
Test: Android unit tests
Change-Id: I478885dcebaf41f93488a6a12bb83652ad462be5
2016-12-21 16:44:46 -08:00
TreeHugger Robot
fa83dea8a2 Merge "Cleanup the evaluateBinding() method." 2016-12-22 00:29:24 +00:00
TreeHugger Robot
9dc0bdeffd Merge "Added metrics constant for new dialog" 2016-12-22 00:28:21 +00:00
TreeHugger Robot
9d2b2dbce7 Merge "Unihiding REFRESH_SUPPORTED and ContentProviderClient#refresh." 2016-12-22 00:24:22 +00:00
TreeHugger Robot
e0bf3393f0 Merge "Use a colorspace when decoding to F16" 2016-12-22 00:21:40 +00:00
Frank Barchard
b6b3030539 media volume: remove old --set and rename --index to --set
The old --set did not take a parameter for volume and was
defaulting to volume index of 5.
The old --index option allowed the user to set the volume to
a specified value.
This CL removes the old --set that had limited usefulness, and
renames --index to --set, so --set now takes a parameter for
volume.
For backward compatibility the --index option is kept around
to allow scripts time to switch to --set

Bug: 33791633
Test: adb shell media volume --set 4
Change-Id: I43a87a878439b3416efa746708b62a869023acdc
2016-12-22 00:18:50 +00:00
Treehugger Robot
425af45d02 Merge "Cherrypick: Define the calculateRankingScore method and Key." 2016-12-22 00:03:57 +00:00
Salvador Martinez
8eb4f62194 Added metrics constant for new dialog
SupportSystemInformationDialogFragment (phew)
needs a metrics constant.

Test: manual
Bug: 32462840
Change-Id: I2943b2537a54d3243759233f96522cd1bbdb5db9
2016-12-21 15:07:37 -08:00
Treehugger Robot
4a04c07df4 Merge changes I40f055df,I562713df
* changes:
  Stay bound to the most current active scorer.
  Clear and restore the calling ID.
2016-12-21 22:58:41 +00:00
Amin Shaikh
a663b4bb06 Merge "Expose ScanResult#untrusted as a @SystemApi." am: a93e57f1ac am: a3943850ab am: 471093b58e
am: 9926363b09  -s ours

Change-Id: I2bb1214df6132f414214241f8e91d9c4b95d7c9a
2016-12-21 22:30:32 +00:00
Adrian Roos
82ac8c11fc Merge "DirectReply: Close if touching outside status bar" into nyc-mr2-dev am: 4869a55f66
am: cca4e6d093

Change-Id: I7098528a169da5282c78158c336780be7ba0c36c
2016-12-21 22:29:25 +00:00
Adrian Roos
7335c8b456 DirectReply: Close if touching outside status bar am: 6d53de63bb
am: e6395f8ac7

Change-Id: Icb978071074bc204365fe7378776ac8377ad02f1
2016-12-21 22:28:29 +00:00
Jeff Sharkey
32eed0e59f Merge "Reconnect to installd when it restarts." am: 48d5d6cda8 am: fe35f0f4f6 am: e286d1b2f8
am: 57c829c291

Change-Id: I6bf169d83de6b9a300f9bb4717660183b1b9e24b
2016-12-21 22:27:30 +00:00
Alan Viverette
3b496a28a0 Add attribute, theme values for error text color
There are currently no clients of this attribute, but that's coming in
a later CL.

Bug: 31440308
Test: n/a theme only
Change-Id: I18a06776d648750638f83ad10566d318d8ef7dd0
2016-12-21 17:27:28 -05:00
Daniel Nishi
09236deb0b Merge "Enable multi-dex for coverage builds to fix breakage" into nyc-mr2-dev am: fbe70a3e93
am: 6c00eb1f31

Change-Id: Ieee5dcff07426c4b55ae33ae8247fd792d622b11
2016-12-21 22:26:32 +00:00
Allen Hair
7abc948483 Enable multi-dex for coverage builds to fix breakage am: 77a51d1274
am: b0d5ade11c  -s ours

Change-Id: I6a76bfd6b5924c2adfe3f4ccfe0ea52be7b983b3
2016-12-21 22:25:23 +00:00
TreeHugger Robot
58ce563afe Merge "Check if device supports HDMI before getting service" 2016-12-21 22:24:19 +00:00
TreeHugger Robot
a090de5c8b Merge "Detect non-static abstract inner classes." 2016-12-21 22:21:17 +00:00
Jiaquan He
87c7b34807 Merge "DO NOT MERGE - Disabled swiping in Grid-based Recents." into nyc-mr2-dev am: b9606a5d09
am: 5887b6d7b5  -s ours

Change-Id: Ib39e4a7ad8d0bb23d895356628df53ad0ca46c47
2016-12-21 22:13:58 +00:00
Jiaquan He
8a010dccf7 DO NOT MERGE - Disabled swiping in Grid-based Recents. am: 620aebabb2
am: 3785f0a2f6  -s ours

Change-Id: I4ef738ca52e6097cb7bc1cb4e841adfdac1d770f
2016-12-21 22:12:52 +00:00
Calin Juravle
9cf3b64e24 Merge "Report non-primary dex files loads to PM" am: f23ea2ca62 am: 78b3889804 am: 9947e79b26
am: 5be781d874  -s ours

Change-Id: I301ce0b9995086f85f0653c4775a54997419b8fc
2016-12-21 22:11:14 +00:00
TreeHugger Robot
055b324db3 Merge "Add page view metrics for new paegs in Settings." 2016-12-21 22:05:35 +00:00
Jean-Michel Trivi
292a6a4e99 Notification of playback activity
AudioService keeps track of status of implementations of PlayerBase.
AudioService's PlaybackActivityMonitor maintains a list of
  playback configurations for each PlayerBase, and a list
  of clients that want to receive updates about the playback.
Playback activity clients can query the playback configuration
  of the system through AudioManager, or register a callback
  for updates. For clients with MODIFY_AUDIO_ROUTING permission
  (system), the playback configurations contain more information
  about each player (player type, uid, pid, state), and can see
  all players, not just the "active" ones. The act of stripping
  off data about the players that is not supposed to be seen
  by non-system clients, is referred to as "anonymization". It
  is implemented in system server, so no system data is ever
  sent to playback activity clients without system permission.
More information about the AudioPlaybackConfiguration is
  available in the SystemApi (uid, pid, player type, player state).

Test: run cts -m CtsMediaTestCases -t android.media.cts.AudioPlaybackConfigurationTest
Bug: 30955183

Change-Id: I85997594c0378216419f5f0fdaa0714996fd3573
2016-12-21 13:58:08 -08:00
Sundeep Ghuman
0d79bdef27 Cherrypick: Define the calculateRankingScore method and Key.
Define the key to be used to store the rankingScoreOffset inside the
ScoredNetwork bundle. Implement a platform API method to calculate the
ranking score for a given rssi.

OCL: ag/1688711

Bug: 33049302
Test: Unit tests
Change-Id: Ia3fea2197d7c211a2313fced8713d79d8d5f4f6e
Merged-In: Ia3fea2197d7c211a2313fced8713d79d8d5f4f6e
Topic: ScoredNetworkRankingScore
2016-12-21 13:57:24 -08:00
Alex Klyubin
abdc2b47b3 Make users of MtpServer fill in DeviceInfo field values
This is part of weaning apps off accessing system identifiers via
system properties API. Apps should use android.os.Build API instead.

Bug: 33700679
Test: Enable MTP mode then check that mtp-detect output same as before this commit
Change-Id: I4e6696cdee18b9c3e987c432c095911e85a997db
2016-12-21 13:56:28 -08:00
TreeHugger Robot
1205974dd7 Merge "Always create grant structures when persistable." 2016-12-21 21:55:49 +00:00
Jeremy Joslin
b1365852cc Stay bound to the most current active scorer.
This fixes the following issue:

1) Scorer A is active and bound.
2) A change occurs to Scorer A such that it is no longer the selected
   scorer.
3) Scorer B is selected as the scorer and returned whenever
   getActiveScorer() is queried.
4) Scorer A is never unbound because it isn't seen as the active
   scorer.
5) Scorer B is never bound until its package changes in some way (or
   the feature is disabled/enabled).

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest + manual testing.
Change-Id: I40f055df472e2b9e7b07e6979a841dd4c0b794ce
Merged-In: I468a8c02a72f089f1fb778d150d945efe5485b88
2016-12-21 13:44:53 -08:00
Jeremy Joslin
29ed4a99bf Clear and restore the calling ID.
Clear and restore the calling identity in IPC methods after asserting
the caller has the required permissions.

Fixed 2 tests in NetworkScoreServiceTest that were failing due to a
recent refactor.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
BUG: 33781319
Change-Id: I562713df3d9455cdc02bf80a687940fb9daecd8f
Merged-In: Icd79751d12dcfe4af8026980aaa1f7bd463468dc
2016-12-21 13:39:10 -08:00
Jeremy Joslin
86c2a5ecb5 Cleanup the evaluateBinding() method.
Small refactor to remove 1 level of nesting.

Test: build, run.
Change-Id: I38836ca9d18c5fcd3c6edf5931b58de3b08614ee
2016-12-21 13:35:02 -08: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
Jeff Sharkey
febd982cdd Merge "Avoid Calendar's unexpect change in snapToCycleDay()" 2016-12-21 21:11:20 +00:00
Matt Sarett
6eebb28b18 Use a colorspace when decoding to F16
A recent change caused us to always pass a color space
to the decoder.  A revert of that change caused us to
never pass a color space to the decoder.

In order to decode to F16 (and pass CTS tests), we
need to pass a color space on decodes to F16.  This
was the "original" behavior before the bad change
and bad revert.

Test: This will allow us to pass CTS.

BUG:33814604

Change-Id: I4e569213f9d4ff5a452149c4b2ee191bf2fe6b0e
2016-12-21 16:10:09 -05:00
TreeHugger Robot
13d0a6bfbb Merge "HardwarePropertiesManagerService: Fixup log message typo" 2016-12-21 21:00:59 +00:00
Jeff Sharkey
40d623e676 Tighter equals/hashCode method checking.
Test: false-positive no longer triggered
Bug: 32721082
Change-Id: I49b6225a7282d0bb84b0dfb4cabe56e9f68186a9
2016-12-21 13:58:42 -07:00
Jeff Sharkey
26c8090647 Detect non-static abstract inner classes.
Test: script detects issue
Bug: 32982018
Change-Id: I4e3521bf603f6272bfe5583e3d4977dd5b59afe8
2016-12-21 13:42:03 -07: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