OSDN Git Service

android-x86/frameworks-base.git
7 years agoUpdate theme colours for watch type devices.
Michael Kwan [Thu, 14 Jul 2016 00:41:29 +0000 (17:41 -0700)]
Update theme colours for watch type devices.

Bug: 26914376
Change-Id: I127a9404fa8dea2db6c3196742566f8d12ccb113

7 years agoMerge "Rename disable add call extra" into nyc-mr1-dev
Hall Liu [Sat, 9 Jul 2016 01:03:19 +0000 (01:03 +0000)]
Merge "Rename disable add call extra" into nyc-mr1-dev

7 years agoMerge "Fix UiBench MainActivity fragment" into nyc-mr1-dev
Chris Craik [Sat, 9 Jul 2016 00:31:58 +0000 (00:31 +0000)]
Merge "Fix UiBench MainActivity fragment" into nyc-mr1-dev

7 years agoMerge "Add a secure setting for double twist gesture for camera flip." into nyc-mr1-dev
Doris Ling [Fri, 8 Jul 2016 23:58:45 +0000 (23:58 +0000)]
Merge "Add a secure setting for double twist gesture for camera flip." into nyc-mr1-dev

7 years agoMerge "Add Dolby TrueHD audio format" into nyc-mr1-dev
Eric Laurent [Fri, 8 Jul 2016 23:08:00 +0000 (23:08 +0000)]
Merge "Add Dolby TrueHD audio format" into nyc-mr1-dev

7 years agoRename disable add call extra
Hall Liu [Wed, 6 Jul 2016 23:32:43 +0000 (16:32 -0700)]
Rename disable add call extra

Used to be DISABLE_ADD_CALL_DURING_VIDEO_CALL, now just
DISABLE_ADD_CALL. The meaning has also changed -- having the extra set
means that adding calls should be disabled no matter what.

Bug: 29047863
Change-Id: Icd8966492b264a9c64dc4880080a706032f0759c

7 years agoMerge "Preparations for different scrim depending on wallpaper" into nyc-mr1-dev
TreeHugger Robot [Fri, 8 Jul 2016 22:13:50 +0000 (22:13 +0000)]
Merge "Preparations for different scrim depending on wallpaper" into nyc-mr1-dev

7 years agoMerge "Improve initial unlock delay (1/2)" into nyc-mr1-dev
TreeHugger Robot [Fri, 8 Jul 2016 22:03:48 +0000 (22:03 +0000)]
Merge "Improve initial unlock delay (1/2)" into nyc-mr1-dev

7 years agoAdd a secure setting for double twist gesture for camera flip.
Doris Ling [Wed, 6 Jul 2016 20:39:05 +0000 (13:39 -0700)]
Add a secure setting for double twist gesture for camera flip.

Add Secure.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED to control whether the
double twist gesture should flip the camera between front and back mode
is enabled or not. Also move SYSTEM_NAVIGATION_KEYS_ENABLED from
Global to Secure.

Bug: 29869445
Change-Id: I614289e6de7b1ee4221de7047a5e0dd784607bed

7 years agoMerge "Add Night display feature" into nyc-mr1-dev
Justin Klaassen [Fri, 8 Jul 2016 21:07:47 +0000 (21:07 +0000)]
Merge "Add Night display feature" into nyc-mr1-dev

7 years agoMerge "Camera2: Add @hide variant for openCamera for UID forwarding" into nyc-mr1-dev
TreeHugger Robot [Fri, 8 Jul 2016 21:02:49 +0000 (21:02 +0000)]
Merge "Camera2: Add @hide variant for openCamera for UID forwarding" into nyc-mr1-dev

7 years agoMerge "Updated margins and spacing of preferences for watch type devices." into nyc...
Michael Kwan [Fri, 8 Jul 2016 20:44:24 +0000 (20:44 +0000)]
Merge "Updated margins and spacing of preferences for watch type devices." into nyc-mr1-dev

7 years agoMerge "Remove "Night mode" from tuner" into nyc-mr1-dev
TreeHugger Robot [Fri, 8 Jul 2016 20:14:42 +0000 (20:14 +0000)]
Merge "Remove "Night mode" from tuner" into nyc-mr1-dev

7 years agoMerge \"More javadoc for audio recording activity API\" into nyc-dev
Jean-Michel Trivi [Fri, 8 Jul 2016 19:49:09 +0000 (19:49 +0000)]
Merge \"More javadoc for audio recording activity API\" into nyc-dev
am: 8d5fd92314

Change-Id: If513added909df2135fb57a2f86804edec821177

7 years agoMerge "More javadoc for audio recording activity API" into nyc-dev
Jean-Michel Trivi [Fri, 8 Jul 2016 19:36:32 +0000 (19:36 +0000)]
Merge "More javadoc for audio recording activity API" into nyc-dev

7 years agoCamera2: Add @hide variant for openCamera for UID forwarding
Eino-Ville Talvala [Fri, 8 Jul 2016 19:11:11 +0000 (12:11 -0700)]
Camera2: Add @hide variant for openCamera for UID forwarding

Trusted services may open a camera device on behalf of some client
of theirs; such services need to forward the UID of their client to
the camera service for validation of permissions, etc.

Add a variant of openCamera that makes this simple, only accessible
to unbundled services for now.  Only services explicitly trusted
by the camera service can pass an argument other than USE_CALLING_UID
to this method.

Bug: 27616192
Change-Id: Idb06112201b805a8b5c979b5f0761fec1c6994a3

7 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

7 years agoImprove initial unlock delay (1/2)
Jorim Jaggi [Fri, 1 Jul 2016 06:41:37 +0000 (23:41 -0700)]
Improve initial unlock delay (1/2)

When checking for the credentials, we add a new callback
onEarlyVerified which gets called as soon as we know that the
credential was correct.

In KeyguardUpdateMonitor, we track the unlocked state of the user,
and if it's still locked, we slow down all the transitions to allow
for a more gradual unlock experience.

Bug: 29007436

Change-Id: I406d228f9f3e41e07fe3292a61df175a7f579e4d

7 years agoAdd Night display feature
Justin Klaassen [Wed, 22 Jun 2016 01:24:24 +0000 (18:24 -0700)]
Add Night display feature

Bug: 28615069

Tints the display at night automatically according to your schedule or
using the sunrise/sunset corresponding to your current location.

Change-Id: Ie56b4eed88cc2fcbae88002492b1edad5820b6b1

7 years agoRemove "Night mode" from tuner
Justin Klaassen [Tue, 21 Jun 2016 15:55:55 +0000 (08:55 -0700)]
Remove "Night mode" from tuner

Bug: 28887927
Change-Id: Ic1c217152e56db63a87a1f1e772696d97b4b58b3

7 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

7 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

7 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

7 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

7 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

7 years agoAdd Dolby TrueHD audio format
Eric Laurent [Fri, 8 Jul 2016 01:58:11 +0000 (18:58 -0700)]
Add Dolby TrueHD audio format

Format is not public for now.
Unhide at next API bump.

Bug: 30024357
Change-Id: Ic307214d8ac8b7bb57609bf609366968efafd7cc

7 years agoUpdated margins and spacing of preferences for watch type devices.
Michael Kwan [Thu, 7 Jul 2016 23:12:23 +0000 (16:12 -0700)]
Updated margins and spacing of preferences for watch type devices.

Bug: 27962897
Change-Id: I2625925bd972a574d40d22593dfdf35f80529a7c

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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.

7 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

7 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

7 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

7 years agoFix UiBench MainActivity fragment
Chris Craik [Thu, 30 Jun 2016 22:49:51 +0000 (15:49 -0700)]
Fix UiBench MainActivity fragment

fixes: 30015965

Changes ListFragment to no longer be anonymous (so it can be properly
recreated from instance state).

Change-Id: I521fb9bf7306a07d5179ad945d64e8977640cc5b
(cherry picked from commit 0ede07d4bd59b4a2108fda1cd4ab767cc0058fb8)

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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

7 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