OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Use visible paths when cleaning up MediaStore." into nyc-mr1-dev
TreeHugger Robot [Fri, 8 Jul 2016 19:01:08 +0000 (19:01 +0000)]
Merge "Use visible paths when cleaning up MediaStore." into nyc-mr1-dev

8 years agoMerge "Revert "Frameworks/base: Refactor UserHandle and Environment a bit"" into...
Andreas Gampe [Fri, 8 Jul 2016 18:09:52 +0000 (18:09 +0000)]
Merge "Revert "Frameworks/base: Refactor UserHandle and Environment a bit"" into nyc-mr1-dev

8 years agoMerge "Updates to the sound trigger test app" into nyc-mr1-dev
Chris Thornton [Fri, 8 Jul 2016 17:47:51 +0000 (17:47 +0000)]
Merge "Updates to the sound trigger test app" into nyc-mr1-dev

8 years agoUse visible paths when cleaning up MediaStore.
Jeff Sharkey [Fri, 8 Jul 2016 17:06:58 +0000 (11:06 -0600)]
Use visible paths when cleaning up MediaStore.

The media scanner always records visible paths, so we need to use
visible paths when cleaning up deleted records.

Bug: 28581384
Change-Id: I8a2c65001216e4a96b2375579363a771de782bcc

8 years agoMerge "Making timeouts configurable through Settings" into nyc-mr1-dev
TreeHugger Robot [Fri, 8 Jul 2016 14:36:33 +0000 (14:36 +0000)]
Merge "Making timeouts configurable through Settings" into nyc-mr1-dev

8 years agoRevert "Frameworks/base: Refactor UserHandle and Environment a bit"
Andreas Gampe [Fri, 8 Jul 2016 03:50:27 +0000 (03:50 +0000)]
Revert "Frameworks/base: Refactor UserHandle and Environment a bit"

Breaks monkey in root mode.

This reverts commit 6e16714c688ed9c52763696f5a5e7b90802a471b.

Bug: 29338430
Change-Id: I238f89dad77d7dcae6d02eccbda52eb9c6c6466c

8 years agoMerge "Add values to ApplicationInfoFlags" into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 23:15:25 +0000 (23:15 +0000)]
Merge "Add values to ApplicationInfoFlags" into nyc-mr1-dev

8 years agoMerge "Fix bug with launching home activity from LockSettingsService" into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 22:32:09 +0000 (22:32 +0000)]
Merge "Fix bug with launching home activity from LockSettingsService" into nyc-mr1-dev

8 years agoUpdates to the sound trigger test app
Chris Thornton [Fri, 1 Jul 2016 05:05:51 +0000 (22:05 -0700)]
Updates to the sound trigger test app

Moved the logic for talking to the system service into a service in the
app - this now lets you close the activity and still be able to receive
events. Additionally, we get CLI support using commands with the intent
com.android.intent.action.MANAGE_SOUND_TRIGGER.

Bug: 29073629

Change-Id: Ie904b73b4414f2c9fded013aeb5e6c6c3a67f5d3

8 years agoAdd values to ApplicationInfoFlags
Todd Kennedy [Thu, 7 Jul 2016 21:29:06 +0000 (14:29 -0700)]
Add values to ApplicationInfoFlags

Need to add MATCH_DISABLED_UNTIL_USED_COMPONENTS [and the deprecated
GET_DISABLED_UNTIL_USED_COMPONENTS] since those are used when building
the ApplicationInfo object.

Bug: 29824931
Change-Id: I09b24427222fed082f0946717826d2e0db857c7a

8 years agoMaking timeouts configurable through Settings
Suprabh Shukla [Wed, 6 Jul 2016 23:32:56 +0000 (16:32 -0700)]
Making timeouts configurable through Settings

Adding a global setting for timeouts used in retail demo mode.
Also renaming the protected intent ACTION_RESET_DEMO to reflect proper
owner package.

Bug: 29917613
Change-Id: I9a174503626ab28cceb5024a8e63d27612439b92

8 years agoMerge "Hide more shortcut APIs" into nyc-mr1-dev
Makoto Onuki [Thu, 7 Jul 2016 20:52:21 +0000 (20:52 +0000)]
Merge "Hide more shortcut APIs" into nyc-mr1-dev

8 years agoMerge \"SoundPool: fix enforced camera shutter sound\" into nyc-dev
Eric Laurent [Thu, 7 Jul 2016 20:49:13 +0000 (20:49 +0000)]
Merge \"SoundPool: fix enforced camera shutter sound\" into nyc-dev
am: a2266f7a0f

Change-Id: Ibb406207b55a532fdb42a68d0787b851deec8d05

8 years agoMerge "API 25 is frozen, so we can't change API." into nyc-mr1-dev
Jeff Sharkey [Thu, 7 Jul 2016 20:41:37 +0000 (20:41 +0000)]
Merge "API 25 is frozen, so we can't change API." into nyc-mr1-dev

8 years agoMerge "Adding debugging for last active time." into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 20:40:36 +0000 (20:40 +0000)]
Merge "Adding debugging for last active time." into nyc-mr1-dev

8 years agoMerge "SoundPool: fix enforced camera shutter sound" into nyc-dev
Eric Laurent [Thu, 7 Jul 2016 20:36:59 +0000 (20:36 +0000)]
Merge "SoundPool: fix enforced camera shutter sound" into nyc-dev

8 years agoMerge "Suppress PRE_BOOT notifications for some profiles." into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 20:31:35 +0000 (20:31 +0000)]
Merge "Suppress PRE_BOOT notifications for some profiles." into nyc-mr1-dev

8 years agoMerge changes from topic 'fifo' into nyc-mr1-dev
Tim Murray [Thu, 7 Jul 2016 20:29:22 +0000 (20:29 +0000)]
Merge changes from topic 'fifo' into nyc-mr1-dev

* changes:
  Add new mode for SCHED_FIFO on UI and RenderThreads.
  Add isThreadInProcess.

8 years agoMerge "Treat everyone the same." into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 20:20:00 +0000 (20:20 +0000)]
Merge "Treat everyone the same." into nyc-mr1-dev

8 years agoAdd new mode for SCHED_FIFO on UI and RenderThreads.
Tim Murray [Fri, 10 Jun 2016 17:03:20 +0000 (10:03 -0700)]
Add new mode for SCHED_FIFO on UI and RenderThreads.

Add a new mode, controlled by sys.use_fifo_ui property, that enables the
top app's UI and RenderThread to be SCHED_FIFO. This eliminates almost
all jank due to scheduling competition with non-UI critical
threads. This mode may not be suitable for all devices.

bug 24503801

Change-Id: I7b8a31830ad80f7efa00236928d5476998ed4e00

8 years agoMerge "Fix comment. The color is cyan 500 not teal." into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 19:52:57 +0000 (19:52 +0000)]
Merge "Fix comment. The color is cyan 500 not teal." into nyc-mr1-dev

8 years agoMerge "Remove "starting apps" boot message." into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 19:37:23 +0000 (19:37 +0000)]
Merge "Remove "starting apps" boot message." into nyc-mr1-dev

8 years agoMerge "Make pinning files async in a background thread" into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 19:35:26 +0000 (19:35 +0000)]
Merge "Make pinning files async in a background thread" into nyc-mr1-dev

8 years agoMerge "Move voice interaction callback list to VoiceInteractionManagerService" into...
Annie Chin [Thu, 7 Jul 2016 19:30:41 +0000 (19:30 +0000)]
Merge "Move voice interaction callback list to VoiceInteractionManagerService" into nyc-mr1-dev

8 years agoadd redirect for URL hard-coded into the default proguard config file, and update...
smain@google.com [Thu, 7 Jul 2016 19:26:10 +0000 (19:26 +0000)]
add redirect for URL hard-coded into the default proguard config file, and update related redirects for the entire /guide/developing/ path.
am: 3bd0cec491

Change-Id: I4b6f7200c2ff403b74f1305b9779950bf98d3a67

8 years agoAPI 25 is frozen, so we can't change API.
Jeff Sharkey [Thu, 7 Jul 2016 19:18:06 +0000 (13:18 -0600)]
API 25 is frozen, so we can't change API.

Bug: 29239768
Change-Id: Ib7777bcc299a3c1d33e51f3b72374b94842136cb

8 years agoadd redirect for URL hard-coded into the default proguard config file,
smain@google.com [Thu, 7 Jul 2016 19:13:36 +0000 (12:13 -0700)]
add redirect for URL hard-coded into the default proguard config file,
and update related redirects for the entire /guide/developing/ path.

Change-Id: Ie23791e3765ff821d9abba220ebdde782d6439ed

8 years agoMove voice interaction callback list to VoiceInteractionManagerService
Annie Chin [Thu, 7 Jul 2016 18:57:33 +0000 (11:57 -0700)]
Move voice interaction callback list to VoiceInteractionManagerService

Bug: 30005941

Change-Id: I23b3bba8b4525068b0f032d5ca908c0f1d181558

8 years agoHide more shortcut APIs
Makoto Onuki [Thu, 7 Jul 2016 18:51:52 +0000 (11:51 -0700)]
Hide more shortcut APIs

Change-Id: I911b4963b878e67ad2084190ac080e8555ba63c0

8 years agoSuppress PRE_BOOT notifications for some profiles.
Jeff Sharkey [Thu, 7 Jul 2016 18:33:48 +0000 (12:33 -0600)]
Suppress PRE_BOOT notifications for some profiles.

When a profile is unlocked as a side effect of it's parent user being
unlocked, it's confusing to see two sets of identical notifications,
so suppress the set belonging to the profile.

Profile notifications are still shown when the profile has a separate
authentication challenge.

Bug: 29931646
Change-Id: Id8d621451996c9e2f159560894596292ceb00f8d

8 years agoAdding debugging for last active time.
Winson [Thu, 7 Jul 2016 18:48:34 +0000 (11:48 -0700)]
Adding debugging for last active time.

Bug: 29947804
Change-Id: I4ab1dc3c380d3552aaaff4f811171cdc66e05474

8 years agoSoundPool: fix enforced camera shutter sound
Eric Laurent [Thu, 7 Jul 2016 18:35:13 +0000 (11:35 -0700)]
SoundPool: fix enforced camera shutter sound

Make sure that camera shutter sound is played in
total silence DND mode when enforced by country
regulation.

Bug: 29973005
Change-Id: I208f7ae5b07777eac48597f68feae6358999b2c3

8 years agoMerge \\\"docs: Edited \\\"Promote with Ads\\\" page; created \\\"Nearby\\\" feature...
Kevin Hufnagle [Thu, 7 Jul 2016 18:32:09 +0000 (18:32 +0000)]
Merge \\\"docs: Edited \\\"Promote with Ads\\\" page; created \\\"Nearby\\\" feature page.\\\" into mnc-io-docs am: 31302819c1 am: 5301f68827
am: 557b747fb4

Change-Id: Id6f969efd5f636d3c20e8e8fe073b033f02210ab

8 years agoMerge \\\"docs: Updated \\\"payments\\\" page; created new \\\"drive conversions...
Kevin Hufnagle [Thu, 7 Jul 2016 18:32:04 +0000 (18:32 +0000)]
Merge \\\"docs: Updated \\\"payments\\\" page; created new \\\"drive conversions\\\" page.\\\" into mnc-io-docs am: a021c2d3e6 am: 11935fbcc9
am: 02fcab7f43

Change-Id: Ie3448b4dbf85afa36b9a39e07683fe5386d83156

8 years agoMerge \\"docs: Edited \\"Promote with Ads\\" page; created \\"Nearby\\" feature page...
Joe Fernandez [Thu, 7 Jul 2016 18:21:05 +0000 (18:21 +0000)]
Merge \\"docs: Edited \\"Promote with Ads\\" page; created \\"Nearby\\" feature page.\\" into mnc-io-docs am: 31302819c1
am: 5301f68827

Change-Id: Ic59d70a5ce5693ed0facdc07e37dd23a7cfae061

8 years agoMerge \\"docs: Updated \\"payments\\" page; created new \\"drive conversions\\" page...
Joe Fernandez [Thu, 7 Jul 2016 18:20:58 +0000 (18:20 +0000)]
Merge \\"docs: Updated \\"payments\\" page; created new \\"drive conversions\\" page.\\" into mnc-io-docs am: a021c2d3e6
am: 11935fbcc9

Change-Id: I44cac66629a2c642ab86331bdda1bb1943df56a0

8 years agoMerge \"docs: Edited \"Promote with Ads\" page; created \"Nearby\" feature page....
Kevin Hufnagle [Thu, 7 Jul 2016 18:14:09 +0000 (18:14 +0000)]
Merge \"docs: Edited \"Promote with Ads\" page; created \"Nearby\" feature page.\" into mnc-io-docs
am: 31302819c1

Change-Id: I971086d0b8bb3268fdd62f41567654857b92dba8

8 years agoMerge \"docs: Updated \"payments\" page; created new \"drive conversions\" page....
Kevin Hufnagle [Thu, 7 Jul 2016 18:14:06 +0000 (18:14 +0000)]
Merge \"docs: Updated \"payments\" page; created new \"drive conversions\" page.\" into mnc-io-docs
am: a021c2d3e6

Change-Id: Idaed3f61c560217b31cc8a0e81d7a7ed761ee977

8 years agoRemove "starting apps" boot message.
Jeff Sharkey [Mon, 27 Jun 2016 23:08:23 +0000 (17:08 -0600)]
Remove "starting apps" boot message.

The "starting apps" message is only shown for a short period of time
before we show the lock screen.  Recent boot animations now have a
spin down phase which is just long enough to result in us flashing
this message for a very short period of time, which looks janky.

To avoid the janky behavior, remove this message altogether.  Other
boot messages for dexopt'ing after an OTA remain intact.

Also fix security bug that would allow any app to show a message.

Bug: 29367890
Change-Id: I77bb65acbe0e5afb4033dc6b83e533e665dce690

8 years agoMerge "docs: Edited "Promote with Ads" page; created "Nearby" feature page." into...
Joe Fernandez [Thu, 7 Jul 2016 18:09:40 +0000 (18:09 +0000)]
Merge "docs: Edited "Promote with Ads" page; created "Nearby" feature page." into mnc-io-docs

8 years agoMerge "docs: Updated "payments" page; created new "drive conversions" page." into...
Joe Fernandez [Thu, 7 Jul 2016 18:06:34 +0000 (18:06 +0000)]
Merge "docs: Updated "payments" page; created new "drive conversions" page." into mnc-io-docs

8 years agoFix comment. The color is cyan 500 not teal.
Andrew Sapperstein [Thu, 7 Jul 2016 18:03:41 +0000 (11:03 -0700)]
Fix comment. The color is cyan 500 not teal.

Bug: 29881561
Change-Id: I3bce85829532901ce4dae00eced281ca0a6fd838

8 years agoMerge "Install preloaded apps into the demo user" into nyc-mr1-dev
Fyodor Kupolov [Thu, 7 Jul 2016 18:00:53 +0000 (18:00 +0000)]
Merge "Install preloaded apps into the demo user" into nyc-mr1-dev

8 years agoMake pinning files async in a background thread
Philip Cuadra [Wed, 6 Jul 2016 23:00:32 +0000 (16:00 -0700)]
Make pinning files async in a background thread

Make the actual pinning of files be async in the system server background thread.
There's no need to block system_server from doing useful work on the ui
thread while the files are pinned.

bug 28251566

Change-Id: I905c165533692979ac179e987216378210396e75

8 years agoMerge "Add a null check for mImpl." into nyc-mr1-dev
Annie Chin [Thu, 7 Jul 2016 17:44:04 +0000 (17:44 +0000)]
Merge "Add a null check for mImpl." into nyc-mr1-dev

8 years agoMerge "Snapshot RemoteViews before releasing lock." into nyc-mr1-dev
Jeff Sharkey [Thu, 7 Jul 2016 17:36:50 +0000 (17:36 +0000)]
Merge "Snapshot RemoteViews before releasing lock." into nyc-mr1-dev

8 years agoMerge "Add video events to ParcelableCallAnalytics" into nyc-mr1-dev
Hall Liu [Thu, 7 Jul 2016 17:27:24 +0000 (17:27 +0000)]
Merge "Add video events to ParcelableCallAnalytics" into nyc-mr1-dev

8 years agoMerge "Make ContextHubService compliant with new context hub interface." into nyc...
Ashutosh Joshi [Thu, 7 Jul 2016 17:23:25 +0000 (17:23 +0000)]
Merge "Make ContextHubService compliant with new context hub interface." into nyc-mr1-dev

8 years agoAdd a null check for mImpl.
Annie Chin [Thu, 7 Jul 2016 17:22:34 +0000 (10:22 -0700)]
Add a null check for mImpl.

Bug: 30005941
Change-Id: I1212aa66be71b7ee0e990596272a33fa7530770f

8 years agoMerge "Add margins to the system icons when the user avatar is gone." into nyc-mr1-dev
Daniel Nishi [Thu, 7 Jul 2016 16:34:17 +0000 (16:34 +0000)]
Merge "Add margins to the system icons when the user avatar is gone." into nyc-mr1-dev

8 years agoMerge \\\"Docs: Fixed wrong return type of a method\\\" into mnc-io-docs am: 13ce5dca...
Hemal Patel [Thu, 7 Jul 2016 16:23:32 +0000 (16:23 +0000)]
Merge \\\"Docs: Fixed wrong return type of a method\\\" into mnc-io-docs am: 13ce5dca58 am: e02e644b92
am: 518f5a4e09

Change-Id: I79b68d35f39f74d908ec3872aa88201f22b6e094

8 years agoMerge \\"Docs: Fixed wrong return type of a method\\" into mnc-io-docs am: 13ce5dca58
Hemal Patel [Thu, 7 Jul 2016 16:15:48 +0000 (16:15 +0000)]
Merge \\"Docs: Fixed wrong return type of a method\\" into mnc-io-docs am: 13ce5dca58
am: e02e644b92

Change-Id: I9f872d3456381b437271ab949804ffbae0e6a5a2

8 years agoMerge "Consider queue & dequeue times for should draw" into nyc-mr1-dev
John Reck [Thu, 7 Jul 2016 16:10:40 +0000 (16:10 +0000)]
Merge "Consider queue & dequeue times for should draw" into nyc-mr1-dev

8 years agoMerge \"Docs: Fixed wrong return type of a method\" into mnc-io-docs
Hemal Patel [Thu, 7 Jul 2016 16:07:59 +0000 (16:07 +0000)]
Merge \"Docs: Fixed wrong return type of a method\" into mnc-io-docs
am: 13ce5dca58

Change-Id: Iece5dfd7fcf3bd0113e3e5fb84a0eac7ad361ae0

8 years agoMerge "Docs: Fixed wrong return type of a method" into mnc-io-docs
Hemal Patel [Thu, 7 Jul 2016 15:57:01 +0000 (15:57 +0000)]
Merge "Docs: Fixed wrong return type of a method" into mnc-io-docs

8 years agoMerge "Hide APIs that shouldn't have been public" into nyc-mr1-dev
Dave Langemak [Thu, 7 Jul 2016 15:38:11 +0000 (15:38 +0000)]
Merge "Hide APIs that shouldn't have been public" into nyc-mr1-dev

8 years agoMerge "IpConn metrics: distinguish NUD_FAILED answers" into nyc-mr1-dev
Hugo Benichi [Thu, 7 Jul 2016 13:02:29 +0000 (13:02 +0000)]
Merge "IpConn metrics: distinguish NUD_FAILED answers" into nyc-mr1-dev

8 years agoMerge "Bump ACTION_CHOOSE_PRIVATE_KEY_ALIAS broadcast to foreground" into nyc-mr1-dev
Rubin Xu [Thu, 7 Jul 2016 11:41:29 +0000 (11:41 +0000)]
Merge "Bump ACTION_CHOOSE_PRIVATE_KEY_ALIAS broadcast to foreground" into nyc-mr1-dev

8 years agoMerge "Do not show user locked notification after reboot when there is no lock" into...
Ricky Wai [Thu, 7 Jul 2016 11:05:54 +0000 (11:05 +0000)]
Merge "Do not show user locked notification after reboot when there is no lock" into nyc-mr1-dev

8 years agoMerge "Rewrite lingering." into nyc-mr1-dev
Lorenzo Colitti [Thu, 7 Jul 2016 10:55:38 +0000 (10:55 +0000)]
Merge "Rewrite lingering." into nyc-mr1-dev

8 years agoMerge "Disallow OobConfig being suspended" into nyc-mr1-dev
Esteban Talavera [Thu, 7 Jul 2016 10:33:21 +0000 (10:33 +0000)]
Merge "Disallow OobConfig being suspended" into nyc-mr1-dev

8 years agoMerge "ConnectivityManager: no double callback remove" into nyc-mr1-dev
TreeHugger Robot [Thu, 7 Jul 2016 09:33:34 +0000 (09:33 +0000)]
Merge "ConnectivityManager: no double callback remove" into nyc-mr1-dev

8 years agoMerge "Make MediaScanner extract "date taken" from videos, if present" into nyc-mr1-dev
Bryan Mawhinney [Thu, 7 Jul 2016 09:22:43 +0000 (09:22 +0000)]
Merge "Make MediaScanner extract "date taken" from videos, if present" into nyc-mr1-dev

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 agoRewrite lingering.
Lorenzo Colitti [Thu, 30 Jun 2016 16:53:25 +0000 (01:53 +0900)]
Rewrite lingering.

The two major changes here are:

- Move lingering out of NetworkMonitor. The fact that lingering
  is currently its own state in NetworkMonitor complicates the
  logic there: while a network is lingering it cannot be in any
  other state, we have to take care not to leave LingeringState
  for the wrong reason, etc.
- Instead of keeping a single per-network boolean to indicate
  whether a network is lingered or not, keep a linger timer for
  every request. This allows us to fix various corner-case bugs
  in lingering.

The changes in behaviour compared to the current code can be seen
in the unit test changes. Specifically:

1. Bug fix: when a network is lingered, and a request is added
   and removed to it, the existing code tears the network down
   immediately. The new code just sends another CALLBACK_LOSING
   and resumes lingering with the original timeout.
2. Bug fix: if cell is unvalidated and wifi comes up and
   validates before cell does (as might happen on boot), the
   existing code immediately tears down cell. The new code
   lingers cell, which is correct because unvalidated cell was
   the default network, so an app might have been using it.
3. Correctness improvement: always send CALLBACK_AVAILABLE for
   the new network before sending CALLBACK_LOSING. This was not
   really an issue in practice, because the usual flow is:
    - Network A is the default.
    - Network B connects, CALLBACK_AVAILABLE.
    - Network B validates, CALLBACK_LOSING.

Bug: 23113288
Change-Id: I2f1e779ff6eb869e62921a95aa9d356f380cf30a

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 agoIpConn metrics: distinguish NUD_FAILED answers
Hugo Benichi [Wed, 22 Jun 2016 08:01:43 +0000 (17:01 +0900)]
IpConn metrics: distinguish NUD_FAILED answers

This patch adds in IpReachabilityMonitor a timestamp variable set
everytime that probeAll() send NUD probe requests to RTNETLINK.
This allows to distinguish between:
  1) NUD_FAILED events resulting from such a forced NUD probe
  2) "organic" NUD_FAILED notifications from the kernel

This distinction is added to IpReachabilityEvent as a one-bit flag.

This patch also changes the formatting of ApfProgramEvent flags to use
'|' as a joining character, similarly to other flags formatting.

Bug: 21859053
Change-Id: I24c64a3f17fa283eace5bd0a05c21a90a2305359

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 agoInstall preloaded apps into the demo user
Fyodor Kupolov [Wed, 6 Jul 2016 21:07:18 +0000 (14:07 -0700)]
Install preloaded apps into the demo user

Apks preloaded in /data/preloads/apps are now automatically installed when
device is running in demo mode.

Apps are also installed into system user, so that they can be cached for
the next demo user session.

Bug: 29908713
Change-Id: If0fb45bb31c169a1e3020621a173867b8530532d

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 agoConnectivityManager: no double callback remove
Hugo Benichi [Thu, 7 Jul 2016 00:36:12 +0000 (09:36 +0900)]
ConnectivityManager: no double callback remove

This patch partially undoes ag/869831 (Change-Id:
Ia42ed7aefaebd8caf3eada8e42b6cb7a940d7647) so that ConnectivityManager
does not remove callbacks from its internal request-to-callback map at
unregistration, but instead let the singleton CallbackHandler do it when
receiving a CALLBACK_RELEASED from ConnectivityService.

ag/869831 was thought to fix b/26749700 that reported a callback leak
from sNetworkCallback, but a finer analysis of the code shows that
callbacks were correctly removed by the CallbackHandler before
ag/869831. There was therefore no callback leak.

Bug: 26749700
Bug: 28537383
Change-Id: I421d889d0e225c0e3d1eebea664f44a1cc0f3191

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 agoAdd margins to the system icons when the user avatar is gone.
Daniel Nishi [Mon, 27 Jun 2016 18:44:01 +0000 (11:44 -0700)]
Add margins to the system icons when the user avatar is gone.

This resolves a regression caused by situtionally removing the
avatar on phones when there is only one user. Normally, the avatar's
width acts as padding against the end. By removing the avatar, the
buffer is also removed. This patch re-adds 6dp of margins to space
the system icons properly on phones.

Change-Id: I7b07b02fb74146e17109a7aaf23a41bb681683f3
FIXES: 29646859

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 agoConsider queue & dequeue times for should draw
John Reck [Fri, 1 Jul 2016 23:19:13 +0000 (16:19 -0700)]
Consider queue & dequeue times for should draw

Bug: 29413700

Change-Id: I4b27b077af569e3c60c57b0e11501e9f3af70579

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 agoAdd video events to ParcelableCallAnalytics
Hall Liu [Thu, 23 Jun 2016 00:11:08 +0000 (17:11 -0700)]
Add video events to ParcelableCallAnalytics

Adds an isVideoCall boolean and a list of session upgrade/downgrade
requests.

Bug: 29239768
Change-Id: I4386a8fb5efe8fc673ffc904f2ddfa8400dcce38

8 years agoSnapshot RemoteViews before releasing lock.
Jeff Sharkey [Wed, 6 Jul 2016 23:38:59 +0000 (17:38 -0600)]
Snapshot RemoteViews before releasing lock.

The MSG_NOTIFY_UPDATE_APP_WIDGET message is sent asynchronously,
meaning it tries sending RemoteViews without the lock held, possibly
while another Binder thread is trying to mutate it.

Fix this by creating a copy for the thread to safely dispatch.

Bug: 29889779
Change-Id: I341fbbf89abee97a66cd67f1dd2a728282b68bfa