OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "IpConn metrics: add times to DHCP bound state" into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 09:06:44 +0000 (09:06 +0000)]
Merge "IpConn metrics: add times to DHCP bound state" into nyc-mr1-dev

8 years agoMerge "Prepare to delete useless loop in handleReleaseNetworkRequest." into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 07:33:06 +0000 (07:33 +0000)]
Merge "Prepare to delete useless loop in handleReleaseNetworkRequest." into nyc-mr1-dev

8 years agoIpConn metrics: add times to DHCP bound state
Hugo Benichi [Thu, 7 Jul 2016 02:28:54 +0000 (11:28 +0900)]
IpConn metrics: add times to DHCP bound state

This patch adds DhcpClientEvent logging for:
 - time from init state to bound state
 - time from bound state to bound state when renewing

Example:
ConnectivityMetricsEvent(12:04:33.353, 0, 0): DhcpClientEvent(wlan0, WaitBeforeStartState, 94ms)
ConnectivityMetricsEvent(12:04:35.772, 0, 0): DhcpClientEvent(wlan0, DhcpInitState, 2417ms)
ConnectivityMetricsEvent(12:04:35.787, 0, 0): DhcpClientEvent(wlan0, DhcpRequestingState, 15ms)
ConnectivityMetricsEvent(12:04:35.793, 0, 0): DhcpClientEvent(wlan0, ConfiguringInterfaceState, 6ms)
ConnectivityMetricsEvent(12:04:35.811, 0, 0): DhcpClientEvent(wlan0, InitialBoundState, 2457ms)
ConnectivityMetricsEvent(12:05:35.791, 0, 0): DhcpClientEvent(wlan0, DhcpBoundState, 59998ms)
ConnectivityMetricsEvent(12:05:35.988, 0, 0): DhcpClientEvent(wlan0, WaitBeforeRenewalState, 196ms)
ConnectivityMetricsEvent(12:05:36.003, 0, 0): DhcpClientEvent(wlan0, DhcpRenewingState, 15ms)
ConnectivityMetricsEvent(12:05:36.010, 0, 0): DhcpClientEvent(wlan0, RenewingBoundState, 219ms)

Change-Id: I2540dd102a6509dff55936e38015265659b20760

8 years agoPrepare to delete useless loop in handleReleaseNetworkRequest.
Lorenzo Colitti [Wed, 6 Jul 2016 10:04:26 +0000 (19:04 +0900)]
Prepare to delete useless loop in handleReleaseNetworkRequest.

As explained in the TODO, the loop serves no purpose since only
one network can be satisfying a given request at a time.

Instead of looping, look up the nai in the mNetworkForRequestId
array that exists for this purpose.

Keep the loop around with an Slog.wtf statement on it so we can
see if we ever hit it, and add a TODO to delete it if we don't.

Bug: 23113288
Change-Id: I173de4bd45c5a4169b7a062a981f2ecccaa44143

8 years agoMerge "Enable the demo launcher package as well." into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 03:19:22 +0000 (03:19 +0000)]
Merge "Enable the demo launcher package as well." into nyc-mr1-dev

8 years agoMerge "Revert "Fix navigation bar order in seascape"" into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 02:28:05 +0000 (02:28 +0000)]
Merge "Revert "Fix navigation bar order in seascape"" into nyc-mr1-dev

8 years agoDO NOT MERGE revert system api loadSafeLabel am: 863ac471cf am: 92b8cbd472 am: b4849f...
fionaxu [Thu, 7 Jul 2016 02:03:11 +0000 (02:03 +0000)]
DO NOT MERGE revert system api loadSafeLabel am: 863ac471cf am: 92b8cbd472 am: b4849f8d74  -s ours am: d061c3abfa am: f6923d2993 am: 50904bedb5 am: aad33e6905  -s ours
am: c8a7fd0502

Change-Id: Idbfa5313542afff71e8756e6ef65550bfc48c2bd

8 years agoDO NOT MERGE revert system api loadSafeLabel am: 863ac471cf am: 92b8cbd472 am: b4849f...
fionaxu [Thu, 7 Jul 2016 01:55:16 +0000 (01:55 +0000)]
DO NOT MERGE revert system api loadSafeLabel am: 863ac471cf am: 92b8cbd472 am: b4849f8d74  -s ours am: d061c3abfa am: f6923d2993 am: 50904bedb5
am: aad33e6905  -s ours

Change-Id: I8de53f5fa9e45bb5b39eb9d2cd3901f49850e93f

8 years agoDO NOT MERGE revert system api loadSafeLabel am: 863ac471cf am: 92b8cbd472 am: b4849f...
fionaxu [Thu, 7 Jul 2016 01:47:45 +0000 (01:47 +0000)]
DO NOT MERGE revert system api loadSafeLabel am: 863ac471cf am: 92b8cbd472 am: b4849f8d74  -s ours am: d061c3abfa am: f6923d2993
am: 50904bedb5

Change-Id: I733cc2b3421780398a2a764748c9d9155c39327b

8 years agoEnable the demo launcher package as well.
Sudheer Shanka [Thu, 7 Jul 2016 00:49:37 +0000 (17:49 -0700)]
Enable the demo launcher package as well.

Bug: 29922954
Change-Id: I81ad01d9ca5e3505df716bde2506e0f1e7f7a6b7

8 years agoDO NOT MERGE revert system api loadSafeLabel am: 863ac471cf am: 92b8cbd472 am: b4849f...
fionaxu [Thu, 7 Jul 2016 01:39:09 +0000 (01:39 +0000)]
DO NOT MERGE revert system api loadSafeLabel am: 863ac471cf am: 92b8cbd472 am: b4849f8d74  -s ours am: d061c3abfa
am: f6923d2993

Change-Id: If22f635f2e4cf0a3ce79ef6916abe3cb60c6b419

8 years agoDO NOT MERGE revert system api loadSafeLabel am: 863ac471cf am: 92b8cbd472 am: b4849f...
fionaxu [Thu, 7 Jul 2016 01:32:07 +0000 (01:32 +0000)]
DO NOT MERGE revert system api loadSafeLabel am: 863ac471cf am: 92b8cbd472 am: b4849f8d74  -s ours
am: d061c3abfa

Change-Id: Ia6af0a650e4fe0afdcf56ecee7473be2cdef7b32

8 years agoMerge "Merge \\\\\"DO NOT MERGE revert system api loadSafeLabel\\\\\" into mnc-dev...
Android Build Merger (Role) [Thu, 7 Jul 2016 01:26:32 +0000 (01:26 +0000)]
Merge "Merge \\\\\"DO NOT MERGE revert system api loadSafeLabel\\\\\" into mnc-dev am: d2e2288fe3 am: 59fc768893 am: 69a071e55c am: e5643a13c4  -s ours am: ea5f6a74c0" into nyc-mr1-dev

8 years agoMerge "Merge \"remove \"referenceonly\" flag from the offline-docs build. Add new...
Android Build Merger (Role) [Thu, 7 Jul 2016 01:26:21 +0000 (01:26 +0000)]
Merge "Merge \"remove \"referenceonly\" flag from the offline-docs build. Add new offline-docs-referenceonly make rule. And update online-sdk and offline-sdk to use the new site templates.\" into nyc-dev am: 83f71845af" into nyc-mr1-dev

8 years agoMerge "Merge \"Use proper lock when accessing the generation registry\" into nyc...
Android Build Merger (Role) [Thu, 7 Jul 2016 01:26:12 +0000 (01:26 +0000)]
Merge "Merge \"Use proper lock when accessing the generation registry\" into nyc-dev am: dcf2e205bf" into nyc-mr1-dev

8 years agoMerge "Merge \"Make registerDefaultNetwork work on metered networks.\" into nyc-dev...
Android Build Merger (Role) [Thu, 7 Jul 2016 01:26:03 +0000 (01:26 +0000)]
Merge "Merge \"Make registerDefaultNetwork work on metered networks.\" into nyc-dev am: 33cdc4d136  -s ours" into nyc-mr1-dev

8 years agoMerge \\\\\"DO NOT MERGE revert system api loadSafeLabel\\\\\" into mnc-dev am: d2e22...
fionaxu [Thu, 7 Jul 2016 01:25:21 +0000 (01:25 +0000)]
Merge \\\\\"DO NOT MERGE revert system api loadSafeLabel\\\\\" into mnc-dev am: d2e2288fe3 am: 59fc768893 am: 69a071e55c am: e5643a13c4  -s ours
am: ea5f6a74c0

Change-Id: I2b35540b9d12712aa80149d54a9c35203e35a84e

8 years agoMerge \"remove \"referenceonly\" flag from the offline-docs build. Add new offline...
smain@google.com [Thu, 7 Jul 2016 01:25:11 +0000 (01:25 +0000)]
Merge \"remove \"referenceonly\" flag from the offline-docs build. Add new offline-docs-referenceonly make rule. And update online-sdk and offline-sdk to use the new site templates.\" into nyc-dev
am: 83f71845af

Change-Id: Iee22aa299a11517f6c0efb73b57d5d256c8148c1

8 years agoMerge \"Use proper lock when accessing the generation registry\" into nyc-dev
Svet Ganov [Thu, 7 Jul 2016 01:25:04 +0000 (01:25 +0000)]
Merge \"Use proper lock when accessing the generation registry\" into nyc-dev
am: dcf2e205bf

Change-Id: I00b1a6aba01fd9155e4b0db17e9bd65d31425489

8 years agoMerge \"Make registerDefaultNetwork work on metered networks.\" into nyc-dev
Lorenzo Colitti [Thu, 7 Jul 2016 01:24:58 +0000 (01:24 +0000)]
Merge \"Make registerDefaultNetwork work on metered networks.\" into nyc-dev
am: 33cdc4d136  -s ours

Change-Id: Iacee53c01e7de163e677ab57bc2d7044f8aff952

8 years agoMerge "Switch network cycle calculation to use Calendar." into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 01:23:57 +0000 (01:23 +0000)]
Merge "Switch network cycle calculation to use Calendar." into nyc-mr1-dev

8 years agoDO NOT MERGE revert system api loadSafeLabel am: 863ac471cf am: 92b8cbd472
fionaxu [Thu, 7 Jul 2016 01:20:29 +0000 (01:20 +0000)]
DO NOT MERGE revert system api loadSafeLabel am: 863ac471cf am: 92b8cbd472
am: b4849f8d74  -s ours

Change-Id: Id3089485c93309a4d1ee97e12aeda63c015f397a

8 years agoDO NOT MERGE revert system api loadSafeLabel am: 863ac471cf
fionaxu [Thu, 7 Jul 2016 01:13:47 +0000 (01:13 +0000)]
DO NOT MERGE revert system api loadSafeLabel am: 863ac471cf
am: 92b8cbd472

Change-Id: Ie23b6f96b4d624469f842c8822dc78f83c2d9714

8 years agoDO NOT MERGE revert system api loadSafeLabel
fionaxu [Thu, 7 Jul 2016 01:07:43 +0000 (01:07 +0000)]
DO NOT MERGE revert system api loadSafeLabel
am: 863ac471cf

Change-Id: I9230b78b2e1ac29cfd76db00be0c31e690566ac7

8 years agoRevert "Fix navigation bar order in seascape"
Jorim Jaggi [Thu, 7 Jul 2016 00:34:28 +0000 (00:34 +0000)]
Revert "Fix navigation bar order in seascape"

This reverts commit 27315acfbbf9921e760647e2e96e74ec7de6015a.

Change-Id: I680f44eaca7813633d7c251ff0bb9c62f94d1fc5

8 years agoMerge "Fixing app transition due to left-nav bar inset." into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 00:30:38 +0000 (00:30 +0000)]
Merge "Fixing app transition due to left-nav bar inset." into nyc-mr1-dev

8 years agoMerge "Move phone number formatting logic into DeviceInfoUtils." into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 00:14:07 +0000 (00:14 +0000)]
Merge "Move phone number formatting logic into DeviceInfoUtils." into nyc-mr1-dev

8 years agoDO NOT MERGE revert system api loadSafeLabel
fionaxu [Thu, 30 Jun 2016 22:59:55 +0000 (15:59 -0700)]
DO NOT MERGE revert system api loadSafeLabel

Bug: 28557603
Change-Id: Ib2dd0fc19217655a4d6b49cdf49ce36dfd6577d5

8 years agoMerge \\\\"DO NOT MERGE revert system api loadSafeLabel\\\\" into mnc-dev am: d2e2288...
Chen Xu [Wed, 6 Jul 2016 23:42:41 +0000 (23:42 +0000)]
Merge \\\\"DO NOT MERGE revert system api loadSafeLabel\\\\" into mnc-dev am: d2e2288fe3 am: 59fc768893 am: 69a071e55c
am: e5643a13c4  -s ours

Change-Id: I68bfaeedf5290ea792aa0570e68e24d0d6dada11

8 years agoMerge \\\"DO NOT MERGE revert system api loadSafeLabel\\\" into mnc-dev am: d2e2288fe...
fionaxu [Wed, 6 Jul 2016 23:36:00 +0000 (23:36 +0000)]
Merge \\\"DO NOT MERGE revert system api loadSafeLabel\\\" into mnc-dev am: d2e2288fe3 am: 59fc768893
am: 69a071e55c

Change-Id: If59d61dfdc00f740ffcf8fbe5233b191eb03a797

8 years agoMerge \\"DO NOT MERGE revert system api loadSafeLabel\\" into mnc-dev am: d2e2288fe3
Chen Xu [Wed, 6 Jul 2016 23:29:51 +0000 (23:29 +0000)]
Merge \\"DO NOT MERGE revert system api loadSafeLabel\\" into mnc-dev am: d2e2288fe3
am: 59fc768893

Change-Id: I1eeb704e6b0a29e3574e969649ba72bbb5d9a9c2

8 years agoMerge \"DO NOT MERGE revert system api loadSafeLabel\" into mnc-dev
fionaxu [Wed, 6 Jul 2016 23:24:04 +0000 (23:24 +0000)]
Merge \"DO NOT MERGE revert system api loadSafeLabel\" into mnc-dev
am: d2e2288fe3

Change-Id: If7bb704d5d6ae942b7ceac3e9f22acf4cf3a7b4b

8 years agoMerge "Add callbacks to VoiceInteractionManagerService" into nyc-mr1-dev
Annie Chin [Wed, 6 Jul 2016 23:22:09 +0000 (23:22 +0000)]
Merge "Add callbacks to VoiceInteractionManagerService" into nyc-mr1-dev

8 years agoMerge "DO NOT MERGE revert system api loadSafeLabel" into mnc-dev
Chen Xu [Wed, 6 Jul 2016 23:16:53 +0000 (23:16 +0000)]
Merge "DO NOT MERGE revert system api loadSafeLabel" into mnc-dev

8 years agoSwitch network cycle calculation to use Calendar.
Jeff Sharkey [Wed, 6 Jul 2016 23:11:48 +0000 (17:11 -0600)]
Switch network cycle calculation to use Calendar.

The older Time class is deprecated and doesn't handle edge cases
very well.  So migrate the cycle calculation logic to use the
long-standing and well-supported Calendar API.

Bug: 28689087
Change-Id: Ic1802b3f8556402f99bfea4cd625c35dfed81ac0

8 years agoMerge "Capture fingerprint statistics for estimating FRR" into nyc-mr1-dev
TreeHugger Robot [Wed, 6 Jul 2016 23:00:17 +0000 (23:00 +0000)]
Merge "Capture fingerprint statistics for estimating FRR" into nyc-mr1-dev

8 years agoMerge "remove "referenceonly" flag from the offline-docs build. Add new offline-docs...
Scott Main [Wed, 6 Jul 2016 22:48:01 +0000 (22:48 +0000)]
Merge "remove "referenceonly" flag from the offline-docs build. Add new offline-docs-referenceonly make rule. And update online-sdk and offline-sdk to use the new site templates." into nyc-dev

8 years agoMerge "Add getters for ButtonDispatcher HomeButton and its views" into nyc-mr1-dev
Annie Chin [Wed, 6 Jul 2016 22:36:35 +0000 (22:36 +0000)]
Merge "Add getters for ButtonDispatcher HomeButton and its views" into nyc-mr1-dev

8 years agoMerge "Allow preference theming to remove divider." into nyc-mr1-dev
Michael Kwan [Wed, 6 Jul 2016 22:34:28 +0000 (22:34 +0000)]
Merge "Allow preference theming to remove divider." into nyc-mr1-dev

8 years agoFixing app transition due to left-nav bar inset.
Winson [Wed, 6 Jul 2016 22:24:15 +0000 (15:24 -0700)]
Fixing app transition due to left-nav bar inset.

- Also center in available space regardless of which side the bar inset
  is on.

Bug: 29917174
Change-Id: If84dfb3bbff3c3d3de70473c74f5bfc5a8f32a59

8 years agoMove phone number formatting logic into DeviceInfoUtils.
Fan Zhang [Wed, 6 Jul 2016 19:19:34 +0000 (12:19 -0700)]
Move phone number formatting logic into DeviceInfoUtils.

Bug: 28419411
Change-Id: Ib9a0ad60d44e4e24fdb6484d5bb582f4f796f8b3

8 years agoMerge "Use proper lock when accessing the generation registry" into nyc-dev
Svetoslav Ganov [Wed, 6 Jul 2016 22:10:08 +0000 (22:10 +0000)]
Merge "Use proper lock when accessing the generation registry" into nyc-dev

8 years agoCapture fingerprint statistics for estimating FRR
Jim Miller [Wed, 6 Jul 2016 21:16:49 +0000 (14:16 -0700)]
Capture fingerprint statistics for estimating FRR

Fixes bug 29258254

Change-Id: I10620c9bf07e4cdd7df456548b6516b5e1f1f5ee

8 years agoMerge "Skip screenshots when user storage is locked." into nyc-mr1-dev
TreeHugger Robot [Wed, 6 Jul 2016 20:54:02 +0000 (20:54 +0000)]
Merge "Skip screenshots when user storage is locked." into nyc-mr1-dev

8 years agoMerge "Don't cache external storage directories." into nyc-mr1-dev
TreeHugger Robot [Wed, 6 Jul 2016 20:47:50 +0000 (20:47 +0000)]
Merge "Don't cache external storage directories." into nyc-mr1-dev

8 years agoMerge "Ignore serial number checks when emulating FBE." into nyc-mr1-dev
Jeff Sharkey [Wed, 6 Jul 2016 20:39:42 +0000 (20:39 +0000)]
Merge "Ignore serial number checks when emulating FBE." into nyc-mr1-dev

8 years agoMerge "Make registerDefaultNetwork work on metered networks." into nyc-dev
Pankaj Kanwar [Wed, 6 Jul 2016 20:35:22 +0000 (20:35 +0000)]
Merge "Make registerDefaultNetwork work on metered networks." into nyc-dev

8 years agoMerge "Move the MIME type icon detection into the platform." into nyc-mr1-dev
Daniel Nishi [Wed, 6 Jul 2016 19:54:26 +0000 (19:54 +0000)]
Merge "Move the MIME type icon detection into the platform." into nyc-mr1-dev

8 years agoUse proper lock when accessing the generation registry
Svet Ganov [Wed, 6 Jul 2016 19:16:53 +0000 (12:16 -0700)]
Use proper lock when accessing the generation registry

We use 'this' for synchronization in NameValueCache but some code
that accesses the generation registry uses 'this' in a different
context ending up syncing on the wrong instance. This is why
sync on this is just a bad idea.

bug:29956424

Change-Id: Ide2d4f07a5f40cb3f0e8f50e4c8de216d15a31ee

8 years agoMerge "Frameworks/base: Refactor UserHandle and Environment a bit" into nyc-mr1-dev
TreeHugger Robot [Wed, 6 Jul 2016 19:45:14 +0000 (19:45 +0000)]
Merge "Frameworks/base: Refactor UserHandle and Environment a bit" into nyc-mr1-dev

8 years agoMerge "Fix: DatePicker can't show long date string at landscape" into nyc-mr1-dev
Alan Viverette [Wed, 6 Jul 2016 19:33:19 +0000 (19:33 +0000)]
Merge "Fix: DatePicker can't show long date string at landscape" into nyc-mr1-dev

8 years agoMerge "Log as histogram instead of counter" into nyc-mr1-dev
Amith Yamasani [Wed, 6 Jul 2016 18:09:54 +0000 (18:09 +0000)]
Merge "Log as histogram instead of counter" into nyc-mr1-dev

8 years agoFrameworks/base: Refactor UserHandle and Environment a bit
Andreas Gampe [Wed, 15 Jun 2016 00:13:37 +0000 (17:13 -0700)]
Frameworks/base: Refactor UserHandle and Environment a bit

Refactor slightly to forbid using myUserId in the zygote (uid == 0).
Also factor Environment to put user data (vs shared data) into its
own class, which should keep the page the shared data is on actually
shared between processes.

Bug: 29338430
Change-Id: I05d1306b57658a83299e38076171f56cb364ea80

8 years agoMerge "Don't bridge autobundle summaries to other devices." into nyc-mr1-dev
Julia Reynolds [Wed, 6 Jul 2016 18:03:35 +0000 (18:03 +0000)]
Merge "Don't bridge autobundle summaries to other devices." into nyc-mr1-dev

8 years agoMove the MIME type icon detection into the platform.
Daniel Nishi [Thu, 30 Jun 2016 19:20:41 +0000 (12:20 -0700)]
Move the MIME type icon detection into the platform.

This allows the MIME type icons to be used in other system apps.
In this instance, the StorageManager app needs to show file icons
for a given file. By moving the icon mapping into a static library,
we can avoid duplicating the mapping and resources.

Bug: 29826961
Change-Id: Ic2dc7970cc5a5ca430e33425eb9f1ecbd733fe9a

8 years agoMerge "Grant location permission to camera app." into nyc-mr1-dev
Sudheer Shanka [Wed, 6 Jul 2016 17:05:39 +0000 (17:05 +0000)]
Merge "Grant location permission to camera app." into nyc-mr1-dev

8 years agoMerge "Update isValidLockdownProfile to block PPTP" into nyc-mr1-dev
Robin Lee [Wed, 6 Jul 2016 15:57:20 +0000 (15:57 +0000)]
Merge "Update isValidLockdownProfile to block PPTP" into nyc-mr1-dev

8 years agoDon't bridge autobundle summaries to other devices.
Julia Reynolds [Wed, 6 Jul 2016 14:45:05 +0000 (10:45 -0400)]
Don't bridge autobundle summaries to other devices.

Change-Id: I2d0df16b2fbd32569e564399696c86e499910ddb
Fixes: 29114754

8 years agoFix: DatePicker can't show long date string at landscape
Alan Viverette [Wed, 6 Jul 2016 14:24:11 +0000 (10:24 -0400)]
Fix: DatePicker can't show long date string at landscape

maxLines="2" is not enough for some languages. Date string is
cut down at landscape. There is a room for additional 2 lines.
maxLines="4" is reasonable.

Bug: 29732198

Change-Id: I312d7ca7f8bf3f4c09dd76fa99274a7f7592bd22

8 years agoMerge "[net mgmt svc] add method to retrieve INetd reference" into nyc-mr1-dev
TreeHugger Robot [Wed, 6 Jul 2016 13:09:41 +0000 (13:09 +0000)]
Merge "[net mgmt svc] add method to retrieve INetd reference" into nyc-mr1-dev

8 years ago[net mgmt svc] add method to retrieve INetd reference
Erik Kline [Tue, 5 Jul 2016 02:34:21 +0000 (11:34 +0900)]
[net mgmt svc] add method to retrieve INetd reference

Bug: 21859053
Bug: 28135208
Change-Id: Idfb5ca65788ae8c7aea91f12d9d461686ad836d6

8 years agoUpdate isValidLockdownProfile to block PPTP
Robin Lee [Wed, 6 Jul 2016 09:30:04 +0000 (10:30 +0100)]
Update isValidLockdownProfile to block PPTP

Since this isn't supported and it will take a framework update to make
it work.

Bug: 28807474
Change-Id: I12371134a1c51a53af26fe8c4db1f04b0f687abe

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr1-dev
TreeHugger Robot [Wed, 6 Jul 2016 04:14:45 +0000 (04:14 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev

8 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 6 Jul 2016 03:49:51 +0000 (03:49 +0000)]
Import translations. DO NOT MERGE
am: 4c78b8e544  -s ours

Change-Id: Iccd725b45dc4a9e128bad1a7a28a48558eee4ea1

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr1-dev
TreeHugger Robot [Wed, 6 Jul 2016 03:21:07 +0000 (03:21 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr1-dev

8 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 6 Jul 2016 02:37:55 +0000 (19:37 -0700)]
Import translations. DO NOT MERGE

Change-Id: If1956ac983530432b46246ee0a53bfdccd81fcb1
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 5 Jul 2016 21:35:11 +0000 (14:35 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ic110e666b92152c5280d96f51129c7ba0b53ef2e
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 5 Jul 2016 21:21:42 +0000 (14:21 -0700)]
Import translations. DO NOT MERGE

Change-Id: I95cfccce32e6cb1431bc2d700573b73f5f983210
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 5 Jul 2016 21:07:10 +0000 (14:07 -0700)]
Import translations. DO NOT MERGE

Change-Id: Idf9776c5e49200e5880dd16b81e43ae095471caa
Auto-generated-cl: translation import

8 years agoMerge "IpConn metrics: use @IntDef" into nyc-mr1-dev
TreeHugger Robot [Tue, 5 Jul 2016 14:39:46 +0000 (14:39 +0000)]
Merge "IpConn metrics: use @IntDef" into nyc-mr1-dev

8 years agoIpConn metrics: use @IntDef
Hugo Benichi [Mon, 4 Jul 2016 02:28:05 +0000 (11:28 +0900)]
IpConn metrics: use @IntDef

Change-Id: Iae23f04abd3d1a43e7217f4fd641cd5fa61a7a1b

8 years agoMerge "IpConn metrics: correctly read RA lifetimes" into nyc-mr1-dev
Hugo Benichi [Tue, 5 Jul 2016 12:25:54 +0000 (12:25 +0000)]
Merge "IpConn metrics: correctly read RA lifetimes" into nyc-mr1-dev

8 years agoIpConn metrics: add dhcp transition times
Hugo Benichi [Fri, 1 Jul 2016 01:06:56 +0000 (10:06 +0900)]
IpConn metrics: add dhcp transition times

This patch adds lifetime durations of DhcpClient states to
DhcpClientEvents.

To record the duration of a state, the event is now recorded when the
DhcpClient state machine exits that state.

In addition this patch removes event logging of StoppedState,
DhcpState and DhcpHaveLeaseState.

Change-Id: Ibd37b5e3070f35113b6b45942b1e1ff19c27a90b

8 years agoIpConn metrics: correctly read RA lifetimes
Hugo Benichi [Mon, 4 Jul 2016 00:22:30 +0000 (09:22 +0900)]
IpConn metrics: correctly read RA lifetimes

This patch
  - adds a Builder class for RaEvent.
  - uses this Builder class for correctly recording the minimum
    lifetime seen for every ICMP6 options tracked, instead of
    recording the last lifetime seen.
  - adds unit test coverage for RaEvent logging.

Change-Id: I6443932f5cf7a613a5c695c65a60eab01e60602a

8 years agoMerge "Add test coverage for a bug in the lingering code." into nyc-mr1-dev
TreeHugger Robot [Tue, 5 Jul 2016 03:35:39 +0000 (03:35 +0000)]
Merge "Add test coverage for a bug in the lingering code." into nyc-mr1-dev

8 years agoMerge "Unbreak unregisterNetworkCallback." into nyc-mr1-dev
Lorenzo Colitti [Tue, 5 Jul 2016 02:07:04 +0000 (02:07 +0000)]
Merge "Unbreak unregisterNetworkCallback." into nyc-mr1-dev

8 years agoUnbreak unregisterNetworkCallback.
Lorenzo Colitti [Mon, 4 Jul 2016 16:22:13 +0000 (01:22 +0900)]
Unbreak unregisterNetworkCallback.

http://ag/1194313 broke unregisterNetworkCallback because the
system does not parcel the type of the request back to the app.
So when the app calls unregisterNetworkCallback, the
NetworkRequest that's passed in does not have a type and thus
doesn't match the request in mNetworkRequests.

Fix this by parceling over the type as well.

This was not caught by the unit test because the unit test all
runs in the same process with no parceling.

Bug: 23113288
Change-Id: I58b2ed651b9bf5cbdcca5b25c3ca24db53cffdf1

8 years agoMerge "Annotate public methods in ConnectivityService." into nyc-mr1-dev
TreeHugger Robot [Mon, 4 Jul 2016 16:07:32 +0000 (16:07 +0000)]
Merge "Annotate public methods in ConnectivityService." into nyc-mr1-dev

8 years agoMake registerDefaultNetwork work on metered networks.
Lorenzo Colitti [Fri, 1 Jul 2016 04:20:10 +0000 (13:20 +0900)]
Make registerDefaultNetwork work on metered networks.

Bug: 29927488
Change-Id: I3b705c2ab0d1493546ffa5185bb5b07d5e25c897

8 years agoAdd test coverage for a bug in the lingering code.
Lorenzo Colitti [Mon, 4 Jul 2016 07:24:16 +0000 (16:24 +0900)]
Add test coverage for a bug in the lingering code.

Bug: 23113288
Change-Id: I573ee5908b9d973931234eb7d2db8ea0aaa4b31e

8 years agoAnnotate public methods in ConnectivityService.
Lorenzo Colitti [Mon, 4 Jul 2016 03:55:44 +0000 (12:55 +0900)]
Annotate public methods in ConnectivityService.

Ensure every public method is annotated with why it's public.
This can be either an @Override or @VisibleForTesting annotation
or a comment explaining why it's public.

Bug: 29927488
Change-Id: I3582aef7997dc0d723718ca5e3dd115647d22979

8 years agoAllow preference theming to remove divider.
Michael Kwan [Sun, 3 Jul 2016 02:31:32 +0000 (19:31 -0700)]
Allow preference theming to remove divider.

Bug: 27962897
Change-Id: I6632f2a3c3d1290c472594f127ad33c9b85023f1

8 years agoMerge "Update DocumentsUI to use theme colors." into nyc-mr1-dev
Andrew Sapperstein [Sat, 2 Jul 2016 02:57:21 +0000 (02:57 +0000)]
Merge "Update DocumentsUI to use theme colors." into nyc-mr1-dev

8 years agoGrant location permission to camera app.
Sudheer Shanka [Sat, 2 Jul 2016 01:19:00 +0000 (18:19 -0700)]
Grant location permission to camera app.

Change-Id: I9c73a0232e9fdc7043321b35a2721603dced8789
Fixes: 29911953

8 years agoUpdate DocumentsUI to use theme colors.
Andrew Sapperstein [Sat, 2 Jul 2016 00:59:07 +0000 (17:59 -0700)]
Update DocumentsUI to use theme colors.

Properly assigns the app's colors for primary, primaryDark, accent, etc
to the colors used by the framework.

Moves a couple colors that are alternate shades of the accent color
into the framework for ease of overlaying.

Deletes a few unused colors as well.

Finally, fixes a bug where colorControlActivated was not being
properly set due to the theme depending upon AppCompat. To
workaround this undefined behavior, we explicitly set
colorControlActivated to colorAccent which is what the framework
sets it to.

Change-Id: Ie0cba19b1b83a21f65692102df91bf4daf27dc44
Fixes: 29581883

8 years agoMerge \"Docs: Performance final changes\" into nyc-dev
David Friedman [Sat, 2 Jul 2016 00:26:14 +0000 (00:26 +0000)]
Merge \"Docs: Performance final changes\" into nyc-dev
am: 7e8d17d73e

Change-Id: I3ecd311bdd1374cfec29d95c303df70bfa868816

8 years agoMerge "Docs: Performance final changes" into nyc-dev
Joe Fernandez [Sat, 2 Jul 2016 00:15:20 +0000 (00:15 +0000)]
Merge "Docs: Performance final changes" into nyc-dev

8 years agoDocs: Performance final changes
David Friedman [Sat, 2 Jul 2016 00:11:02 +0000 (17:11 -0700)]
Docs: Performance final changes

Change-Id: I50e7a2e7b455ca3032da339e48a217ce713d1c40

8 years agoMerge "Clarify documentation of Display#getSize()" into nyc-mr1-dev
Andrii Kulian [Fri, 1 Jul 2016 23:49:37 +0000 (23:49 +0000)]
Merge "Clarify documentation of Display#getSize()" into nyc-mr1-dev

8 years agoMerge \"docs: performance: Reduce APK Sizes\" into nyc-dev
Eric Schmidt [Fri, 1 Jul 2016 23:26:05 +0000 (23:26 +0000)]
Merge \"docs: performance: Reduce APK Sizes\" into nyc-dev
am: d08b0e9969

Change-Id: If4153a0e3f3845d7640290b511da8c19f977a56f

8 years agoMerge "docs: performance: Reduce APK Sizes" into nyc-dev
Joe Fernandez [Fri, 1 Jul 2016 23:21:34 +0000 (23:21 +0000)]
Merge "docs: performance: Reduce APK Sizes" into nyc-dev

8 years agoMerge "Allow voice interaction window to control system bars" into nyc-mr1-dev
TreeHugger Robot [Fri, 1 Jul 2016 23:16:06 +0000 (23:16 +0000)]
Merge "Allow voice interaction window to control system bars" into nyc-mr1-dev

8 years agoMerge \"Docs: Job-scheduling doc for new DAC Performance section.\" into nyc-dev
David Friedman [Fri, 1 Jul 2016 23:13:31 +0000 (23:13 +0000)]
Merge \"Docs: Job-scheduling doc for new DAC Performance section.\" into nyc-dev
am: 1f64ea546b

Change-Id: Iabdad26cb23d6a318c93218328c5bffc31c515e5

8 years agoMerge \\\\\\\\\"DO NOT MERGE revert public api loadSafeLabel\\\\\\\\\" into lmp-dev...
fionaxu [Fri, 1 Jul 2016 23:08:50 +0000 (23:08 +0000)]
Merge \\\\\\\\\"DO NOT MERGE revert public api loadSafeLabel\\\\\\\\\" into lmp-dev am: 521efcd1e3  -s ours am: 7bd0eea999 am: 0828455ca9 am: caabaab8bc  -s ours am: 67f8e822ac am: f82ca1f3e9 am: 0f741391c3 am: 4000bdb3ea  -s ours
am: 1d5fbe43ab

Change-Id: Id1224508ffee2c49243c958159bea70c14d55b91

8 years agoMerge "Docs: Job-scheduling doc for new DAC Performance section." into nyc-dev
Joe Fernandez [Fri, 1 Jul 2016 23:08:47 +0000 (23:08 +0000)]
Merge "Docs: Job-scheduling doc for new DAC Performance section." into nyc-dev

8 years agoDocs: Job-scheduling doc for new DAC Performance section.
David Friedman [Fri, 1 Jul 2016 00:23:29 +0000 (17:23 -0700)]
Docs: Job-scheduling doc for new DAC Performance section.

Change-Id: Iccdbfcede6774bd7b5e368c53637ca8e194c7ec5

8 years agoMerge \\\\\\\\"DO NOT MERGE revert public api loadSafeLabel\\\\\\\\" into lmp-dev...
Chen Xu [Fri, 1 Jul 2016 23:02:11 +0000 (23:02 +0000)]
Merge \\\\\\\\"DO NOT MERGE revert public api loadSafeLabel\\\\\\\\" into lmp-dev am: 521efcd1e3  -s ours am: 7bd0eea999 am: 0828455ca9 am: caabaab8bc  -s ours am: 67f8e822ac am: f82ca1f3e9 am: 0f741391c3
am: 4000bdb3ea  -s ours

Change-Id: I7a010f957438467d2edfb10a28a364527dac492e

8 years agodocs: performance: Reduce APK Sizes
Eric Schmidt [Fri, 24 Jun 2016 18:30:24 +0000 (11:30 -0700)]
docs: performance: Reduce APK Sizes

Bug: 29152053
Change-Id: I5aa4e7d59c32ef5d6897a47263e055358b1c9dda

8 years agoMerge \\\\\\\"DO NOT MERGE revert public api loadSafeLabel\\\\\\\" into lmp-dev am...
fionaxu [Fri, 1 Jul 2016 22:55:45 +0000 (22:55 +0000)]
Merge \\\\\\\"DO NOT MERGE revert public api loadSafeLabel\\\\\\\" into lmp-dev am: 521efcd1e3  -s ours am: 7bd0eea999 am: 0828455ca9 am: caabaab8bc  -s ours am: 67f8e822ac am: f82ca1f3e9
am: 0f741391c3

Change-Id: I9748b9d7b065a6d2bbd9c2a3061409c58b53d261

8 years agoMerge \\\\\\"DO NOT MERGE revert public api loadSafeLabel\\\\\\" into lmp-dev am...
Chen Xu [Fri, 1 Jul 2016 22:45:46 +0000 (22:45 +0000)]
Merge \\\\\\"DO NOT MERGE revert public api loadSafeLabel\\\\\\" into lmp-dev am: 521efcd1e3  -s ours am: 7bd0eea999 am: 0828455ca9 am: caabaab8bc  -s ours am: 67f8e822ac
am: f82ca1f3e9

Change-Id: Ib714c74aa3bede2bea496204b7d1cb7ff2380dca